+ http://jsbeautifier.org/
+
+ Usage:
+ style_html(html_source);
+
+ style_html(html_source, options);
+
+ The options are:
+ indent_inner_html (default false) — indent and sections,
+ indent_size (default 4) — indentation size,
+ indent_char (default space) — character to indent with,
+ wrap_line_length (default 250) - maximum amount of characters per line (0 = disable)
+ brace_style (default "collapse") - "collapse" | "expand" | "end-expand" | "none"
+ put braces on the same line as control statements (default), or put braces on own line (Allman / ANSI style), or just put end braces on own line, or attempt to keep them where they are.
+ unformatted (defaults to inline tags) - list of tags, that shouldn't be reformatted
+ content_unformatted (defaults to pre tag) - list of tags, whose content shouldn't be reformatted
+ indent_scripts (default normal) - "keep"|"separate"|"normal"
+ preserve_newlines (default true) - whether existing line breaks before elements should be preserved
+ Only works before elements, not inside tags or for text.
+ max_preserve_newlines (default unlimited) - maximum number of line breaks to be preserved in one chunk
+ indent_handlebars (default false) - format and indent {{#foo}} and {{/foo}}
+ end_with_newline (false) - end with a newline
+ extra_liners (default [head,body,/html]) -List of tags that should have an extra newline before them.
+
+ e.g.
+
+ style_html(html_source, {
+ 'indent_inner_html': false,
+ 'indent_size': 2,
+ 'indent_char': ' ',
+ 'wrap_line_length': 78,
+ 'brace_style': 'expand',
+ 'preserve_newlines': true,
+ 'max_preserve_newlines': 5,
+ 'indent_handlebars': false,
+ 'extra_liners': ['/html']
+ });
+*/
+
+(function() {
+var legacy_beautify_html =
+/******/ (function(modules) { // webpackBootstrap
+/******/ // The module cache
+/******/ var installedModules = {};
+/******/
+/******/ // The require function
+/******/ function __webpack_require__(moduleId) {
+/******/
+/******/ // Check if module is in cache
+/******/ if(installedModules[moduleId]) {
+/******/ return installedModules[moduleId].exports;
+/******/ }
+/******/ // Create a new module (and put it into the cache)
+/******/ var module = installedModules[moduleId] = {
+/******/ i: moduleId,
+/******/ l: false,
+/******/ exports: {}
+/******/ };
+/******/
+/******/ // Execute the module function
+/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
+/******/
+/******/ // Flag the module as loaded
+/******/ module.l = true;
+/******/
+/******/ // Return the exports of the module
+/******/ return module.exports;
+/******/ }
+/******/
+/******/
+/******/ // expose the modules object (__webpack_modules__)
+/******/ __webpack_require__.m = modules;
+/******/
+/******/ // expose the module cache
+/******/ __webpack_require__.c = installedModules;
+/******/
+/******/ // identity function for calling harmony imports with the correct context
+/******/ __webpack_require__.i = function(value) { return value; };
+/******/
+/******/ // define getter function for harmony exports
+/******/ __webpack_require__.d = function(exports, name, getter) {
+/******/ if(!__webpack_require__.o(exports, name)) {
+/******/ Object.defineProperty(exports, name, {
+/******/ configurable: false,
+/******/ enumerable: true,
+/******/ get: getter
+/******/ });
+/******/ }
+/******/ };
+/******/
+/******/ // getDefaultExport function for compatibility with non-harmony modules
+/******/ __webpack_require__.n = function(module) {
+/******/ var getter = module && module.__esModule ?
+/******/ function getDefault() { return module['default']; } :
+/******/ function getModuleExports() { return module; };
+/******/ __webpack_require__.d(getter, 'a', getter);
+/******/ return getter;
+/******/ };
+/******/
+/******/ // Object.prototype.hasOwnProperty.call
+/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
+/******/
+/******/ // __webpack_public_path__
+/******/ __webpack_require__.p = "";
+/******/
+/******/ // Load entry module and return exports
+/******/ return __webpack_require__(__webpack_require__.s = 3);
+/******/ })
+/************************************************************************/
+/******/ ([
+/* 0 */
+/***/ (function(module, exports, __webpack_require__) {
+
+/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */
+/*
+
+ The MIT License (MIT)
+
+ Copyright (c) 2007-2017 Einar Lielmanis, Liam Newman, and contributors.
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+*/
+
+var mergeOpts = __webpack_require__(2).mergeOpts;
+var acorn = __webpack_require__(1);
+
+
+var lineBreak = acorn.lineBreak;
+var allLineBreaks = acorn.allLineBreaks;
+
+// function trim(s) {
+// return s.replace(/^\s+|\s+$/g, '');
+// }
+
+function ltrim(s) {
+ return s.replace(/^\s+/g, '');
+}
+
+function rtrim(s) {
+ return s.replace(/\s+$/g, '');
+}
+
+function Beautifier(html_source, options, js_beautify, css_beautify) {
+ //Wrapper function to invoke all the necessary constructors and deal with the output.
+ html_source = html_source || '';
+
+ var multi_parser,
+ indent_inner_html,
+ indent_body_inner_html,
+ indent_head_inner_html,
+ indent_size,
+ indent_character,
+ wrap_line_length,
+ brace_style,
+ unformatted,
+ content_unformatted,
+ preserve_newlines,
+ max_preserve_newlines,
+ indent_handlebars,
+ wrap_attributes,
+ wrap_attributes_indent_size,
+ is_wrap_attributes_force,
+ is_wrap_attributes_force_expand_multiline,
+ is_wrap_attributes_force_aligned,
+ end_with_newline,
+ extra_liners,
+ eol;
+
+ options = options || {};
+
+ // Allow the setting of language/file-type specific options
+ // with inheritance of overall settings
+ options = mergeOpts(options, 'html');
+
+ // backwards compatibility to 1.3.4
+ if ((options.wrap_line_length === undefined || parseInt(options.wrap_line_length, 10) === 0) &&
+ (options.max_char !== undefined && parseInt(options.max_char, 10) !== 0)) {
+ options.wrap_line_length = options.max_char;
+ }
+
+ indent_inner_html = (options.indent_inner_html === undefined) ? false : options.indent_inner_html;
+ indent_body_inner_html = (options.indent_body_inner_html === undefined) ? true : options.indent_body_inner_html;
+ indent_head_inner_html = (options.indent_head_inner_html === undefined) ? true : options.indent_head_inner_html;
+ indent_size = (options.indent_size === undefined) ? 4 : parseInt(options.indent_size, 10);
+ indent_character = (options.indent_char === undefined) ? ' ' : options.indent_char;
+ brace_style = (options.brace_style === undefined) ? 'collapse' : options.brace_style;
+ wrap_line_length = parseInt(options.wrap_line_length, 10) === 0 ? 32786 : parseInt(options.wrap_line_length || 250, 10);
+ unformatted = options.unformatted || [
+ // https://www.w3.org/TR/html5/dom.html#phrasing-content
+ 'a', 'abbr', 'area', 'audio', 'b', 'bdi', 'bdo', 'br', 'button', 'canvas', 'cite',
+ 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'i', 'iframe', 'img',
+ 'input', 'ins', 'kbd', 'keygen', 'label', 'map', 'mark', 'math', 'meter', 'noscript',
+ 'object', 'output', 'progress', 'q', 'ruby', 's', 'samp', /* 'script', */ 'select', 'small',
+ 'span', 'strong', 'sub', 'sup', 'svg', 'template', 'textarea', 'time', 'u', 'var',
+ 'video', 'wbr', 'text',
+ // prexisting - not sure of full effect of removing, leaving in
+ 'acronym', 'address', 'big', 'dt', 'ins', 'strike', 'tt',
+ ];
+ content_unformatted = options.content_unformatted || [
+ 'pre',
+ ];
+ preserve_newlines = (options.preserve_newlines === undefined) ? true : options.preserve_newlines;
+ max_preserve_newlines = preserve_newlines ?
+ (isNaN(parseInt(options.max_preserve_newlines, 10)) ? 32786 : parseInt(options.max_preserve_newlines, 10)) :
+ 0;
+ indent_handlebars = (options.indent_handlebars === undefined) ? false : options.indent_handlebars;
+ wrap_attributes = (options.wrap_attributes === undefined) ? 'auto' : options.wrap_attributes;
+ wrap_attributes_indent_size = (isNaN(parseInt(options.wrap_attributes_indent_size, 10))) ? indent_size : parseInt(options.wrap_attributes_indent_size, 10);
+ is_wrap_attributes_force = wrap_attributes.substr(0, 'force'.length) === 'force';
+ is_wrap_attributes_force_expand_multiline = (wrap_attributes === 'force-expand-multiline');
+ is_wrap_attributes_force_aligned = (wrap_attributes === 'force-aligned');
+ end_with_newline = (options.end_with_newline === undefined) ? false : options.end_with_newline;
+ extra_liners = (typeof options.extra_liners === 'object') && options.extra_liners ?
+ options.extra_liners.concat() : (typeof options.extra_liners === 'string') ?
+ options.extra_liners.split(',') : 'head,body,/html'.split(',');
+ eol = options.eol ? options.eol : 'auto';
+
+ if (options.indent_with_tabs) {
+ indent_character = '\t';
+ indent_size = 1;
+ }
+
+ if (eol === 'auto') {
+ eol = '\n';
+ if (html_source && lineBreak.test(html_source || '')) {
+ eol = html_source.match(lineBreak)[0];
+ }
+ }
+
+ eol = eol.replace(/\\r/, '\r').replace(/\\n/, '\n');
+
+ // HACK: newline parsing inconsistent. This brute force normalizes the input.
+ html_source = html_source.replace(allLineBreaks, '\n');
+
+ function Parser() {
+
+ this.pos = 0; //Parser position
+ this.token = '';
+ this.current_mode = 'CONTENT'; //reflects the current Parser mode: TAG/CONTENT
+ this.tags = { //An object to hold tags, their position, and their parent-tags, initiated with default values
+ parent: 'parent1',
+ parentcount: 1,
+ parent1: ''
+ };
+ this.tag_type = '';
+ this.token_text = this.last_token = this.last_text = this.token_type = '';
+ this.newlines = 0;
+ this.indent_content = indent_inner_html;
+ this.indent_body_inner_html = indent_body_inner_html;
+ this.indent_head_inner_html = indent_head_inner_html;
+
+ this.Utils = { //Uilities made available to the various functions
+ whitespace: "\n\r\t ".split(''),
+
+ single_token: options.void_elements || [
+ // HTLM void elements - aka self-closing tags - aka singletons
+ // https://www.w3.org/html/wg/drafts/html/master/syntax.html#void-elements
+ 'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'keygen',
+ 'link', 'menuitem', 'meta', 'param', 'source', 'track', 'wbr',
+ // NOTE: Optional tags - are not understood.
+ // https://www.w3.org/TR/html5/syntax.html#optional-tags
+ // The rules for optional tags are too complex for a simple list
+ // Also, the content of these tags should still be indented in many cases.
+ // 'li' is a good exmple.
+
+ // Doctype and xml elements
+ '!doctype', '?xml',
+ // ?php tag
+ '?php',
+ // other tags that were in this list, keeping just in case
+ 'basefont', 'isindex'
+ ],
+ extra_liners: extra_liners, //for tags that need a line of whitespace before them
+ in_array: function(what, arr) {
+ for (var i = 0; i < arr.length; i++) {
+ if (what === arr[i]) {
+ return true;
+ }
+ }
+ return false;
+ }
+ };
+
+ // Return true if the given text is composed entirely of whitespace.
+ this.is_whitespace = function(text) {
+ for (var n = 0; n < text.length; n++) {
+ if (!this.Utils.in_array(text.charAt(n), this.Utils.whitespace)) {
+ return false;
+ }
+ }
+ return true;
+ };
+
+ this.traverse_whitespace = function() {
+ var input_char = '';
+
+ input_char = this.input.charAt(this.pos);
+ if (this.Utils.in_array(input_char, this.Utils.whitespace)) {
+ this.newlines = 0;
+ while (this.Utils.in_array(input_char, this.Utils.whitespace)) {
+ if (preserve_newlines && input_char === '\n' && this.newlines <= max_preserve_newlines) {
+ this.newlines += 1;
+ }
+
+ this.pos++;
+ input_char = this.input.charAt(this.pos);
+ }
+ return true;
+ }
+ return false;
+ };
+
+ // Append a space to the given content (string array) or, if we are
+ // at the wrap_line_length, append a newline/indentation.
+ // return true if a newline was added, false if a space was added
+ this.space_or_wrap = function(content) {
+ if (this.line_char_count >= this.wrap_line_length) { //insert a line when the wrap_line_length is reached
+ this.print_newline(false, content);
+ this.print_indentation(content);
+ return true;
+ } else {
+ this.line_char_count++;
+ content.push(' ');
+ return false;
+ }
+ };
+
+ this.get_content = function() { //function to capture regular content between tags
+ var input_char = '',
+ content = [],
+ handlebarsStarted = 0;
+
+ while (this.input.charAt(this.pos) !== '<' || handlebarsStarted === 2) {
+ if (this.pos >= this.input.length) {
+ return content.length ? content.join('') : ['', 'TK_EOF'];
+ }
+
+ if (handlebarsStarted < 2 && this.traverse_whitespace()) {
+ this.space_or_wrap(content);
+ continue;
+ }
+
+ input_char = this.input.charAt(this.pos);
+
+ if (indent_handlebars) {
+ if (input_char === '{') {
+ handlebarsStarted += 1;
+ } else if (handlebarsStarted < 2) {
+ handlebarsStarted = 0;
+ }
+
+ if (input_char === '}' && handlebarsStarted > 0) {
+ if (handlebarsStarted-- === 0) {
+ break;
+ }
+ }
+ // Handlebars parsing is complicated.
+ // {{#foo}} and {{/foo}} are formatted tags.
+ // {{something}} should get treated as content, except:
+ // {{else}} specifically behaves like {{#if}} and {{/if}}
+ var peek3 = this.input.substr(this.pos, 3);
+ if (peek3 === '{{#' || peek3 === '{{/') {
+ // These are tags and not content.
+ break;
+ } else if (peek3 === '{{!') {
+ return [this.get_tag(), 'TK_TAG_HANDLEBARS_COMMENT'];
+ } else if (this.input.substr(this.pos, 2) === '{{') {
+ if (this.get_tag(true) === '{{else}}') {
+ break;
+ }
+ }
+ }
+
+ this.pos++;
+ this.line_char_count++;
+ content.push(input_char); //letter at-a-time (or string) inserted to an array
+ }
+ return content.length ? content.join('') : '';
+ };
+
+ this.get_contents_to = function(name) { //get the full content of a script or style to pass to js_beautify
+ if (this.pos === this.input.length) {
+ return ['', 'TK_EOF'];
+ }
+ var content = '';
+ var reg_match = new RegExp('' + name + '\\s*>', 'igm');
+ reg_match.lastIndex = this.pos;
+ var reg_array = reg_match.exec(this.input);
+ var end_script = reg_array ? reg_array.index : this.input.length; //absolute end of script
+ if (this.pos < end_script) { //get everything in between the script tags
+ content = this.input.substring(this.pos, end_script);
+ this.pos = end_script;
+ }
+ return content;
+ };
+
+ this.record_tag = function(tag) { //function to record a tag and its parent in this.tags Object
+ if (this.tags[tag + 'count']) { //check for the existence of this tag type
+ this.tags[tag + 'count']++;
+ this.tags[tag + this.tags[tag + 'count']] = this.indent_level; //and record the present indent level
+ } else { //otherwise initialize this tag type
+ this.tags[tag + 'count'] = 1;
+ this.tags[tag + this.tags[tag + 'count']] = this.indent_level; //and record the present indent level
+ }
+ this.tags[tag + this.tags[tag + 'count'] + 'parent'] = this.tags.parent; //set the parent (i.e. in the case of a div this.tags.div1parent)
+ this.tags.parent = tag + this.tags[tag + 'count']; //and make this the current parent (i.e. in the case of a div 'div1')
+ };
+
+ this.retrieve_tag = function(tag) { //function to retrieve the opening tag to the corresponding closer
+ if (this.tags[tag + 'count']) { //if the openener is not in the Object we ignore it
+ var temp_parent = this.tags.parent; //check to see if it's a closable tag.
+ while (temp_parent) { //till we reach '' (the initial value);
+ if (tag + this.tags[tag + 'count'] === temp_parent) { //if this is it use it
+ break;
+ }
+ temp_parent = this.tags[temp_parent + 'parent']; //otherwise keep on climbing up the DOM Tree
+ }
+ if (temp_parent) { //if we caught something
+ this.indent_level = this.tags[tag + this.tags[tag + 'count']]; //set the indent_level accordingly
+ this.tags.parent = this.tags[temp_parent + 'parent']; //and set the current parent
+ }
+ delete this.tags[tag + this.tags[tag + 'count'] + 'parent']; //delete the closed tags parent reference...
+ delete this.tags[tag + this.tags[tag + 'count']]; //...and the tag itself
+ if (this.tags[tag + 'count'] === 1) {
+ delete this.tags[tag + 'count'];
+ } else {
+ this.tags[tag + 'count']--;
+ }
+ }
+ };
+
+ this.indent_to_tag = function(tag) {
+ // Match the indentation level to the last use of this tag, but don't remove it.
+ if (!this.tags[tag + 'count']) {
+ return;
+ }
+ var temp_parent = this.tags.parent;
+ while (temp_parent) {
+ if (tag + this.tags[tag + 'count'] === temp_parent) {
+ break;
+ }
+ temp_parent = this.tags[temp_parent + 'parent'];
+ }
+ if (temp_parent) {
+ this.indent_level = this.tags[tag + this.tags[tag + 'count']];
+ }
+ };
+
+ this.get_tag = function(peek) { //function to get a full tag and parse its type
+ var input_char = '',
+ content = [],
+ comment = '',
+ space = false,
+ first_attr = true,
+ has_wrapped_attrs = false,
+ tag_start, tag_end,
+ tag_start_char,
+ orig_pos = this.pos,
+ orig_line_char_count = this.line_char_count,
+ is_tag_closed = false,
+ tail;
+
+ peek = peek !== undefined ? peek : false;
+
+ do {
+ if (this.pos >= this.input.length) {
+ if (peek) {
+ this.pos = orig_pos;
+ this.line_char_count = orig_line_char_count;
+ }
+ return content.length ? content.join('') : ['', 'TK_EOF'];
+ }
+
+ input_char = this.input.charAt(this.pos);
+ this.pos++;
+
+ if (this.Utils.in_array(input_char, this.Utils.whitespace)) { //don't want to insert unnecessary space
+ space = true;
+ continue;
+ }
+
+ if (input_char === "'" || input_char === '"') {
+ input_char += this.get_unformatted(input_char);
+ space = true;
+ }
+
+ if (input_char === '=') { //no space before =
+ space = false;
+ }
+ tail = this.input.substr(this.pos - 1);
+ if (is_wrap_attributes_force_expand_multiline && has_wrapped_attrs && !is_tag_closed && (input_char === '>' || input_char === '/')) {
+ if (tail.match(/^\/?\s*>/)) {
+ space = false;
+ is_tag_closed = true;
+ this.print_newline(false, content);
+ this.print_indentation(content);
+ }
+ }
+ if (content.length && content[content.length - 1] !== '=' && input_char !== '>' && space) {
+ //no space after = or before >
+ var wrapped = this.space_or_wrap(content);
+ var indentAttrs = wrapped && input_char !== '/' && !is_wrap_attributes_force;
+ space = false;
+
+ if (is_wrap_attributes_force && input_char !== '/') {
+ var force_first_attr_wrap = false;
+ if (is_wrap_attributes_force_expand_multiline && first_attr) {
+ var is_only_attribute = tail.match(/^\S*(="([^"]|\\")*")?\s*\/?\s*>/) !== null;
+ force_first_attr_wrap = !is_only_attribute;
+ }
+ if (!first_attr || force_first_attr_wrap) {
+ this.print_newline(false, content);
+ this.print_indentation(content);
+ indentAttrs = true;
+ }
+ }
+ if (indentAttrs) {
+ has_wrapped_attrs = true;
+
+ //indent attributes an auto, forced, or forced-align line-wrap
+ var alignment_size = wrap_attributes_indent_size;
+ if (is_wrap_attributes_force_aligned) {
+ alignment_size = content.indexOf(' ') + 1;
+ }
+
+ for (var count = 0; count < alignment_size; count++) {
+ // only ever further indent with spaces since we're trying to align characters
+ content.push(' ');
+ }
+ }
+ if (first_attr) {
+ for (var i = 0; i < content.length; i++) {
+ if (content[i] === ' ') {
+ first_attr = false;
+ break;
+ }
+ }
+ }
+ }
+
+ if (indent_handlebars && tag_start_char === '<') {
+ // When inside an angle-bracket tag, put spaces around
+ // handlebars not inside of strings.
+ if ((input_char + this.input.charAt(this.pos)) === '{{') {
+ input_char += this.get_unformatted('}}');
+ if (content.length && content[content.length - 1] !== ' ' && content[content.length - 1] !== '<') {
+ input_char = ' ' + input_char;
+ }
+ space = true;
+ }
+ }
+
+ if (input_char === '<' && !tag_start_char) {
+ tag_start = this.pos - 1;
+ tag_start_char = '<';
+ }
+
+ if (indent_handlebars && !tag_start_char) {
+ if (content.length >= 2 && content[content.length - 1] === '{' && content[content.length - 2] === '{') {
+ if (input_char === '#' || input_char === '/' || input_char === '!') {
+ tag_start = this.pos - 3;
+ } else {
+ tag_start = this.pos - 2;
+ }
+ tag_start_char = '{';
+ }
+ }
+
+ this.line_char_count++;
+ content.push(input_char); //inserts character at-a-time (or string)
+
+ if (content[1] && (content[1] === '!' || content[1] === '?' || content[1] === '%')) { //if we're in a comment, do something special
+ // We treat all comments as literals, even more than preformatted tags
+ // we just look for the appropriate close tag
+ content = [this.get_comment(tag_start)];
+ break;
+ }
+
+ if (indent_handlebars && content[1] && content[1] === '{' && content[2] && content[2] === '!') { //if we're in a comment, do something special
+ // We treat all comments as literals, even more than preformatted tags
+ // we just look for the appropriate close tag
+ content = [this.get_comment(tag_start)];
+ break;
+ }
+
+ if (indent_handlebars && tag_start_char === '{' && content.length > 2 && content[content.length - 2] === '}' && content[content.length - 1] === '}') {
+ break;
+ }
+ } while (input_char !== '>');
+
+ var tag_complete = content.join('');
+ var tag_index;
+ var tag_offset;
+
+ // must check for space first otherwise the tag could have the first attribute included, and
+ // then not un-indent correctly
+ if (tag_complete.indexOf(' ') !== -1) { //if there's whitespace, thats where the tag name ends
+ tag_index = tag_complete.indexOf(' ');
+ } else if (tag_complete.indexOf('\n') !== -1) { //if there's a line break, thats where the tag name ends
+ tag_index = tag_complete.indexOf('\n');
+ } else if (tag_complete.charAt(0) === '{') {
+ tag_index = tag_complete.indexOf('}');
+ } else { //otherwise go with the tag ending
+ tag_index = tag_complete.indexOf('>');
+ }
+ if (tag_complete.charAt(0) === '<' || !indent_handlebars) {
+ tag_offset = 1;
+ } else {
+ tag_offset = tag_complete.charAt(2) === '#' ? 3 : 2;
+ }
+ var tag_check = tag_complete.substring(tag_offset, tag_index).toLowerCase();
+ if (tag_complete.charAt(tag_complete.length - 2) === '/' ||
+ this.Utils.in_array(tag_check, this.Utils.single_token)) { //if this tag name is a single tag type (either in the list or has a closing /)
+ if (!peek) {
+ this.tag_type = 'SINGLE';
+ }
+ } else if (indent_handlebars && tag_complete.charAt(0) === '{' && tag_check === 'else') {
+ if (!peek) {
+ this.indent_to_tag('if');
+ this.tag_type = 'HANDLEBARS_ELSE';
+ this.indent_content = true;
+ this.traverse_whitespace();
+ }
+ } else if (this.is_unformatted(tag_check, unformatted) ||
+ this.is_unformatted(tag_check, content_unformatted)) {
+ // do not reformat the "unformatted" or "content_unformatted" tags
+ comment = this.get_unformatted('' + tag_check + '>', tag_complete); //...delegate to get_unformatted function
+ content.push(comment);
+ tag_end = this.pos - 1;
+ this.tag_type = 'SINGLE';
+ } else if (tag_check === 'script' &&
+ (tag_complete.search('type') === -1 ||
+ (tag_complete.search('type') > -1 &&
+ tag_complete.search(/\b(text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect)/) > -1))) {
+ if (!peek) {
+ this.record_tag(tag_check);
+ this.tag_type = 'SCRIPT';
+ }
+ } else if (tag_check === 'style' &&
+ (tag_complete.search('type') === -1 ||
+ (tag_complete.search('type') > -1 && tag_complete.search('text/css') > -1))) {
+ if (!peek) {
+ this.record_tag(tag_check);
+ this.tag_type = 'STYLE';
+ }
+ } else if (tag_check.charAt(0) === '!') { //peek for ',
+ matched = false;
+
+ this.pos = start_pos;
+ var input_char = this.input.charAt(this.pos);
+ this.pos++;
+
+ while (this.pos <= this.input.length) {
+ comment += input_char;
+
+ // only need to check for the delimiter if the last chars match
+ if (comment.charAt(comment.length - 1) === delimiter.charAt(delimiter.length - 1) &&
+ comment.indexOf(delimiter) !== -1) {
+ break;
+ }
+
+ // only need to search for custom delimiter for the first few characters
+ if (!matched && comment.length < 10) {
+ if (comment.indexOf('';
+ matched = true;
+ } else if (comment.indexOf('';
+ matched = true;
+ } else if (comment.indexOf('';
+ matched = true;
+ } else if (comment.indexOf('';
+ matched = true;
+ } else if (comment.indexOf('{{!--') === 0) { // {{!-- handlebars comment
+ delimiter = '--}}';
+ matched = true;
+ } else if (comment.indexOf('{{!') === 0) { // {{! handlebars comment
+ if (comment.length === 5 && comment.indexOf('{{!--') === -1) {
+ delimiter = '}}';
+ matched = true;
+ }
+ } else if (comment.indexOf('') === 0) { // {{! handlebars comment
+ delimiter = '?>';
+ matched = true;
+ } else if (comment.indexOf('<%') === 0) { // {{! handlebars comment
+ delimiter = '%>';
+ matched = true;
+ }
+ }
+
+ input_char = this.input.charAt(this.pos);
+ this.pos++;
+ }
+
+ return comment;
+ };
+
+ function tokenMatcher(delimiter) {
+ var token = '';
+
+ var add = function(str) {
+ var newToken = token + str.toLowerCase();
+ token = newToken.length <= delimiter.length ? newToken : newToken.substr(newToken.length - delimiter.length, delimiter.length);
+ };
+
+ var doesNotMatch = function() {
+ return token.indexOf(delimiter) === -1;
+ };
+
+ return {
+ add: add,
+ doesNotMatch: doesNotMatch
+ };
+ }
+
+ this.get_unformatted = function(delimiter, orig_tag) { //function to return unformatted content in its entirety
+ if (orig_tag && orig_tag.toLowerCase().indexOf(delimiter) !== -1) {
+ return '';
+ }
+ var input_char = '';
+ var content = '';
+ var space = true;
+
+ var delimiterMatcher = tokenMatcher(delimiter);
+
+ do {
+
+ if (this.pos >= this.input.length) {
+ return content;
+ }
+
+ input_char = this.input.charAt(this.pos);
+ this.pos++;
+
+ if (this.Utils.in_array(input_char, this.Utils.whitespace)) {
+ if (!space) {
+ this.line_char_count--;
+ continue;
+ }
+ if (input_char === '\n' || input_char === '\r') {
+ content += '\n';
+ /* Don't change tab indention for unformatted blocks. If using code for html editing, this will greatly affect tags if they are specified in the 'unformatted array'
+ for (var i=0; i]*>\s*$/);
+
+ // if next_tag comes back but is not an isolated tag, then
+ // let's treat the 'a' tag as having content
+ // and respect the unformatted option
+ if (!tag || this.Utils.in_array(tag[1], unformatted)) {
+ return true;
+ } else {
+ return false;
+ }
+ };
+
+ this.printer = function(js_source, indent_character, indent_size, wrap_line_length, brace_style) { //handles input/output and some other printing functions
+
+ this.input = js_source || ''; //gets the input for the Parser
+
+ // HACK: newline parsing inconsistent. This brute force normalizes the input.
+ this.input = this.input.replace(/\r\n|[\r\u2028\u2029]/g, '\n');
+
+ this.output = [];
+ this.indent_character = indent_character;
+ this.indent_string = '';
+ this.indent_size = indent_size;
+ this.brace_style = brace_style;
+ this.indent_level = 0;
+ this.wrap_line_length = wrap_line_length;
+ this.line_char_count = 0; //count to see if wrap_line_length was exceeded
+
+ for (var i = 0; i < this.indent_size; i++) {
+ this.indent_string += this.indent_character;
+ }
+
+ this.print_newline = function(force, arr) {
+ this.line_char_count = 0;
+ if (!arr || !arr.length) {
+ return;
+ }
+ if (force || (arr[arr.length - 1] !== '\n')) { //we might want the extra line
+ if ((arr[arr.length - 1] !== '\n')) {
+ arr[arr.length - 1] = rtrim(arr[arr.length - 1]);
+ }
+ arr.push('\n');
+ }
+ };
+
+ this.print_indentation = function(arr) {
+ for (var i = 0; i < this.indent_level; i++) {
+ arr.push(this.indent_string);
+ this.line_char_count += this.indent_string.length;
+ }
+ };
+
+ this.print_token = function(text) {
+ // Avoid printing initial whitespace.
+ if (this.is_whitespace(text) && !this.output.length) {
+ return;
+ }
+ if (text || text !== '') {
+ if (this.output.length && this.output[this.output.length - 1] === '\n') {
+ this.print_indentation(this.output);
+ text = ltrim(text);
+ }
+ }
+ this.print_token_raw(text);
+ };
+
+ this.print_token_raw = function(text) {
+ // If we are going to print newlines, truncate trailing
+ // whitespace, as the newlines will represent the space.
+ if (this.newlines > 0) {
+ text = rtrim(text);
+ }
+
+ if (text && text !== '') {
+ if (text.length > 1 && text.charAt(text.length - 1) === '\n') {
+ // unformatted tags can grab newlines as their last character
+ this.output.push(text.slice(0, -1));
+ this.print_newline(false, this.output);
+ } else {
+ this.output.push(text);
+ }
+ }
+
+ for (var n = 0; n < this.newlines; n++) {
+ this.print_newline(n > 0, this.output);
+ }
+ this.newlines = 0;
+ };
+
+ this.indent = function() {
+ this.indent_level++;
+ };
+
+ this.unindent = function() {
+ if (this.indent_level > 0) {
+ this.indent_level--;
+ }
+ };
+ };
+ return this;
+ }
+
+ /*_____________________--------------------_____________________*/
+
+ this.beautify = function() {
+ multi_parser = new Parser(); //wrapping functions Parser
+ multi_parser.printer(html_source, indent_character, indent_size, wrap_line_length, brace_style); //initialize starting values
+ while (true) {
+ var t = multi_parser.get_token();
+ multi_parser.token_text = t[0];
+ multi_parser.token_type = t[1];
+
+ if (multi_parser.token_type === 'TK_EOF') {
+ break;
+ }
+
+ switch (multi_parser.token_type) {
+ case 'TK_TAG_START':
+ multi_parser.print_newline(false, multi_parser.output);
+ multi_parser.print_token(multi_parser.token_text);
+ if (multi_parser.indent_content) {
+ if ((multi_parser.indent_body_inner_html || !multi_parser.token_text.match(//)) &&
+ (multi_parser.indent_head_inner_html || !multi_parser.token_text.match(//))) {
+
+ multi_parser.indent();
+ }
+
+ multi_parser.indent_content = false;
+ }
+ multi_parser.current_mode = 'CONTENT';
+ break;
+ case 'TK_TAG_STYLE':
+ case 'TK_TAG_SCRIPT':
+ multi_parser.print_newline(false, multi_parser.output);
+ multi_parser.print_token(multi_parser.token_text);
+ multi_parser.current_mode = 'CONTENT';
+ break;
+ case 'TK_TAG_END':
+ //Print new line only if the tag has no content and has child
+ if (multi_parser.last_token === 'TK_CONTENT' && multi_parser.last_text === '') {
+ var tag_name = (multi_parser.token_text.match(/\w+/) || [])[0];
+ var tag_extracted_from_last_output = null;
+ if (multi_parser.output.length) {
+ tag_extracted_from_last_output = multi_parser.output[multi_parser.output.length - 1].match(/(?:<|{{#)\s*(\w+)/);
+ }
+ if (tag_extracted_from_last_output === null ||
+ (tag_extracted_from_last_output[1] !== tag_name && !multi_parser.Utils.in_array(tag_extracted_from_last_output[1], unformatted))) {
+ multi_parser.print_newline(false, multi_parser.output);
+ }
+ }
+ multi_parser.print_token(multi_parser.token_text);
+ multi_parser.current_mode = 'CONTENT';
+ break;
+ case 'TK_TAG_SINGLE':
+ // Don't add a newline before elements that should remain unformatted.
+ var tag_check = multi_parser.token_text.match(/^\s*<([a-z-]+)/i);
+ if (!tag_check || !multi_parser.Utils.in_array(tag_check[1], unformatted)) {
+ multi_parser.print_newline(false, multi_parser.output);
+ }
+ multi_parser.print_token(multi_parser.token_text);
+ multi_parser.current_mode = 'CONTENT';
+ break;
+ case 'TK_TAG_HANDLEBARS_ELSE':
+ // Don't add a newline if opening {{#if}} tag is on the current line
+ var foundIfOnCurrentLine = false;
+ for (var lastCheckedOutput = multi_parser.output.length - 1; lastCheckedOutput >= 0; lastCheckedOutput--) {
+ if (multi_parser.output[lastCheckedOutput] === '\n') {
+ break;
+ } else {
+ if (multi_parser.output[lastCheckedOutput].match(/{{#if/)) {
+ foundIfOnCurrentLine = true;
+ break;
+ }
+ }
+ }
+ if (!foundIfOnCurrentLine) {
+ multi_parser.print_newline(false, multi_parser.output);
+ }
+ multi_parser.print_token(multi_parser.token_text);
+ if (multi_parser.indent_content) {
+ multi_parser.indent();
+ multi_parser.indent_content = false;
+ }
+ multi_parser.current_mode = 'CONTENT';
+ break;
+ case 'TK_TAG_HANDLEBARS_COMMENT':
+ multi_parser.print_token(multi_parser.token_text);
+ multi_parser.current_mode = 'TAG';
+ break;
+ case 'TK_CONTENT':
+ multi_parser.print_token(multi_parser.token_text);
+ multi_parser.current_mode = 'TAG';
+ break;
+ case 'TK_STYLE':
+ case 'TK_SCRIPT':
+ if (multi_parser.token_text !== '') {
+ multi_parser.print_newline(false, multi_parser.output);
+ var text = multi_parser.token_text,
+ _beautifier,
+ script_indent_level = 1;
+ if (multi_parser.token_type === 'TK_SCRIPT') {
+ _beautifier = typeof js_beautify === 'function' && js_beautify;
+ } else if (multi_parser.token_type === 'TK_STYLE') {
+ _beautifier = typeof css_beautify === 'function' && css_beautify;
+ }
+
+ if (options.indent_scripts === "keep") {
+ script_indent_level = 0;
+ } else if (options.indent_scripts === "separate") {
+ script_indent_level = -multi_parser.indent_level;
+ }
+
+ var indentation = multi_parser.get_full_indent(script_indent_level);
+ if (_beautifier) {
+
+ // call the Beautifier if avaliable
+ var Child_options = function() {
+ this.eol = '\n';
+ };
+ Child_options.prototype = options;
+ var child_options = new Child_options();
+ text = _beautifier(text.replace(/^\s*/, indentation), child_options);
+ } else {
+ // simply indent the string otherwise
+ var white = text.match(/^\s*/)[0];
+ var _level = white.match(/[^\n\r]*$/)[0].split(multi_parser.indent_string).length - 1;
+ var reindent = multi_parser.get_full_indent(script_indent_level - _level);
+ text = text.replace(/^\s*/, indentation)
+ .replace(/\r\n|\r|\n/g, '\n' + reindent)
+ .replace(/\s+$/, '');
+ }
+ if (text) {
+ multi_parser.print_token_raw(text);
+ multi_parser.print_newline(true, multi_parser.output);
+ }
+ }
+ multi_parser.current_mode = 'TAG';
+ break;
+ default:
+ // We should not be getting here but we don't want to drop input on the floor
+ // Just output the text and move on
+ if (multi_parser.token_text !== '') {
+ multi_parser.print_token(multi_parser.token_text);
+ }
+ break;
+ }
+ multi_parser.last_token = multi_parser.token_type;
+ multi_parser.last_text = multi_parser.token_text;
+ }
+ var sweet_code = multi_parser.output.join('').replace(/[\r\n\t ]+$/, '');
+
+ // establish end_with_newline
+ if (end_with_newline) {
+ sweet_code += '\n';
+ }
+
+ if (eol !== '\n') {
+ sweet_code = sweet_code.replace(/[\n]/g, eol);
+ }
+
+ return sweet_code;
+ };
+}
+
+module.exports.Beautifier = Beautifier;
+
+
+/***/ }),
+/* 1 */
+/***/ (function(module, exports) {
+
+/* jshint curly: false */
+// This section of code is taken from acorn.
+//
+// Acorn was written by Marijn Haverbeke and released under an MIT
+// license. The Unicode regexps (for identifiers and whitespace) were
+// taken from [Esprima](http://esprima.org) by Ariya Hidayat.
+//
+// Git repositories for Acorn are available at
+//
+// http://marijnhaverbeke.nl/git/acorn
+// https://github.com/marijnh/acorn.git
+
+// ## Character categories
+
+// Big ugly regular expressions that match characters in the
+// whitespace, identifier, and identifier-start categories. These
+// are only applied when a character is found to actually have a
+// code point above 128.
+
+var nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/; // jshint ignore:line
+var nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u0527\u0531-\u0556\u0559\u0561-\u0587\u05d0-\u05ea\u05f0-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u08a0\u08a2-\u08ac\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0977\u0979-\u097f\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c33\u0c35-\u0c39\u0c3d\u0c58\u0c59\u0c60\u0c61\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d60\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e87\u0e88\u0e8a\u0e8d\u0e94-\u0e97\u0e99-\u0e9f\u0ea1-\u0ea3\u0ea5\u0ea7\u0eaa\u0eab\u0ead-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f4\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f0\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1877\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191c\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19c1-\u19c7\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1ce9-\u1cec\u1cee-\u1cf1\u1cf5\u1cf6\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2119-\u211d\u2124\u2126\u2128\u212a-\u212d\u212f-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2e2f\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309d-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312d\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fcc\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua697\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua78e\ua790-\ua793\ua7a0-\ua7aa\ua7f8-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa80-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uabc0-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
+var nonASCIIidentifierChars = "\u0300-\u036f\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u0620-\u0649\u0672-\u06d3\u06e7-\u06e8\u06fb-\u06fc\u0730-\u074a\u0800-\u0814\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0840-\u0857\u08e4-\u08fe\u0900-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962-\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09d7\u09df-\u09e0\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2-\u0ae3\u0ae6-\u0aef\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b56\u0b57\u0b5f-\u0b60\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c01-\u0c03\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62-\u0c63\u0c66-\u0c6f\u0c82\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2-\u0ce3\u0ce6-\u0cef\u0d02\u0d03\u0d46-\u0d48\u0d57\u0d62-\u0d63\u0d66-\u0d6f\u0d82\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0df2\u0df3\u0e34-\u0e3a\u0e40-\u0e45\u0e50-\u0e59\u0eb4-\u0eb9\u0ec8-\u0ecd\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f41-\u0f47\u0f71-\u0f84\u0f86-\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1029\u1040-\u1049\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u170e-\u1710\u1720-\u1730\u1740-\u1750\u1772\u1773\u1780-\u17b2\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1920-\u192b\u1930-\u193b\u1951-\u196d\u19b0-\u19c0\u19c8-\u19c9\u19d0-\u19d9\u1a00-\u1a15\u1a20-\u1a53\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1b46-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1bb0-\u1bb9\u1be6-\u1bf3\u1c00-\u1c22\u1c40-\u1c49\u1c5b-\u1c7d\u1cd0-\u1cd2\u1d00-\u1dbe\u1e01-\u1f15\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2d81-\u2d96\u2de0-\u2dff\u3021-\u3028\u3099\u309a\ua640-\ua66d\ua674-\ua67d\ua69f\ua6f0-\ua6f1\ua7f8-\ua800\ua806\ua80b\ua823-\ua827\ua880-\ua881\ua8b4-\ua8c4\ua8d0-\ua8d9\ua8f3-\ua8f7\ua900-\ua909\ua926-\ua92d\ua930-\ua945\ua980-\ua983\ua9b3-\ua9c0\uaa00-\uaa27\uaa40-\uaa41\uaa4c-\uaa4d\uaa50-\uaa59\uaa7b\uaae0-\uaae9\uaaf2-\uaaf3\uabc0-\uabe1\uabec\uabed\uabf0-\uabf9\ufb20-\ufb28\ufe00-\ufe0f\ufe20-\ufe26\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f";
+var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
+var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
+
+// Whether a single character denotes a newline.
+
+exports.newline = /[\n\r\u2028\u2029]/;
+
+// Matches a whole line break (where CRLF is considered a single
+// line break). Used to count lines.
+
+// in javascript, these two differ
+// in python they are the same, different methods are called on them
+exports.lineBreak = new RegExp('\r\n|' + exports.newline.source);
+exports.allLineBreaks = new RegExp(exports.lineBreak.source, 'g');
+
+
+// Test whether a given character code starts an identifier.
+
+exports.isIdentifierStart = function(code) {
+ // permit $ (36) and @ (64). @ is used in ES7 decorators.
+ if (code < 65) return code === 36 || code === 64;
+ // 65 through 91 are uppercase letters.
+ if (code < 91) return true;
+ // permit _ (95).
+ if (code < 97) return code === 95;
+ // 97 through 123 are lowercase letters.
+ if (code < 123) return true;
+ return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));
+};
+
+// Test whether a given character is part of an identifier.
+
+exports.isIdentifierChar = function(code) {
+ if (code < 48) return code === 36;
+ if (code < 58) return true;
+ if (code < 65) return false;
+ if (code < 91) return true;
+ if (code < 97) return code === 95;
+ if (code < 123) return true;
+ return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));
+};
+
+
+/***/ }),
+/* 2 */
+/***/ (function(module, exports) {
+
+/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */
+/*
+
+ The MIT License (MIT)
+
+ Copyright (c) 2007-2017 Einar Lielmanis, Liam Newman, and contributors.
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+*/
+
+function mergeOpts(allOptions, targetType) {
+ var finalOpts = {};
+ var name;
+
+ for (name in allOptions) {
+ if (name !== targetType) {
+ finalOpts[name] = allOptions[name];
+ }
+ }
+
+ //merge in the per type settings for the targetType
+ if (targetType in allOptions) {
+ for (name in allOptions[targetType]) {
+ finalOpts[name] = allOptions[targetType][name];
+ }
+ }
+ return finalOpts;
+}
+
+module.exports.mergeOpts = mergeOpts;
+
+
+/***/ }),
+/* 3 */
+/***/ (function(module, exports, __webpack_require__) {
+
+/*jshint curly:true, eqeqeq:true, laxbreak:true, noempty:false */
+/*
+
+ The MIT License (MIT)
+
+ Copyright (c) 2007-2017 Einar Lielmanis, Liam Newman, and contributors.
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+*/
+
+var Beautifier = __webpack_require__(0).Beautifier;
+
+function style_html(html_source, options, js_beautify, css_beautify) {
+ var beautifier = new Beautifier(html_source, options, js_beautify, css_beautify);
+ return beautifier.beautify();
+}
+
+module.exports = style_html;
+
+/***/ })
+/******/ ]);
+var style_html = legacy_beautify_html;
+/* Footer */
+if (true) {
+ // Add support for AMD ( https://github.com/amdjs/amdjs-api/wiki/AMD#defineamd-property- )
+ !(__WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, __webpack_require__(58), __webpack_require__(59)], __WEBPACK_AMD_DEFINE_RESULT__ = (function(requireamd) {
+ var js_beautify = __webpack_require__(58);
+ var css_beautify = __webpack_require__(59);
+
+ return {
+ html_beautify: function(html_source, options) {
+ return style_html(html_source, options, js_beautify.js_beautify, css_beautify.css_beautify);
+ }
+ };
+ }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
+ __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
+} else if (typeof exports !== "undefined") {
+ // Add support for CommonJS. Just put this file somewhere on your require.paths
+ // and you will be able to `var html_beautify = require("beautify").html_beautify`.
+ var js_beautify = require('./beautify.js');
+ var css_beautify = require('./beautify-css.js');
+
+ exports.html_beautify = function(html_source, options) {
+ return style_html(html_source, options, js_beautify.js_beautify, css_beautify.css_beautify);
+ };
+} else if (typeof window !== "undefined") {
+ // If we're running a web page and don't have either of the above, add our one global
+ window.html_beautify = function(html_source, options) {
+ return style_html(html_source, options, window.js_beautify, window.css_beautify);
+ };
+} else if (typeof global !== "undefined") {
+ // If we don't even have window, try global.
+ global.html_beautify = function(html_source, options) {
+ return style_html(html_source, options, global.js_beautify, global.css_beautify);
+ };
+}
+
+}());
+
+
+/***/ }),
+/* 162 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-container .eruda-json {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n cursor: default;\n font-family: Consolas, Lucida Console, Monaco, MonoSpace;\n font-size: 12px;\n line-height: 1.2;\n min-height: 100%;\n color: #263238; }\n .eruda-container .eruda-json, .eruda-container .eruda-json ul {\n list-style: none !important; }\n .eruda-container .eruda-json ul {\n padding: 0 !important;\n padding-left: 15px !important;\n margin: 0 !important; }\n .eruda-container .eruda-json li {\n position: relative;\n white-space: nowrap;\n line-height: 16px;\n min-height: 16px; }\n .eruda-container .eruda-json > li > .eruda-key {\n display: none; }\n .eruda-container .eruda-json > li {\n padding: 10px 0; }\n .eruda-container .eruda-json .eruda-array .eruda-object .eruda-key {\n display: inline; }\n .eruda-container .eruda-json .eruda-null {\n color: #0086b3; }\n .eruda-container .eruda-json .eruda-string {\n color: #183691; }\n .eruda-container .eruda-json .eruda-number {\n color: #0086b3; }\n .eruda-container .eruda-json .eruda-boolean {\n color: #0086b3; }\n .eruda-container .eruda-json .eruda-special {\n color: #707d8b; }\n .eruda-container .eruda-json .eruda-key {\n color: #a71d5d; }\n .eruda-container .eruda-json .eruda-key-lighter {\n color: #d391b5; }\n .eruda-container .eruda-json .eruda-expanded:before {\n content: \"\";\n width: 0;\n height: 0;\n border: 4px solid transparent;\n position: absolute;\n border-top-color: #707d8b;\n left: -12px;\n top: 6px; }\n .eruda-container .eruda-json .eruda-collapsed:before {\n content: \"\";\n border-left-color: #707d8b;\n border-top-color: transparent;\n left: -10px;\n top: 4px; }\n .eruda-container .eruda-json li .eruda-collapsed ~ .eruda-close:before {\n color: #999; }\n .eruda-container .eruda-json .eruda-hidden ~ ul {\n display: none; }\n .eruda-container .eruda-json span {\n position: static !important; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 163 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
+ var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+
+ return " \r\n";
+},"3":function(container,depth0,helpers,partials,data) {
+ var helper;
+
+ return " \r\n \r\n
\r\n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+
+ return "\r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.displayHeader : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + " \r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.icon : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\r\n
\r\n
"
+ + ((stack1 = ((helper = (helper = helpers.msg || (depth0 != null ? depth0.msg : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"msg","hash":{},"data":data}) : helper))) != null ? stack1 : "")
+ + "
\r\n
\r\n
\r\n";
+},"useData":true});
+
+/***/ }),
+/* 164 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-dev-tools .eruda-tools .eruda-console .eruda-logs {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n height: 100%;\n font-size: 14px;\n padding-top: 1px; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-header {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n white-space: nowrap;\n margin: 5px 0;\n padding: 0 10px;\n font-size: 12px;\n color: #707d8b; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item {\n position: relative;\n background: #fff;\n padding: 10px;\n border-bottom: 1px solid #eceffe;\n border-top: 1px solid #eceffe;\n margin-top: -1px; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item:after {\n content: '';\n display: block;\n clear: both; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item a {\n color: #2196f3 !important; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-count, .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-icon-container {\n float: left;\n margin-right: 5px; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-icon-container .eruda-icon {\n line-height: 20px;\n font-size: 12px;\n color: #263238; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-icon-container .eruda-icon-chevron-right {\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-icon-container .eruda-icon-info-circle {\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-icon-container .eruda-icon-times-circle {\n color: #f44336; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-icon-container .eruda-icon-exclamation-triangle {\n color: #ff6f00; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-count {\n background: #2196f3;\n padding: 2px 4px;\n color: #fff;\n border-radius: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-log-content-wrapper {\n overflow: hidden; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-log-content {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n white-space: pre-wrap;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n line-height: 20px; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item .eruda-log-content * {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-input {\n background: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-html table, .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-table table {\n width: 100%;\n background: #fff;\n border-bottom: 1px solid #eceffe;\n border-collapse: collapse; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-html table th, .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-table table th {\n background: #2196f3;\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-html table th, .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-html table td, .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-table table th, .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-table table td {\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-html .eruda-blue, .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-table .eruda-blue {\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-error {\n z-index: 50;\n background: #ffebee;\n color: #f44336;\n border-top: 1px solid #f44336;\n border-bottom: 1px solid #f44336; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-error .eruda-stack {\n padding-left: 1.2em;\n white-space: nowrap; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-error .eruda-count {\n background: #f44336; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-debug {\n z-index: 20;\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-warn {\n z-index: 40;\n background: #fffbe6;\n border-top: 1px solid #ffc107;\n border-bottom: 1px solid #ffc107; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-info {\n z-index: 30;\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-logs .eruda-log-item.eruda-output {\n color: #263238; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 165 */
+/***/ (function(module, exports) {
+
+module.exports = {":$":"Load jQuery",":_":"Load underscore","/regexp":"Show logs that match given regexp"}
+
+/***/ }),
+/* 166 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
+ var helper, alias1=container.escapeExpression;
+
+ return " \r\n "
+ + alias1(((helper = (helper = helpers.key || (data && data.key)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"key","hash":{},"data":data}) : helper)))
+ + " | \r\n "
+ + alias1(container.lambda(depth0, depth0))
+ + " | \r\n
\r\n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return "\r\n \r\n \r\n Command | \r\n Description | \r\n
\r\n \r\n \r\n"
+ + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.commands : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + " \r\n
";
+},"useData":true});
+
+/***/ }),
+/* 167 */
+/***/ (function(module, exports) {
+
+module.exports = {"jQuery":"//cdn.bootcss.com/jquery/2.2.1/jquery.js","underscore":"//cdn.bootcss.com/underscore.js/1.8.3/underscore-min.js"}
+
+/***/ }),
+/* 168 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-dev-tools .eruda-tools .eruda-console {\n padding-top: 40px;\n padding-bottom: 40px; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-control {\n position: absolute;\n width: 100%;\n height: 40px;\n left: 0;\n top: 0;\n cursor: default;\n padding: 10px 10px 10px 40px;\n background: #fff;\n line-height: 20px; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-control .eruda-icon-ban, .eruda-dev-tools .eruda-tools .eruda-console .eruda-control .eruda-icon-info-circle {\n display: inline-block;\n color: #707d8b;\n padding: 10px;\n font-size: 16px;\n position: absolute;\n top: 1px;\n cursor: pointer;\n -webkit-transition: color 0.3s;\n transition: color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-control .eruda-icon-ban:active, .eruda-dev-tools .eruda-tools .eruda-console .eruda-control .eruda-icon-info-circle:active {\n color: #263238; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-control .eruda-icon-ban {\n left: 0; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-control .eruda-icon-info-circle {\n right: 0; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-control .eruda-filter {\n cursor: pointer;\n color: #707d8b;\n margin: 0 1px;\n font-size: 12px;\n height: 20px;\n display: inline-block;\n padding: 0 4px;\n line-height: 20px;\n border-radius: 4px;\n -webkit-transition: background 0.3s, color 0.3s;\n transition: background 0.3s, color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-control .eruda-filter.eruda-active {\n background: #707d8b;\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-js-input {\n position: absolute;\n z-index: 100;\n left: 0;\n bottom: 0;\n width: 100%;\n background: #fff;\n height: 40px; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-js-input .eruda-buttons {\n display: none;\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 40px;\n color: #707d8b;\n font-size: 12px;\n border-bottom: 1px solid #eceffe; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-js-input .eruda-buttons .eruda-button {\n cursor: pointer;\n width: 50%;\n display: inline-block;\n text-align: center;\n border-right: 1px solid #eceffe;\n height: 40px;\n line-height: 40px;\n float: left;\n -webkit-transition: background 0.3s, color 0.3s;\n transition: background 0.3s, color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-js-input .eruda-buttons .eruda-button:last-child {\n border-right: none; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-js-input .eruda-buttons .eruda-button:active {\n background: #2196f3;\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-console .eruda-js-input textarea {\n padding: 10px;\n outline: none;\n border: none;\n font-size: 14px;\n width: 100%;\n height: 100%;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n resize: none; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 169 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ return "\r\n \r\n All\r\n Error\r\n Warning\r\n Info\r\n Log\r\n Debug\r\n \r\n
\r\n\r\n\r\n";
+},"useData":true});
+
+/***/ }),
+/* 170 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _get2 = __webpack_require__(14);
+
+var _get3 = _interopRequireDefault(_get2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _Tool2 = __webpack_require__(9);
+
+var _Tool3 = _interopRequireDefault(_Tool2);
+
+var _XhrRequest = __webpack_require__(171);
+
+var _XhrRequest2 = _interopRequireDefault(_XhrRequest);
+
+var _FetchRequest = __webpack_require__(172);
+
+var _FetchRequest2 = _interopRequireDefault(_FetchRequest);
+
+var _Settings = __webpack_require__(13);
+
+var _Settings2 = _interopRequireDefault(_Settings);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var Network = function (_Tool) {
+ (0, _inherits3.default)(Network, _Tool);
+
+ function Network() {
+ (0, _classCallCheck3.default)(this, Network);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (Network.__proto__ || (0, _getPrototypeOf2.default)(Network)).call(this));
+
+ _this._style = (0, _util.evalCss)(__webpack_require__(173));
+
+ _this.name = 'network';
+ _this._requests = {};
+ _this._tpl = __webpack_require__(174);
+ _this._isFetchSupported = false;
+ if (window.fetch) _this._isFetchSupported = (0, _util.isNative)(window.fetch);
+ return _this;
+ }
+
+ (0, _createClass3.default)(Network, [{
+ key: 'init',
+ value: function init($el, container) {
+ (0, _get3.default)(Network.prototype.__proto__ || (0, _getPrototypeOf2.default)(Network.prototype), 'init', this).call(this, $el);
+
+ this._container = container;
+ this._bindEvent();
+ this._initCfg();
+ this.overrideXhr();
+ }
+ }, {
+ key: 'show',
+ value: function show() {
+ (0, _get3.default)(Network.prototype.__proto__ || (0, _getPrototypeOf2.default)(Network.prototype), 'show', this).call(this);
+
+ this._render();
+ }
+ }, {
+ key: 'clear',
+ value: function clear() {
+ this._requests = {};
+ this._render();
+ }
+ }, {
+ key: 'overrideXhr',
+ value: function overrideXhr() {
+ var winXhrProto = window.XMLHttpRequest.prototype;
+
+ var origSend = this._origSend = winXhrProto.send,
+ origOpen = this._origOpen = winXhrProto.open;
+
+ var self = this;
+
+ winXhrProto.open = function (method, url) {
+ var xhr = this;
+
+ var req = xhr.erudaRequest = new _XhrRequest2.default(xhr, method, url);
+
+ req.on('send', function (id, data) {
+ return self._addReq(id, data);
+ });
+ req.on('update', function (id, data) {
+ return self._updateReq(id, data);
+ });
+
+ xhr.addEventListener('readystatechange', function () {
+ switch (xhr.readyState) {
+ case 2:
+ return req.handleHeadersReceived();
+ case 4:
+ return req.handleDone();
+ }
+ });
+
+ origOpen.apply(this, arguments);
+ };
+
+ winXhrProto.send = function (data) {
+ var req = this.erudaRequest;
+ if (req) req.handleSend(data);
+
+ origSend.apply(this, arguments);
+ };
+ }
+ }, {
+ key: 'restoreXhr',
+ value: function restoreXhr() {
+ var winXhrProto = window.XMLHttpRequest.prototype;
+
+ if (this._origOpen) winXhrProto.open = this._origOpen;
+ if (this._origSend) winXhrProto.send = this._origSend;
+ }
+ }, {
+ key: 'overrideFetch',
+ value: function overrideFetch() {
+ if (!this._isFetchSupported) return;
+
+ var origFetch = this._origFetch = window.fetch;
+
+ var self = this;
+
+ window.fetch = function () {
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+
+ var req = new (Function.prototype.bind.apply(_FetchRequest2.default, [null].concat(args)))();
+ req.on('send', function (id, data) {
+ return self._addReq(id, data);
+ });
+ req.on('update', function (id, data) {
+ return self._updateReq(id, data);
+ });
+
+ var fetchResult = origFetch.apply(undefined, args);
+ req.send(fetchResult);
+
+ return fetchResult;
+ };
+ }
+ }, {
+ key: 'restoreFetch',
+ value: function restoreFetch() {
+ if (!this._isFetchSupported) return;
+
+ if (this._origFetch) window.fetch = this._origFetch;
+ }
+ }, {
+ key: '_addReq',
+ value: function _addReq(id, data) {
+ (0, _util.defaults)(data, {
+ name: '',
+ url: '',
+ status: 'pending',
+ type: 'unknown',
+ subType: 'unknown',
+ size: 0,
+ data: '',
+ method: 'GET',
+ startTime: (0, _util.now)(),
+ time: 0,
+ resHeaders: {},
+ resTxt: '',
+ done: false
+ });
+
+ this._requests[id] = data;
+
+ this._render();
+ }
+ }, {
+ key: '_updateReq',
+ value: function _updateReq(id, data) {
+ var target = this._requests[id];
+
+ if (!target) return;
+
+ (0, _util.extend)(target, data);
+
+ target.time = target.time - target.startTime;
+ target.displayTime = formatTime(target.time);
+
+ if (target.done && (target.status < 200 || target >= 300)) target.hasErr = true;
+
+ this._render();
+ }
+ }, {
+ key: '_bindEvent',
+ value: function _bindEvent() {
+ var _this2 = this;
+
+ var $el = this._$el,
+ container = this._container;
+
+ var self = this;
+
+ $el.on('click', '.eruda-request', function () {
+ var id = (0, _util.$)(this).data('id'),
+ data = self._requests[id];
+
+ if (!data.done) return;
+
+ showSources('http', {
+ url: data.url,
+ data: data.data,
+ resTxt: data.resTxt,
+ type: data.type,
+ subType: data.subType,
+ resHeaders: data.resHeaders
+ });
+ }).on('click', '.eruda-clear-request', function () {
+ return _this2.clear();
+ });
+
+ function showSources(type, data) {
+ var sources = container.get('sources');
+ if (!sources) return;
+
+ sources.set(type, data);
+
+ container.showTool('sources');
+ }
+ }
+ }, {
+ key: 'destroy',
+ value: function destroy() {
+ (0, _get3.default)(Network.prototype.__proto__ || (0, _getPrototypeOf2.default)(Network.prototype), 'destroy', this).call(this);
+
+ _util.evalCss.remove(this._style);
+ this.restoreXhr();
+ this.restoreFetch();
+ }
+ }, {
+ key: '_initCfg',
+ value: function _initCfg() {
+ var _this3 = this;
+
+ var cfg = this.config = _Settings2.default.createCfg('network', {
+ overrideFetch: true
+ });
+
+ if (cfg.get('overrideFetch')) this.overrideFetch();
+
+ cfg.on('change', function (key, val) {
+ switch (key) {
+ case 'overrideFetch':
+ return val ? _this3.overrideFetch() : _this3.restoreFetch();
+ }
+ });
+
+ var settings = this._container.get('settings');
+ settings.text('Network').switch(cfg, 'overrideFetch', 'Catch Fetch Requests').separator();
+ }
+ }, {
+ key: '_render',
+ value: function _render() {
+ if (!this.active) return;
+
+ var renderData = {};
+
+ if (!(0, _util.isEmpty)(this._requests)) renderData.requests = this._requests;
+
+ this._renderHtml(this._tpl(renderData));
+ }
+ }, {
+ key: '_renderHtml',
+ value: function _renderHtml(html) {
+ if (html === this._lastHtml) return;
+ this._lastHtml = html;
+ this._$el.html(html);
+ }
+ }]);
+ return Network;
+}(_Tool3.default);
+
+exports.default = Network;
+
+
+function formatTime(time) {
+ time = Math.round(time);
+
+ if (time < 1000) return time + 'ms';
+
+ return (time / 1000).toFixed(1) + 's';
+}
+
+/***/ }),
+/* 171 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _slicedToArray2 = __webpack_require__(73);
+
+var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _util = __webpack_require__(78);
+
+var _util2 = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var XhrRequest = function (_Emitter) {
+ (0, _inherits3.default)(XhrRequest, _Emitter);
+
+ function XhrRequest(xhr, method, url) {
+ (0, _classCallCheck3.default)(this, XhrRequest);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (XhrRequest.__proto__ || (0, _getPrototypeOf2.default)(XhrRequest)).call(this));
+
+ _this._xhr = xhr;
+ _this._method = method;
+ _this._url = (0, _util2.fullUrl)(url);
+ _this._id = (0, _util2.uniqId)('request');
+ return _this;
+ }
+
+ (0, _createClass3.default)(XhrRequest, [{
+ key: 'handleSend',
+ value: function handleSend(data) {
+ if (!(0, _util2.isStr)(data)) data = '';
+
+ this.emit('send', this._id, {
+ name: (0, _util2.getFileName)(this._url),
+ url: this._url,
+ data: data,
+ method: this._method
+ });
+ }
+ }, {
+ key: 'handleHeadersReceived',
+ value: function handleHeadersReceived() {
+ var xhr = this._xhr;
+
+ var type = (0, _util.getType)(xhr.getResponseHeader('Content-Type'));
+
+ this.emit('update', this._id, {
+ type: type.type,
+ subType: type.subType,
+ size: getSize(xhr, true, this._url),
+ time: (0, _util2.now)(),
+ resHeaders: getHeaders(xhr)
+ });
+ }
+ }, {
+ key: 'handleDone',
+ value: function handleDone() {
+ var xhr = this._xhr,
+ resType = xhr.responseType;
+
+ var resTxt = resType === '' || resType === 'text' || resType === 'json' ? xhr.responseText : '';
+
+ this.emit('update', this._id, {
+ status: xhr.status,
+ done: true,
+ size: getSize(xhr, false, this._url),
+ time: (0, _util2.now)(),
+ resTxt: resTxt
+ });
+ }
+ }]);
+ return XhrRequest;
+}(_util2.Emitter);
+
+exports.default = XhrRequest;
+
+
+function getHeaders(xhr) {
+ var raw = xhr.getAllResponseHeaders(),
+ lines = raw.split('\n');
+
+ var ret = {};
+
+ (0, _util2.each)(lines, function (line) {
+ line = (0, _util2.trim)(line);
+
+ if (line === '') return;
+
+ var _line$split = line.split(':', 2),
+ _line$split2 = (0, _slicedToArray3.default)(_line$split, 2),
+ key = _line$split2[0],
+ val = _line$split2[1];
+
+ ret[key] = (0, _util2.trim)(val);
+ });
+
+ return ret;
+}
+
+function getSize(xhr, headersOnly, url) {
+ var size = 0;
+
+ function getStrSize() {
+ if (!headersOnly) {
+ var resType = xhr.responseType;
+ var resTxt = resType === '' || resType === 'text' || resType === 'json' ? xhr.responseText : '';
+ if (resTxt) size = (0, _util.lenToUtf8Bytes)(resTxt);
+ }
+ }
+
+ if ((0, _util2.isCrossOrig)(url)) {
+ getStrSize();
+ } else {
+ try {
+ size = (0, _util2.toNum)(xhr.getResponseHeader('Content-Length'));
+ } catch (e) {
+ getStrSize();
+ }
+ }
+
+ if (size === 0) getStrSize();
+
+ return (0, _util2.fileSize)(size) + 'B';
+}
+
+/***/ }),
+/* 172 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _util = __webpack_require__(78);
+
+var _util2 = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var FetchRequest = function (_Emitter) {
+ (0, _inherits3.default)(FetchRequest, _Emitter);
+
+ function FetchRequest(url) {
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
+ (0, _classCallCheck3.default)(this, FetchRequest);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (FetchRequest.__proto__ || (0, _getPrototypeOf2.default)(FetchRequest)).call(this));
+
+ if (url instanceof window.Request) url = url.url;
+
+ _this._url = (0, _util2.fullUrl)(url);
+ _this._id = (0, _util2.uniqId)('request');
+ _this._options = options;
+ _this._method = options.method || 'GET';
+ return _this;
+ }
+
+ (0, _createClass3.default)(FetchRequest, [{
+ key: 'send',
+ value: function send(fetchResult) {
+ var _this2 = this;
+
+ var options = this._options;
+
+ var data = (0, _util2.isStr)(options.body) ? options.body : '';
+
+ this._fetch = fetchResult;
+ this.emit('send', this._id, {
+ name: (0, _util2.getFileName)(this._url),
+ url: this._url,
+ data: data,
+ method: this._method
+ });
+
+ fetchResult.then(function (res) {
+ res = res.clone();
+
+ var type = (0, _util.getType)(res.headers.get('Content-Type'));
+
+ res.text().then(function (resTxt) {
+ _this2.emit('update', _this2._id, {
+ type: type.type,
+ subType: type.subType,
+ time: (0, _util2.now)(),
+ size: getSize(res, resTxt),
+ resTxt: resTxt,
+ resHeaders: getHeaders(res),
+ status: res.status,
+ done: true
+ });
+ });
+
+ return res;
+ });
+ }
+ }]);
+ return FetchRequest;
+}(_util2.Emitter);
+
+exports.default = FetchRequest;
+
+
+function getSize(res, resTxt) {
+ var size = 0;
+
+ var contentLen = res.headers.get('Content-length');
+
+ if (contentLen) {
+ size = (0, _util2.toNum)(contentLen);
+ } else {
+ size = (0, _util.lenToUtf8Bytes)(resTxt);
+ }
+
+ return (0, _util2.fileSize)(size) + 'B';
+}
+
+function getHeaders(res) {
+ var ret = {};
+
+ res.headers.forEach(function (val, key) {
+ return ret[key] = val;
+ });
+
+ return ret;
+}
+
+/***/ }),
+/* 173 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-dev-tools .eruda-tools .eruda-network {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch; }\n .eruda-dev-tools .eruda-tools .eruda-network .eruda-title {\n background: #707d8b;\n padding: 10px;\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-network .eruda-title .eruda-btn {\n margin-left: 10px;\n float: right;\n background: #fff;\n color: #707d8b;\n text-align: center;\n width: 18px;\n height: 18px;\n line-height: 18px;\n border-radius: 50%;\n font-size: 12px;\n cursor: pointer;\n -webkit-transition: color 0.3s;\n transition: color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-network .eruda-title .eruda-btn:active {\n color: #263238; }\n .eruda-dev-tools .eruda-tools .eruda-network .eruda-requests {\n background: #fff;\n border-bottom: 1px solid #eceffe;\n margin-bottom: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-network .eruda-requests li {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n cursor: pointer;\n border-top: 1px solid #eceffe;\n height: 41px;\n white-space: nowrap; }\n .eruda-dev-tools .eruda-tools .eruda-network .eruda-requests li.eruda-error span {\n color: #f44336; }\n .eruda-dev-tools .eruda-tools .eruda-network .eruda-requests li span {\n display: inline-block;\n line-height: 40px;\n height: 40px;\n padding: 0 10px;\n font-size: 12px;\n vertical-align: top; }\n .eruda-dev-tools .eruda-tools .eruda-network .eruda-requests li:nth-child(even) {\n background: #eceffe; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 174 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.requests : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"2":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+
+ return " \r\n "
+ + alias4(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data}) : helper)))
+ + "\r\n "
+ + alias4(((helper = (helper = helpers.status || (depth0 != null ? depth0.status : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"status","hash":{},"data":data}) : helper)))
+ + "\r\n "
+ + alias4(((helper = (helper = helpers.method || (depth0 != null ? depth0.method : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"method","hash":{},"data":data}) : helper)))
+ + "\r\n "
+ + alias4(((helper = (helper = helpers.subType || (depth0 != null ? depth0.subType : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"subType","hash":{},"data":data}) : helper)))
+ + "\r\n "
+ + alias4(((helper = (helper = helpers.size || (depth0 != null ? depth0.size : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"size","hash":{},"data":data}) : helper)))
+ + "\r\n "
+ + alias4(((helper = (helper = helpers.displayTime || (depth0 != null ? depth0.displayTime : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"displayTime","hash":{},"data":data}) : helper)))
+ + "\r\n "
+ + alias4(((helper = (helper = helpers.url || (depth0 != null ? depth0.url : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"url","hash":{},"data":data}) : helper)))
+ + "\r\n \r\n";
+},"3":function(container,depth0,helpers,partials,data) {
+ return "eruda-error";
+},"5":function(container,depth0,helpers,partials,data) {
+ return " Empty\r\n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return "\r\n Request\r\n
\r\n \r\n
\r\n
\r\n\r\n"
+ + ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.requests : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(5, data, 0),"data":data})) != null ? stack1 : "")
+ + "
\r\n";
+},"useData":true});
+
+/***/ }),
+/* 175 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _get2 = __webpack_require__(14);
+
+var _get3 = _interopRequireDefault(_get2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _Tool2 = __webpack_require__(9);
+
+var _Tool3 = _interopRequireDefault(_Tool2);
+
+var _CssStore = __webpack_require__(176);
+
+var _CssStore2 = _interopRequireDefault(_CssStore);
+
+var _stringify = __webpack_require__(76);
+
+var _stringify2 = _interopRequireDefault(_stringify);
+
+var _Highlight = __webpack_require__(177);
+
+var _Highlight2 = _interopRequireDefault(_Highlight);
+
+var _Select = __webpack_require__(180);
+
+var _Select2 = _interopRequireDefault(_Select);
+
+var _Settings = __webpack_require__(13);
+
+var _Settings2 = _interopRequireDefault(_Settings);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var Elements = function (_Tool) {
+ (0, _inherits3.default)(Elements, _Tool);
+
+ function Elements() {
+ (0, _classCallCheck3.default)(this, Elements);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (Elements.__proto__ || (0, _getPrototypeOf2.default)(Elements)).call(this));
+
+ _this._style = (0, _util.evalCss)(__webpack_require__(181));
+
+ _this.name = 'elements';
+ _this._tpl = __webpack_require__(182);
+ _this._rmDefComputedStyle = true;
+ _this._highlightElement = false;
+ _this._selectElement = false;
+ _this._observeElement = true;
+ return _this;
+ }
+
+ (0, _createClass3.default)(Elements, [{
+ key: 'init',
+ value: function init($el, container) {
+ (0, _get3.default)(Elements.prototype.__proto__ || (0, _getPrototypeOf2.default)(Elements.prototype), 'init', this).call(this, $el);
+
+ this._container = container;
+
+ $el.html('');
+ this._$showArea = $el.find('.eruda-show-area');
+ $el.append(__webpack_require__(183)());
+
+ this._htmlEl = document.documentElement;
+ this._highlight = new _Highlight2.default(this._container.$container);
+ this._select = new _Select2.default();
+ this._bindEvent();
+ this._initObserver();
+ this._initCfg();
+ }
+ }, {
+ key: 'show',
+ value: function show() {
+ (0, _get3.default)(Elements.prototype.__proto__ || (0, _getPrototypeOf2.default)(Elements.prototype), 'show', this).call(this);
+
+ if (this._observeElement) this._enableObserver();
+ if (!this._curEl) this._setEl(this._htmlEl);
+ this._render();
+ }
+ }, {
+ key: 'hide',
+ value: function hide() {
+ this._disableObserver();
+
+ return (0, _get3.default)(Elements.prototype.__proto__ || (0, _getPrototypeOf2.default)(Elements.prototype), 'hide', this).call(this);
+ }
+ }, {
+ key: 'set',
+ value: function set(e) {
+ this._setEl(e);
+ this.scrollToTop();
+ this._render();
+
+ return this;
+ }
+ }, {
+ key: 'overrideEventTarget',
+ value: function overrideEventTarget() {
+ var winEventProto = getWinEventProto();
+
+ var origAddEvent = this._origAddEvent = winEventProto.addEventListener,
+ origRmEvent = this._origRmEvent = winEventProto.removeEventListener;
+
+ winEventProto.addEventListener = function (type, listener, useCapture) {
+ addEvent(this, type, listener, useCapture);
+ origAddEvent.apply(this, arguments);
+ };
+
+ winEventProto.removeEventListener = function (type, listener, useCapture) {
+ rmEvent(this, type, listener, useCapture);
+ origRmEvent.apply(this, arguments);
+ };
+ }
+ }, {
+ key: 'scrollToTop',
+ value: function scrollToTop() {
+ var el = this._$showArea.get(0);
+
+ el.scrollTop = 0;
+ }
+ }, {
+ key: 'restoreEventTarget',
+ value: function restoreEventTarget() {
+ var winEventProto = getWinEventProto();
+
+ if (this._origAddEvent) winEventProto.addEventListener = this._origAddEvent;
+ if (this._origRmEvent) winEventProto.removeEventListener = this._origRmEvent;
+ }
+ }, {
+ key: 'destroy',
+ value: function destroy() {
+ (0, _get3.default)(Elements.prototype.__proto__ || (0, _getPrototypeOf2.default)(Elements.prototype), 'destroy', this).call(this);
+
+ _util.evalCss.remove(this._style);
+ this._select.disable();
+ this._highlight.destroy();
+ this._disableObserver();
+ this.restoreEventTarget();
+ }
+ }, {
+ key: '_back',
+ value: function _back() {
+ if (this._curEl === this._htmlEl) return;
+
+ var parentQueue = this._curParentQueue,
+ parent = parentQueue.shift();
+
+ while (!isElExist(parent)) {
+ parent = parentQueue.shift();
+ }this.set(parent);
+ }
+ }, {
+ key: '_bindEvent',
+ value: function _bindEvent() {
+ var _this2 = this;
+
+ var self = this,
+ container = this._container,
+ select = this._select;
+
+ this._$el.on('click', '.eruda-child', function () {
+ var idx = (0, _util.$)(this).data('idx'),
+ curEl = self._curEl,
+ el = curEl.childNodes[idx];
+
+ if (el && el.nodeType === 3) {
+ var curTagName = curEl.tagName,
+ type = void 0;
+
+ switch (curTagName) {
+ case 'SCRIPT':
+ type = 'js';break;
+ case 'STYLE':
+ type = 'css';break;
+ default:
+ return;
+ }
+
+ var sources = container.get('sources');
+
+ if (sources) {
+ sources.set(type, el.nodeValue);
+ container.showTool('sources');
+ }
+
+ return;
+ }
+
+ !isElExist(el) ? self._render() : self.set(el);
+ }).on('click', '.eruda-listener-content', function () {
+ var text = (0, _util.$)(this).text(),
+ sources = container.get('sources');
+
+ if (sources) {
+ sources.set('js', text);
+ container.showTool('sources');
+ }
+ }).on('click', '.eruda-breadcrumb', function () {
+ var data = _this2._elData || JSON.parse((0, _stringify2.default)(_this2._curEl, { getterVal: true })),
+ sources = container.get('sources');
+
+ _this2._elData = data;
+
+ if (sources) {
+ sources.set('json', data);
+ container.showTool('sources');
+ }
+ }).on('click', '.eruda-parent', function () {
+ var idx = (0, _util.$)(this).data('idx'),
+ curEl = self._curEl,
+ el = curEl.parentNode;
+
+ while (idx-- && el.parentNode) {
+ el = el.parentNode;
+ }!isElExist(el) ? self._render() : self.set(el);
+ }).on('click', '.eruda-toggle-all-computed-style', function () {
+ return _this2._toggleAllComputedStyle();
+ });
+
+ var $bottomBar = this._$el.find('.eruda-bottom-bar');
+
+ $bottomBar.on('click', '.eruda-refresh', function () {
+ return _this2._render();
+ }).on('click', '.eruda-highlight', function () {
+ return _this2._toggleHighlight();
+ }).on('click', '.eruda-select', function () {
+ return _this2._toggleSelect();
+ }).on('click', '.eruda-reset', function () {
+ return _this2.set(_this2._htmlEl);
+ });
+
+ select.on('select', function (target) {
+ return _this2.set(target);
+ });
+ }
+ }, {
+ key: '_toggleAllComputedStyle',
+ value: function _toggleAllComputedStyle() {
+ this._rmDefComputedStyle = !this._rmDefComputedStyle;
+
+ this._render();
+ }
+ }, {
+ key: '_enableObserver',
+ value: function _enableObserver() {
+ this._observer.observe(this._htmlEl, {
+ attributes: true,
+ childList: true,
+ subtree: true
+ });
+ }
+ }, {
+ key: '_disableObserver',
+ value: function _disableObserver() {
+ this._observer.disconnect();
+ }
+ }, {
+ key: '_toggleHighlight',
+ value: function _toggleHighlight() {
+ if (this._selectElement) return;
+
+ this._$el.find('.eruda-highlight').toggleClass('eruda-active');
+ this._highlightElement = !this._highlightElement;
+
+ this._render();
+ }
+ }, {
+ key: '_toggleSelect',
+ value: function _toggleSelect() {
+ var select = this._select;
+
+ this._$el.find('.eruda-select').toggleClass('eruda-active');
+ if (!this._selectElement && !this._highlightElement) this._toggleHighlight();
+ this._selectElement = !this._selectElement;
+
+ if (this._selectElement) {
+ select.enable();
+ this._container.hide();
+ } else {
+ select.disable();
+ }
+ }
+ }, {
+ key: '_setEl',
+ value: function _setEl(el) {
+ this._curEl = el;
+ this._elData = null;
+ this._curCssStore = new _CssStore2.default(el);
+ this._highlight.setEl(el);
+ this._rmDefComputedStyle = true;
+
+ var parentQueue = [];
+
+ var parent = el.parentNode;
+ while (parent) {
+ parentQueue.push(parent);
+ parent = parent.parentNode;
+ }
+ this._curParentQueue = parentQueue;
+ }
+ }, {
+ key: '_getData',
+ value: function _getData() {
+ var ret = {};
+
+ var el = this._curEl,
+ cssStore = this._curCssStore;
+
+ var className = el.className,
+ id = el.id,
+ attributes = el.attributes,
+ tagName = el.tagName;
+
+
+ ret.parents = getParents(el);
+ ret.children = formatChildNodes(el.childNodes);
+ ret.attributes = formatAttr(attributes);
+ ret.name = formatElName({ tagName: tagName, id: id, className: className, attributes: attributes });
+
+ var events = el.erudaEvents;
+ if (events && (0, _util.keys)(events).length !== 0) ret.listeners = events;
+
+ if (needNoStyle(tagName)) return ret;
+
+ var computedStyle = cssStore.getComputedStyle();
+
+ function getBoxModelValue(type) {
+ var keys = ['top', 'left', 'right', 'bottom'];
+ if (type !== 'position') keys = (0, _util.map)(keys, function (key) {
+ return type + '-' + key;
+ });
+ if (type === 'border') keys = (0, _util.map)(keys, function (key) {
+ return key + '-width';
+ });
+
+ return {
+ top: boxModelValue(computedStyle[keys[0]], type),
+ left: boxModelValue(computedStyle[keys[1]], type),
+ right: boxModelValue(computedStyle[keys[2]], type),
+ bottom: boxModelValue(computedStyle[keys[3]], type)
+ };
+ }
+
+ var boxModel = {
+ margin: getBoxModelValue('margin'),
+ border: getBoxModelValue('border'),
+ padding: getBoxModelValue('padding'),
+ content: {
+ width: boxModelValue(computedStyle['width']),
+ height: boxModelValue(computedStyle['height'])
+ }
+ };
+
+ if (computedStyle['position'] !== 'static') {
+ boxModel.position = getBoxModelValue('position');
+ }
+ ret.boxModel = boxModel;
+
+ if (this._rmDefComputedStyle) computedStyle = rmDefComputedStyle(computedStyle);
+ ret.rmDefComputedStyle = this._rmDefComputedStyle;
+ processStyleRules(computedStyle);
+ ret.computedStyle = computedStyle;
+
+ var styles = cssStore.getMatchedCSSRules();
+ styles.unshift(getInlineStyle(el.style));
+ styles.forEach(function (style) {
+ return processStyleRules(style.style);
+ });
+ ret.styles = styles;
+
+ return ret;
+ }
+ }, {
+ key: '_render',
+ value: function _render() {
+ if (!isElExist(this._curEl)) return this._back();
+
+ this._highlight[this._highlightElement ? 'show' : 'hide']();
+ this._renderHtml(this._tpl(this._getData()));
+ }
+ }, {
+ key: '_renderHtml',
+ value: function _renderHtml(html) {
+ if (html === this._lastHtml) return;
+ this._lastHtml = html;
+ this._$showArea.html(html);
+ }
+ }, {
+ key: '_initObserver',
+ value: function _initObserver() {
+ var _this3 = this;
+
+ this._observer = new _util.SafeMutationObserver(function (mutations) {
+ (0, _util.each)(mutations, function (mutation) {
+ return _this3._handleMutation(mutation);
+ });
+ });
+ }
+ }, {
+ key: '_handleMutation',
+ value: function _handleMutation(mutation) {
+ var i = void 0,
+ len = void 0,
+ node = void 0;
+
+ if ((0, _util.isErudaEl)(mutation.target)) return;
+
+ if (mutation.type === 'attributes') {
+ if (mutation.target !== this._curEl) return;
+ this._render();
+ } else if (mutation.type === 'childList') {
+ if (mutation.target === this._curEl) return this._render();
+
+ var addedNodes = mutation.addedNodes;
+
+ for (i = 0, len = addedNodes.length; i < len; i++) {
+ node = addedNodes[i];
+
+ if (node.parentNode === this._curEl) return this._render();
+ }
+
+ var removedNodes = mutation.removedNodes;
+
+ for (i = 0, len = removedNodes.length; i < len; i++) {
+ if (removedNodes[i] === this._curEl) return this.set(this._htmlEl);
+ }
+ }
+ }
+ }, {
+ key: '_initCfg',
+ value: function _initCfg() {
+ var _this4 = this;
+
+ var cfg = this.config = _Settings2.default.createCfg('elements', {
+ overrideEventTarget: true,
+ observeElement: true
+ });
+
+ if (cfg.get('overrideEventTarget')) this.overrideEventTarget();
+ if (cfg.get('observeElement')) this._observeElement = false;
+
+ cfg.on('change', function (key, val) {
+ switch (key) {
+ case 'overrideEventTarget':
+ return val ? _this4.overrideEventTarget() : _this4.restoreEventTarget();
+ case 'observeElement':
+ _this4._observeElement = val;
+ return val ? _this4._enableObserver() : _this4._disableObserver();
+ }
+ });
+
+ var settings = this._container.get('settings');
+ settings.text('Elements').switch(cfg, 'overrideEventTarget', 'Catch Event Listeners');
+
+ if (this._observer) settings.switch(cfg, 'observeElement', 'Auto Refresh');
+
+ settings.separator();
+ }
+ }]);
+ return Elements;
+}(_Tool3.default);
+
+exports.default = Elements;
+
+
+function processStyleRules(style) {
+ (0, _util.each)(style, function (val, key) {
+ return style[key] = processStyleRule(val);
+ });
+}
+
+var regColor = /rgba?\((.*?)\)/g,
+ regCssUrl = /url\("?(.*?)"?\)/g;
+
+function processStyleRule(val) {
+ // For css custom properties, val is unable to retrieved.
+ val = (0, _util.toStr)(val);
+
+ return val.replace(regColor, '$&').replace(regCssUrl, function (match, url) {
+ return 'url("' + wrapLink(url) + '")';
+ });
+}
+
+var isElExist = function isElExist(val) {
+ return (0, _util.isEl)(val) && val.parentNode;
+};
+
+function formatElName(data) {
+ var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
+ _ref$noAttr = _ref.noAttr,
+ noAttr = _ref$noAttr === undefined ? false : _ref$noAttr;
+
+ var id = data.id,
+ className = data.className,
+ attributes = data.attributes;
+
+
+ var ret = '' + data.tagName.toLowerCase() + '';
+
+ if (id !== '') ret += '#' + id;
+
+ if ((0, _util.isStr)(className)) {
+ (0, _util.each)(className.split(/\s+/g), function (val) {
+ if (val.trim() === '') return;
+ ret += '.' + val;
+ });
+ }
+
+ if (!noAttr) {
+ (0, _util.each)(attributes, function (attr) {
+ var name = attr.name;
+ if (name === 'id' || name === 'class' || name === 'style') return;
+ ret += ' ' + name + '="' + attr.value + '"';
+ });
+ }
+
+ return ret;
+}
+
+var formatAttr = function formatAttr(attributes) {
+ return (0, _util.map)(attributes, function (attr) {
+ var name = attr.name,
+ value = attr.value;
+
+ value = (0, _util.escape)(value);
+
+ var isLink = (name === 'src' || name === 'href') && !(0, _util.startWith)(value, 'data');
+ if (isLink) value = wrapLink(value);
+ if (name === 'style') value = processStyleRule(value);
+
+ return { name: name, value: value };
+ });
+};
+
+function formatChildNodes(nodes) {
+ var ret = [];
+
+ for (var i = 0, len = nodes.length; i < len; i++) {
+ var child = nodes[i],
+ nodeType = child.nodeType;
+
+ if (nodeType === 3 || nodeType === 8) {
+ var val = child.nodeValue.trim();
+ if (val !== '') ret.push({
+ text: val,
+ isCmt: nodeType === 8,
+ idx: i
+ });
+ continue;
+ }
+
+ var isSvg = !(0, _util.isStr)(child.className);
+
+ if (nodeType === 1 && child.id !== 'eruda' && (isSvg || child.className.indexOf('eruda') < 0)) {
+ ret.push({
+ text: formatElName(child),
+ isEl: true,
+ idx: i
+ });
+ }
+ }
+
+ return ret;
+}
+
+function getParents(el) {
+ var ret = [],
+ i = 0,
+ parent = el.parentNode;
+
+ while (parent && parent.nodeType === 1) {
+ ret.push({
+ text: formatElName(parent, { noAttr: true }),
+ idx: i++
+ });
+
+ parent = parent.parentNode;
+ }
+
+ return ret.reverse();
+}
+
+function getInlineStyle(style) {
+ var ret = {
+ selectorText: 'element.style',
+ style: {}
+ };
+
+ for (var i = 0, len = style.length; i < len; i++) {
+ var s = style[i];
+
+ ret.style[s] = style[s];
+ }
+
+ return ret;
+}
+
+var defComputedStyle = __webpack_require__(184);
+
+function rmDefComputedStyle(computedStyle) {
+ var ret = {};
+
+ (0, _util.each)(computedStyle, function (val, key) {
+ if (val === defComputedStyle[key]) return;
+
+ ret[key] = val;
+ });
+
+ return ret;
+}
+
+var NO_STYLE_TAG = ['script', 'style', 'meta', 'title', 'link', 'head'];
+
+var needNoStyle = function needNoStyle(tagName) {
+ return NO_STYLE_TAG.indexOf(tagName.toLowerCase()) > -1;
+};
+
+function addEvent(el, type, listener) {
+ var useCapture = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
+
+ if (!(0, _util.isEl)(el) || !(0, _util.isFn)(listener) || !(0, _util.isBool)(useCapture)) return;
+
+ var events = el.erudaEvents = el.erudaEvents || {};
+
+ events[type] = events[type] || [];
+ events[type].push({
+ listener: listener,
+ listenerStr: listener.toString(),
+ useCapture: useCapture
+ });
+}
+
+function rmEvent(el, type, listener) {
+ var useCapture = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
+
+ if (!(0, _util.isEl)(el) || !(0, _util.isFn)(listener) || !(0, _util.isBool)(useCapture)) return;
+
+ var events = el.erudaEvents;
+
+ if (!(events && events[type])) return;
+
+ var listeners = events[type];
+
+ for (var i = 0, len = listeners.length; i < len; i++) {
+ if (listeners[i].listener === listener) {
+ listeners.splice(i, 1);
+ break;
+ }
+ }
+
+ if (listeners.length === 0) delete events[type];
+ if ((0, _util.keys)(events).length === 0) delete el.erudaEvents;
+}
+
+var getWinEventProto = function getWinEventProto() {
+ return (0, _util.safeGet)(window, 'EventTarget.prototype') || window.Node.prototype;
+};
+
+var wrapLink = function wrapLink(link) {
+ return '' + link + '';
+};
+
+function boxModelValue(val, type) {
+ if ((0, _util.isNum)(val)) return val;
+
+ if (!(0, _util.isStr)(val)) return '‒';
+
+ var ret = (0, _util.pxToNum)(val);
+ if ((0, _util.isNaN)(ret)) return val;
+
+ if (type === 'position') return ret;
+
+ return ret === 0 ? '‒' : ret;
+}
+
+/***/ }),
+/* 176 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+function formatStyle(style) {
+ var ret = {};
+
+ for (var i = 0, len = style.length; i < len; i++) {
+ var name = style[i];
+
+ if (style[name] === 'initial') continue;
+
+ ret[name] = style[name];
+ }
+
+ return ret;
+}
+
+var elProto = Element.prototype;
+
+var matchesSel = function matchesSel() {
+ return false;
+};
+
+if (elProto.webkitMatchesSelector) {
+ matchesSel = function matchesSel(el, selText) {
+ return el.webkitMatchesSelector(selText);
+ };
+} else if (elProto.mozMatchesSelector) {
+ matchesSel = function matchesSel(el, selText) {
+ return el.mozMatchesSelector(selText);
+ };
+}
+
+var CssStore = function () {
+ function CssStore(el) {
+ (0, _classCallCheck3.default)(this, CssStore);
+
+ this._el = el;
+ }
+
+ (0, _createClass3.default)(CssStore, [{
+ key: 'getComputedStyle',
+ value: function getComputedStyle() {
+ var computedStyle = window.getComputedStyle(this._el);
+
+ return formatStyle(computedStyle);
+ }
+ }, {
+ key: 'getMatchedCSSRules',
+ value: function getMatchedCSSRules() {
+ var _this = this;
+
+ var ret = [];
+
+ (0, _util.each)(document.styleSheets, function (styleSheet) {
+ if (!styleSheet.cssRules) return;
+
+ (0, _util.each)(styleSheet.cssRules, function (cssRule) {
+ var matchesEl = false;
+
+ // Mobile safari will throw DOM Exception 12 error, need to try catch it.
+ try {
+ matchesEl = _this._elMatchesSel(cssRule.selectorText);
+ /* eslint-disable no-empty */
+ } catch (e) {}
+
+ if (!matchesEl) return;
+
+ ret.push({
+ selectorText: cssRule.selectorText,
+ style: formatStyle(cssRule.style)
+ });
+ });
+ });
+
+ return ret;
+ }
+ }, {
+ key: '_elMatchesSel',
+ value: function _elMatchesSel(selText) {
+ return matchesSel(this._el, selText);
+ }
+ }]);
+ return CssStore;
+}();
+
+exports.default = CssStore;
+
+/***/ }),
+/* 177 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var Highlight = function () {
+ function Highlight($container) {
+ (0, _classCallCheck3.default)(this, Highlight);
+
+ this._style = (0, _util.evalCss)(__webpack_require__(178));
+
+ this._isShow = false;
+
+ this._appendTpl($container);
+ this._bindEvent();
+ }
+
+ (0, _createClass3.default)(Highlight, [{
+ key: 'setEl',
+ value: function setEl(el) {
+ this._$target = (0, _util.$)(el);
+ this._target = el;
+ }
+ }, {
+ key: 'show',
+ value: function show() {
+ this._isShow = true;
+ this.render();
+ this._$el.show();
+ }
+ }, {
+ key: 'destroy',
+ value: function destroy() {
+ _util.evalCss.remove(this._style);
+ }
+ }, {
+ key: 'hide',
+ value: function hide() {
+ this._isShow = false;
+ this._$el.hide();
+ }
+ }, {
+ key: 'render',
+ value: function render() {
+ var _$target$offset = this._$target.offset(),
+ left = _$target$offset.left,
+ width = _$target$offset.width,
+ top = _$target$offset.top,
+ height = _$target$offset.height;
+
+ this._$el.css({ left: left, top: top - window.scrollY, width: width, height: height });
+
+ var computedStyle = getComputedStyle(this._target, '');
+
+ var getNumStyle = function getNumStyle(name) {
+ return (0, _util.pxToNum)(computedStyle.getPropertyValue(name));
+ };
+
+ var ml = getNumStyle('margin-left'),
+ mr = getNumStyle('margin-right'),
+ mt = getNumStyle('margin-top'),
+ mb = getNumStyle('margin-bottom');
+
+ this._$margin.css({
+ left: -ml,
+ top: -mt,
+ width: width + ml + mr,
+ height: height + mt + mb
+ });
+
+ var bl = getNumStyle('border-left-width'),
+ br = getNumStyle('border-right-width'),
+ bt = getNumStyle('border-top-width'),
+ bb = getNumStyle('border-bottom-width');
+
+ var bw = width - bl - br,
+ bh = height - bt - bb;
+
+ this._$padding.css({
+ left: bl,
+ top: bt,
+ width: bw,
+ height: bh
+ });
+
+ var pl = getNumStyle('padding-left'),
+ pr = getNumStyle('padding-right'),
+ pt = getNumStyle('padding-top'),
+ pb = getNumStyle('padding-bottom');
+
+ this._$content.css({
+ left: bl + pl,
+ top: bl + pt,
+ width: bw - pl - pr,
+ height: bh - pt - pb
+ });
+
+ this._$size.css({
+ top: -mt - (top - mt < 25 ? 0 : 25),
+ left: -ml
+ }).html(formatElName(this._target) + ' | ' + width + ' \xD7 ' + height);
+ }
+ }, {
+ key: '_bindEvent',
+ value: function _bindEvent() {
+ var _this = this;
+
+ window.addEventListener('scroll', function () {
+ if (!_this._isShow) return;
+ _this.render();
+ }, false);
+ }
+ }, {
+ key: '_appendTpl',
+ value: function _appendTpl($container) {
+ $container.append(__webpack_require__(179)());
+
+ var $el = this._$el = (0, _util.$)('.eruda-elements-highlight');
+ this._$margin = $el.find('.eruda-margin');
+ this._$padding = $el.find('.eruda-padding');
+ this._$content = $el.find('.eruda-content');
+ this._$size = $el.find('.eruda-size');
+ }
+ }]);
+ return Highlight;
+}();
+
+exports.default = Highlight;
+
+
+function formatElName(el) {
+ var id = el.id,
+ className = el.className;
+
+
+ var ret = '' + el.tagName.toLowerCase() + '';
+
+ if (id !== '') ret += '#' + id + '';
+
+ var classes = '';
+ if ((0, _util.isStr)(className)) {
+ (0, _util.each)(className.split(/\s+/g), function (val) {
+ if ((0, _util.trim)(val) === '') return;
+
+ classes += '.' + val;
+ });
+ }
+
+ ret += '' + classes + '';
+
+ return ret;
+}
+
+/***/ }),
+/* 178 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-elements-highlight {\n display: none;\n position: absolute;\n left: 0;\n right: 0;\n z-index: -100;\n pointer-events: none !important; }\n .eruda-elements-highlight * {\n pointer-events: none !important; }\n .eruda-elements-highlight .eruda-indicator {\n opacity: .5;\n position: absolute;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%; }\n .eruda-elements-highlight .eruda-margin {\n position: absolute;\n background: #e8925b;\n z-index: 100; }\n .eruda-elements-highlight .eruda-border {\n position: absolute;\n left: 0;\n right: 0;\n width: 100%;\n height: 100%;\n background: #ffcd7c;\n z-index: 200; }\n .eruda-elements-highlight .eruda-padding {\n position: absolute;\n background: #86af76;\n z-index: 300; }\n .eruda-elements-highlight .eruda-content {\n position: absolute;\n background: #5e88c1;\n z-index: 400; }\n .eruda-elements-highlight .eruda-size {\n position: absolute;\n top: 0;\n left: 0;\n background: #333740;\n color: #d9d9d9;\n font-size: 12px;\n height: 25px;\n line-height: 25px;\n text-align: center;\n padding: 0 5px;\n white-space: nowrap;\n overflow-x: hidden; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 179 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ return "";
+},"useData":true});
+
+/***/ }),
+/* 180 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var Select = function (_Emitter) {
+ (0, _inherits3.default)(Select, _Emitter);
+
+ function Select() {
+ (0, _classCallCheck3.default)(this, Select);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (Select.__proto__ || (0, _getPrototypeOf2.default)(Select)).call(this));
+
+ var self = _this;
+
+ _this._startListener = function (e) {
+ if ((0, _util.isErudaEl)(e.target)) return;
+
+ self._timer = setTimeout(function () {
+ self.emit('select', e.target);
+ }, 200);
+
+ return false;
+ };
+
+ _this._moveListener = function () {
+ clearTimeout(self._timer);
+ };
+
+ _this._clickListener = function (e) {
+ if ((0, _util.isErudaEl)(e.target)) return;
+
+ e.preventDefault();
+ e.stopImmediatePropagation();
+ };
+ return _this;
+ }
+
+ (0, _createClass3.default)(Select, [{
+ key: 'enable',
+ value: function enable() {
+ this.disable();
+ function addEvent(type, listener) {
+ document.body.addEventListener(type, listener, true);
+ }
+ addEvent('touchstart', this._startListener);
+ addEvent('touchmove', this._moveListener);
+ addEvent('click', this._clickListener);
+
+ return this;
+ }
+ }, {
+ key: 'disable',
+ value: function disable() {
+ function rmEvent(type, listener) {
+ document.body.removeEventListener(type, listener, true);
+ }
+ rmEvent('touchstart', this._startListener);
+ rmEvent('touchmove', this._moveListener);
+ rmEvent('click', this._clickListener);
+
+ return this;
+ }
+ }]);
+ return Select;
+}(_util.Emitter);
+
+exports.default = Select;
+
+/***/ }),
+/* 181 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-dev-tools .eruda-tools .eruda-elements {\n padding-bottom: 40px;\n font-size: 14px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-show-area {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n height: 100%; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-parents {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n background: #fff;\n padding: 10px;\n white-space: nowrap;\n border-bottom: 1px solid #eceffe;\n cursor: pointer;\n font-size: 12px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-parents li {\n display: inline-block; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-parents li .eruda-parent {\n display: inline-block; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-parents li:last-child {\n margin-right: 0; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-parents .eruda-icon-chevron-right {\n font-size: 8px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-breadcrumb {\n background: #fff;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n margin-bottom: 10px;\n word-break: break-all;\n padding: 10px;\n font-size: 16px;\n min-height: 40px;\n border-bottom: 1px solid #eceffe;\n cursor: pointer;\n -webkit-transition: background 0.3s, color 0.3s;\n transition: background 0.3s, color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-breadcrumb:active {\n background: #2196f3;\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-breadcrumb:active span {\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-section {\n margin-bottom: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-section h2 {\n background: #2196f3;\n padding: 10px;\n color: #fff;\n font-size: 14px;\n -webkit-transition: background 0.3s;\n transition: background 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-section h2 .eruda-btn {\n margin-left: 10px;\n float: right;\n text-align: center;\n width: 18px;\n height: 18px;\n line-height: 18px;\n font-size: 12px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-section h2.eruda-active-effect {\n cursor: pointer; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-section h2.eruda-active-effect:active {\n background: #1565c0; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-children {\n background: #fff;\n margin-bottom: 10px !important;\n border-bottom: 1px solid #eceffe; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-children li {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n cursor: default;\n padding: 10px;\n border-top: 1px solid #eceffe;\n white-space: nowrap;\n -webkit-transition: background 0.3s, color 0.3s;\n transition: background 0.3s, color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-children li span {\n -webkit-transition: color 0.3s;\n transition: color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-children li.eruda-active-effect {\n cursor: pointer; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-children li.eruda-active-effect:active {\n background: #2196f3;\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-children li.eruda-active-effect:active span {\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-attributes {\n background: #fff;\n font-size: 12px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-attributes a {\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-attributes .eruda-table-wrapper {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-attributes table td {\n padding: 5px 10px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-text-content {\n background: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-text-content .eruda-content {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-style-color {\n width: 7px;\n height: 7px;\n margin-right: 2px;\n border: 1px solid #263238;\n display: inline-block; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n background: #fff;\n font-size: 12px;\n padding: 10px;\n text-align: center;\n white-space: nowrap;\n border-bottom: 1px solid #eceffe; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-label {\n position: absolute;\n margin-left: 3px;\n padding: 0 2px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-top, .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-left, .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-right, .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-bottom {\n display: inline-block; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-left, .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-right {\n vertical-align: middle; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-position, .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-margin, .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-border, .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-padding, .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-content {\n position: relative;\n background: #fff;\n display: inline-block;\n text-align: center;\n vertical-align: middle;\n padding: 3px;\n margin: 3px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-position {\n border: 1px grey dotted; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-margin {\n border: 1px dashed;\n background: rgba(246, 178, 107, 0.66); }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-border {\n border: 1px #000 solid;\n background: rgba(255, 229, 153, 0.66); }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-padding {\n border: 1px grey dashed;\n background: rgba(147, 196, 125, 0.55); }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-box-model .eruda-content {\n border: 1px grey solid;\n min-width: 100px;\n background: rgba(111, 168, 220, 0.66); }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-computed-style {\n background: #fff;\n font-size: 12px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-computed-style a {\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-computed-style .eruda-table-wrapper {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n max-height: 200px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-computed-style table td {\n padding: 5px 10px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-computed-style table td.eruda-key {\n white-space: nowrap;\n color: #f44336; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-styles {\n background: #fff;\n font-size: 12px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-styles .eruda-style-wrapper {\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-styles .eruda-style-wrapper .eruda-style-rules {\n border-radius: 4px;\n -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n padding: 10px;\n background: #fff;\n margin-bottom: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-styles .eruda-style-wrapper .eruda-style-rules .eruda-rule {\n padding-left: 2em;\n word-break: break-all; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-styles .eruda-style-wrapper .eruda-style-rules .eruda-rule a {\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-styles .eruda-style-wrapper .eruda-style-rules .eruda-rule span {\n color: #f44336; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-styles .eruda-style-wrapper .eruda-style-rules:last-child {\n margin-bottom: 0; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-listeners {\n background: #fff;\n font-size: 12px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-listeners .eruda-listener-wrapper {\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-listeners .eruda-listener-wrapper .eruda-listener {\n -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n margin-bottom: 10px;\n background: #fff;\n border-radius: 4px;\n overflow: hidden; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-listeners .eruda-listener-wrapper .eruda-listener .eruda-listener-type {\n padding: 10px;\n background: #2196f3;\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-listeners .eruda-listener-wrapper .eruda-listener .eruda-listener-content li {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n padding: 10px;\n border-top: none; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-listeners .eruda-listener-wrapper .eruda-listener .eruda-listener-content li.eruda-capture {\n background: #eceffe; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-bottom-bar {\n height: 40px;\n background: #fff;\n position: absolute;\n left: 0;\n bottom: 0;\n width: 100%;\n font-size: 0;\n border-top: 1px solid #eceffe; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-bottom-bar .eruda-btn {\n cursor: pointer;\n text-align: center;\n color: #707d8b;\n font-size: 14px;\n line-height: 40px;\n width: 25%;\n display: inline-block;\n -webkit-transition: background 0.3s, color 0.3s;\n transition: background 0.3s, color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-bottom-bar .eruda-btn:active {\n background: #2196f3;\n color: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-elements .eruda-bottom-bar .eruda-btn.eruda-active {\n color: #2196f3; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 182 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return " \r\n"
+ + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.parents : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\r\n";
+},"2":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function";
+
+ return " \r\n "
+ + ((stack1 = ((helper = (helper = helpers.text || (depth0 != null ? depth0.text : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"text","hash":{},"data":data}) : helper))) != null ? stack1 : "")
+ + "
\r\n \r\n \r\n";
+},"4":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return " \r\n"
+ + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.children : depth0),{"name":"each","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\r\n";
+},"5":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function";
+
+ return " "
+ + ((stack1 = ((helper = (helper = helpers.text || (depth0 != null ? depth0.text : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"text","hash":{},"data":data}) : helper))) != null ? stack1 : "")
+ + "\r\n";
+},"6":function(container,depth0,helpers,partials,data) {
+ return "eruda-green";
+},"8":function(container,depth0,helpers,partials,data) {
+ return "eruda-active-effect";
+},"10":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.attributes : depth0),{"name":"each","hash":{},"fn":container.program(11, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"11":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function";
+
+ return " \r\n "
+ + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data}) : helper)))
+ + " | \r\n "
+ + ((stack1 = ((helper = (helper = helpers.value || (depth0 != null ? depth0.value : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"value","hash":{},"data":data}) : helper))) != null ? stack1 : "")
+ + " | \r\n
\r\n";
+},"13":function(container,depth0,helpers,partials,data) {
+ return " \r\n Empty | \r\n
\r\n";
+},"15":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return " \r\n
Styles
\r\n
\r\n"
+ + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.styles : depth0),{"name":"each","hash":{},"fn":container.program(16, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\r\n
\r\n";
+},"16":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});
+
+ return " \r\n
"
+ + container.escapeExpression(((helper = (helper = helpers.selectorText || (depth0 != null ? depth0.selectorText : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"selectorText","hash":{},"data":data}) : helper)))
+ + " {
\r\n"
+ + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.style : depth0),{"name":"each","hash":{},"fn":container.program(17, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
}
\r\n
\r\n";
+},"17":function(container,depth0,helpers,partials,data) {
+ var stack1, helper;
+
+ return " \r\n "
+ + container.escapeExpression(((helper = (helper = helpers.key || (data && data.key)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"key","hash":{},"data":data}) : helper)))
+ + ": "
+ + ((stack1 = container.lambda(depth0, depth0)) != null ? stack1 : "")
+ + ";\r\n
\r\n";
+},"19":function(container,depth0,helpers,partials,data) {
+ var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.lambda, alias3=container.escapeExpression;
+
+ return " \r\n
Computed Style\r\n
\r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.rmDefComputedStyle : depth0),{"name":"if","hash":{},"fn":container.program(20, data, 0),"inverse":container.program(22, data, 0),"data":data})) != null ? stack1 : "")
+ + "
\r\n \r\n
\r\n "
+ + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.position : stack1),{"name":"if","hash":{},"fn":container.program(24, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\r\n
margin
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.margin : stack1)) != null ? stack1.top : stack1), depth0))
+ + "
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.margin : stack1)) != null ? stack1.left : stack1), depth0))
+ + "
\r\n
border
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.border : stack1)) != null ? stack1.top : stack1), depth0))
+ + "
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.border : stack1)) != null ? stack1.left : stack1), depth0))
+ + "
\r\n
padding
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.padding : stack1)) != null ? stack1.top : stack1), depth0))
+ + "
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.padding : stack1)) != null ? stack1.left : stack1), depth0))
+ + "
\r\n "
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.content : stack1)) != null ? stack1.width : stack1), depth0))
+ + " × "
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.content : stack1)) != null ? stack1.height : stack1), depth0))
+ + "\r\n
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.padding : stack1)) != null ? stack1.right : stack1), depth0))
+ + "
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.padding : stack1)) != null ? stack1.bottom : stack1), depth0))
+ + "
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.border : stack1)) != null ? stack1.right : stack1), depth0))
+ + "
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.border : stack1)) != null ? stack1.bottom : stack1), depth0))
+ + "
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.margin : stack1)) != null ? stack1.right : stack1), depth0))
+ + "
"
+ + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.margin : stack1)) != null ? stack1.bottom : stack1), depth0))
+ + "
"
+ + ((stack1 = helpers["if"].call(alias1,((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.position : stack1),{"name":"if","hash":{},"fn":container.program(26, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "\r\n
\r\n
\r\n
\r\n \r\n"
+ + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.computedStyle : depth0),{"name":"each","hash":{},"fn":container.program(28, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + " \r\n
\r\n
\r\n
\r\n";
+},"20":function(container,depth0,helpers,partials,data) {
+ return " \r\n";
+},"22":function(container,depth0,helpers,partials,data) {
+ return " \r\n";
+},"24":function(container,depth0,helpers,partials,data) {
+ var stack1, alias1=container.lambda, alias2=container.escapeExpression;
+
+ return "\r\n
position
"
+ + alias2(alias1(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.position : stack1)) != null ? stack1.top : stack1), depth0))
+ + "
"
+ + alias2(alias1(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.position : stack1)) != null ? stack1.left : stack1), depth0))
+ + "
";
+},"26":function(container,depth0,helpers,partials,data) {
+ var stack1, alias1=container.lambda, alias2=container.escapeExpression;
+
+ return "
"
+ + alias2(alias1(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.position : stack1)) != null ? stack1.right : stack1), depth0))
+ + "
"
+ + alias2(alias1(((stack1 = ((stack1 = (depth0 != null ? depth0.boxModel : depth0)) != null ? stack1.position : stack1)) != null ? stack1.bottom : stack1), depth0))
+ + "
";
+},"28":function(container,depth0,helpers,partials,data) {
+ var stack1, helper;
+
+ return " \r\n "
+ + container.escapeExpression(((helper = (helper = helpers.key || (data && data.key)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"key","hash":{},"data":data}) : helper)))
+ + " | \r\n "
+ + ((stack1 = container.lambda(depth0, depth0)) != null ? stack1 : "")
+ + " | \r\n
\r\n";
+},"30":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return " \r\n
Event Listeners
\r\n
\r\n"
+ + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.listeners : depth0),{"name":"each","hash":{},"fn":container.program(31, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\r\n
\r\n";
+},"31":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});
+
+ return " \r\n
"
+ + container.escapeExpression(((helper = (helper = helpers.key || (data && data.key)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"key","hash":{},"data":data}) : helper)))
+ + "
\r\n
\r\n"
+ + ((stack1 = helpers.each.call(alias1,depth0,{"name":"each","hash":{},"fn":container.program(32, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\r\n
\r\n";
+},"32":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});
+
+ return " "
+ + container.escapeExpression(((helper = (helper = helpers.listenerStr || (depth0 != null ? depth0.listenerStr : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"listenerStr","hash":{},"data":data}) : helper)))
+ + "\r\n";
+},"33":function(container,depth0,helpers,partials,data) {
+ return "eruda-capture";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});
+
+ return ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.parents : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "\r\n "
+ + ((stack1 = ((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"name","hash":{},"data":data}) : helper))) != null ? stack1 : "")
+ + "\r\n
\r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.children : depth0),{"name":"if","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "\r\n
Attributes
\r\n
\r\n
\r\n \r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.attributes : depth0),{"name":"if","hash":{},"fn":container.program(10, data, 0),"inverse":container.program(13, data, 0),"data":data})) != null ? stack1 : "")
+ + " \r\n
\r\n
\r\n
\r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.styles : depth0),{"name":"if","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.computedStyle : depth0),{"name":"if","hash":{},"fn":container.program(19, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.listeners : depth0),{"name":"if","hash":{},"fn":container.program(30, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"useData":true});
+
+/***/ }),
+/* 183 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ return "\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
\r\n \r\n
\r\n
";
+},"useData":true});
+
+/***/ }),
+/* 184 */
+/***/ (function(module, exports) {
+
+module.exports = {"align-content":"stretch","align-items":"stretch","align-self":"start","alignment-baseline":"auto","all":"","animation":"none 0s ease 0s 1 normal none running","animation-delay":"0s","animation-direction":"normal","animation-duration":"0s","animation-fill-mode":"none","animation-iteration-count":"1","animation-name":"none","animation-play-state":"running","animation-timing-function":"ease","backface-visibility":"visible","background":"rgba(0, 0, 0, 0) none repeat scroll 0% 0% / auto padding-box border-box","background-attachment":"scroll","background-blend-mode":"normal","background-clip":"border-box","background-color":"rgba(0, 0, 0, 0)","background-image":"none","background-origin":"padding-box","background-position":"0% 0%","background-position-x":"0%","background-position-y":"0%","background-repeat":"repeat","background-repeat-x":"","background-repeat-y":"","background-size":"auto","baseline-shift":"0px","border":"0px none rgb(0, 0, 0)","border-bottom":"0px none rgb(0, 0, 0)","border-bottom-color":"rgb(0, 0, 0)","border-bottom-left-radius":"0px","border-bottom-right-radius":"0px","border-bottom-style":"none","border-bottom-width":"0px","border-collapse":"separate","border-color":"rgb(0, 0, 0)","border-image":"none","border-image-outset":"0px","border-image-repeat":"stretch","border-image-slice":"100%","border-image-source":"none","border-image-width":"1","border-left":"0px none rgb(0, 0, 0)","border-left-color":"rgb(0, 0, 0)","border-left-style":"none","border-left-width":"0px","border-radius":"0px","border-right":"0px none rgb(0, 0, 0)","border-right-color":"rgb(0, 0, 0)","border-right-style":"none","border-right-width":"0px","border-spacing":"0px 0px","border-style":"none","border-top":"0px none rgb(0, 0, 0)","border-top-color":"rgb(0, 0, 0)","border-top-left-radius":"0px","border-top-right-radius":"0px","border-top-style":"none","border-top-width":"0px","border-width":"0px","bottom":"auto","box-shadow":"none","box-sizing":"content-box","buffered-rendering":"auto","caption-side":"top","clear":"none","clip":"auto","clip-path":"none","clip-rule":"nonzero","color":"rgb(0, 0, 0)","color-interpolation":"sRGB","color-interpolation-filters":"linearRGB","color-rendering":"auto","content":"","counter-increment":"none","counter-reset":"none","cursor":"auto","cx":"0px","cy":"0px","direction":"ltr","display":"block","dominant-baseline":"auto","empty-cells":"show","fill":"rgb(0, 0, 0)","fill-opacity":"1","fill-rule":"nonzero","filter":"none","flex":"0 1 auto","flex-basis":"auto","flex-direction":"row","flex-flow":"row nowrap","flex-grow":"0","flex-shrink":"1","flex-wrap":"nowrap","float":"none","flood-color":"rgb(0, 0, 0)","flood-opacity":"1","font":"normal normal normal normal 16px / normal simsun","font-family":"Simsun","font-feature-settings":"normal","font-kerning":"auto","font-size":"16px","font-stretch":"normal","font-style":"normal","font-variant":"normal","font-variant-ligatures":"normal","font-weight":"normal","image-rendering":"auto","isolation":"auto","justify-content":"flex-start","left":"auto","letter-spacing":"normal","lighting-color":"rgb(255, 255, 255)","line-height":"normal","list-style":"disc outside none","list-style-image":"none","list-style-position":"outside","list-style-type":"disc","margin":"0px","margin-bottom":"0px","margin-left":"0px","margin-right":"0px","margin-top":"0px","marker":"","marker-end":"none","marker-mid":"none","marker-start":"none","mask":"none","mask-type":"luminance","max-height":"none","max-width":"none","max-zoom":"","min-height":"0px","min-width":"0px","min-zoom":"","mix-blend-mode":"normal","motion":"none 0px auto 0deg","motion-offset":"0px","motion-path":"none","motion-rotation":"auto 0deg","object-fit":"fill","object-position":"50% 50%","opacity":"1","order":"0","orientation":"","orphans":"auto","outline":"rgb(0, 0, 0) none 0px","outline-color":"rgb(0, 0, 0)","outline-offset":"0px","outline-style":"none","outline-width":"0px","overflow":"visible","overflow-wrap":"normal","overflow-x":"visible","overflow-y":"visible","padding":"0px","padding-bottom":"0px","padding-left":"0px","padding-right":"0px","padding-top":"0px","page":"","page-break-after":"auto","page-break-before":"auto","page-break-inside":"auto","paint-order":"fill stroke markers","perspective":"none","pointer-events":"auto","position":"static","quotes":"","r":"0px","resize":"none","right":"auto","rx":"0px","ry":"0px","shape-image-threshold":"0","shape-margin":"0px","shape-outside":"none","shape-rendering":"auto","size":"","speak":"normal","src":"","stop-color":"rgb(0, 0, 0)","stop-opacity":"1","stroke":"none","stroke-dasharray":"none","stroke-dashoffset":"0px","stroke-linecap":"butt","stroke-linejoin":"miter","stroke-miterlimit":"4","stroke-opacity":"1","stroke-width":"1px","tab-size":"8","table-layout":"auto","text-align":"start","text-align-last":"auto","text-anchor":"start","text-combine-upright":"none","text-decoration":"none","text-indent":"0px","text-orientation":"mixed","text-overflow":"clip","text-rendering":"auto","text-shadow":"none","text-transform":"none","top":"auto","touch-action":"auto","transform":"none","transform-style":"flat","transition":"all 0s ease 0s","transition-delay":"0s","transition-duration":"0s","transition-property":"all","transition-timing-function":"ease","unicode-bidi":"normal","unicode-range":"","user-zoom":"","vector-effect":"none","vertical-align":"baseline","visibility":"visible","-webkit-app-region":"no-drag","-webkit-appearance":"none","-webkit-background-clip":"border-box","-webkit-background-composite":"source-over","-webkit-background-origin":"padding-box","-webkit-border-after":"0px none rgb(0, 0, 0)","-webkit-border-after-color":"rgb(0, 0, 0)","-webkit-border-after-style":"none","-webkit-border-after-width":"0px","-webkit-border-before":"0px none rgb(0, 0, 0)","-webkit-border-before-color":"rgb(0, 0, 0)","-webkit-border-before-style":"none","-webkit-border-before-width":"0px","-webkit-border-end":"0px none rgb(0, 0, 0)","-webkit-border-end-color":"rgb(0, 0, 0)","-webkit-border-end-style":"none","-webkit-border-end-width":"0px","-webkit-border-horizontal-spacing":"0px","-webkit-border-image":"none","-webkit-border-start":"0px none rgb(0, 0, 0)","-webkit-border-start-color":"rgb(0, 0, 0)","-webkit-border-start-style":"none","-webkit-border-start-width":"0px","-webkit-border-vertical-spacing":"0px","-webkit-box-align":"stretch","-webkit-box-decoration-break":"slice","-webkit-box-direction":"normal","-webkit-box-flex":"0","-webkit-box-flex-group":"1","-webkit-box-lines":"single","-webkit-box-ordinal-group":"1","-webkit-box-orient":"horizontal","-webkit-box-pack":"start","-webkit-box-reflect":"none","-webkit-clip-path":"none","-webkit-column-break-after":"auto","-webkit-column-break-before":"auto","-webkit-column-break-inside":"auto","-webkit-column-count":"auto","-webkit-column-gap":"normal","-webkit-column-rule":"0px none rgb(0, 0, 0)","-webkit-column-rule-color":"rgb(0, 0, 0)","-webkit-column-rule-style":"none","-webkit-column-rule-width":"0px","-webkit-column-span":"none","-webkit-column-width":"auto","-webkit-columns":"auto auto","-webkit-filter":"none","-webkit-font-size-delta":"","-webkit-font-smoothing":"auto","-webkit-highlight":"none","-webkit-hyphenate-character":"auto","-webkit-line-break":"auto","-webkit-line-clamp":"none","-webkit-locale":"auto","-webkit-logical-height":"8px","-webkit-logical-width":"980px","-webkit-margin-after":"0px","-webkit-margin-after-collapse":"collapse","-webkit-margin-before":"0px","-webkit-margin-before-collapse":"collapse","-webkit-margin-bottom-collapse":"collapse","-webkit-margin-collapse":"","-webkit-margin-end":"0px","-webkit-margin-start":"0px","-webkit-margin-top-collapse":"collapse","-webkit-mask":"","-webkit-mask-box-image":"none","-webkit-mask-box-image-outset":"0px","-webkit-mask-box-image-repeat":"stretch","-webkit-mask-box-image-slice":"0 fill","-webkit-mask-box-image-source":"none","-webkit-mask-box-image-width":"auto","-webkit-mask-clip":"border-box","-webkit-mask-composite":"source-over","-webkit-mask-image":"none","-webkit-mask-origin":"border-box","-webkit-mask-position":"0% 0%","-webkit-mask-position-x":"0%","-webkit-mask-position-y":"0%","-webkit-mask-repeat":"repeat","-webkit-mask-repeat-x":"","-webkit-mask-repeat-y":"","-webkit-mask-size":"auto","-webkit-max-logical-height":"none","-webkit-max-logical-width":"none","-webkit-min-logical-height":"0px","-webkit-min-logical-width":"0px","-webkit-padding-after":"0px","-webkit-padding-before":"0px","-webkit-padding-end":"0px","-webkit-padding-start":"0px","-webkit-perspective-origin-x":"","-webkit-perspective-origin-y":"","-webkit-print-color-adjust":"economy","-webkit-rtl-ordering":"logical","-webkit-ruby-position":"before","-webkit-tap-highlight-color":"rgba(0, 0, 0, 0.180392)","-webkit-text-combine":"none","-webkit-text-decorations-in-effect":"none","-webkit-text-emphasis":"","-webkit-text-emphasis-color":"rgb(0, 0, 0)","-webkit-text-emphasis-position":"over","-webkit-text-emphasis-style":"none","-webkit-text-fill-color":"rgb(0, 0, 0)","-webkit-text-orientation":"vertical-right","-webkit-text-security":"none","-webkit-text-stroke":"","-webkit-text-stroke-color":"rgb(0, 0, 0)","-webkit-text-stroke-width":"0px","-webkit-transform-origin-x":"","-webkit-transform-origin-y":"","-webkit-transform-origin-z":"","-webkit-user-drag":"auto","-webkit-user-modify":"read-only","-webkit-user-select":"text","-webkit-writing-mode":"horizontal-tb","white-space":"normal","widows":"1","will-change":"auto","word-break":"normal","word-spacing":"0px","word-wrap":"normal","writing-mode":"horizontal-tb","x":"0px","y":"0px","z-index":"0","zoom":"1"}
+
+/***/ }),
+/* 185 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _get2 = __webpack_require__(14);
+
+var _get3 = _interopRequireDefault(_get2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _Tool2 = __webpack_require__(9);
+
+var _Tool3 = _interopRequireDefault(_Tool2);
+
+var _defSnippets = __webpack_require__(186);
+
+var _defSnippets2 = _interopRequireDefault(_defSnippets);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var Snippets = function (_Tool) {
+ (0, _inherits3.default)(Snippets, _Tool);
+
+ function Snippets() {
+ (0, _classCallCheck3.default)(this, Snippets);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (Snippets.__proto__ || (0, _getPrototypeOf2.default)(Snippets)).call(this));
+
+ _this._style = (0, _util.evalCss)(__webpack_require__(187));
+
+ _this.name = 'snippets';
+
+ _this._snippets = [];
+ _this._tpl = __webpack_require__(188);
+ return _this;
+ }
+
+ (0, _createClass3.default)(Snippets, [{
+ key: 'init',
+ value: function init($el) {
+ (0, _get3.default)(Snippets.prototype.__proto__ || (0, _getPrototypeOf2.default)(Snippets.prototype), 'init', this).call(this, $el);
+
+ this._bindEvent();
+ this._addDefSnippets();
+ }
+ }, {
+ key: 'destroy',
+ value: function destroy() {
+ (0, _get3.default)(Snippets.prototype.__proto__ || (0, _getPrototypeOf2.default)(Snippets.prototype), 'destroy', this).call(this);
+
+ _util.evalCss.remove(this._style);
+ }
+ }, {
+ key: 'add',
+ value: function add(name, fn, desc) {
+ this._snippets.push({ name: name, fn: fn, desc: desc });
+
+ this._render();
+
+ return this;
+ }
+ }, {
+ key: 'remove',
+ value: function remove(name) {
+ var snippets = this._snippets;
+
+ for (var i = 0, len = snippets.length; i < len; i++) {
+ if (snippets[i].name === name) snippets.splice(i, 1);
+ }
+
+ this._render();
+
+ return this;
+ }
+ }, {
+ key: 'run',
+ value: function run(name) {
+ var snippets = this._snippets;
+
+ for (var i = 0, len = snippets.length; i < len; i++) {
+ if (snippets[i].name === name) this._run(i);
+ }
+
+ return this;
+ }
+ }, {
+ key: 'clear',
+ value: function clear() {
+ this._snippets = [];
+ this._render();
+
+ return this;
+ }
+ }, {
+ key: '_bindEvent',
+ value: function _bindEvent() {
+ var self = this;
+
+ this._$el.on('click', '.eruda-run', function () {
+ var idx = (0, _util.$)(this).data('idx');
+
+ self._run(idx);
+ });
+ }
+ }, {
+ key: '_run',
+ value: function _run(idx) {
+ this._snippets[idx].fn.call(null);
+ }
+ }, {
+ key: '_addDefSnippets',
+ value: function _addDefSnippets() {
+ var _this2 = this;
+
+ (0, _util.each)(_defSnippets2.default, function (snippet) {
+ _this2.add(snippet.name, snippet.fn, snippet.desc);
+ });
+ }
+ }, {
+ key: '_render',
+ value: function _render() {
+ this._renderHtml(this._tpl({
+ snippets: this._snippets
+ }));
+ }
+ }, {
+ key: '_renderHtml',
+ value: function _renderHtml(html) {
+ if (html === this._lastHtml) return;
+ this._lastHtml = html;
+ this._$el.html(html);
+ }
+ }]);
+ return Snippets;
+}(_Tool3.default);
+
+exports.default = Snippets;
+
+/***/ }),
+/* 186 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _stringify = __webpack_require__(33);
+
+var _stringify2 = _interopRequireDefault(_stringify);
+
+var _logger = __webpack_require__(36);
+
+var _logger2 = _interopRequireDefault(_logger);
+
+var _emitter = __webpack_require__(27);
+
+var _emitter2 = _interopRequireDefault(_emitter);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var style = null;
+
+exports.default = [{
+ name: 'Border All',
+ fn: function fn() {
+ if (style) {
+ _util.evalCss.remove(style);
+ style = null;
+ return;
+ }
+
+ style = (0, _util.evalCss)(borderCss);
+ },
+
+ desc: 'Add color borders to all elements'
+}, {
+ name: 'Refresh Page',
+ fn: function fn() {
+ var url = new _util.Url();
+ url.setQuery('timestamp', (0, _util.now)());
+
+ window.location.replace(url.toString());
+ },
+
+ desc: 'Add timestamp to url and refresh'
+}, {
+ name: 'Search Text',
+ fn: function fn() {
+ var keyword = prompt('Enter the text');
+
+ search(keyword);
+ },
+
+ desc: 'Highlight given text on page'
+}, {
+ name: 'Edit Page',
+ fn: function fn() {
+ var body = document.body;
+
+ body.contentEditable = body.contentEditable !== 'true';
+ },
+
+ desc: 'Toggle body contentEditable'
+}, {
+ name: 'Load Fps Plugin',
+ fn: function fn() {
+ loadPlugin('fps');
+ },
+
+ desc: 'Display page fps'
+}, {
+ name: 'Load Features Plugin',
+ fn: function fn() {
+ loadPlugin('features');
+ },
+
+ desc: 'Browser feature detections'
+}, {
+ name: 'Load Timing Plugin',
+ fn: function fn() {
+ loadPlugin('timing');
+ },
+
+ desc: 'Show performance and resource timing'
+}, {
+ name: 'Load Memory Plugin',
+ fn: function fn() {
+ loadPlugin('memory');
+ },
+
+ desc: 'Display memory'
+}, {
+ name: 'Load Code Plugin',
+ fn: function fn() {
+ loadPlugin('code');
+ },
+
+ desc: 'Edit and run JavaScript'
+}, {
+ name: 'Load Benchmark Plugin',
+ fn: function fn() {
+ loadPlugin('benchmark');
+ },
+
+ desc: 'Run JavaScript benchmarks'
+}, {
+ name: 'Restore Settings',
+ fn: function fn() {
+ var store = (0, _util.safeStorage)('local');
+
+ var data = JSON.parse((0, _stringify2.default)(store));
+
+ (0, _util.each)(data, function (val, key) {
+ if (!(0, _util.isStr)(val)) return;
+
+ if ((0, _util.startWith)(key, 'eruda')) store.removeItem(key);
+ });
+
+ window.location.reload();
+ },
+
+ desc: 'Restore defaults and reload'
+}];
+
+
+var borderCss = '',
+ styleName = (0, _util.has)(document.documentElement.style, 'outline') ? 'outline' : 'border',
+ selector = 'html',
+ colors = ['f5f5f5', 'dabb3a', 'abc1c7', '472936', 'c84941', '296dd1', '67adb4', '1ea061'];
+
+(0, _util.each)(colors, function (color, idx) {
+ selector += idx === 0 ? '>*:not([class^="eruda-"])' : '>*';
+
+ borderCss += selector + ('{' + styleName + ': 2px solid #' + color + ' !important}');
+});
+
+function search(text) {
+ var root = document.documentElement,
+ regText = new RegExp(text, 'ig');
+
+ traverse(root, function (node) {
+ var $node = (0, _util.$)(node);
+
+ if (!$node.hasClass('eruda-search-highlight-block')) return;
+
+ return document.createTextNode($node.text());
+ });
+
+ traverse(root, function (node) {
+ if (node.nodeType !== 3) return;
+
+ var val = node.nodeValue;
+ val = val.replace(regText, function (match) {
+ return '' + match + '';
+ });
+ if (val === node.nodeValue) return;
+
+ var $ret = (0, _util.$)(document.createElement('div'));
+
+ $ret.html(val);
+ $ret.addClass('eruda-search-highlight-block');
+
+ return $ret.get(0);
+ });
+}
+
+function traverse(root, processor) {
+ var childNodes = root.childNodes;
+
+ if ((0, _util.isErudaEl)(root)) return;
+
+ for (var i = 0, len = childNodes.length; i < len; i++) {
+ var newNode = traverse(childNodes[i], processor);
+ if (newNode) root.replaceChild(newNode, childNodes[i]);
+ }
+
+ return processor(root);
+}
+
+function loadPlugin(name) {
+ var globalName = 'eruda' + (0, _util.upperFirst)(name);
+ if (window[globalName]) return;
+
+ (0, _util.loadJs)('//cdn.jsdelivr.net/npm/eruda-' + name + '@' + pluginVersion[name], function (isLoaded) {
+ if (!isLoaded || !window[globalName]) return _logger2.default.error('Fail to load plugin ' + name);
+
+ _emitter2.default.emit(_emitter2.default.ADD, window[globalName]);
+ _emitter2.default.emit(_emitter2.default.SHOW, name);
+ });
+}
+
+var pluginVersion = {
+ fps: '1.0.2',
+ features: '1.0.2',
+ timing: '1.1.1',
+ memory: '1.0.1',
+ code: '1.0.0',
+ benchmark: '1.0.0'
+};
+
+/***/ }),
+/* 187 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-dev-tools .eruda-tools .eruda-snippets {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-snippets .eruda-section {\n margin-bottom: 10px;\n border-radius: 4px;\n -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n overflow: hidden;\n cursor: pointer; }\n .eruda-dev-tools .eruda-tools .eruda-snippets .eruda-section:active .eruda-name {\n background: #263238; }\n .eruda-dev-tools .eruda-tools .eruda-snippets .eruda-section:active .eruda-description {\n background: #eceffe; }\n .eruda-dev-tools .eruda-tools .eruda-snippets .eruda-section .eruda-name {\n padding: 10px;\n color: #fff;\n background: #707d8b;\n -webkit-transition: background 0.3s;\n transition: background 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-snippets .eruda-section .eruda-name .eruda-btn {\n margin-left: 10px;\n float: right;\n text-align: center;\n width: 18px;\n height: 18px;\n line-height: 18px;\n font-size: 12px; }\n .eruda-dev-tools .eruda-tools .eruda-snippets .eruda-section .eruda-description {\n background: #fff;\n padding: 10px;\n -webkit-transition: background 0.3s;\n transition: background 0.3s; }\n\n.eruda-search-highlight-block {\n display: inline; }\n .eruda-search-highlight-block .eruda-keyword {\n background: #ffc107;\n color: #fff; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 188 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
+ var alias1=container.lambda, alias2=container.escapeExpression;
+
+ return " \r\n
"
+ + alias2(alias1((depth0 != null ? depth0.name : depth0), depth0))
+ + "\r\n
\r\n \r\n
\r\n \r\n
\r\n "
+ + alias2(alias1((depth0 != null ? depth0.desc : depth0), depth0))
+ + "\r\n
\r\n
\r\n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.snippets : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"useData":true});
+
+/***/ }),
+/* 189 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _getIterator2 = __webpack_require__(75);
+
+var _getIterator3 = _interopRequireDefault(_getIterator2);
+
+var _stringify = __webpack_require__(33);
+
+var _stringify2 = _interopRequireDefault(_stringify);
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _get2 = __webpack_require__(14);
+
+var _get3 = _interopRequireDefault(_get2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _Tool2 = __webpack_require__(9);
+
+var _Tool3 = _interopRequireDefault(_Tool2);
+
+var _Settings = __webpack_require__(13);
+
+var _Settings2 = _interopRequireDefault(_Settings);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var Resources = function (_Tool) {
+ (0, _inherits3.default)(Resources, _Tool);
+
+ function Resources() {
+ (0, _classCallCheck3.default)(this, Resources);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (Resources.__proto__ || (0, _getPrototypeOf2.default)(Resources)).call(this));
+
+ _this._style = (0, _util.evalCss)(__webpack_require__(190));
+
+ _this.name = 'resources';
+ _this._localStoreData = [];
+ _this._hideErudaSetting = false;
+ _this._sessionStoreData = [];
+ _this._cookieData = [];
+ _this._scriptData = [];
+ _this._stylesheetData = [];
+ _this._iframeData = [];
+ _this._imageData = [];
+ _this._observeElement = true;
+ _this._tpl = __webpack_require__(191);
+ return _this;
+ }
+
+ (0, _createClass3.default)(Resources, [{
+ key: 'init',
+ value: function init($el, container) {
+ (0, _get3.default)(Resources.prototype.__proto__ || (0, _getPrototypeOf2.default)(Resources.prototype), 'init', this).call(this, $el);
+
+ this._container = container;
+
+ this.refresh();
+ this._bindEvent();
+ this._initObserver();
+ this._initCfg();
+ }
+ }, {
+ key: 'refresh',
+ value: function refresh() {
+ return this.refreshLocalStorage().refreshSessionStorage().refreshCookie().refreshScript().refreshStylesheet().refreshIframe().refreshImage()._render();
+ }
+ }, {
+ key: 'destroy',
+ value: function destroy() {
+ (0, _get3.default)(Resources.prototype.__proto__ || (0, _getPrototypeOf2.default)(Resources.prototype), 'destroy', this).call(this);
+
+ this._disableObserver();
+ _util.evalCss.remove(this._style);
+ }
+ }, {
+ key: 'refreshScript',
+ value: function refreshScript() {
+ var scriptData = [];
+
+ (0, _util.$)('script').each(function () {
+ var src = this.src;
+
+ if (src !== '') scriptData.push(src);
+ });
+
+ scriptData = (0, _util.unique)(scriptData);
+
+ this._scriptData = scriptData;
+
+ return this;
+ }
+ }, {
+ key: 'refreshStylesheet',
+ value: function refreshStylesheet() {
+ var stylesheetData = [];
+
+ (0, _util.$)('link').each(function () {
+ if (this.rel !== 'stylesheet') return;
+
+ stylesheetData.push(this.href);
+ });
+
+ stylesheetData = (0, _util.unique)(stylesheetData);
+
+ this._stylesheetData = stylesheetData;
+
+ return this;
+ }
+ }, {
+ key: 'refreshIframe',
+ value: function refreshIframe() {
+ var iframeData = [];
+
+ (0, _util.$)('iframe').each(function () {
+ var $this = (0, _util.$)(this),
+ src = $this.attr('src');
+
+ if (src) iframeData.push(src);
+ });
+
+ iframeData = (0, _util.unique)(iframeData);
+
+ this._iframeData = iframeData;
+
+ return this;
+ }
+ }, {
+ key: 'refreshLocalStorage',
+ value: function refreshLocalStorage() {
+ this._refreshStorage('local');
+
+ return this;
+ }
+ }, {
+ key: 'refreshSessionStorage',
+ value: function refreshSessionStorage() {
+ this._refreshStorage('session');
+
+ return this;
+ }
+ }, {
+ key: '_refreshStorage',
+ value: function _refreshStorage(type) {
+ var _this2 = this;
+
+ var store = (0, _util.safeStorage)(type, false);
+
+ if (!store) return;
+
+ var storeData = [];
+
+ // Mobile safari is not able to loop through localStorage directly.
+ store = JSON.parse((0, _stringify2.default)(store));
+
+ (0, _util.each)(store, function (val, key) {
+ // According to issue 20, not all values are guaranteed to be string.
+ if (!(0, _util.isStr)(val)) return;
+
+ if (_this2._hideErudaSetting) {
+ if ((0, _util.startWith)(key, 'eruda') || key === 'active-eruda') return;
+ }
+
+ storeData.push({
+ key: key,
+ val: sliceStr(val, 200)
+ });
+ });
+
+ this['_' + type + 'StoreData'] = storeData;
+ }
+ }, {
+ key: 'refreshCookie',
+ value: function refreshCookie() {
+ var cookieData = [];
+
+ var cookie = document.cookie;
+ if ((0, _util.trim)(cookie) !== '') {
+ (0, _util.each)(document.cookie.split(';'), function (val, t) {
+ val = val.split('=');
+ try {
+ t = decodeURIComponent(val[1]);
+ } catch (e) {
+ t = val[1];
+ }
+ cookieData.push({
+ key: (0, _util.trim)(val[0]),
+ val: t
+ });
+ });
+ }
+
+ this._cookieData = cookieData;
+
+ return this;
+ }
+ }, {
+ key: 'refreshImage',
+ value: function refreshImage() {
+ var imageData = [];
+
+ var performance = this._performance = window.webkitPerformance || window.performance;
+ if (performance && performance.getEntries) {
+ var entries = this._performance.getEntries();
+ entries.forEach(function (entry) {
+ if (entry.initiatorType === 'img' || isImg(entry.name)) {
+ imageData.push(entry.name);
+ }
+ });
+ } else {
+ (0, _util.$)('img').each(function () {
+ var $this = (0, _util.$)(this),
+ src = $this.attr('src');
+
+ if ($this.data('exclude') === 'true') return;
+
+ imageData.push(src);
+ });
+ }
+
+ imageData = (0, _util.unique)(imageData);
+ imageData.sort();
+ this._imageData = imageData;
+
+ return this;
+ }
+ }, {
+ key: 'show',
+ value: function show() {
+ (0, _get3.default)(Resources.prototype.__proto__ || (0, _getPrototypeOf2.default)(Resources.prototype), 'show', this).call(this);
+ if (this._observeElement) this._enableObserver();
+
+ return this.refresh();
+ }
+ }, {
+ key: 'hide',
+ value: function hide() {
+ this._disableObserver();
+
+ return (0, _get3.default)(Resources.prototype.__proto__ || (0, _getPrototypeOf2.default)(Resources.prototype), 'hide', this).call(this);
+ }
+ }, {
+ key: '_bindEvent',
+ value: function _bindEvent() {
+ var _this3 = this;
+
+ var self = this,
+ $el = this._$el,
+ container = this._container;
+
+ $el.on('click', '.eruda-refresh-local-storage', function () {
+ return _this3.refreshLocalStorage()._render();
+ }).on('click', '.eruda-refresh-session-storage', function () {
+ return _this3.refreshSessionStorage()._render();
+ }).on('click', '.eruda-refresh-cookie', function () {
+ return _this3.refreshCookie()._render();
+ }).on('click', '.eruda-refresh-script', function () {
+ return _this3.refreshScript()._render();
+ }).on('click', '.eruda-refresh-stylesheet', function () {
+ return _this3.refreshStylesheet()._render();
+ }).on('click', '.eruda-refresh-iframe', function () {
+ return _this3.refreshIframe()._render();
+ }).on('click', '.eruda-refresh-image', function () {
+ return _this3.refreshImage()._render();
+ }).on('click', '.eruda-delete-storage', function () {
+ var $this = (0, _util.$)(this),
+ key = $this.data('key'),
+ type = $this.data('type');
+
+ if (type === 'local') {
+ localStorage.removeItem(key);
+ self.refreshLocalStorage()._render();
+ } else {
+ sessionStorage.removeItem(key);
+ self.refreshSessionStorage()._render();
+ }
+ }).on('click', '.eruda-delete-cookie', function () {
+ var key = (0, _util.$)(this).data('key');
+
+ delCookie(key);
+ self.refreshCookie()._render();
+ }).on('click', '.eruda-clear-storage', function () {
+ var type = (0, _util.$)(this).data('type');
+
+ if (type === 'local') {
+ (0, _util.each)(self._localStoreData, function (val) {
+ return localStorage.removeItem(val.key);
+ });
+ self.refreshLocalStorage()._render();
+ } else {
+ (0, _util.each)(self._sessionStoreData, function (val) {
+ return sessionStorage.removeItem(val.key);
+ });
+ self.refreshSessionStorage()._render();
+ }
+ }).on('click', '.eruda-clear-cookie', function () {
+ (0, _util.each)(_this3._cookieData, function (val) {
+ return delCookie(val.key);
+ });
+ _this3.refreshCookie()._render();
+ }).on('click', '.eruda-storage-val', function () {
+ var $this = (0, _util.$)(this),
+ key = $this.data('key'),
+ type = $this.data('type');
+
+ var val = type === 'local' ? localStorage.getItem(key) : sessionStorage.getItem(key);
+
+ try {
+ showSources('json', JSON.parse(val));
+ } catch (e) {
+ showSources('raw', val);
+ }
+ }).on('click', '.eruda-img-link', function () {
+ var src = (0, _util.$)(this).attr('src');
+
+ showSources('img', src);
+ }).on('click', '.eruda-css-link', linkFactory('css')).on('click', '.eruda-js-link', linkFactory('js')).on('click', '.eruda-iframe-link', linkFactory('iframe'));
+
+ _util.orientation.on('change', function () {
+ return _this3._render();
+ });
+
+ function showSources(type, data) {
+ var sources = container.get('sources');
+ if (!sources) return;
+
+ sources.set(type, data);
+
+ container.showTool('sources');
+
+ return true;
+ }
+
+ function linkFactory(type) {
+ return function (e) {
+ if (!container.get('sources')) return;
+ e.preventDefault();
+
+ var url = (0, _util.$)(this).attr('href');
+
+ if (type === 'iframe' || (0, _util.isCrossOrig)(url)) {
+ showSources('iframe', url);
+ } else {
+ (0, _util.ajax)({
+ url: url,
+ success: function success(data) {
+ showSources(type, data);
+ },
+ dataType: 'raw'
+ });
+ }
+ };
+ }
+ }
+ }, {
+ key: '_initCfg',
+ value: function _initCfg() {
+ var _this4 = this;
+
+ var cfg = this.config = _Settings2.default.createCfg('resources', {
+ hideErudaSetting: true,
+ observeElement: true
+ });
+
+ if (cfg.get('hideErudaSetting')) this._hideErudaSetting = true;
+ if (!cfg.get('observeElement')) this._observeElement = false;
+
+ cfg.on('change', function (key, val) {
+ switch (key) {
+ case 'hideErudaSetting':
+ _this4._hideErudaSetting = val;return;
+ case 'observeElement':
+ _this4._observeElement = val;
+ return val ? _this4._enableObserver() : _this4._disableObserver();
+ }
+ });
+
+ var settings = this._container.get('settings');
+ settings.text('Resources').switch(cfg, 'hideErudaSetting', 'Hide Eruda Setting').switch(cfg, 'observeElement', 'Auto Refresh Elements').separator();
+ }
+ }, {
+ key: '_render',
+ value: function _render() {
+ var cookieData = this._cookieData,
+ scriptData = this._scriptData,
+ stylesheetData = this._stylesheetData,
+ imageData = this._imageData;
+
+ this._renderHtml(this._tpl({
+ localStoreData: this._localStoreData,
+ sessionStoreData: this._sessionStoreData,
+ cookieData: cookieData,
+ cookieState: getState('cookie', cookieData.length),
+ scriptData: scriptData,
+ scriptState: getState('script', scriptData.length),
+ stylesheetData: stylesheetData,
+ stylesheetState: getState('stylesheet', stylesheetData.length),
+ iframeData: this._iframeData,
+ imageData: imageData,
+ imageState: getState('image', imageData.length)
+ }));
+ }
+ }, {
+ key: '_renderHtml',
+ value: function _renderHtml(html) {
+ if (html === this._lastHtml) return;
+ this._lastHtml = html;
+ this._$el.html(html);
+ }
+ }, {
+ key: '_initObserver',
+ value: function _initObserver() {
+ var _this5 = this;
+
+ this._observer = new _util.SafeMutationObserver(function (mutations) {
+ var needToRender = false;
+ (0, _util.each)(mutations, function (mutation) {
+ if (_this5._handleMutation(mutation)) needToRender = true;
+ });
+ if (needToRender) _this5._render();
+ });
+ }
+ }, {
+ key: '_handleMutation',
+ value: function _handleMutation(mutation) {
+ var _this6 = this;
+
+ if ((0, _util.isErudaEl)(mutation.target)) return;
+
+ var checkEl = function checkEl(el) {
+ var tagName = getLowerCaseTagName(el);
+ switch (tagName) {
+ case 'script':
+ _this6.refreshScript();return true;
+ case 'img':
+ _this6.refreshImage();return true;
+ case 'link':
+ _this6.refreshStylesheet();return true;
+ }
+
+ return false;
+ };
+
+ if (mutation.type === 'attributes') {
+ if (checkEl(mutation.target)) return true;
+ } else if (mutation.type === 'childList') {
+ if (checkEl(mutation.target)) return true;
+ var nodes = (0, _util.toArr)(mutation.addedNodes);
+ nodes = (0, _util.concat)(nodes, (0, _util.toArr)(mutation.removedNodes));
+
+ var _iteratorNormalCompletion = true;
+ var _didIteratorError = false;
+ var _iteratorError = undefined;
+
+ try {
+ for (var _iterator = (0, _getIterator3.default)(nodes), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
+ var node = _step.value;
+
+ if (checkEl(node)) return true;
+ }
+ } catch (err) {
+ _didIteratorError = true;
+ _iteratorError = err;
+ } finally {
+ try {
+ if (!_iteratorNormalCompletion && _iterator.return) {
+ _iterator.return();
+ }
+ } finally {
+ if (_didIteratorError) {
+ throw _iteratorError;
+ }
+ }
+ }
+ }
+
+ return false;
+ }
+ }, {
+ key: '_enableObserver',
+ value: function _enableObserver() {
+ this._observer.observe(document.documentElement, {
+ attributes: true,
+ childList: true,
+ subtree: true
+ });
+ }
+ }, {
+ key: '_disableObserver',
+ value: function _disableObserver() {
+ this._observer.disconnect();
+ }
+ }]);
+ return Resources;
+}(_Tool3.default);
+
+exports.default = Resources;
+
+
+function getState(type, len) {
+ if (len === 0) return '';
+
+ var warn = 0,
+ danger = 0;
+
+ switch (type) {
+ case 'cookie':
+ warn = 30;danger = 60;break;
+ case 'script':
+ warn = 5;danger = 10;break;
+ case 'stylesheet':
+ warn = 4;danger = 8;break;
+ case 'image':
+ warn = 50;danger = 100;break;
+ }
+
+ if (len >= danger) return 'eruda-danger';
+ if (len >= warn) return 'eruda-warn';
+
+ return 'eruda-ok';
+}
+
+var _window$location = window.location,
+ hostname = _window$location.hostname,
+ pathname = _window$location.pathname;
+
+
+function delCookie(key) {
+ var hostNames = hostname.split('.'),
+ pathNames = pathname.split('/'),
+ domain = '',
+ pathLen = pathNames.length,
+ path = void 0;
+
+ if (del()) return;
+
+ for (var i = hostNames.length - 1; i >= 0; i--) {
+ var hostName = hostNames[i];
+ if (hostName === '') continue;
+ domain = domain === '' ? hostName : hostName + '.' + domain;
+
+ path = '/';
+ if (del({ domain: domain, path: path }) || del({ domain: domain })) return;
+
+ for (var j = 0; j < pathLen; j++) {
+ var pathName = pathNames[j];
+ if (pathName === '') continue;
+
+ path += pathName;
+ if (del({ domain: domain, path: path }) || del({ path: path })) return;
+
+ path += '/';
+ if (del({ domain: domain, path: path }) || del({ path: path })) return;
+ }
+ }
+
+ function del() {
+ var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
+
+ _util.cookie.remove(key, options);
+
+ return !_util.cookie.get(key);
+ }
+}
+
+function getLowerCaseTagName(el) {
+ if (!el.tagName) return '';
+ return el.tagName.toLowerCase();
+}
+
+var sliceStr = function sliceStr(str, len) {
+ return str.length < len ? str : str.slice(0, len) + '...';
+};
+
+var regImg = /\.(jpeg|jpg|gif|png)$/;
+
+var isImg = function isImg(url) {
+ return regImg.test(url);
+};
+
+/***/ }),
+/* 190 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-dev-tools .eruda-tools .eruda-resources {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch;\n padding: 10px;\n font-size: 14px; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-section {\n margin-bottom: 10px;\n border-radius: 4px;\n -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n overflow: hidden; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-title {\n padding: 10px;\n color: #fff;\n background: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-title .eruda-btn {\n margin-left: 10px;\n float: right;\n background: #fff;\n color: #707d8b;\n text-align: center;\n width: 18px;\n height: 18px;\n line-height: 18px;\n border-radius: 50%;\n font-size: 12px;\n cursor: pointer;\n -webkit-transition: color 0.3s;\n transition: color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-title .eruda-btn:active {\n color: #263238; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-title.eruda-ok {\n background: #009688; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-title.eruda-warn {\n background: #ffc107; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-title.eruda-danger {\n background: #f44336; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-link-list {\n font-size: 12px; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-link-list li {\n padding: 10px;\n background: #fff;\n word-break: break-all; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-link-list li a {\n color: #2196f3 !important; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-image-list {\n font-size: 12px;\n background: #fff;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n padding: 10px !important; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-image-list:after {\n content: '';\n display: block;\n clear: both; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-image-list li {\n -webkit-box-flex: 1;\n -ms-flex-positive: 1;\n flex-grow: 1;\n cursor: pointer;\n overflow-y: hidden; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-image-list li.eruda-image {\n height: 100px;\n font-size: 0; }\n .eruda-dev-tools .eruda-tools .eruda-resources .eruda-image-list li img {\n height: 100px;\n min-width: 100%;\n -o-object-fit: cover;\n object-fit: cover; }\n .eruda-dev-tools .eruda-tools .eruda-resources table {\n border-collapse: collapse;\n width: 100%;\n font-size: 12px;\n background: #fff; }\n .eruda-dev-tools .eruda-tools .eruda-resources table td {\n padding: 10px;\n word-break: break-all; }\n .eruda-dev-tools .eruda-tools .eruda-resources table td.eruda-key {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n white-space: nowrap;\n max-width: 120px; }\n .eruda-dev-tools .eruda-tools .eruda-resources table td.eruda-control {\n padding: 0;\n font-size: 0;\n width: 40px; }\n .eruda-dev-tools .eruda-tools .eruda-resources table td.eruda-control .eruda-icon-trash {\n cursor: pointer;\n color: #f44336;\n font-size: 14px;\n display: inline-block;\n width: 40px;\n height: 40px;\n text-align: center;\n line-height: 40px;\n -webkit-transition: color 0.3s;\n transition: color 0.3s; }\n .eruda-dev-tools .eruda-tools .eruda-resources table td.eruda-control .eruda-icon-trash:active {\n color: #b71c1c; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 191 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.localStoreData : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"2":function(container,depth0,helpers,partials,data) {
+ var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+
+ return " \r\n "
+ + alias4(((helper = (helper = helpers.key || (depth0 != null ? depth0.key : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"key","hash":{},"data":data}) : helper)))
+ + " | \r\n "
+ + alias4(((helper = (helper = helpers.val || (depth0 != null ? depth0.val : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"val","hash":{},"data":data}) : helper)))
+ + " | \r\n \r\n \r\n | \r\n
\r\n";
+},"4":function(container,depth0,helpers,partials,data) {
+ return " \r\n Empty | \r\n
\r\n";
+},"6":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.sessionStoreData : depth0),{"name":"each","hash":{},"fn":container.program(7, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"7":function(container,depth0,helpers,partials,data) {
+ var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+
+ return " \r\n "
+ + alias4(((helper = (helper = helpers.key || (depth0 != null ? depth0.key : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"key","hash":{},"data":data}) : helper)))
+ + " | \r\n "
+ + alias4(((helper = (helper = helpers.val || (depth0 != null ? depth0.val : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"val","hash":{},"data":data}) : helper)))
+ + " | \r\n \r\n \r\n | \r\n
\r\n";
+},"9":function(container,depth0,helpers,partials,data) {
+ return " \r\n Empty | \r\n
\r\n";
+},"11":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.cookieData : depth0),{"name":"each","hash":{},"fn":container.program(12, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"12":function(container,depth0,helpers,partials,data) {
+ var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+
+ return " \r\n "
+ + alias4(((helper = (helper = helpers.key || (depth0 != null ? depth0.key : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"key","hash":{},"data":data}) : helper)))
+ + " | \r\n "
+ + alias4(((helper = (helper = helpers.val || (depth0 != null ? depth0.val : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"val","hash":{},"data":data}) : helper)))
+ + " | \r\n \r\n \r\n | \r\n
\r\n";
+},"14":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.scriptData : depth0),{"name":"each","hash":{},"fn":container.program(15, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"15":function(container,depth0,helpers,partials,data) {
+ var alias1=container.lambda, alias2=container.escapeExpression;
+
+ return " \r\n "
+ + alias2(alias1(depth0, depth0))
+ + "\r\n \r\n";
+},"17":function(container,depth0,helpers,partials,data) {
+ return " Empty\r\n";
+},"19":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.stylesheetData : depth0),{"name":"each","hash":{},"fn":container.program(20, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"20":function(container,depth0,helpers,partials,data) {
+ var alias1=container.lambda, alias2=container.escapeExpression;
+
+ return " \r\n "
+ + alias2(alias1(depth0, depth0))
+ + "\r\n \r\n";
+},"22":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.iframeData : depth0),{"name":"each","hash":{},"fn":container.program(23, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"23":function(container,depth0,helpers,partials,data) {
+ var alias1=container.lambda, alias2=container.escapeExpression;
+
+ return " \r\n "
+ + alias2(alias1(depth0, depth0))
+ + "\r\n \r\n";
+},"25":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.imageData : depth0),{"name":"each","hash":{},"fn":container.program(26, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"26":function(container,depth0,helpers,partials,data) {
+ return " \r\n \r\n \r\n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+
+ return "\r\n
\r\n Local Storage\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.localStoreData : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(4, data, 0),"data":data})) != null ? stack1 : "")
+ + " \r\n
\r\n
\r\n\r\n
\r\n Session Storage\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.sessionStoreData : depth0),{"name":"if","hash":{},"fn":container.program(6, data, 0),"inverse":container.program(9, data, 0),"data":data})) != null ? stack1 : "")
+ + " \r\n
\r\n
\r\n\r\n
\r\n Cookie\r\n
\r\n \r\n
\r\n \r\n \r\n
\r\n \r\n
\r\n \r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.cookieData : depth0),{"name":"if","hash":{},"fn":container.program(11, data, 0),"inverse":container.program(4, data, 0),"data":data})) != null ? stack1 : "")
+ + " \r\n
\r\n
\r\n\r\n
\r\n Script\r\n
\r\n \r\n
\r\n \r\n
\r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.scriptData : depth0),{"name":"if","hash":{},"fn":container.program(14, data, 0),"inverse":container.program(17, data, 0),"data":data})) != null ? stack1 : "")
+ + "
\r\n
\r\n\r\n
\r\n Stylesheet\r\n
\r\n \r\n
\r\n \r\n
\r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.stylesheetData : depth0),{"name":"if","hash":{},"fn":container.program(19, data, 0),"inverse":container.program(17, data, 0),"data":data})) != null ? stack1 : "")
+ + "
\r\n
\r\n\r\n
\r\n Iframe\r\n
\r\n \r\n
\r\n \r\n
\r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.iframeData : depth0),{"name":"if","hash":{},"fn":container.program(22, data, 0),"inverse":container.program(17, data, 0),"data":data})) != null ? stack1 : "")
+ + "
\r\n
\r\n\r\n
\r\n Image\r\n
\r\n \r\n
\r\n \r\n
\r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.imageData : depth0),{"name":"if","hash":{},"fn":container.program(25, data, 0),"inverse":container.program(17, data, 0),"data":data})) != null ? stack1 : "")
+ + "
\r\n
\r\n";
+},"useData":true});
+
+/***/ }),
+/* 192 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _get2 = __webpack_require__(14);
+
+var _get3 = _interopRequireDefault(_get2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _Tool2 = __webpack_require__(9);
+
+var _Tool3 = _interopRequireDefault(_Tool2);
+
+var _defInfo = __webpack_require__(193);
+
+var _defInfo2 = _interopRequireDefault(_defInfo);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var Info = function (_Tool) {
+ (0, _inherits3.default)(Info, _Tool);
+
+ function Info() {
+ (0, _classCallCheck3.default)(this, Info);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (Info.__proto__ || (0, _getPrototypeOf2.default)(Info)).call(this));
+
+ _this._style = (0, _util.evalCss)(__webpack_require__(194));
+
+ _this.name = 'info';
+ _this._tpl = __webpack_require__(195);
+ _this._infos = [];
+ return _this;
+ }
+
+ (0, _createClass3.default)(Info, [{
+ key: 'init',
+ value: function init($el) {
+ (0, _get3.default)(Info.prototype.__proto__ || (0, _getPrototypeOf2.default)(Info.prototype), 'init', this).call(this, $el);
+
+ this._addDefInfo();
+ }
+ }, {
+ key: 'show',
+ value: function show() {
+ this._render();
+
+ (0, _get3.default)(Info.prototype.__proto__ || (0, _getPrototypeOf2.default)(Info.prototype), 'show', this).call(this);
+ }
+ }, {
+ key: 'destroy',
+ value: function destroy() {
+ (0, _get3.default)(Info.prototype.__proto__ || (0, _getPrototypeOf2.default)(Info.prototype), 'destroy', this).call(this);
+
+ _util.evalCss.remove(this._style);
+ }
+ }, {
+ key: 'add',
+ value: function add(name, val) {
+ var infos = this._infos,
+ isUpdate = false;
+
+ (0, _util.each)(infos, function (info) {
+ if (name !== info.name) return;
+
+ info.val = val;
+ isUpdate = true;
+ });
+
+ if (!isUpdate) infos.push({ name: name, val: val });
+
+ this._render();
+
+ return this;
+ }
+ }, {
+ key: 'remove',
+ value: function remove(name) {
+ var infos = this._infos;
+
+ for (var i = infos.length - 1; i >= 0; i--) {
+ if (infos[i].name === name) infos.splice(i, 1);
+ }
+
+ this._render();
+
+ return this;
+ }
+ }, {
+ key: 'clear',
+ value: function clear() {
+ this._infos = [];
+
+ this._render();
+
+ return this;
+ }
+ }, {
+ key: '_addDefInfo',
+ value: function _addDefInfo() {
+ var _this2 = this;
+
+ (0, _util.each)(_defInfo2.default, function (info) {
+ return _this2.add(info.name, info.val);
+ });
+ }
+ }, {
+ key: '_render',
+ value: function _render() {
+ var infos = [];
+
+ (0, _util.each)(this._infos, function (_ref) {
+ var name = _ref.name,
+ val = _ref.val;
+
+ if ((0, _util.isFn)(val)) val = val();
+
+ infos.push({ name: name, val: val });
+ });
+
+ this._renderHtml(this._tpl({ infos: infos }));
+ }
+ }, {
+ key: '_renderHtml',
+ value: function _renderHtml(html) {
+ if (html === this._lastHtml) return;
+ this._lastHtml = html;
+ this._$el.html(html);
+ }
+ }]);
+ return Info;
+}(_Tool3.default);
+
+exports.default = Info;
+
+/***/ }),
+/* 193 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _util = __webpack_require__(0);
+
+var browser = (0, _util.detectBrowser)();
+
+exports.default = [{
+ name: 'Location',
+ val: function val() {
+ return location.href;
+ }
+}, {
+ name: 'User Agent',
+ val: navigator.userAgent
+}, {
+ name: 'Device',
+ val: '\n \n \n screen | \n ' + screen.width + ' * ' + screen.height + ' | \n
\n \n viewport | \n ' + window.innerWidth + ' * ' + window.innerHeight + ' | \n
\n \n pixel ratio | \n ' + window.devicePixelRatio + ' | \n
\n \n
'
+
+}, {
+ name: 'System',
+ val: '\n \n \n os | \n ' + (0, _util.detectOs)() + ' | \n
\n \n browser | \n ' + (browser.name + ' ' + browser.version) + ' | \n
\n \n
'
+}, {
+ name: 'About',
+ val: 'Eruda v' + "1.4.3" + ''
+}];
+
+/***/ }),
+/* 194 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-dev-tools .eruda-tools .eruda-info.eruda-tool {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch; }\n .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li {\n border-radius: 4px;\n background: #fff;\n margin: 10px;\n -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-title, .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-content {\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-title {\n padding-bottom: 0;\n font-size: 16px;\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-content {\n margin: 0;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n word-break: break-all; }\n .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-content table {\n width: 100%;\n border-collapse: collapse; }\n .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-content table th, .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-content table td {\n border: 1px solid #eceffe;\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-content * {\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text; }\n .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-content a {\n color: #2196f3; }\n .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-device-key, .eruda-dev-tools .eruda-tools .eruda-info.eruda-tool li .eruda-system-key {\n width: 100px; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 195 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function";
+
+ return " \r\n "
+ + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"name","hash":{},"data":data}) : helper)))
+ + "
\r\n "
+ + ((stack1 = ((helper = (helper = helpers.val || (depth0 != null ? depth0.val : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"val","hash":{},"data":data}) : helper))) != null ? stack1 : "")
+ + "
\r\n \r\n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return "\r\n"
+ + ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.infos : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\r\n";
+},"useData":true});
+
+/***/ }),
+/* 196 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _get2 = __webpack_require__(14);
+
+var _get3 = _interopRequireDefault(_get2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _Tool2 = __webpack_require__(9);
+
+var _Tool3 = _interopRequireDefault(_Tool2);
+
+var _jsBeautify = __webpack_require__(57);
+
+var _jsBeautify2 = _interopRequireDefault(_jsBeautify);
+
+var _highlight = __webpack_require__(56);
+
+var _highlight2 = _interopRequireDefault(_highlight);
+
+var _JsonViewer = __webpack_require__(77);
+
+var _JsonViewer2 = _interopRequireDefault(_JsonViewer);
+
+var _Settings = __webpack_require__(13);
+
+var _Settings2 = _interopRequireDefault(_Settings);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var Sources = function (_Tool) {
+ (0, _inherits3.default)(Sources, _Tool);
+
+ function Sources() {
+ (0, _classCallCheck3.default)(this, Sources);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (Sources.__proto__ || (0, _getPrototypeOf2.default)(Sources)).call(this));
+
+ _this._style = (0, _util.evalCss)(__webpack_require__(197));
+
+ _this.name = 'sources';
+ _this._showLineNum = true;
+ _this._formatCode = true;
+
+ _this._loadTpl();
+ return _this;
+ }
+
+ (0, _createClass3.default)(Sources, [{
+ key: 'init',
+ value: function init($el, container) {
+ (0, _get3.default)(Sources.prototype.__proto__ || (0, _getPrototypeOf2.default)(Sources.prototype), 'init', this).call(this, $el);
+
+ this._container = container;
+ this._bindEvent();
+ this._initCfg();
+ }
+ }, {
+ key: 'destroy',
+ value: function destroy() {
+ (0, _get3.default)(Sources.prototype.__proto__ || (0, _getPrototypeOf2.default)(Sources.prototype), 'destroy', this).call(this);
+
+ _util.evalCss.remove(this._style);
+ }
+ }, {
+ key: 'set',
+ value: function set(type, val) {
+ if (type === 'img') {
+ this._isFetchingData = true;
+
+ var img = new Image();
+
+ var self = this;
+
+ img.onload = function () {
+ self._isFetchingData = false;
+ self._data = {
+ type: 'img',
+ val: {
+ width: this.width,
+ height: this.height,
+ src: val
+ }
+ };
+
+ self._render();
+ };
+ img.onerror = function () {
+ self._isFetchingData = false;
+ };
+
+ img.src = val;
+
+ return;
+ }
+
+ this._data = { type: type, val: val };
+
+ this._render();
+
+ return this;
+ }
+ }, {
+ key: 'show',
+ value: function show() {
+ (0, _get3.default)(Sources.prototype.__proto__ || (0, _getPrototypeOf2.default)(Sources.prototype), 'show', this).call(this);
+
+ if (!this._data && !this._isFetchingData) {
+ this._renderDef();
+ }
+
+ return this;
+ }
+ }, {
+ key: '_renderDef',
+ value: function _renderDef() {
+ var _this2 = this;
+
+ if (this._html) {
+ this._data = {
+ type: 'html',
+ val: this._html
+ };
+
+ return this._render();
+ }
+
+ if (this._isGettingHtml) return;
+ this._isGettingHtml = true;
+
+ (0, _util.ajax)({
+ url: location.href,
+ success: function success(data) {
+ return _this2._html = data;
+ },
+ error: function error() {
+ return _this2._html = 'Sorry, unable to fetch source code:(';
+ },
+ complete: function complete() {
+ _this2._isGettingHtml = false;
+ _this2._renderDef();
+ },
+ dataType: 'raw'
+ });
+ }
+ }, {
+ key: '_bindEvent',
+ value: function _bindEvent() {
+ var _this3 = this;
+
+ this._container.on('showTool', function (name, lastTool) {
+ if (name !== _this3.name && lastTool.name === _this3.name) {
+ delete _this3._data;
+ }
+ });
+
+ this._$el.on('click', '.eruda-http .eruda-response', function () {
+ var data = _this3._data.val,
+ resTxt = data.resTxt;
+
+ switch (data.subType) {
+ case 'css':
+ return _this3.set('css', resTxt);
+ case 'html':
+ return _this3.set('html', resTxt);
+ case 'javascript':
+ return _this3.set('js', resTxt);
+ case 'json':
+ return _this3.set('json', resTxt);
+ }
+ switch (data.type) {
+ case 'image':
+ return _this3.set('img', data.url);
+ }
+ });
+ }
+ }, {
+ key: '_loadTpl',
+ value: function _loadTpl() {
+ this._codeTpl = __webpack_require__(198);
+ this._imgTpl = __webpack_require__(199);
+ this._httpTpl = __webpack_require__(200);
+ this._jsonTpl = __webpack_require__(201);
+ this._rawTpl = __webpack_require__(202);
+ this._iframeTpl = __webpack_require__(203);
+ }
+ }, {
+ key: '_initCfg',
+ value: function _initCfg() {
+ var _this4 = this;
+
+ var cfg = this.config = _Settings2.default.createCfg('sources', {
+ 'showLineNum': true,
+ 'formatCode': true
+ });
+
+ if (!cfg.get('showLineNum')) this._showLineNum = false;
+ if (!cfg.get('formatCode')) this._formatCode = false;
+
+ cfg.on('change', function (key, val) {
+ switch (key) {
+ case 'showLineNum':
+ _this4._showLineNum = val;return;
+ case 'formatCode':
+ _this4._formatCode = val;return;
+ }
+ });
+
+ var settings = this._container.get('settings');
+ settings.text('Sources').switch(cfg, 'showLineNum', 'Show Line Numbers').switch(cfg, 'formatCode', 'Beautify Code').separator();
+ }
+ }, {
+ key: '_render',
+ value: function _render() {
+ this._isInit = true;
+
+ var data = this._data;
+
+ switch (data.type) {
+ case 'html':
+ case 'js':
+ case 'css':
+ return this._renderCode();
+ case 'img':
+ return this._renderImg();
+ case 'http':
+ return this._renderHttp();
+ case 'json':
+ return this._renderJson();
+ case 'raw':
+ return this._renderRaw();
+ case 'iframe':
+ return this._renderIframe();
+ }
+ }
+ }, {
+ key: '_renderImg',
+ value: function _renderImg() {
+ this._renderHtml(this._imgTpl(this._data.val));
+ }
+ }, {
+ key: '_renderHttp',
+ value: function _renderHttp() {
+ var val = this._data.val;
+
+ if (val.resTxt.trim() === '') delete val.resTxt;
+ if ((0, _util.isEmpty)(val.resHeaders)) delete val.resHeaders;
+
+ this._renderHtml(this._httpTpl(this._data.val));
+ }
+ }, {
+ key: '_renderCode',
+ value: function _renderCode() {
+ var data = this._data;
+
+ var code = data.val,
+ len = data.val.length;
+
+ // If source code too big, don't process it.
+ if (len < MAX_BEAUTIFY_LEN && this._formatCode) {
+ switch (data.type) {
+ case 'html':
+ code = _jsBeautify2.default.html(code, { unformatted: [] });
+ break;
+ case 'css':
+ code = _jsBeautify2.default.css(code);
+ break;
+ case 'js':
+ code = (0, _jsBeautify2.default)(code);
+ break;
+ }
+
+ code = (0, _highlight2.default)(code, data.type);
+ } else {
+ code = (0, _util.escape)(code);
+ }
+
+ if (len < MAX_LINE_NUM_LEN && this._showLineNum) {
+ code = code.split('\n').map(function (line, idx) {
+ if ((0, _util.trim)(line) === '') line = ' ';
+
+ return {
+ idx: idx + 1,
+ val: line
+ };
+ });
+ }
+
+ this._renderHtml(this._codeTpl({
+ code: code,
+ showLineNum: len < MAX_LINE_NUM_LEN && this._showLineNum
+ }));
+ }
+ }, {
+ key: '_renderJson',
+ value: function _renderJson() {
+ // Using cache will keep binding json events to the same elements.
+ this._renderHtml(this._jsonTpl(), false);
+
+ var val = this._data.val;
+
+ try {
+ if ((0, _util.isStr)(val)) val = JSON.parse(val);
+ /* eslint-disable no-empty */
+ } catch (e) {}
+
+ new _JsonViewer2.default(val, this._$el.find('.eruda-json'));
+ }
+ }, {
+ key: '_renderRaw',
+ value: function _renderRaw() {
+ this._renderHtml(this._rawTpl({ val: this._data.val }));
+ }
+ }, {
+ key: '_renderIframe',
+ value: function _renderIframe() {
+ this._renderHtml(this._iframeTpl({ src: this._data.val }));
+ }
+ }, {
+ key: '_renderHtml',
+ value: function _renderHtml(html) {
+ var _this5 = this;
+
+ var cache = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
+
+ if (cache && html === this._lastHtml) return;
+ this._lastHtml = html;
+ this._$el.html(html);
+ // Need setTimeout to make it work
+ setTimeout(function () {
+ return _this5._$el.get(0).scrollTop = 0;
+ }, 0);
+ }
+ }]);
+ return Sources;
+}(_Tool3.default);
+
+exports.default = Sources;
+
+
+var MAX_BEAUTIFY_LEN = 100000,
+ MAX_LINE_NUM_LEN = 400000;
+
+/***/ }),
+/* 197 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-dev-tools .eruda-tools .eruda-sources {\n overflow-y: auto;\n -webkit-overflow-scrolling: touch; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-code-wrapper, .eruda-dev-tools .eruda-tools .eruda-sources .eruda-raw-wrapper {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n width: 100%;\n background: #fff;\n min-height: 100%; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-raw {\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-code {\n font-family: Consolas, Lucida Console, Monaco, MonoSpace;\n font-size: 12px; }\n .eruda-dev-tools .eruda-tools .eruda-sources pre.eruda-code {\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-sources table.eruda-code {\n border-collapse: collapse; }\n .eruda-dev-tools .eruda-tools .eruda-sources table.eruda-code .eruda-gutter {\n background: #eceffe;\n color: #707d8b; }\n .eruda-dev-tools .eruda-tools .eruda-sources table.eruda-code .eruda-line-num {\n border-right: 1px solid #707d8b;\n padding: 0 3px 0 5px;\n text-align: right; }\n .eruda-dev-tools .eruda-tools .eruda-sources table.eruda-code .eruda-code-line {\n padding: 0 4px;\n white-space: pre; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-image .eruda-breadcrumb {\n background: #fff;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n margin-bottom: 10px;\n word-break: break-all;\n padding: 10px;\n font-size: 16px;\n min-height: 40px;\n border-bottom: 1px solid #eceffe; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-image .eruda-img-container {\n text-align: center; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-image .eruda-img-container img {\n max-width: 100%;\n -webkit-box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.05), 0 1px 4px 0 rgba(0, 0, 0, 0.08), 0 3px 1px -2px rgba(0, 0, 0, 0.2); }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-image .eruda-img-info {\n text-align: center;\n margin: 20px 0;\n color: #707d8b; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-json {\n background: #fff;\n padding: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-http .eruda-breadcrumb {\n background: #fff;\n -webkit-user-select: text;\n -moz-user-select: text;\n -ms-user-select: text;\n user-select: text;\n margin-bottom: 10px;\n word-break: break-all;\n padding: 10px;\n font-size: 16px;\n min-height: 40px;\n border-bottom: 1px solid #eceffe; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-http .eruda-section {\n background: #fff;\n margin-bottom: 10px; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-http .eruda-section h2 {\n background: #2196f3;\n padding: 10px;\n color: #fff;\n font-size: 14px; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-http .eruda-section table td {\n font-size: 12px;\n padding: 5px 10px; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-http .eruda-section table .eruda-key {\n white-space: nowrap; }\n .eruda-dev-tools .eruda-tools .eruda-sources .eruda-http .eruda-response, .eruda-dev-tools .eruda-tools .eruda-sources .eruda-http .eruda-data {\n overflow-x: auto;\n -webkit-overflow-scrolling: touch;\n background: #fff;\n padding: 10px;\n font-size: 12px;\n margin-bottom: 10px;\n white-space: pre-wrap; }\n .eruda-dev-tools .eruda-tools .eruda-sources iframe {\n width: 100%;\n height: 100%; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 198 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
+ var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {});
+
+ return " \r\n
\r\n \r\n \r\n \r\n"
+ + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.code : depth0),{"name":"each","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + " | \r\n \r\n"
+ + ((stack1 = helpers.each.call(alias1,(depth0 != null ? depth0.code : depth0),{"name":"each","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + " | \r\n
\r\n \r\n
\r\n
\r\n";
+},"2":function(container,depth0,helpers,partials,data) {
+ var helper;
+
+ return " "
+ + container.escapeExpression(((helper = (helper = helpers.idx || (depth0 != null ? depth0.idx : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"idx","hash":{},"data":data}) : helper)))
+ + "
\r\n";
+},"4":function(container,depth0,helpers,partials,data) {
+ var stack1, helper;
+
+ return " "
+ + ((stack1 = ((helper = (helper = helpers.val || (depth0 != null ? depth0.val : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"val","hash":{},"data":data}) : helper))) != null ? stack1 : "")
+ + "
\r\n";
+},"6":function(container,depth0,helpers,partials,data) {
+ var stack1, helper;
+
+ return " \r\n
"
+ + ((stack1 = ((helper = (helper = helpers.code || (depth0 != null ? depth0.code : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"code","hash":{},"data":data}) : helper))) != null ? stack1 : "")
+ + "
\r\n
\r\n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.showLineNum : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(6, data, 0),"data":data})) != null ? stack1 : "");
+},"useData":true});
+
+/***/ }),
+/* 199 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=helpers.helperMissing, alias3="function", alias4=container.escapeExpression;
+
+ return "\r\n
"
+ + alias4(((helper = (helper = helpers.src || (depth0 != null ? depth0.src : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"src","hash":{},"data":data}) : helper)))
+ + "
\r\n
\r\n
\r\n
\r\n
"
+ + alias4(((helper = (helper = helpers.width || (depth0 != null ? depth0.width : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"width","hash":{},"data":data}) : helper)))
+ + " × "
+ + alias4(((helper = (helper = helpers.height || (depth0 != null ? depth0.height : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"height","hash":{},"data":data}) : helper)))
+ + "
\r\n
";
+},"useData":true});
+
+/***/ }),
+/* 200 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
+ var helper;
+
+ return " "
+ + container.escapeExpression(((helper = (helper = helpers.data || (depth0 != null ? depth0.data : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"data","hash":{},"data":data}) : helper)))
+ + "
\r\n";
+},"3":function(container,depth0,helpers,partials,data) {
+ var stack1;
+
+ return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.resHeaders : depth0),{"name":"each","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "");
+},"4":function(container,depth0,helpers,partials,data) {
+ var helper, alias1=container.escapeExpression;
+
+ return " \r\n "
+ + alias1(((helper = (helper = helpers.key || (data && data.key)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"key","hash":{},"data":data}) : helper)))
+ + " | \r\n "
+ + alias1(container.lambda(depth0, depth0))
+ + " | \r\n
\r\n";
+},"6":function(container,depth0,helpers,partials,data) {
+ return " \r\n Empty | \r\n
\r\n";
+},"8":function(container,depth0,helpers,partials,data) {
+ var helper;
+
+ return " "
+ + container.escapeExpression(((helper = (helper = helpers.resTxt || (depth0 != null ? depth0.resTxt : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"resTxt","hash":{},"data":data}) : helper)))
+ + "
\r\n";
+},"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {});
+
+ return "\r\n
"
+ + container.escapeExpression(((helper = (helper = helpers.url || (depth0 != null ? depth0.url : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(alias1,{"name":"url","hash":{},"data":data}) : helper)))
+ + "
\r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.data : depth0),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
\r\n
Response Headers
\r\n \r\n \r\n"
+ + ((stack1 = helpers["if"].call(alias1,(depth0 != null ? depth0.resTxt : depth0),{"name":"if","hash":{},"fn":container.program(8, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
+ + "
";
+},"useData":true});
+
+/***/ }),
+/* 201 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ return "";
+},"useData":true});
+
+/***/ }),
+/* 202 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var helper;
+
+ return "\r\n
"
+ + container.escapeExpression(((helper = (helper = helpers.val || (depth0 != null ? depth0.val : depth0)) != null ? helper : helpers.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"val","hash":{},"data":data}) : helper)))
+ + "
\r\n
\r\n";
+},"useData":true});
+
+/***/ }),
+/* 203 */
+/***/ (function(module, exports, __webpack_require__) {
+
+var Handlebars = __webpack_require__(3);
+function __default(obj) { return obj && (obj.__esModule ? obj["default"] : obj); }
+module.exports = (Handlebars["default"] || Handlebars).template({"compiler":[7,">= 4.0.0"],"main":function(container,depth0,helpers,partials,data) {
+ var stack1, helper;
+
+ return "";
+},"useData":true});
+
+/***/ }),
+/* 204 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _Storage = __webpack_require__(205);
+
+var _Storage2 = _interopRequireDefault(_Storage);
+
+var _logger = __webpack_require__(36);
+
+var _logger2 = _interopRequireDefault(_logger);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var configs = {};
+
+var config = {
+ create: function create(name) {
+ _logger2.default.warn('createCfg is deprecated');
+
+ if (!configs[name]) configs[name] = new _Storage2.default(name);
+
+ return configs[name];
+ }
+};
+
+exports.default = config;
+
+/***/ }),
+/* 205 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _getPrototypeOf = __webpack_require__(4);
+
+var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
+
+var _classCallCheck2 = __webpack_require__(1);
+
+var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
+
+var _createClass2 = __webpack_require__(2);
+
+var _createClass3 = _interopRequireDefault(_createClass2);
+
+var _possibleConstructorReturn2 = __webpack_require__(7);
+
+var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
+
+var _inherits2 = __webpack_require__(8);
+
+var _inherits3 = _interopRequireDefault(_inherits2);
+
+var _stringify = __webpack_require__(33);
+
+var _stringify2 = _interopRequireDefault(_stringify);
+
+var _util = __webpack_require__(0);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+var localStore = {
+ _storage: (0, _util.safeStorage)('local'),
+ get: function get(key) {
+ var val = this._storage.getItem(key);
+
+ try {
+ val = JSON.parse(val);
+ /* eslint-disable no-empty */
+ } catch (e) {}
+
+ return val;
+ },
+ set: function set(key, val) {
+ if ((0, _util.isObj)(val)) val = (0, _stringify2.default)(val);
+
+ this._storage.setItem(key, val);
+
+ return this;
+ },
+ remove: function remove(key) {
+ this._storage.removeItem(key);
+
+ return this;
+ }
+};
+
+var Storage = function (_Emitter) {
+ (0, _inherits3.default)(Storage, _Emitter);
+
+ function Storage(name) {
+ (0, _classCallCheck3.default)(this, Storage);
+
+ var _this = (0, _possibleConstructorReturn3.default)(this, (Storage.__proto__ || (0, _getPrototypeOf2.default)(Storage)).call(this));
+
+ _this._name = name;
+ _this._val = localStore.get(name);
+ if (!_this._val || !(0, _util.isObj)(_this._val)) _this._val = {};
+ return _this;
+ }
+
+ (0, _createClass3.default)(Storage, [{
+ key: 'save',
+ value: function save() {
+ localStore.set(this._name, this._val);
+
+ return this;
+ }
+ }, {
+ key: 'get',
+ value: function get(key) {
+ if ((0, _util.isUndef)(key)) return this._val;
+
+ return this._val[key];
+ }
+ }, {
+ key: 'set',
+ value: function set(key, val) {
+ var _this2 = this;
+
+ var kv = void 0;
+
+ if ((0, _util.isObj)(key)) {
+ kv = key;
+ } else {
+ kv = {};
+ kv[key] = val;
+ }
+
+ (0, _util.each)(kv, function (val, key) {
+ var preVal = _this2._val[key];
+ _this2._val[key] = val;
+ if (preVal !== val) _this2.emit('change', key, val);
+ });
+
+ return this.save();
+ }
+ }]);
+ return Storage;
+}(_util.Emitter);
+
+exports.default = Storage;
+
+/***/ }),
+/* 206 */
+/***/ (function(module, exports, __webpack_require__) {
+
+"use strict";
+
+
+Object.defineProperty(exports, "__esModule", {
+ value: true
+});
+
+var _assign = __webpack_require__(37);
+
+var _assign2 = _interopRequireDefault(_assign);
+
+exports.default = function (util) {
+ (0, _assign2.default)(util, {
+ highlight: _highlight2.default,
+ beautify: _jsBeautify2.default
+ });
+};
+
+var _highlight = __webpack_require__(56);
+
+var _highlight2 = _interopRequireDefault(_highlight);
+
+var _jsBeautify = __webpack_require__(57);
+
+var _jsBeautify2 = _interopRequireDefault(_jsBeautify);
+
+function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
+
+/***/ }),
+/* 207 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-container {\n pointer-events: none;\n will-change: transform;\n position: fixed;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n z-index: 100000;\n color: #263238;\n -webkit-transform: translateZ(0);\n transform: translateZ(0);\n font-family: \"Helvetica Neue\", Helvetica, Arial, sans-seri;\n font-size: 14px;\n direction: ltr; }\n .eruda-container * {\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n pointer-events: all;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-tap-highlight-color: transparent;\n -webkit-text-size-adjust: none; }\n .eruda-container ul {\n list-style: none;\n padding: 0;\n margin: 0; }\n .eruda-container h1, .eruda-container h2, .eruda-container h3, .eruda-container h4 {\n margin: 0; }\n\n.eruda-hidden {\n display: none; }\n\n.eruda-blue {\n color: #2196f3; }\n\n.eruda-red {\n color: #f44336; }\n\n.eruda-green {\n color: #009688; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 208 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, ".eruda-container html, .eruda-container body, .eruda-container div, .eruda-container span, .eruda-container applet, .eruda-container object, .eruda-container iframe, .eruda-container h1, .eruda-container h2, .eruda-container h3, .eruda-container h4, .eruda-container h5, .eruda-container h6, .eruda-container p, .eruda-container blockquote, .eruda-container pre, .eruda-container a, .eruda-container abbr, .eruda-container acronym, .eruda-container address, .eruda-container big, .eruda-container cite, .eruda-container code, .eruda-container del, .eruda-container dfn, .eruda-container em, .eruda-container img, .eruda-container ins, .eruda-container kbd, .eruda-container q, .eruda-container s, .eruda-container samp, .eruda-container small, .eruda-container strike, .eruda-container strong, .eruda-container sub, .eruda-container sup, .eruda-container tt, .eruda-container var, .eruda-container b, .eruda-container u, .eruda-container i, .eruda-container center, .eruda-container dl, .eruda-container dt, .eruda-container dd, .eruda-container ol, .eruda-container ul, .eruda-container li, .eruda-container fieldset, .eruda-container form, .eruda-container label, .eruda-container legend, .eruda-container table, .eruda-container caption, .eruda-container tbody, .eruda-container tfoot, .eruda-container thead, .eruda-container tr, .eruda-container th, .eruda-container td, .eruda-container article, .eruda-container aside, .eruda-container canvas, .eruda-container details, .eruda-container embed, .eruda-container figure, .eruda-container figcaption, .eruda-container footer, .eruda-container header, .eruda-container hgroup, .eruda-container menu, .eruda-container nav, .eruda-container output, .eruda-container ruby, .eruda-container section, .eruda-container summary, .eruda-container time, .eruda-container mark, .eruda-container audio, .eruda-container video {\n margin: 0;\n padding: 0;\n border: 0;\n font-size: 100%;\n font: inherit;\n vertical-align: baseline; }\n\n.eruda-container article, .eruda-container aside, .eruda-container details, .eruda-container figcaption, .eruda-container figure, .eruda-container footer, .eruda-container header, .eruda-container hgroup, .eruda-container menu, .eruda-container nav, .eruda-container section {\n display: block; }\n\n.eruda-container body {\n line-height: 1; }\n\n.eruda-container ol, .eruda-container ul {\n list-style: none; }\n\n.eruda-container blockquote, .eruda-container q {\n quotes: none; }\n\n.eruda-container blockquote:before, .eruda-container blockquote:after, .eruda-container q:before, .eruda-container q:after {\n content: '';\n content: none; }\n\n.eruda-container table {\n border-collapse: collapse;\n border-spacing: 0; }\n", ""]);
+
+// exports
+
+
+/***/ }),
+/* 209 */
+/***/ (function(module, exports, __webpack_require__) {
+
+exports = module.exports = __webpack_require__(6)(false);
+// imports
+
+
+// module
+exports.push([module.i, "@font-face {\r\n font-family: 'eruda-icon';\r\n src: url('data:application/x-font-woff;charset=utf-8;base64,d09GRgABAAAAABEAAAsAAAAAELQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIFi2NtYXAAAAFoAAAAVAAAAFQXVtKVZ2FzcAAAAbwAAAAIAAAACAAAABBnbHlmAAABxAAADKQAAAykjK19FmhlYWQAAA5oAAAANgAAADYPCS8LaGhlYQAADqAAAAAkAAAAJAfCA9RobXR4AAAOxAAAAEwAAABMOSwAm2xvY2EAAA8QAAAAKAAAACgZ4h0QbWF4cAAADzgAAAAgAAAAIAAZAIVuYW1lAAAPWAAAAYYAAAGGmUoJ+3Bvc3QAABDgAAAAIAAAACAAAwAAAAMDUwGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6Q4DwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEADgAAAAKAAgAAgACAAEAIOkO//3//wAAAAAAIOkA//3//wAB/+MXBAADAAEAAAAAAAAAAAAAAAEAAf//AA8AAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAgAHAAcDZgNmACIARQAAAREUBiMiJi8BBw4BIyImLwEuATU0Nj8BJy4BNTQ2MyEyFhUBFAYPARceARUUBiMhIiY1ETQ2MzIWHwE3PgEzMhYfAR4BFQG3Fg8HDQVTvQMHBAMHA0ECBAQCvlIGBRUPAQAPFgGvAwK+UgUGFg//AA8VFQ8IDQVSvgMHAwQHAkICAwGS/wAPFQUGUr4CBAQCQQMHAwQHA71TBQ0HDxYWDwGAAwcDvlIFDQgPFRUPAQAPFgYFUr4CAwMCQgIHBAAAAAIAAAAAA24DbgAiAEUAAAEUBg8BFx4BFRQGIyEiJjURNDYzMhYfATc+ATMyFh8BHgEVAREUBiMiJi8BBw4BIyImLwEuATU0Nj8BJy4BNTQ2MyEyFhUBrwMCvlIFBhUP/wAPFhYPBw0FU70DBwMEBwNBAgMBvxYPBw0GUr4CBwQDBwNBAwMDA75TBQUVDwEADxYBWwMHA71TBQ0HDxYWDwEADxUGBVK+AgMDAkEDBwQB7v8ADxUFBVO+AwMDA0EDBwMEBwK+UgYNBw8WFg8AAAADAAAAAANuA24AJgA7AFQAACU1NCcmKwERNCcmKwEiBwYdARQXFjsBFSMiBwYdARQXFjMhMjc2NQM1NCcmKwEiBwYdARQXFjsBMjc2NQUUBwYHBiMiJyYnJjU0NzY3NjMyFxYXFhUCSQUFCDcFBQi3CAUFBQUINzcIBQUFBQgBAAgFBUkFBQhuCAUFBQUIbggFBQFuOztlZXd4ZGU7Ozs7ZWR4d2VlOzulWwgFBQElCAUFBQUIXAgFBbcFBQhbCAYFBQYIAgBbCAUFBQUIWwgGBQUGCO54ZGU7Ozs7ZWR4d2VlOzs7O2VldwAAAAMAAAAAA24DcQANABkAOQAAATQnARYzMjc2NzY3NjUFASYjIgcGBwYVFBclFAcGBwYHBiMiJyYnJicmNTQ3Njc2NzYzMhcWFxYXFgLuMv5RTlw/OjkqKhgZ/cUBr01eVUdIKSozArsjIzs6UlFZWVJROzojIyMjOjtRUllZUVI6OyMjAblcTP5SMxkZKSo6OkCrAa80KipISFRdTqtaUlI6OyMjIyM7OlJSWllSUTs7IyMjIzs7UVIAAAAAAgAAAAADbgNuAA8AggAAATQnJiMiBwYVFBcWMzI3NiUVFAcGDwEGBxYXFhUUBwYHBiMiLwEGBwYHBisBIicmNScmJwcGIyInJicmNTQ3Njc2NyYvASYnJj0BNDc2PwE2NyYnJjU0NzY3NjMyHwE2NzY3NjsBMhcWHwEWFzc2MzIXFhcWFRQHBgcGBxYfARYXFhUCSSsrPD0rKiorPTwrKwElBQQHagsLFCkGBg8pKQ0HCE8ZGwkHBBF/CAYGEBwYUAYICAdIFgQFCBUUCxAIaAgEBQUEBmsIDhcmBgUPKikNBwdPGRsJCAQQfwgGBgEQHBdRBggIBkoVBAUIFRUKDwloCAQFAbc8KysrKzw9KyoqK3t/BwYGARAfFR0yBwcIBhUoKQU+DQlNHRAFBQdpCQw9BQZCHgYIBgcMGhoOHRwPAQYGCH4HBwYBEBobIC4HBwYHFSkpBj0NCE4dEAUFB2oJDD0GBkQdBQgHBgwaGg4dGxABBgYIAAUAAAAAAyUDbgAUACkAPgBGAHMAACURNCcmKwEiBwYVERQXFjsBMjc2NTMRNCcmKwEiBwYVERQXFjsBMjc2NTMRNCcmKwEiBwYVERQXFjsBMjc2NQEhJyYnIwYHBRUUBwYrAREUBwYjISInJjURIyInJj0BNDc2OwE3Njc2OwEyFxYfATMyFxYVASUGBQgkCAUGBgUIJAgFBpIFBQglCAUFBQUIJQgFBZIFBQglCAUFBQUIJQgFBf7JAQAbBAa1BgQB9wYFCDcaGyb+JSYbGzcIBQUFBQixKAgXFhe3FxYWCSiwCAUGpQGSCAUFBQUI/m4IBgUFBggBkggFBQUFCP5uCAYFBQYIAZIIBQUFBQj+bggGBQUGCAI2QwUCAgVVJAgGBf3jMCIjISIvAiAFBggkCAUFYBUPDw8PFWAFBQgAAQAAAAADbgNuAEcAAAERFAcGIyEiJyY/ASYjIgcGBwYHBhUUFxYXFhcWMzI3Njc2NzIfARYVFAcGBwYjIicmJyYnJjU0NzY3Njc2MzIXFhc3NhcWFQNuCwsP/wAYCgkRT1RzPDY2JycYFxcYJyc2NjxEPD0qBAkIBk4GBD9YWWJZUVI6OyMjIyM7OlJRWVROTz1KERcXAyX/AA8LCxcWEU9OFxcnKDY2Ozw2NicnGBceHjYGAQVPBQcHBksqKSMjOzpSUVlZUVE7OyMjICA5SRIKCRgAAAAAAQAzAA8CgwOoABoAAAkBBiMiLwEmNTQ3CQEmNTQ/ATYzMhcBFhUUBwJ5/lgLDw8LXwsLATD+0AsLXwsPDwsBqAoKAcL+WAsLXwoPDwsBLwEwCw8OC18LC/5YCw8OCwAAAQBYAA8CqAOoABoAAAkCFhUUDwEGIyInASY1NDcBNjMyHwEWFRQHAp3+0QEvCwtfCw4PC/5YCwsBqAsPDgtfCwsDC/7Q/tELDw8KXwsLAagLDg8LAagLC18LDg8LAAAABQAA/7cDtwO3AD4AbQBxAHUAegAAASIHBhURJyYjIgcGFRQXExYzITI3Nj8BNj0BNCcmIyIHBhUjNTQnJiMiBwYdASM1NCcmIyIHBh0BIxE0JyYjNTIXFh0BNjMyFzYzMhc2MzIXFh0BFA8BBgcGIyEiJyYnAyY1NDc2MzIXETQ3NjMTNSMVMzUjFTM1IxUzAW4fFRVXFyYeFRUP2xYlAZoNCgoCNQ4QEBcXEBASExIbGxITExUVHx4VFhIVFR89KisNBTkqGx5AKQ8RNiUlEDUJHh0m/mYjHx8U3B0rKjwpISsrPUkSpBKkEhIDbhYVHv4Acx8WFh0ZE/7bHQgHDNM3OHwXEREQEBcjHBMTExMaJTQfFxYVFR83AUYgFhdJLC09fgIoDDIEJic1fEM+0iUXFxAPGwElJzE8KysUATk8Kyv829zc3Nzc3AADAAAASQQAAtsAGAAxAEoAAAEmJxYVFAcGIyInJjU0NwYHFhcWMzI3NjclNCcmIyIHBhUUFxYzMjc2NTQ3NjMyNzY1BRQHBgcGIyInJicmNTQ3Njc2MzIXFhcWFQO3V4MjS0tqaktLI4NXTHNyhoZyc0z+ZAgIC0c0MwgIDAsICCMjMQsICAHlC1CIh5aWh4hQCwtQiIeWloeIUAsBkodDO0ZpS0xMS2lGO0OHdUVGRkV13AsICDMzSAsICAgICzIiIwgIDNwTFIRPT1BPgxQTFBSDT09PT4MUFAAAAQAAAAADbgNuAEkAAAEUBwYHBgcGIyInJicmNTY/ATYzFhcWFxYzMjc2NzY3NjU0JyYnJicmIyIHBgcXFgcGIyEiJyY1ETQ3Nh8BNjc2MzIXFhcWFxYVA24jIzs7UVFZYllZPgQBBE8FCQkEKjw9RDs2NignFxcXFycoNjY7ODQzKE4SCgkY/wAPCwsXFhFLPU5PVFlRUTs7IyMBt1lRUjo7IyMpKksGBwcFTwUBBjYeHhcYJyc2Njw7NjYoJxcXFBQmTxEWFwsLDwEAGAkKEkk5ICAjIzs7UVFZAAMACQAAA/cDtwAUACkAQQAAJTU0JyYrASIHBh0BFBcWOwEyNzY1JxM0JyYrASIHBhUTFBcWOwEyNzY3AwEWBwYHBiMhIicmJyY3ATY3NjMyFxYXAkkFBgduBwYFBQYHbgcGBQEKBQgGfgYIBQkGBghqCAUFAQgBtxQVChERE/ySExERChUUAbcKEREUFBERCqVtCAUGBgUIbQgFBgYFCNYBBgcEBgYECP77BgQDAwQGAhb82yQkEQkKCgkRJCQDJRELCgoLEQAAAgAAAAADbgNuACsARAAAATQvATc2NTQvASYjIg8BJyYjIg8BBhUUHwEHBhUUHwEWMzI/ARcWMzI/ATY3FAcGBwYjIicmJyY1NDc2NzYzMhcWFxYVApELaGgLCzQLDw8LZ2gKDxALMwsLZ2cLCzMLEA8KaGcLDw8LNAvdOztlZXd4ZGU7Ozs7ZWR4d2VlOzsBNg8KaGcLDw8LNAsLaGgLCzQLDw8LZ2gKDxALMwsLZ2cLCzMLkXhkZTs7OztlZHh3ZWU7Ozs7ZWV3AAAAAQAA//8DFwNuAAsAAAkBBiY1ETQ2FwEWFAMX/QkNExMNAvcNAaX+WgcLDwNJDwwI/lsIFQAAAAABAAAAAAAA0YpcH18PPPUACwQAAAAAANX1dVAAAAAA1fV1UAAA/7cEAAO3AAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAQAAAEAAAAAAAAAAAAAAAAAAAATBAAAAAAAAAAAAAAAAgAAAANuAAcDbgAAA24AAANuAAADbgAAAyUAAANuAAACtwAzAwAAWAO3AAAEAAAAA24AAAQAAAkDbgAAAykAAAAAAAAACgAUAB4AhgDuAWQBwgJ+Ax4DigO6A+oEkAT+BWwF0AY2BlIAAQAAABMAgwAFAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGljb21vb24AaQBjAG8AbQBvAG8AblZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGljb21vb24AaQBjAG8AbQBvAG8Abmljb21vb24AaQBjAG8AbQBvAG8AblJlZ3VsYXIAUgBlAGcAdQBsAGEAcmljb21vb24AaQBjAG8AbQBvAG8AbkZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=') format('woff');\r\n font-weight: normal;\r\n font-style: normal;\r\n}\r\n\r\n[class^=\"eruda-icon-\"], [class*=\" eruda-icon-\"] {\r\n /* use !important to prevent issues with browser extensions that change fonts */\r\n font-family: 'eruda-icon' !important;\r\n speak: none;\r\n font-style: normal;\r\n font-weight: normal;\r\n font-variant: normal;\r\n text-transform: none;\r\n line-height: 1;\r\n\r\n /* Better Font Rendering =========== */\r\n -webkit-font-smoothing: antialiased;\r\n -moz-osx-font-smoothing: grayscale;\r\n}\r\n\r\n.eruda-icon-play:before {\r\n content: \"\\E90E\";\r\n}\r\n.eruda-icon-compress:before {\r\n content: \"\\E900\";\r\n}\r\n.eruda-icon-expand:before {\r\n content: \"\\E901\";\r\n}\r\n.eruda-icon-rotate-left:before {\r\n content: \"\\E90B\";\r\n}\r\n.eruda-icon-hand-pointer-o:before {\r\n content: \"\\E909\";\r\n}\r\n.eruda-icon-eye:before {\r\n content: \"\\E90A\";\r\n}\r\n.eruda-icon-info-circle:before {\r\n content: \"\\E902\";\r\n}\r\n.eruda-icon-ban:before {\r\n content: \"\\E903\";\r\n}\r\n.eruda-icon-cog:before {\r\n content: \"\\E904\";\r\n}\r\n.eruda-icon-trash:before {\r\n content: \"\\E905\";\r\n}\r\n.eruda-icon-repeat:before {\r\n content: \"\\E906\";\r\n}\r\n.eruda-icon-chevron-right:before {\r\n content: \"\\E907\";\r\n}\r\n.eruda-icon-chevron-left:before {\r\n content: \"\\E908\";\r\n}\r\n.eruda-icon-exclamation-triangle:before {\r\n content: \"\\E90C\";\r\n}\r\n.eruda-icon-times-circle:before {\r\n content: \"\\E90D\";\r\n}\r\n", ""]);
+
+// exports
+
+
+/***/ })
+/******/ ]);
+});
+//# sourceMappingURL=eruda.js.map
\ No newline at end of file
diff --git a/site/js/escape.js b/site/js/escape.js
new file mode 100644
index 0000000..ca15d50
--- /dev/null
+++ b/site/js/escape.js
@@ -0,0 +1,76 @@
+/*!
+ * escape-html
+ * Copyright(c) 2012-2013 TJ Holowaychuk
+ * Copyright(c) 2015 Andreas Lubbe
+ * Copyright(c) 2015 Tiancheng "Timothy" Gu
+ * MIT Licensed
+ */
+
+'use strict';
+
+/**
+ * Module variables.
+ * @private
+ */
+
+var matchHtmlRegExp = /["'&<>]/;
+
+/**
+ * Module exports.
+ * @public
+ */
+
+/**
+ * Escape special characters in the given string of html.
+ *
+ * @param {string} string The string to escape for inserting into HTML
+ * @return {string}
+ * @public
+ */
+
+function escapeHtml(string) {
+ var str = '' + string;
+ var match = matchHtmlRegExp.exec(str);
+
+ if (!match) {
+ return str;
+ }
+
+ var escape;
+ var html = '';
+ var index = 0;
+ var lastIndex = 0;
+
+ for (index = match.index; index < str.length; index++) {
+ switch (str.charCodeAt(index)) {
+ case 34: // "
+ escape = '"';
+ break;
+ case 38: // &
+ escape = '&';
+ break;
+ case 39: // '
+ escape = ''';
+ break;
+ case 60: // <
+ escape = '<';
+ break;
+ case 62: // >
+ escape = '>';
+ break;
+ default:
+ continue;
+ }
+
+ if (lastIndex !== index) {
+ html += str.substring(lastIndex, index);
+ }
+
+ lastIndex = index + 1;
+ html += escape;
+ }
+
+ return lastIndex !== index
+ ? html + str.substring(lastIndex, index)
+ : html;
+}
diff --git a/site/js/line.js b/site/js/line.js
new file mode 100644
index 0000000..1c14812
--- /dev/null
+++ b/site/js/line.js
@@ -0,0 +1,1385 @@
+const TYPE = {
+ STOP: 0,
+ VOID: 1,
+ BOOL: 2,
+ BYTE: 3,
+ I08: 3,
+ DOUBLE: 4,
+ I16: 6,
+ I32: 8,
+ I64: 10,
+ STRING: 11,
+ UTF7: 11,
+ STRUCT: 12,
+ MAP: 13,
+ SET: 14,
+ LIST: 15,
+ UTF8: 16,
+ UTF16: 17,
+};
+function getType(obj) {
+ if (obj.type === "BaseType") {
+ return TYPE[obj.baseType.toUpperCase()];
+ } else if (obj.type === "Identifier") {
+ return obj.name;
+ }
+}
+function isStruct(obj) {
+ return obj && obj.constructor === Array;
+}
+class ThriftRenameParser {
+ constructor() {
+ this.def = {};
+ }
+ name2fid(struct_name, name) {
+ const struct = this.def[struct_name];
+ if (struct) {
+ const result = struct.findIndex((e) => {
+ return e.name == name;
+ });
+ if (result === -1) {
+ return { name: name, fid: -1 };
+ } else {
+ return struct[result];
+ }
+ } else {
+ return { name: name, fid: -1 };
+ }
+ }
+ fid2name(struct_name, fid) {
+ const struct = this.def[struct_name];
+ if (struct) {
+ const result = struct.findIndex((e) => {
+ return e.fid == fid;
+ });
+ if (result === -1) {
+ return { name: fid, fid: fid };
+ } else {
+ return struct[result];
+ }
+ } else {
+ return { name: fid, fid: fid };
+ }
+ }
+ rename_thrift(struct_name, object) {
+ const newObject = {};
+ for (const fid in object) {
+ const value = object[fid];
+ const finfo = this.fid2name(struct_name, fid);
+ if (finfo.struct) {
+ if (isStruct(this.def[finfo.struct])) {
+ newObject[finfo.name] = this.rename_thrift(
+ finfo.struct,
+ value,
+ );
+ } else {
+ newObject[finfo.name] = this.def[finfo.struct][value] ||
+ value;
+ }
+ } else if (finfo.list) {
+ newObject[finfo.name] = [];
+ value.forEach((e, i) => {
+ newObject[finfo.name][i] = this.rename_thrift(
+ finfo.list,
+ e,
+ );
+ });
+ } else if (finfo.map) {
+ newObject[finfo.name] = {};
+ for (const key in value) {
+ const e = value[key];
+ newObject[finfo.name][key] = this.rename_thrift(
+ finfo.map,
+ e,
+ );
+ }
+ } else if (finfo.set) {
+ newObject[finfo.name] = [];
+ value.forEach((e, i) => {
+ newObject[finfo.name][i] = this.rename_thrift(
+ finfo.set,
+ e,
+ );
+ });
+ } else {
+ newObject[finfo.name] = value;
+ }
+ }
+ return newObject;
+ }
+ rename_data(data) {
+ const name = data._info.fname;
+ const value = data.value;
+ const struct_name = name.substr(0, 1).toUpperCase() + name.substr(1) +
+ "Response";
+ data.value = this.rename_thrift(struct_name, value);
+ return data;
+ }
+ parse_data(struct_name, object) {
+ const newThrift = [];
+ for (const fname in object) {
+ const value = object[fname];
+ const finfo = this.name2fid(struct_name, fname);
+ if (finfo.fid == -1) {
+ continue;
+ }
+ const thisValue = [null, finfo.fid, null];
+ if (finfo.struct) {
+ if (isStruct(this.def[finfo.struct])) {
+ thisValue[2] = this.parse_data(
+ finfo.struct,
+ value,
+ );
+ thisValue[0] = TYPE.STRUCT;
+ } else {
+ if (typeof value === "number") {
+ thisValue[2] = value;
+ thisValue[0] = TYPE.I64;
+ } else {
+ const Enum = this.def[finfo.struct];
+ let i64;
+ for (const k in Enum) {
+ const val = Enum[k];
+ if (val == value) {
+ i64 = Number(k);
+ }
+ }
+ thisValue[2] = i64;
+ thisValue[0] = TYPE.I64;
+ }
+ }
+ } else if (finfo.list) {
+ thisValue[0] = TYPE.LIST;
+ if (typeof finfo.list === "number") {
+ thisValue[2] = [finfo.list, value];
+ } else {
+ thisValue[2] = [
+ TYPE.STRUCT,
+ value.map((e) => this.parse_data(finfo.list, e)),
+ ];
+ }
+ } else if (finfo.map) {
+ thisValue[0] = TYPE.MAP;
+ if (typeof finfo.map === "number") {
+ thisValue[2] = [TYPE.STRING, finfo.map, value];
+ } else {
+ const obj = {};
+ for (const key in value) {
+ const e = value[key];
+ obj[key] = this.parse_data(finfo.map,e)
+ }
+ thisValue[2] = [TYPE.STRING, TYPE.STRUCT, obj];
+ }
+ } else if (finfo.set) {
+ thisValue[0] = TYPE.SET;
+ if (typeof finfo.map === "number") {
+ thisValue[2] = [finfo.map, value];
+ } else {
+ thisValue[2] = [
+ TYPE.STRUCT,
+ value.map((e) => this.parse_data(finfo.map, e)),
+ ];
+ }
+ } else if(finfo.type) {
+ thisValue[0] = finfo.type
+ thisValue[2] = value
+ }
+ newThrift.push(thisValue)
+ }
+ return newThrift;
+ }
+}
+
+class LineThriftPost {
+ constructor(win) {
+ this.window = win;
+ this.waitFunc = {};
+ }
+ post(data) {
+ return new Promise((resolve, reject) => {
+ data = { arg: data };
+ data.id = Date.now();
+ this.send(
+ this.window,
+ this.waitFunc,
+ data,
+ resolve,
+ );
+ });
+ }
+
+ async postParseThrift(data) {
+ let reqJson, resJson;
+ reqJson = data;
+ resJson = await this.post(reqJson);
+ if (resJson.err) {
+ throw new Error("Server Error : " + resJson.err);
+ }
+ return resJson;
+ }
+
+ postRequestAndGetResponse(
+ CHRdata,
+ methodName,
+ protocol_type = 3,
+ path = "/S3",
+ headers = {},
+ ) {
+ return new Promise((resolve, reject) => {
+ const request = [path, CHRdata, methodName, protocol_type, headers];
+ this.postParseThrift(request).then((r) => resolve(r))
+ });
+ }
+ send(socket, funcMap, data, returnFunc) {
+ if (socket) {
+ socket.postMessage(data,"*");
+ funcMap[data.id] = (e) => {
+ returnFunc(e);
+ };
+ window.onmessage = (e) => {
+ let j = e.data;
+ funcMap[j.id](j);
+ delete funcMap[j.id];
+ };
+ } else throw new Error("No parent window");
+ }
+}
+
+class SquareServise {
+ SquareService_API_PATH = "/SQ1";
+ SquareService_P_TYPE = 4;
+ async getJoinedSquares(limit = 50, continuationToken) {
+ return await this.request(
+ [[11, 2, continuationToken], [8, 3, limit]],
+ "getJoinedSquares",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async inviteIntoSquareChat(inviteeMids, squareChatMid) {
+ return await this.request(
+ [[15, 1, [11, inviteeMids]], [11, 2, squareChatMid]],
+ "inviteIntoSquareChat",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async inviteToSquare(squareMid, invitees, squareChatMid) {
+ return await this.request(
+ [[11, 2, squareMid], [15, 3, [11, invitees]], [
+ 11,
+ 4,
+ squareChatMid,
+ ]],
+ "inviteToSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async markAsRead(squareChatMid, messageId) {
+ return await this.request(
+ [[11, 2, squareChatMid], [11, 4, messageId]],
+ "markAsRead",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async reactToMessage(squareChatMid, messageId, reactionType = 2) {
+ /*
+ reactionType
+ ALL = 0,
+ UNDO = 1,
+ NICE = 2,
+ LOVE = 3,
+ FUN = 4,
+ AMAZING = 5,
+ SAD = 6,
+ OMG = 7,
+ */
+ return await this.request(
+ [
+ [8, 1, 0],
+ [11, 2, squareChatMid],
+ [11, 3, messageId],
+ [8, 4, reactionType],
+ ],
+ "reactToMessage",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async findSquareByInvitationTicket(invitationTicket) {
+ return await this.request(
+ [[11, 2, invitationTicket]],
+ "findSquareByInvitationTicket",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async fetchMyEvents(
+ syncToken = undefined,
+ limit = 100,
+ continuationToken = undefined,
+ subscriptionId,
+ ) {
+ return await this.request(
+ [
+ [10, 1, subscriptionId],
+ [11, 2, syncToken],
+ [8, 3, limit],
+ [11, 4, continuationToken],
+ ],
+ "fetchMyEvents",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async fetchSquareChatEvents(
+ squareChatMid,
+ syncToken = undefined,
+ continuationToken = undefined,
+ subscriptionId = 0,
+ limit = 100,
+ ) {
+ return await this.request(
+ [
+ [10, 1, subscriptionId],
+ [11, 2, squareChatMid],
+ [11, 3, syncToken],
+ [8, 4, limit],
+ [8, 5, 1],
+ [8, 6, 1],
+ [11, 7, continuationToken],
+ [8, 8, 1],
+ ],
+ "fetchSquareChatEvents",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async sendSquareMessage(
+ squareChatMid,
+ text = "test Message",
+ contentType = 0,
+ contentMetadata = {},
+ relatedMessageId = undefined,
+ ) {
+ const msg = [
+ [11, 2, squareChatMid],
+ [11, 10, text],
+ [8, 15, contentType],
+ [13, 18, [11, 11, contentMetadata]],
+ ];
+ if (relatedMessageId) {
+ msg.push(
+ [11, 21, relatedMessageId],
+ [8, 22, 3],
+ [8, 24, 2],
+ );
+ }
+ return await this.request(
+ [
+ [8, 1, 0],
+ [11, 2, squareChatMid],
+ [
+ 12,
+ 3,
+ [
+ [12, 1, msg],
+ [8, 3, 4],
+ ],
+ ],
+ ],
+ "sendMessage",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquare(squareMid) {
+ return await this.request(
+ [[11, 2, squareMid]],
+ "getSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+ async getSquareChat(squareChatMid) {
+ return await this.request(
+ [[11, 1, squareChatMid]],
+ "getSquareChat",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+ async getJoinableSquareChats(
+ squareMid,
+ continuationToken = undefined,
+ limit = 100,
+ ) {
+ return await this.request(
+ [[11, 1, squareMid], [11, 10, continuationToken], [8, 11, limit]],
+ "getJoinableSquareChats",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async createSquare(
+ name = "TEST Square",
+ displayName = "Tester",
+ profileImageObsHash =
+ "0h6tJf0hQsaVt3H0eLAsAWDFheczgHd3wTCTx2eApNKSoefHNVGRdwfgxbdgUMLi8MSngnPFMeNmpbLi8MSngnPFMeNmpbLi8MSngnOA",
+ desc = "test with LINE-Deno-Client",
+ searchable = true,
+ SquareJoinMethodType = 0,
+ ) {
+ /*
+ SquareJoinMethodType
+ NONE(0),
+ APPROVAL(1),
+ CODE(2);
+ */
+ return await this.request(
+ [
+ [8, 2, 0],
+ [
+ 12,
+ 2,
+ [
+ [11, 2, name],
+ [11, 4, profileImageObsHash],
+ [11, 5, desc],
+ [2, 6, searchable],
+ [8, 7, 1], // type
+ [8, 8, 1], // categoryId
+ [10, 10, 0], // revision
+ [2, 11, true], // ableToUseInvitationTicket
+ [12, 14, [[8, 1, SquareJoinMethodType]]],
+ [2, 15, false], // adultOnly
+ [15, 16, [11, []]], // svcTags
+ ],
+ ],
+ [
+ 12,
+ 3,
+ [
+ [11, 3, displayName],
+ // [11, 4, profileImageObsHash],
+ [2, 5, true], // ableToReceiveMessage
+ [10, 9, 0], // revision
+ ],
+ ],
+ ],
+ "createSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareChatAnnouncements(squareChatMid) {
+ return await this.request(
+ [[11, 2, squareChatMid]],
+ "getSquareChatAnnouncements",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async updateSquareFeatureSet(
+ updateAttributes = [],
+ squareMid,
+ revision,
+ creatingSecretSquareChat = 0,
+ ) {
+ /*
+ updateAttributes:
+ CREATING_SECRET_SQUARE_CHAT(1),
+ INVITING_INTO_OPEN_SQUARE_CHAT(2),
+ CREATING_SQUARE_CHAT(3),
+ READONLY_DEFAULT_CHAT(4),
+ SHOWING_ADVERTISEMENT(5),
+ DELEGATE_JOIN_TO_PLUG(6),
+ DELEGATE_KICK_OUT_TO_PLUG(7),
+ DISABLE_UPDATE_JOIN_METHOD(8),
+ DISABLE_TRANSFER_ADMIN(9),
+ CREATING_LIVE_TALK(10);
+ */
+ const SquareFeatureSet = [
+ [11, 1, squareMid],
+ [10, 2, revision],
+ ];
+ if (creatingSecretSquareChat) {
+ SquareFeatureSet.push([12, 11, [
+ [8, 1, 1],
+ [8, 2, creatingSecretSquareChat],
+ ]]);
+ }
+ return await this.request(
+ [
+ [14, 2, [8, updateAttributes]],
+ [12, 3, SquareFeatureSet],
+ ],
+ "updateSquareFeatureSet",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async joinSquare(
+ squareMid,
+ displayName,
+ ableToReceiveMessage = false,
+ passCode = undefined,
+ ) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ [
+ 12,
+ 3,
+ [
+ [11, 2, squareMid],
+ [11, 3, displayName],
+ [2, 5, ableToReceiveMessage],
+ [10, 9, 0],
+ ],
+ ],
+ [12, 5, [[12, 2, [[11, 1, passCode]]]]],
+ ],
+ "joinSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async removeSubscriptions(subscriptionIds = []) {
+ return await this.request(
+ [
+ [15, 2, [10, subscriptionIds]],
+ ],
+ "removeSubscriptions",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async unsendSquareMessage(squareChatMid, messageId) {
+ return await this.request(
+ [[11, 2, squareChatMid], [11, 3, messageId]],
+ "unsendMessage",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async createSquareChat(
+ squareChatMid,
+ name,
+ chatImageObsHash,
+ squareChatType = 1,
+ maxMemberCount = 5000,
+ ableToSearchMessage = 1,
+ squareMemberMids = [],
+ ) {
+ /*
+ - SquareChatType:
+ OPEN(1),
+ SECRET(2),
+ ONE_ON_ONE(3),
+ SQUARE_DEFAULT(4);
+ - ableToSearchMessage:
+ NONE(0),
+ OFF(1),
+ ON(2);
+ */
+ return await this.request(
+ [
+ [8, 1, 0],
+ [
+ 12,
+ 2,
+ [
+ [11, 1, squareChatMid],
+ [8, 3, squareChatType],
+ [11, 4, name],
+ [11, 5, chatImageObsHash],
+ [8, 7, maxMemberCount],
+ [8, 11, ableToSearchMessage],
+ ],
+ ],
+ [15, 3, [11, squareMemberMids]],
+ ],
+ "createSquareChat",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareChatMembers(
+ squareChatMid,
+ continuationToken = undefined,
+ limit = 200,
+ ) {
+ const req = [[11, 1, squareChatMid], [8, 3, limit]];
+ if (continuationToken) {
+ req.push([11, 2, continuationToken]);
+ }
+ return await this.request(
+ req,
+ "getSquareChatMembers",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareFeatureSet(squareMid) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ ],
+ "getSquareFeatureSet",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareInvitationTicketUrl(mid) {
+ return await this.request(
+ [
+ [11, 2, mid],
+ ],
+ "getInvitationTicketUrl",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async updateSquareChatMember(
+ squareMemberMid,
+ squareChatMid,
+ notificationForMessage = true,
+ notificationForNewMember = true,
+ updatedAttrs = [6],
+ ) {
+ /*
+ - SquareChatMemberAttribute:
+ MEMBERSHIP_STATE(4),
+ NOTIFICATION_MESSAGE(6),
+ NOTIFICATION_NEW_MEMBER(7);
+ */
+ return await this.request(
+ [
+ [14, 2, [8, updatedAttrs]],
+ [
+ 12,
+ 3,
+ [
+ [11, 1, squareMemberMid],
+ [11, 2, squareChatMid],
+ [2, 5, notificationForMessage],
+ [2, 6, notificationForNewMember],
+ ],
+ ],
+ ],
+ "updateSquareChatMember",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async updateSquareMember(
+ updatedAttrs = [],
+ updatedPreferenceAttrs = [],
+ squareMemberMid,
+ squareMid,
+ revision,
+ displayName,
+ membershipState,
+ role,
+ ) {
+ /*
+ SquareMemberAttribute:
+ DISPLAY_NAME(1),
+ PROFILE_IMAGE(2),
+ ABLE_TO_RECEIVE_MESSAGE(3),
+ MEMBERSHIP_STATE(5),
+ ROLE(6),
+ PREFERENCE(7);
+ SquareMembershipState:
+ JOIN_REQUESTED(1),
+ JOINED(2),
+ REJECTED(3),
+ LEFT(4),
+ KICK_OUT(5),
+ BANNED(6),
+ DELETED(7);
+ */
+ const squareMember = [[11, 1, squareMemberMid], [11, 2, squareMid]];
+ if (updatedAttrs.includes(1)) {
+ squareMember.push([11, 3, displayName]);
+ }
+ if (updatedAttrs.includes(5)) {
+ squareMember.push([8, 7, membershipState]);
+ }
+ if (updatedAttrs.includes(6)) {
+ squareMember.push([8, 8, role]);
+ }
+ squareMember.push([10, 9, revision]);
+ return await this.request(
+ [
+ [14, 2, [8, updatedAttrs]],
+ [14, 3, [8, updatedPreferenceAttrs]],
+ [12, 4, squareMember],
+ ],
+ "updateSquareMember",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async kickOutSquareMember(sid, pid) {
+ const UPDATE_PREF_ATTRS = [];
+ const UPDATE_ATTRS = [5];
+ const MEMBERSHIP_STATE = 5;
+ const getSquareMemberResp = this.getSquareMember(pid);
+ const squareMember = getSquareMemberResp[1];
+ const squareMemberRevision = squareMember[9];
+ return await this.updateSquareMember(
+ UPDATE_ATTRS,
+ UPDATE_PREF_ATTRS,
+ pid,
+ sid,
+ squareMemberRevision,
+ undefined,
+ MEMBERSHIP_STATE,
+ );
+ }
+
+ async checkSquareJoinCode(squareMid, code) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ [11, 3, code],
+ ],
+ "checkJoinCode",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async createSquareChatAnnouncement(
+ squareChatMid,
+ messageId,
+ text,
+ senderSquareMemberMid,
+ createdAt,
+ announcementType = 0,
+ ) {
+ return await this.request(
+ [
+ [8, 1, 0],
+ [11, 2, squareChatMid],
+ [
+ 12,
+ 3,
+ [
+ [8, 2, announcementType],
+ [
+ 12,
+ 3,
+ [
+ [
+ 12,
+ 1,
+ [
+ [11, 1, messageId],
+ [11, 2, text],
+ [11, 3, senderSquareMemberMid],
+ [10, 4, createdAt],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ "createSquareChatAnnouncement",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareMember(squareMemberMid) {
+ return await this.request(
+ [
+ [11, 2, squareMemberMid],
+ ],
+ "getSquareMember",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async searchSquareChatMembers(
+ squareChatMid,
+ displayName = "",
+ continuationToken,
+ limit = 20,
+ ) {
+ const req = [
+ [11, 1, squareChatMid],
+ [
+ 12,
+ 2,
+ [
+ [11, 1, displayName],
+ ],
+ ],
+ [8, 4, limit],
+ [11, 3, continuationToken],
+ ];
+ return await this.request(
+ [[12, 1, req]],
+ "searchSquareChatMembers",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareEmid(squareMid) {
+ return await this.request(
+ [[11, 1, squareMid]],
+ "getSquareEmid",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareMembersBySquare(squareMid, squareMemberMids = []) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ [14, 3, [11, squareMemberMids]],
+ ],
+ "getSquareMembersBySquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async manualRepair(syncToken, limit = 100, continuationToken) {
+ return await this.request(
+ [
+ [11, 1, syncToken],
+ [8, 2, limit],
+ [11, 3, continuationToken],
+ ],
+ "manualRepair",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async leaveSquare(squareMid) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ ],
+ "leaveSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async reportSquare(squareMid, reportType, otherReason) {
+ /*
+ ReportType {
+ ADVERTISING = 1;
+ GENDER_HARASSMENT = 2;
+ HARASSMENT = 3;
+ OTHER = 4;
+ }
+ */
+ return await this.parse_request(
+ {
+ squareMid,
+ reportType,
+ otherReason,
+ },
+ "reportSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+ async sendSquareRequestByName(METHOD_NAME, params) {
+ return await this.request(
+ params,
+ METHOD_NAME,
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+ async getSyncToken() {
+ return (await Line.manualRepair(null, 1)).continuationToken;
+ }
+ async squareEvent(handler, syncToken, i, remove = {}) {
+ if (!syncToken) {
+ syncToken = await this.getSyncToken();
+ }
+ const res = await this.fetchMyEvents(syncToken);
+ const _syncToken = res.syncToken;
+ if (syncToken) {
+ res.events.forEach((e) => {
+ handler(e, this);
+ });
+ }
+ let interval = 1000;
+ if (!res.events.length) {
+ interval = 2000;
+ }
+ if (!remove.remove) {
+ setTimeout(() => {
+ this.squareEvent(handler, _syncToken, i, remove);
+ }, i ? i : interval);
+ }
+ return remove;
+ }
+ getSquareEventTarget() {
+ if (this.squareEventTarget && (!this.squareEventTarget.remove.remove)) {
+ return this.squareEventTarget;
+ }
+ const squareEventTarget = new EventTarget();
+ this.squareEventTarget = squareEventTarget;
+ this.parser.def.SquareEventPayload.forEach((e) => {
+ let name = e.name.replace("notified", "")
+ .replace("notification", "");
+ name = name[0].toLowerCase() + name.substring(1);
+ squareEventTarget["on" + name] = null;
+ });
+ squareEventTarget.remove = { remove: false };
+ this.squareEvent(
+ (event) => {
+ let name = Object.keys(event.payload)[0].toString().replace(
+ "notified",
+ "",
+ )
+ .replace("notification", "");
+ name = name[0].toLowerCase() + name.substring(1);
+ const data = event.payload[Object.keys(event.payload)[0]];
+ const squareEvent = new Event(name);
+ objectPlus(squareEvent, data);
+ if (typeof squareEventTarget["on" + name] === "function") {
+ squareEventTarget["on" + name](squareEvent);
+ }
+ squareEventTarget.dispatchEvent(squareEvent);
+ },
+ null,
+ null,
+ squareEventTarget.remove,
+ );
+ return this.squareEventTarget;
+ }
+ async squareChatEvent(handler, mid, syncToken, i, remove = {}) {
+ if (remove.remove) return;
+ const res = await this.fetchSquareChatEvents(mid, syncToken);
+ if (remove.remove) return;
+ const _syncToken = res.syncToken;
+ for (let i = 0; i < res.events.length; i++) {
+ const event = res.events[i];
+ if (remove.remove) return;
+ await handler(event, this, mid);
+ }
+ let interval = 1000;
+ if (!res.events.length) {
+ interval = 2000;
+ }
+ if (!remove.remove) {
+ setTimeout(() => {
+ this.squareChatEvent(handler, mid, _syncToken, i, remove);
+ }, i ? i : interval);
+ }
+ return remove;
+ }
+ squareChatEventTargets = {};
+ getSquareChatEventTarget(mid) {
+ if (this.squareChatEventTargets[mid]) {
+ return this.squareChatEventTargets[mid];
+ }
+ const squareEventTarget = new EventTarget();
+ this.squareChatEventTargets[mid] = squareEventTarget;
+ squareEventTarget.remove = { remove: false };
+ this.parser.def.SquareEventPayload.forEach((e) => {
+ let name = e.name.replace("notified", "")
+ .replace("notification", "");
+ name = name[0].toLowerCase() + name.substring(1);
+ squareEventTarget["on" + name] = null;
+ });
+ this.squareChatEvent(
+ (event) => {
+ let name = Object.keys(event.payload)[0].toString().replace(
+ "notified",
+ "",
+ )
+ .replace("notification", "");
+ name = name[0].toLowerCase() + name.substring(1);
+ const data = event.payload[Object.keys(event.payload)[0]];
+ const squareEvent = new Event(name);
+ objectPlus(squareEvent, data);
+ if (typeof squareEventTarget["on" + name] === "function") {
+ squareEventTarget["on" + name](squareEvent);
+ }
+ squareEventTarget.dispatchEvent(squareEvent);
+ if (name == "receiveMessage" || name == "sendMessage") {
+ const squareEventM = new Event("message");
+ objectPlus(squareEventM, data);
+ if (typeof squareEventTarget["onmessage"] === "function") {
+ squareEventTarget["onmessage"](squareEventM);
+ }
+ }
+ },
+ mid,
+ null,
+ null,
+ squareEventTarget.remove,
+ );
+ return this.squareChatEventTargets[mid];
+ }
+}
+class LINEServise {
+ LINEService_API_PATH = "/S4";
+ LINEService_P_TYPE = 4;
+ async getProfile() {
+ const profile = await this.request(
+ [],
+ "getProfile",
+ this.LINEService_P_TYPE,
+ "Profile",
+ this.LINEService_API_PATH,
+ );
+ this.profile = profile;
+ return profile;
+ }
+}
+class LiffServise {
+ LiffService_API_PATH = "/LIFF1";
+ LiffService_P_TYPE = 4;
+ async issueLiffView(
+ chatMid,
+ liffId = "1562242036-RW04okm",
+ lang = "ja_JP",
+ ) {
+ let context = [12, 1, []];
+ let chatType;
+ if (chatMid) {
+ chat = [11, 1, chatMid];
+ if (chatMid[0] in ["u", "c", "r"]) {
+ chatType = 2;
+ } else {
+ chatType = 3;
+ }
+ context = [12, chatType, [chat]];
+ }
+ return await this.request(
+ [
+ [11, 1, liffId],
+ [12, 2, [
+ context,
+ ]],
+ [11, 3, lang],
+ ],
+ "issueLiffView",
+ this.LiffService_P_TYPE,
+ true,
+ this.LiffService_API_PATH,
+ );
+ }
+}
+class ChannelService {
+ ChannelService_API_PATH = "/CH3";
+ ChannelService_P_TYPE = 3;
+ Channels = {};
+ async approveChannelAndIssueChannelToken(channelId = "1341209850") {
+ const res = await this.direct_request(
+ [[11, 1, channelId]],
+ "approveChannelAndIssueChannelToken",
+ this.ChannelService_P_TYPE,
+ true,
+ this.ChannelService_API_PATH,
+ );
+ this.Channels[channelId] = res;
+ return res;
+ }
+ async getChannelToken(channelId, refresh = false) {
+ if (this.Channels[channelId] && (!refresh)) {
+ return this.Channels[channelId][5];
+ }
+ return (await this.approveChannelAndIssueChannelToken(channelId))[5];
+ }
+}
+class LineMethod {
+ async voom2mid(postId) {
+ const postf = await this.proxyFetchx(
+ "https://gw.line.naver.jp/mh/api/v57/post/get.json?postId=" +
+ postId +
+ "&sourceType=TALKROOM",
+ {
+ method: "GET",
+ headers: {
+ "x-line-bdbtemplateversion": "v1",
+ "x-lsr": "JP",
+ "user-agent": this.thrift.config.ua,
+ "x-line-channeltoken": await this.getChannelToken(
+ "1341209850",
+ ),
+ "accept-encoding": "gzip",
+ "x-line-global-config":
+ "discover.enable=true; follow.enable=true; reboot.phase=scenario",
+ "x-line-mid": this.profile.mid,
+ "content-type": "application/json; charset=UTF-8",
+ "x-line-application": this.thrift.config.appName,
+ "x-lal": "ja_JP",
+ "x-lpv": "1",
+ },
+ },
+ );
+ const info = await postf.json();
+ const resp = {};
+ if (info.message == "success") {
+ resp.postUser = {
+ name: info.result.feed.post.userInfo.nickname,
+ mid: info.result.feed.post.userInfo.mid,
+ };
+ if (info.result.feed.post.comments) {
+ resp.commentUsers = [];
+ for (
+ let i = 0;
+ i < info.result.feed.post.comments.length;
+ i++
+ ) {
+ resp.commentUsers[i] = {
+ name:
+ info.result.feed.post.comments[i].userInfo.nickname,
+ mid: info.result.feed.post.comments[i].userInfo.mid,
+ };
+ }
+ }
+ if (info.result.feed.post.likes) {
+ resp.likeUsers = [];
+ for (let i = 0; i < info.result.feed.post.likes.length; i++) {
+ resp.likeUsers[i] = {
+ name: info.result.feed.post.likes[i].userInfo.nickname,
+ mid: info.result.feed.post.likes[i].userInfo.mid,
+ };
+ }
+ }
+ return resp;
+ }
+ throw new Error(info.message);
+ }
+}
+
+function objectPlus(baseObj, object) {
+ for (const key in object) {
+ if (Object.hasOwnProperty.call(object, key)) {
+ baseObj[key] = object[key];
+ }
+ }
+}
+
+class LineClient extends Classes(
+ LineMethod,
+ ChannelService,
+ SquareServise,
+ LiffServise,
+ LINEServise,
+) {
+ constructor(
+ ) {
+ var target;
+ if (opener) {
+ target = opener;
+ } else if (parent) {
+ target = parent;
+ }
+ super();
+ if (target) {
+ this.thrift = new LineThriftPost(target);
+ } else {
+ throw new Error("No parentWindow");
+ }
+ this.parser = new ThriftRenameParser()
+ }
+ async init(){
+ this.parser.def = await fetch("https://line-selfbot--dev.deno.dev/res/thrift.json").then((r) => r.json())
+ }
+ async request(
+ CHRdata,
+ methodName,
+ protocol_type = 3,
+ parse = true,
+ path = "/S3",
+ headers = {},
+ ) {
+ const res = await this.thrift.postRequestAndGetResponse(
+ [
+ [
+ 12,
+ 1,
+ CHRdata,
+ ],
+ ],
+ methodName,
+ protocol_type,
+ path,
+ headers,
+ );
+ if (res.e) {
+ throw new Error(JSON.stringify(res.e, null, 2), { cause: res.e });
+ }
+ if (this.parser && (parse === true)) {
+ this.parser.rename_data(res);
+ } else if (this.parser && parse) {
+ return this.parser.rename_thrift(parse, res.value);
+ }
+ return res.value;
+ }
+ async direct_request(
+ CHRdata,
+ methodName,
+ protocol_type = 3,
+ parse = true,
+ path = "/S3",
+ headers = {},
+ ) {
+ const res = await this.thrift.postRequestAndGetResponse(
+ CHRdata,
+ methodName,
+ protocol_type,
+ path,
+ headers,
+ );
+ if (res.e) {
+ throw new Error(JSON.stringify(res.e, null, 2), { cause: res.e });
+ }
+ if (this.parser && (parse === true)) {
+ this.parser.rename_data(res);
+ } else if (this.parser && parse) {
+ return this.parser.rename_thrift(parse, res.value);
+ }
+ return res.value;
+ }
+ async parse_request(
+ data,
+ methodName,
+ protocol_type = 3,
+ parse = true,
+ path = "/S3",
+ headers = {},
+ parseName,
+ ) {
+ if (!parseName) {
+ parseName = methodName.substr(0, 1).toUpperCase() +
+ methodName.substr(1) + "Request";
+ }
+ const CHRdata = this.parser.parse_data(parseName, data);
+ return this.request(
+ CHRdata,
+ methodName,
+ protocol_type,
+ parse,
+ path,
+ headers,
+ );
+ }
+ sleep() {
+ this.thrift.closeSocket();
+ }
+ wake() {
+ this.thrift.reOpenSocket();
+ }
+ timeout(f, t, e) {
+ return new Promise((resolve, reject) => {
+ let time = true;
+ f().then((res) => {
+ resolve(res);
+ time = false;
+ });
+ setTimeout(() => {
+ if (time) {
+ reject("Time Out");
+ e();
+ }
+ }, t);
+ });
+ }
+ toJSON() {
+ return {
+ device: this.deviceName,
+ authToken: this.authToken,
+ profile: this.profile,
+ };
+ }
+ toString() {
+ return "LineClient(" + (JSON.stringify({
+ device: this.deviceName,
+ authToken: this.authToken,
+ })) + ")";
+ }
+}
+//export {LineSquareClient,LineTCompactSocket}
+function Classes(...bases) {
+ class Bases {
+ constructor() {
+ bases.forEach((base) => Object.assign(this, new base()));
+ }
+ }
+ bases.forEach((base) => {
+ Object.getOwnPropertyNames(base.prototype)
+ .filter((prop) => prop != "constructor")
+ .forEach((prop) => Bases.prototype[prop] = base.prototype[prop]);
+ });
+ return Bases;
+}
diff --git a/site/js/localforage.min.js b/site/js/localforage.min.js
new file mode 100644
index 0000000..7403f8f
--- /dev/null
+++ b/site/js/localforage.min.js
@@ -0,0 +1,7 @@
+/*!
+ localForage -- Offline Storage, Improved
+ Version 1.10.0
+ https://localforage.github.io/localForage
+ (c) 2013-2017 Mozilla, Apache License 2.0
+*/
+!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.localforage=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c||a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g=43)}}).catch(function(){return!1})}function n(a){return"boolean"==typeof xa?va.resolve(xa):m(a).then(function(a){return xa=a})}function o(a){var b=ya[a.name],c={};c.promise=new va(function(a,b){c.resolve=a,c.reject=b}),b.deferredOperations.push(c),b.dbReady?b.dbReady=b.dbReady.then(function(){return c.promise}):b.dbReady=c.promise}function p(a){var b=ya[a.name],c=b.deferredOperations.pop();if(c)return c.resolve(),c.promise}function q(a,b){var c=ya[a.name],d=c.deferredOperations.pop();if(d)return d.reject(b),d.promise}function r(a,b){return new va(function(c,d){if(ya[a.name]=ya[a.name]||B(),a.db){if(!b)return c(a.db);o(a),a.db.close()}var e=[a.name];b&&e.push(a.version);var f=ua.open.apply(ua,e);b&&(f.onupgradeneeded=function(b){var c=f.result;try{c.createObjectStore(a.storeName),b.oldVersion<=1&&c.createObjectStore(wa)}catch(c){if("ConstraintError"!==c.name)throw c;console.warn('The database "'+a.name+'" has been upgraded from version '+b.oldVersion+" to version "+b.newVersion+', but the storage "'+a.storeName+'" already exists.')}}),f.onerror=function(a){a.preventDefault(),d(f.error)},f.onsuccess=function(){var b=f.result;b.onversionchange=function(a){a.target.close()},c(b),p(a)}})}function s(a){return r(a,!1)}function t(a){return r(a,!0)}function u(a,b){if(!a.db)return!0;var c=!a.db.objectStoreNames.contains(a.storeName),d=a.versiona.db.version;if(d&&(a.version!==b&&console.warn('The database "'+a.name+"\" can't be downgraded from version "+a.db.version+" to version "+a.version+"."),a.version=a.db.version),e||c){if(c){var f=a.db.version+1;f>a.version&&(a.version=f)}return!0}return!1}function v(a){return new va(function(b,c){var d=new FileReader;d.onerror=c,d.onloadend=function(c){var d=btoa(c.target.result||"");b({__local_forage_encoded_blob:!0,data:d,type:a.type})},d.readAsBinaryString(a)})}function w(a){return g([l(atob(a.data))],{type:a.type})}function x(a){return a&&a.__local_forage_encoded_blob}function y(a){var b=this,c=b._initReady().then(function(){var a=ya[b._dbInfo.name];if(a&&a.dbReady)return a.dbReady});return i(c,a,a),c}function z(a){o(a);for(var b=ya[a.name],c=b.forages,d=0;d0&&(!a.db||"InvalidStateError"===e.name||"NotFoundError"===e.name))return va.resolve().then(function(){if(!a.db||"NotFoundError"===e.name&&!a.db.objectStoreNames.contains(a.storeName)&&a.version<=a.db.version)return a.db&&(a.version=a.db.version+1),t(a)}).then(function(){return z(a).then(function(){A(a,b,c,d-1)})}).catch(c);c(e)}}function B(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function C(a){function b(){return va.resolve()}var c=this,d={db:null};if(a)for(var e in a)d[e]=a[e];var f=ya[d.name];f||(f=B(),ya[d.name]=f),f.forages.push(c),c._initReady||(c._initReady=c.ready,c.ready=y);for(var g=[],h=0;h>4,k[i++]=(15&d)<<4|e>>2,k[i++]=(3&e)<<6|63&f;return j}function O(a){var b,c=new Uint8Array(a),d="";for(b=0;b>2],d+=Da[(3&c[b])<<4|c[b+1]>>4],d+=Da[(15&c[b+1])<<2|c[b+2]>>6],d+=Da[63&c[b+2]];return c.length%3==2?d=d.substring(0,d.length-1)+"=":c.length%3==1&&(d=d.substring(0,d.length-2)+"=="),d}function P(a,b){var c="";if(a&&(c=Ua.call(a)),a&&("[object ArrayBuffer]"===c||a.buffer&&"[object ArrayBuffer]"===Ua.call(a.buffer))){var d,e=Ga;a instanceof ArrayBuffer?(d=a,e+=Ia):(d=a.buffer,"[object Int8Array]"===c?e+=Ka:"[object Uint8Array]"===c?e+=La:"[object Uint8ClampedArray]"===c?e+=Ma:"[object Int16Array]"===c?e+=Na:"[object Uint16Array]"===c?e+=Pa:"[object Int32Array]"===c?e+=Oa:"[object Uint32Array]"===c?e+=Qa:"[object Float32Array]"===c?e+=Ra:"[object Float64Array]"===c?e+=Sa:b(new Error("Failed to get type for BinaryArray"))),b(e+O(d))}else if("[object Blob]"===c){var f=new FileReader;f.onload=function(){var c=Ea+a.type+"~"+O(this.result);b(Ga+Ja+c)},f.readAsArrayBuffer(a)}else try{b(JSON.stringify(a))}catch(c){console.error("Couldn't convert value into a JSON string: ",a),b(null,c)}}function Q(a){if(a.substring(0,Ha)!==Ga)return JSON.parse(a);var b,c=a.substring(Ta),d=a.substring(Ha,Ta);if(d===Ja&&Fa.test(c)){var e=c.match(Fa);b=e[1],c=c.substring(e[0].length)}var f=N(c);switch(d){case Ia:return f;case Ja:return g([f],{type:b});case Ka:return new Int8Array(f);case La:return new Uint8Array(f);case Ma:return new Uint8ClampedArray(f);case Na:return new Int16Array(f);case Pa:return new Uint16Array(f);case Oa:return new Int32Array(f);case Qa:return new Uint32Array(f);case Ra:return new Float32Array(f);case Sa:return new Float64Array(f);default:throw new Error("Unkown type: "+d)}}function R(a,b,c,d){a.executeSql("CREATE TABLE IF NOT EXISTS "+b.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],c,d)}function S(a){var b=this,c={db:null};if(a)for(var d in a)c[d]="string"!=typeof a[d]?a[d].toString():a[d];var e=new va(function(a,d){try{c.db=openDatabase(c.name,String(c.version),c.description,c.size)}catch(a){return d(a)}c.db.transaction(function(e){R(e,c,function(){b._dbInfo=c,a()},function(a,b){d(b)})},d)});return c.serializer=Va,e}function T(a,b,c,d,e,f){a.executeSql(c,d,e,function(a,g){g.code===g.SYNTAX_ERR?a.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[b.storeName],function(a,h){h.rows.length?f(a,g):R(a,b,function(){a.executeSql(c,d,e,f)},f)},f):f(a,g)},f)}function U(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT * FROM "+e.storeName+" WHERE key = ? LIMIT 1",[a],function(a,c){var d=c.rows.length?c.rows.item(0).value:null;d&&(d=e.serializer.deserialize(d)),b(d)},function(a,b){d(b)})})}).catch(d)});return h(d,b),d}function V(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT * FROM "+e.storeName,[],function(c,d){for(var f=d.rows,g=f.length,h=0;h0)return void f(W.apply(e,[a,h,c,d-1]));g(b)}})})}).catch(g)});return h(f,c),f}function X(a,b,c){return W.apply(this,[a,b,c,1])}function Y(a,b){var c=this;a=j(a);var d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"DELETE FROM "+e.storeName+" WHERE key = ?",[a],function(){b()},function(a,b){d(b)})})}).catch(d)});return h(d,b),d}function Z(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"DELETE FROM "+d.storeName,[],function(){a()},function(a,b){c(b)})})}).catch(c)});return h(c,a),c}function $(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"SELECT COUNT(key) as c FROM "+d.storeName,[],function(b,c){var d=c.rows.item(0).c;a(d)},function(a,b){c(b)})})}).catch(c)});return h(c,a),c}function _(a,b){var c=this,d=new va(function(b,d){c.ready().then(function(){var e=c._dbInfo;e.db.transaction(function(c){T(c,e,"SELECT key FROM "+e.storeName+" WHERE id = ? LIMIT 1",[a+1],function(a,c){var d=c.rows.length?c.rows.item(0).key:null;b(d)},function(a,b){d(b)})})}).catch(d)});return h(d,b),d}function aa(a){var b=this,c=new va(function(a,c){b.ready().then(function(){var d=b._dbInfo;d.db.transaction(function(b){T(b,d,"SELECT key FROM "+d.storeName,[],function(b,c){for(var d=[],e=0;e '__WebKitDatabaseInfoTable__'",[],function(c,d){for(var e=[],f=0;f0}function ha(a){var b=this,c={};if(a)for(var d in a)c[d]=a[d];return c.keyPrefix=ea(a,b._defaultConfig),ga()?(b._dbInfo=c,c.serializer=Va,va.resolve()):va.reject()}function ia(a){var b=this,c=b.ready().then(function(){for(var a=b._dbInfo.keyPrefix,c=localStorage.length-1;c>=0;c--){var d=localStorage.key(c);0===d.indexOf(a)&&localStorage.removeItem(d)}});return h(c,a),c}function ja(a,b){var c=this;a=j(a);var d=c.ready().then(function(){var b=c._dbInfo,d=localStorage.getItem(b.keyPrefix+a);return d&&(d=b.serializer.deserialize(d)),d});return h(d,b),d}function ka(a,b){var c=this,d=c.ready().then(function(){for(var b=c._dbInfo,d=b.keyPrefix,e=d.length,f=localStorage.length,g=1,h=0;h=0;b--){var c=localStorage.key(b);0===c.indexOf(a)&&localStorage.removeItem(c)}}):va.reject("Invalid arguments"),h(d,b),d}function ra(a,b){a[b]=function(){var c=arguments;return a.ready().then(function(){return a[b].apply(a,c)})}}function sa(){for(var a=1;a div
+//profile
+div(
+ {
+ "class": "profileModal-module__modal__QRrnT ",
+ "role": "dialog",
+ "aria-labelledby": "profile modal",
+ "style": "position: absolute; z-index: 28; left: 40%; top: 40%; height: fit-content; background-color: #fff;"
+ },
+ div(
+ {
+ "class": "profileModal-module__content__qKTEy"
+ },
+ div(
+ {
+ "class": "profileModal-module__info_area__VRAIt"
+ },
+ div(
+ {
+ "class": "profileImage-module__thumbnail_wrap__0bK7m ",
+ "data-mid": "UWFbyqkZaWy8RbxqKUd2J_jPG-YLeoKRlwwlqlGZqnGA",
+ "data-profile-image": "true",
+ "style": "border-radius: 50%;cursor: default;margin: 30% 0 0 0;"
+ },
+ div(
+ {
+ "class": "profileImage-module__thumbnail_area__nqIpB"
+ },
+ span(
+ {
+ "class": "profileImage-module__thumbnail__Q6OsR"
+ },
+ img(
+ {
+ "src": "",
+ "class": "",
+ "loading": "lazy",
+ "alt": "",
+ "draggable": "false"
+ },
+
+ )
+ )
+ )
+ ), div(
+ {
+ "class": "profileModal-module__name_box__vJfbr"
+ },
+ button(
+ {
+ "class": "editButton-module__button_edit__GA02s ",
+ "type": "button",
+ "aria-pressed": "false",
+ "data-ellipsis": "1"
+ },
+ span(
+ {
+ "class": "editButton-module__name__uQ-y5"
+ },
+ pre(
+ {},
+ span(
+ {},
+ "大島 聡太郎"
+ )
+ )
+ ), i(
+ {
+ "class": "icon editButton-module__icon__rQo8u"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M20.0996 19.2397v1.3H3.9176v-1.3h16.182ZM14.9654 3.4603l3.133 3.134-11.063 11.065h-3.135v-3.133l11.065-11.066Z"
+ },
+
+ )
+ )
+ )
+ )
+ ), form(
+ {
+ "class": "editInput-module__edit_box__ygtSs"
+ },
+ label(
+ {
+ "class": "editInput-module__label_text__5j1Nn"
+ },
+ input(
+ {
+ "type": "text",
+ "class": "editInput-module__input_text__X58rV ",
+ "placeholder": "大島 聡太郎",
+ "maxlength": "20",
+ "value": "大島 聡太郎"
+ },
+
+ ), span(
+ {
+ "class": "editInput-module__count__GpSgr"
+ },
+ "(6/20)"
+ )
+ ), button(
+ {
+ "type": "submit",
+ "class": "editInput-module__button_confirm__r46cQ",
+ "aria-label": "confirm button"
+ },
+ i(
+ {
+ "class": "icon editInput-module__icon__UT9Fu"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "m10 18.561-7.707-7.707L3.707 9.44 10 15.732 20.293 5.439l1.414 1.415z"
+ },
+
+ )
+ )
+ )
+ )
+ ), button(
+ {
+ "type": "button",
+ "class": "editInput-module__button_cancel__A7CNA",
+ "aria-label": "cancel button"
+ },
+ i(
+ {
+ "class": "icon editInput-module__icon__UT9Fu"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "m19.008 6.406-1.414-1.414L12 10.586 6.405 4.992 4.991 6.406 10.586 12l-5.595 5.594 1.414 1.415L12 13.414l5.594 5.595 1.414-1.415L13.414 12z"
+ },
+
+ )
+ )
+ )
+ )
+ )
+ )
+ ), div(
+ {
+ "class": "profileModal-module__description_box__Jb6O2"
+ },
+ p(
+ {
+ "class": "profileModal-module__description__hSNDU",
+ "data-tooltip": "87f15f9f-0c36-4796-bf4e-f74d9f10fef5"
+ },
+
+ )
+ )
+ ), div(
+ {
+ "class": "profileModal-module__action_area__gN4d-"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "profileModal-module__button_action__SmB4T",
+ "aria-label": "chat",
+ "data-tooltip": "トーク"
+ },
+ i(
+ {
+ "class": "icon profileModal-module__icon__ryFCf"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M11.9997 3.257c5.156 0 9.35 3.685 9.35 8.215 0 4.53-4.194 8.216-9.35 8.216-1.289 0-2.543-.232-3.732-.69l-2.846 1.657a.6473.6473 0 0 1-.327.088.649.649 0 0 1-.64-.765l.552-3.061c-1.523-1.506-2.357-3.426-2.357-5.445 0-4.53 4.195-8.215 9.35-8.215Zm3.783 7.227c-.546 0-.989.442-.989.988s.443.989.989.989.988-.443.988-.989-.442-.988-.988-.988Zm-3.783 0c-.546 0-.988.442-.988.988s.442.989.988.989.989-.443.989-.989-.443-.988-.989-.988Zm-3.782 0c-.546 0-.989.442-.989.988s.443.989.989.989c.545 0 .988-.443.988-.989s-.443-.988-.988-.988Z"
+ },
+
+ )
+ )
+ )
+ )
+ ), button(
+ {
+ "type": "button",
+ "class": "profileModal-module__button_action__SmB4T",
+ "aria-label": "home",
+ "data-tooltip": "ホーム"
+ },
+ i(
+ {
+ "class": "icon profileModal-module__icon__ryFCf"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "m12.3875 3.927-.001-.001-.386-.297-.387.297c0 .001 0 .001-.001.001L2 11.3194l.775 1.0084 2.4839-1.9103v8.8298c0 .6195.5033 1.1237 1.1228 1.1237h5.1302V16.437h.9772v3.9341h5.1292c.6195 0 1.1228-.5042 1.1228-1.1237v-8.8298l2.484 1.9103L22 11.3194 12.3875 3.927Z"
+ },
+
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+)
+//msgUI
+div(
+ {
+ "style": "position: absolute; z-index: 28; left: 575px; top: 335px;"
+ },
+ div(
+ {
+ "class": "actionPopoverLayout-module__popover_wrap__Eob7j ",
+ "style": "left: auto; opacity: 1; right: 0px;"
+ },
+ ul(
+ {
+ "class": "actionPopoverList-module__action_list__tJDFe"
+ },
+ li(
+ {
+ "class": "actionPopoverListItem-module__action_item__sCl2u"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionPopoverListItem-module__button_action__mHl56",
+ "aria-haspopup": "false",
+ "aria-expanded": "true"
+ },
+ "リプライ"
+ )
+ ), li(
+ {
+ "class": "actionPopoverListItem-module__action_item__sCl2u"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionPopoverListItem-module__button_action__mHl56",
+ "aria-haspopup": "false",
+ "aria-expanded": "true"
+ },
+ "コピー"
+ )
+ ), li(
+ {
+ "class": "actionPopoverListItem-module__action_item__sCl2u"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionPopoverListItem-module__button_action__mHl56",
+ "aria-haspopup": "false",
+ "aria-expanded": "true"
+ },
+ "転送"
+ )
+ )
+ ), ul(
+ {
+ "class": "actionPopoverList-module__action_list__tJDFe"
+ },
+ li(
+ {
+ "class": "actionPopoverListItem-module__action_item__sCl2u"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionPopoverListItem-module__button_action__mHl56",
+ "aria-haspopup": "false",
+ "aria-expanded": "true"
+ },
+ "通報"
+ )
+ )
+ )
+ )
+)
+
+// group :UI
+div(
+ {
+ "style": "position: absolute; z-index: 28; left: 766px; top: 69.4167px;"
+ },
+ div(
+ {
+ "class": "actionPopoverLayout-module__popover_wrap__Eob7j ",
+ "style": "left: auto; opacity: 1; right: 27px;"
+ },
+ ul(
+ {
+ "class": "actionPopoverList-module__action_list__tJDFe"
+ },
+ li(
+ {
+ "class": "actionPopoverListItem-module__action_item__sCl2u"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionPopoverListItem-module__button_action__mHl56",
+ "aria-haspopup": "false",
+ "aria-expanded": "true"
+ },
+ "通知オフ"
+ )
+ )
+ , li(
+ {
+ "class": "actionPopoverListItem-module__action_item__sCl2u"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionPopoverListItem-module__button_action__mHl56",
+ "aria-haspopup": "false",
+ "aria-expanded": "true"
+ },
+ "招待"
+ )
+ )
+ ), ul(
+ {
+ "class": "actionPopoverList-module__action_list__tJDFe"
+ },
+ li(
+ {
+ "class": "actionPopoverListItem-module__action_item__sCl2u"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionPopoverListItem-module__button_action__mHl56",
+ "aria-haspopup": "false",
+ "aria-expanded": "true"
+ },
+ "グループを編集"
+ )
+ ), li(
+ {
+ "class": "actionPopoverListItem-module__action_item__sCl2u"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionPopoverListItem-module__button_action__mHl56",
+ "aria-haspopup": "false",
+ "aria-expanded": "true"
+ },
+ "通報"
+ )
+ ), li(
+ {
+ "class": "actionPopoverListItem-module__action_item__sCl2u"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionPopoverListItem-module__button_action__mHl56",
+ "aria-haspopup": "false",
+ "aria-expanded": "true"
+ },
+ "グループ退会"
+ )
+ )
+ )
+ )
+)
+
diff --git a/site/js/reportUI.js b/site/js/reportUI.js
new file mode 100644
index 0000000..45beac1
--- /dev/null
+++ b/site/js/reportUI.js
@@ -0,0 +1,225 @@
+div(
+ {
+ "id": "root",
+ "style": "min-width: 264px; min-height: 442px;",
+ },
+ div(
+ {
+ "class": "reportPopup-module__popup__gOoi- ",
+ },
+ div(
+ {
+ "class": "reportPopup-module__header__tvDLL",
+ },
+ strong(
+ {
+ "class": "reportPopup-module__title__aWBrs",
+ },
+ "通報",
+ ),
+ ),
+ div(
+ {
+ "class": "reportPopup-module__contents__ym78g",
+ },
+ div(
+ {
+ "class": "reportPopup-module__select_box__330HE",
+ },
+ p(
+ {
+ "class": "reportPopup-module__description__SZQas",
+ },
+ "通報する理由を選択してください",
+ ),
+ ul(
+ {},
+ li(
+ {},
+ div(
+ {
+ "class": "radio-module__radio_wrap__AaS4a",
+ },
+ label(
+ {
+ "class": "radio-module__radio_label__sDfDn",
+ },
+ input(
+ {
+ "type": "radio",
+ "class":
+ "blind radio-module__radio_input__xqGP8 ",
+ "name": "report_reason",
+ "value": "スパム / 宣伝目的",
+ "checked": "",
+ },
+ ),
+ i(
+ {
+ "class": "radio-module__icon__17T16",
+ },
+ ),
+ span(
+ {
+ "class": "radio-module__text__CEMXA",
+ },
+ "スパム / 宣伝目的",
+ ),
+ ),
+ ),
+ ),
+ li(
+ {},
+ div(
+ {
+ "class": "radio-module__radio_wrap__AaS4a",
+ },
+ label(
+ {
+ "class": "radio-module__radio_label__sDfDn",
+ },
+ input(
+ {
+ "type": "radio",
+ "class":
+ "blind radio-module__radio_input__xqGP8 ",
+ "name": "report_reason",
+ "value": "性的いやがらせ / 出会い目的",
+ },
+ ),
+ i(
+ {
+ "class": "radio-module__icon__17T16",
+ },
+ ),
+ span(
+ {
+ "class": "radio-module__text__CEMXA",
+ },
+ "性的いやがらせ / 出会い目的",
+ ),
+ ),
+ ),
+ ),
+ li(
+ {},
+ div(
+ {
+ "class": "radio-module__radio_wrap__AaS4a",
+ },
+ label(
+ {
+ "class": "radio-module__radio_label__sDfDn",
+ },
+ input(
+ {
+ "type": "radio",
+ "class":
+ "blind radio-module__radio_input__xqGP8 ",
+ "name": "report_reason",
+ "value": "迷惑行為",
+ },
+ ),
+ i(
+ {
+ "class": "radio-module__icon__17T16",
+ },
+ ),
+ span(
+ {
+ "class": "radio-module__text__CEMXA",
+ },
+ "迷惑行為",
+ ),
+ ),
+ ),
+ ),
+ li(
+ {},
+ div(
+ {
+ "class": "radio-module__radio_wrap__AaS4a",
+ },
+ label(
+ {
+ "class": "radio-module__radio_label__sDfDn",
+ },
+ input(
+ {
+ "type": "radio",
+ "class":
+ "blind radio-module__radio_input__xqGP8 ",
+ "name": "report_reason",
+ "value": "その他",
+ },
+ ),
+ i(
+ {
+ "class": "radio-module__icon__17T16",
+ },
+ ),
+ span(
+ {
+ "class": "radio-module__text__CEMXA",
+ },
+ "その他",
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ pre(
+ {
+ "class": "reportPopup-module__description__SZQas",
+ },
+ "通報するとLINEに以下の情報が送信され、通報内容の確認・対応や不正利用防止ツールの開発を含む不正利用防止のために利用されます。\nまた、上記目的の達成に必要な範囲で以下の情報を業務委託先に共有することがあります。\n\n■送信される情報:\n最近送受信した10件のトークメッセージ、グループの情報(表示名/グループの画像/あなたをグループに招待したユーザーの情報等)、通報者の情報(表示名/プロフィール画像等)",
+ ),
+ ),
+ div(
+ {
+ "class": "reportPopup-module__footer__8dbYz",
+ },
+ div(
+ {
+ "class": "reportPopup-module__button_group__Aw3yL",
+ },
+ button(
+ {
+ "class":
+ "reportPopup-module__button_cancel__-9EqR button-module__button__NBD6v ",
+ "type": "button",
+ "data-shape": "contained",
+ },
+ span(
+ {
+ "class": "button-module__text__sF0fb",
+ },
+ "キャンセル",
+ ),
+ ),
+ button(
+ {
+ "class":
+ "reportPopup-module__button_confirm__epFlj button-module__button__NBD6v ",
+ "type": "button",
+ "data-shape": "contained",
+ "data-color": "primary",
+ },
+ span(
+ {
+ "class": "button-module__text__sF0fb",
+ },
+ "同意して送信",
+ ),
+ ),
+ ),
+ ),
+ ),
+ ul(
+ {
+ "class": "ToastContainer-module__toast-list__QAniw",
+ "style": "z-index: 100;",
+ },
+ ),
+);
diff --git a/site/js/strint.js b/site/js/strint.js
new file mode 100644
index 0000000..bb2a333
--- /dev/null
+++ b/site/js/strint.js
@@ -0,0 +1 @@
+(()=>{function string_to_utf8_hex_string(text) {var bytes1 = string_to_utf8_bytes(text);var hex_str1 = bytes_to_hex_string(bytes1);return hex_str1;}function string_to_utf8_bytes(text) {var result = [];if (text == null)return result;for (var i = 0; i < text.length; i++) {var c = text.charCodeAt(i);if (c <= 0x7f) {result.push(c);} else if (c <= 0x07ff) {result.push(((c >> 6) & 0x1F) | 0xC0);result.push((c & 0x3F) | 0x80);} else {result.push(((c >> 12) & 0x0F) | 0xE0);result.push(((c >> 6) & 0x3F) | 0x80);result.push((c & 0x3F) | 0x80);}}return result;}function byte_to_hex(byte_num) {var digits = (byte_num).toString(16);if (byte_num < 16) return '0' + digits;return digits;}function bytes_to_hex_string(bytes) {var result = "";for (var i = 0; i < bytes.length; i++) {result += byte_to_hex(bytes[i]);}return result;}function hex_to_byte(hex_str) {return parseInt(hex_str, 16);}function hex_string_to_bytes(hex_str) {var result = [];for (var i = 0; i < hex_str.length; i += 2) {result.push(hex_to_byte(hex_str.substr(i, 2)));}return result;}function enc(str) {let int = BigInt("0x" + string_to_utf8_hex_string(str));int = int * 334n;return base64encode(hex_string_to_bytes(int.toString(16)));}function base64encode(data){return btoa([...data].map(n => String.fromCharCode(n)).join(""));};window.enc=enc})()
\ No newline at end of file
diff --git a/site/js/thrift/LineServises.js b/site/js/thrift/LineServises.js
new file mode 100644
index 0000000..e20a4f1
--- /dev/null
+++ b/site/js/thrift/LineServises.js
@@ -0,0 +1,1017 @@
+class SquareServise {
+ SquareService_API_PATH = "/SQ1";
+ SquareService_P_TYPE = 4;
+ async getJoinedSquares(limit = 50, continuationToken) {
+ return await this.request(
+ [[11, 2, continuationToken], [8, 3, limit]],
+ "getJoinedSquares",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async inviteIntoSquareChat(inviteeMids, squareChatMid) {
+ return await this.request(
+ [[15, 1, [11, inviteeMids]], [11, 2, squareChatMid]],
+ "inviteIntoSquareChat",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async inviteToSquare(squareMid, invitees, squareChatMid) {
+ return await this.request(
+ [[11, 2, squareMid], [15, 3, [11, invitees]], [
+ 11,
+ 4,
+ squareChatMid,
+ ]],
+ "inviteToSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async markAsRead(squareChatMid, messageId) {
+ return await this.request(
+ [[11, 2, squareChatMid], [11, 4, messageId]],
+ "markAsRead",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async reactToMessage(squareChatMid, messageId, reactionType = 2) {
+ /*
+ reactionType
+ ALL = 0,
+ UNDO = 1,
+ NICE = 2,
+ LOVE = 3,
+ FUN = 4,
+ AMAZING = 5,
+ SAD = 6,
+ OMG = 7,
+ */
+ return await this.request(
+ [
+ [8, 1, 0],
+ [11, 2, squareChatMid],
+ [11, 3, messageId],
+ [8, 4, reactionType],
+ ],
+ "reactToMessage",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async findSquareByInvitationTicket(invitationTicket) {
+ return await this.request(
+ [[11, 2, invitationTicket]],
+ "findSquareByInvitationTicket",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async fetchMyEvents(
+ syncToken = undefined,
+ limit = 100,
+ continuationToken = undefined,
+ subscriptionId,
+ ) {
+ return await this.request(
+ [
+ [10, 1, subscriptionId],
+ [11, 2, syncToken],
+ [8, 3, limit],
+ [11, 4, continuationToken],
+ ],
+ "fetchMyEvents",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async fetchSquareChatEvents(
+ squareChatMid,
+ syncToken = undefined,
+ continuationToken = undefined,
+ subscriptionId = 0,
+ limit = 100,
+ ) {
+ return await this.request(
+ [
+ [10, 1, subscriptionId],
+ [11, 2, squareChatMid],
+ [11, 3, syncToken],
+ [8, 4, limit],
+ [8, 5, 1],
+ [8, 6, 1],
+ [11, 7, continuationToken],
+ [8, 8, 1],
+ ],
+ "fetchSquareChatEvents",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async sendSquareMessage(
+ squareChatMid,
+ text = "test Message",
+ contentType = 0,
+ contentMetadata = {},
+ relatedMessageId = undefined,
+ ) {
+ const msg = [
+ [11, 2, squareChatMid],
+ [11, 10, text],
+ [8, 15, contentType],
+ [13, 18, [11, 11, contentMetadata]],
+ ];
+ if (relatedMessageId) {
+ msg.push(
+ [11, 21, relatedMessageId],
+ [8, 22, 3],
+ [8, 24, 2],
+ );
+ }
+ return await this.request(
+ [
+ [8, 1, 0],
+ [11, 2, squareChatMid],
+ [
+ 12,
+ 3,
+ [
+ [12, 1, msg],
+ [8, 3, 4],
+ ],
+ ],
+ ],
+ "sendMessage",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquare(squareMid) {
+ return await this.request(
+ [[11, 2, squareMid]],
+ "getSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+ async getSquareChat(squareChatMid) {
+ return await this.request(
+ [[11, 1, squareChatMid]],
+ "getSquareChat",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+ async getJoinableSquareChats(
+ squareMid,
+ continuationToken = undefined,
+ limit = 100,
+ ) {
+ return await this.request(
+ [[11, 1, squareMid], [11, 10, continuationToken], [8, 11, limit]],
+ "getJoinableSquareChats",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async createSquare(
+ name = "TEST Square",
+ displayName = "Tester",
+ profileImageObsHash =
+ "0h6tJf0hQsaVt3H0eLAsAWDFheczgHd3wTCTx2eApNKSoefHNVGRdwfgxbdgUMLi8MSngnPFMeNmpbLi8MSngnPFMeNmpbLi8MSngnOA",
+ desc = "test with LINE-Deno-Client",
+ searchable = true,
+ SquareJoinMethodType = 0,
+ ) {
+ /*
+ SquareJoinMethodType
+ NONE(0),
+ APPROVAL(1),
+ CODE(2);
+ */
+ return await this.request(
+ [
+ [8, 2, 0],
+ [
+ 12,
+ 2,
+ [
+ [11, 2, name],
+ [11, 4, profileImageObsHash],
+ [11, 5, desc],
+ [2, 6, searchable],
+ [8, 7, 1], // type
+ [8, 8, 1], // categoryId
+ [10, 10, 0], // revision
+ [2, 11, true], // ableToUseInvitationTicket
+ [12, 14, [[8, 1, SquareJoinMethodType]]],
+ [2, 15, false], // adultOnly
+ [15, 16, [11, []]], // svcTags
+ ],
+ ],
+ [
+ 12,
+ 3,
+ [
+ [11, 3, displayName],
+ // [11, 4, profileImageObsHash],
+ [2, 5, true], // ableToReceiveMessage
+ [10, 9, 0], // revision
+ ],
+ ],
+ ],
+ "createSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareChatAnnouncements(squareChatMid) {
+ return await this.request(
+ [[11, 2, squareChatMid]],
+ "getSquareChatAnnouncements",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async updateSquareFeatureSet(
+ updateAttributes = [],
+ squareMid,
+ revision,
+ creatingSecretSquareChat = 0,
+ ) {
+ /*
+ updateAttributes:
+ CREATING_SECRET_SQUARE_CHAT(1),
+ INVITING_INTO_OPEN_SQUARE_CHAT(2),
+ CREATING_SQUARE_CHAT(3),
+ READONLY_DEFAULT_CHAT(4),
+ SHOWING_ADVERTISEMENT(5),
+ DELEGATE_JOIN_TO_PLUG(6),
+ DELEGATE_KICK_OUT_TO_PLUG(7),
+ DISABLE_UPDATE_JOIN_METHOD(8),
+ DISABLE_TRANSFER_ADMIN(9),
+ CREATING_LIVE_TALK(10);
+ */
+ const SquareFeatureSet = [
+ [11, 1, squareMid],
+ [10, 2, revision],
+ ];
+ if (creatingSecretSquareChat) {
+ SquareFeatureSet.push([12, 11, [
+ [8, 1, 1],
+ [8, 2, creatingSecretSquareChat],
+ ]]);
+ }
+ return await this.request(
+ [
+ [14, 2, [8, updateAttributes]],
+ [12, 3, SquareFeatureSet],
+ ],
+ "updateSquareFeatureSet",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async joinSquare(
+ squareMid,
+ displayName,
+ ableToReceiveMessage = false,
+ passCode = undefined,
+ ) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ [
+ 12,
+ 3,
+ [
+ [11, 2, squareMid],
+ [11, 3, displayName],
+ [2, 5, ableToReceiveMessage],
+ [10, 9, 0],
+ ],
+ ],
+ [12, 5, [[12, 2, [[11, 1, passCode]]]]],
+ ],
+ "joinSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async removeSubscriptions(subscriptionIds = []) {
+ return await this.request(
+ [
+ [15, 2, [10, subscriptionIds]],
+ ],
+ "removeSubscriptions",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async unsendSquareMessage(squareChatMid, messageId) {
+ return await this.request(
+ [[11, 2, squareChatMid], [11, 3, messageId]],
+ "unsendMessage",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async createSquareChat(
+ squareChatMid,
+ name,
+ chatImageObsHash,
+ squareChatType = 1,
+ maxMemberCount = 5000,
+ ableToSearchMessage = 1,
+ squareMemberMids = [],
+ ) {
+ /*
+ - SquareChatType:
+ OPEN(1),
+ SECRET(2),
+ ONE_ON_ONE(3),
+ SQUARE_DEFAULT(4);
+ - ableToSearchMessage:
+ NONE(0),
+ OFF(1),
+ ON(2);
+ */
+ return await this.request(
+ [
+ [8, 1, 0],
+ [
+ 12,
+ 2,
+ [
+ [11, 1, squareChatMid],
+ [8, 3, squareChatType],
+ [11, 4, name],
+ [11, 5, chatImageObsHash],
+ [8, 7, maxMemberCount],
+ [8, 11, ableToSearchMessage],
+ ],
+ ],
+ [15, 3, [11, squareMemberMids]],
+ ],
+ "createSquareChat",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareChatMembers(
+ squareChatMid,
+ continuationToken = undefined,
+ limit = 200,
+ ) {
+ const req = [[11, 1, squareChatMid], [8, 3, limit]];
+ if (continuationToken) {
+ req.push([11, 2, continuationToken]);
+ }
+ return await this.request(
+ req,
+ "getSquareChatMembers",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareFeatureSet(squareMid) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ ],
+ "getSquareFeatureSet",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareInvitationTicketUrl(mid) {
+ return await this.request(
+ [
+ [11, 2, mid],
+ ],
+ "getInvitationTicketUrl",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async updateSquareChatMember(
+ squareMemberMid,
+ squareChatMid,
+ notificationForMessage = true,
+ notificationForNewMember = true,
+ updatedAttrs = [6],
+ ) {
+ /*
+ - SquareChatMemberAttribute:
+ MEMBERSHIP_STATE(4),
+ NOTIFICATION_MESSAGE(6),
+ NOTIFICATION_NEW_MEMBER(7);
+ */
+ return await this.request(
+ [
+ [14, 2, [8, updatedAttrs]],
+ [
+ 12,
+ 3,
+ [
+ [11, 1, squareMemberMid],
+ [11, 2, squareChatMid],
+ [2, 5, notificationForMessage],
+ [2, 6, notificationForNewMember],
+ ],
+ ],
+ ],
+ "updateSquareChatMember",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async updateSquareMember(
+ updatedAttrs = [],
+ updatedPreferenceAttrs = [],
+ squareMemberMid,
+ squareMid,
+ revision,
+ displayName,
+ membershipState,
+ role,
+ ) {
+ /*
+ SquareMemberAttribute:
+ DISPLAY_NAME(1),
+ PROFILE_IMAGE(2),
+ ABLE_TO_RECEIVE_MESSAGE(3),
+ MEMBERSHIP_STATE(5),
+ ROLE(6),
+ PREFERENCE(7);
+ SquareMembershipState:
+ JOIN_REQUESTED(1),
+ JOINED(2),
+ REJECTED(3),
+ LEFT(4),
+ KICK_OUT(5),
+ BANNED(6),
+ DELETED(7);
+ */
+ const squareMember = [[11, 1, squareMemberMid], [11, 2, squareMid]];
+ if (updatedAttrs.includes(1)) {
+ squareMember.push([11, 3, displayName]);
+ }
+ if (updatedAttrs.includes(5)) {
+ squareMember.push([8, 7, membershipState]);
+ }
+ if (updatedAttrs.includes(6)) {
+ squareMember.push([8, 8, role]);
+ }
+ squareMember.push([10, 9, revision]);
+ return await this.request(
+ [
+ [14, 2, [8, updatedAttrs]],
+ [14, 3, [8, updatedPreferenceAttrs]],
+ [12, 4, squareMember],
+ ],
+ "updateSquareMember",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async kickOutSquareMember(sid, pid) {
+ const UPDATE_PREF_ATTRS = [];
+ const UPDATE_ATTRS = [5];
+ const MEMBERSHIP_STATE = 5;
+ const getSquareMemberResp = this.getSquareMember(pid);
+ const squareMember = getSquareMemberResp[1];
+ const squareMemberRevision = squareMember[9];
+ return await this.updateSquareMember(
+ UPDATE_ATTRS,
+ UPDATE_PREF_ATTRS,
+ pid,
+ sid,
+ squareMemberRevision,
+ undefined,
+ MEMBERSHIP_STATE,
+ );
+ }
+
+ async checkSquareJoinCode(squareMid, code) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ [11, 3, code],
+ ],
+ "checkJoinCode",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async createSquareChatAnnouncement(
+ squareChatMid,
+ messageId,
+ text,
+ senderSquareMemberMid,
+ createdAt,
+ announcementType = 0,
+ ) {
+ return await this.request(
+ [
+ [8, 1, 0],
+ [11, 2, squareChatMid],
+ [
+ 12,
+ 3,
+ [
+ [8, 2, announcementType],
+ [
+ 12,
+ 3,
+ [
+ [
+ 12,
+ 1,
+ [
+ [11, 1, messageId],
+ [11, 2, text],
+ [11, 3, senderSquareMemberMid],
+ [10, 4, createdAt],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ ],
+ "createSquareChatAnnouncement",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareMember(squareMemberMid) {
+ return await this.request(
+ [
+ [11, 2, squareMemberMid],
+ ],
+ "getSquareMember",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async searchSquareChatMembers(
+ squareChatMid,
+ displayName = "",
+ continuationToken,
+ limit = 20,
+ ) {
+ const req = [
+ [11, 1, squareChatMid],
+ [
+ 12,
+ 2,
+ [
+ [11, 1, displayName],
+ ],
+ ],
+ [8, 4, limit],
+ [11, 3, continuationToken],
+ ];
+ return await this.request(
+ [[12, 1, req]],
+ "searchSquareChatMembers",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareEmid(squareMid) {
+ return await this.request(
+ [[11, 1, squareMid]],
+ "getSquareEmid",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async getSquareMembersBySquare(squareMid, squareMemberMids = []) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ [14, 3, [11, squareMemberMids]],
+ ],
+ "getSquareMembersBySquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async manualRepair(syncToken, limit = 100, continuationToken) {
+ return await this.request(
+ [
+ [11, 1, syncToken],
+ [8, 2, limit],
+ [11, 3, continuationToken],
+ ],
+ "manualRepair",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async leaveSquare(squareMid) {
+ return await this.request(
+ [
+ [11, 2, squareMid],
+ ],
+ "leaveSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+
+ async reportSquare(squareMid, reportType, otherReason) {
+/*
+ ReportType {
+ ADVERTISING = 1;
+ GENDER_HARASSMENT = 2;
+ HARASSMENT = 3;
+ OTHER = 4;
+}
+*/
+ return await this.parse_request(
+ {
+ squareMid,
+ reportType,
+ otherReason,
+ },
+ "reportSquare",
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+ async sendSquareRequestByName(METHOD_NAME, params) {
+ return await this.request(
+ params,
+ METHOD_NAME,
+ this.SquareService_P_TYPE,
+ true,
+ this.SquareService_API_PATH,
+ );
+ }
+ async getSyncToken() {
+ return (await Line.manualRepair(null, 1)).continuationToken;
+ }
+ async squareEvent(handler, syncToken, i, remove = {}) {
+ if (!syncToken) {
+ syncToken = await this.getSyncToken();
+ }
+ const res = await this.fetchMyEvents(syncToken);
+ const _syncToken = res.syncToken;
+ if (syncToken) {
+ res.events.forEach((e) => {
+ handler(e, this);
+ });
+ }
+ let interval = 1000;
+ if (!res.events.length) {
+ interval = 2000;
+ }
+ if (!remove.remove) {
+ setTimeout(() => {
+ this.squareEvent(handler, _syncToken, i, remove);
+ }, i ? i : interval);
+ }
+ return remove;
+ }
+ getSquareEventTarget() {
+ if (this.squareEventTarget && (!this.squareEventTarget.remove.remove)) {
+ return this.squareEventTarget;
+ }
+ const squareEventTarget = new EventTarget();
+ this.squareEventTarget = squareEventTarget;
+ this.parser.def.SquareEventPayload.forEach((e) => {
+ let name = e.name.replace("notified", "")
+ .replace("notification", "");
+ name = name[0].toLowerCase() + name.substring(1);
+ squareEventTarget["on" + name] = null;
+ });
+ squareEventTarget.remove = { remove: false };
+ this.squareEvent(
+ (event) => {
+ let name = Object.keys(event.payload)[0].toString().replace(
+ "notified",
+ "",
+ )
+ .replace("notification", "");
+ name = name[0].toLowerCase() + name.substring(1);
+ const data = event.payload[Object.keys(event.payload)[0]];
+ const squareEvent = new Event(name);
+ objectPlus(squareEvent, data);
+ if (typeof squareEventTarget["on" + name] === "function") {
+ squareEventTarget["on" + name](squareEvent);
+ }
+ squareEventTarget.dispatchEvent(squareEvent);
+ },
+ null,
+ null,
+ squareEventTarget.remove,
+ );
+ return this.squareEventTarget;
+ }
+ async squareChatEvent(handler, mid, syncToken, i, remove = {}) {
+ if (remove.remove) return;
+ const res = await this.fetchSquareChatEvents(mid, syncToken);
+ if (remove.remove) return;
+ const _syncToken = res.syncToken;
+ for (let i = 0; i < res.events.length; i++) {
+ const event = res.events[i];
+ if (remove.remove) return;
+ await handler(event, this, mid);
+ }
+ let interval = 1000;
+ if (!res.events.length) {
+ interval = 2000;
+ }
+ if (!remove.remove) {
+ setTimeout(() => {
+ this.squareChatEvent(handler, mid, _syncToken, i, remove);
+ }, i ? i : interval);
+ }
+ return remove;
+ }
+ squareChatEventTargets = {};
+ getSquareChatEventTarget(mid) {
+ if (this.squareChatEventTargets[mid]) {
+ return this.squareChatEventTargets[mid];
+ }
+ const squareEventTarget = new EventTarget();
+ this.squareChatEventTargets[mid] = squareEventTarget;
+ squareEventTarget.remove = { remove: false };
+ this.parser.def.SquareEventPayload.forEach((e) => {
+ let name = e.name.replace("notified", "")
+ .replace("notification", "");
+ name = name[0].toLowerCase() + name.substring(1);
+ squareEventTarget["on" + name] = null;
+ });
+ this.squareChatEvent(
+ (event) => {
+ let name = Object.keys(event.payload)[0].toString().replace(
+ "notified",
+ "",
+ )
+ .replace("notification", "");
+ name = name[0].toLowerCase() + name.substring(1);
+ const data = event.payload[Object.keys(event.payload)[0]];
+ const squareEvent = new Event(name);
+ objectPlus(squareEvent, data);
+ if (typeof squareEventTarget["on" + name] === "function") {
+ squareEventTarget["on" + name](squareEvent);
+ }
+ squareEventTarget.dispatchEvent(squareEvent);
+ if (name == "receiveMessage" || name == "sendMessage") {
+ const squareEventM = new Event("message");
+ objectPlus(squareEventM, data);
+ if (typeof squareEventTarget["onmessage"] === "function") {
+ squareEventTarget["onmessage"](squareEventM);
+ }
+ }
+ },
+ mid,
+ null,
+ null,
+ squareEventTarget.remove,
+ );
+ return this.squareChatEventTargets[mid];
+ }
+}
+class LINEServise {
+ LINEService_API_PATH = "/S4";
+ LINEService_P_TYPE = 4;
+ async getProfile() {
+ const profile = await this.request(
+ [],
+ "getProfile",
+ this.LINEService_P_TYPE,
+ "Profile",
+ this.LINEService_API_PATH,
+ );
+ this.profile = profile;
+ return profile;
+ }
+}
+class LiffServise {
+ LiffService_API_PATH = "/LIFF1";
+ LiffService_P_TYPE = 4;
+ async issueLiffView(
+ chatMid,
+ liffId = "1562242036-RW04okm",
+ lang = "ja_JP",
+ ) {
+ let context = [12, 1, []];
+ let chatType;
+ if (chatMid) {
+ chat = [11, 1, chatMid];
+ if (chatMid[0] in ["u", "c", "r"]) {
+ chatType = 2;
+ } else {
+ chatType = 3;
+ }
+ context = [12, chatType, [chat]];
+ }
+ return await this.request(
+ [
+ [11, 1, liffId],
+ [12, 2, [
+ context,
+ ]],
+ [11, 3, lang],
+ ],
+ "issueLiffView",
+ this.LiffService_P_TYPE,
+ true,
+ this.LiffService_API_PATH,
+ );
+ }
+}
+class ChannelService {
+ ChannelService_API_PATH = "/CH3";
+ ChannelService_P_TYPE = 3;
+ Channels = {};
+ async approveChannelAndIssueChannelToken(channelId = "1341209850") {
+ const res = await this.direct_request(
+ [[11, 1, channelId]],
+ "approveChannelAndIssueChannelToken",
+ this.ChannelService_P_TYPE,
+ true,
+ this.ChannelService_API_PATH,
+ );
+ this.Channels[channelId] = res;
+ return res;
+ }
+ async getChannelToken(channelId, refresh = false) {
+ if (this.Channels[channelId] && (!refresh)) {
+ return this.Channels[channelId][5];
+ }
+ return (await this.approveChannelAndIssueChannelToken(channelId))[5];
+ }
+}
+class LineMethod {
+ loginMP(email, pw, cert, pincall = (pin) => {
+ alert(`Enter Pincode: ${pin}`);
+ console.log(`Enter Pincode: ${pin}`);
+ }) {
+ return new Promise((resolve, reject) => {
+ if (!cert) {
+ cert = this.getEmailCert(email);
+ }
+ const loginSSE = new EventSource(
+ "/login_mp?" + new URLSearchParams({
+ a: btoa(JSON.stringify({
+ device: this.deviceName,
+ email,
+ pw,
+ cert,
+ })),
+ }).toString(),
+ );
+ loginSSE.addEventListener("pincode", (d) => {
+ pincall(d.data);
+ });
+ loginSSE.addEventListener("loginErr", (d) => {
+ console.log("err", d.data);
+ loginSSE.close();
+ });
+ loginSSE.addEventListener("login", (d) => {
+ const res = JSON.parse(d.data);
+ this.setAuthToken(res[1]);
+ if (res[2]) {
+ this.setEmailCert(res[2], email);
+ }
+ resolve(res);
+ loginSSE.close();
+ });
+ });
+ }
+ getEmailCert(email) {
+ return localStorage.getItem("cert:" + email);
+ }
+ setEmailCert(cert, email) {
+ return localStorage.setItem("cert:" + email, cert);
+ }
+ async voom2mid(postId) {
+ const postf = await this.proxyFetchx(
+ "https://gw.line.naver.jp/mh/api/v57/post/get.json?postId=" + postId +
+ "&sourceType=TALKROOM",
+ {
+ method: "GET",
+ headers: {
+ "x-line-bdbtemplateversion": "v1",
+ "x-lsr": "JP",
+ "user-agent": this.thrift.config.ua,
+ "x-line-channeltoken": await this.getChannelToken("1341209850"),
+ "accept-encoding": "gzip",
+ "x-line-global-config":
+ "discover.enable=true; follow.enable=true; reboot.phase=scenario",
+ "x-line-mid": this.profile.mid,
+ "content-type": "application/json; charset=UTF-8",
+ "x-line-application": this.thrift.config.appName,
+ "x-lal": "ja_JP",
+ "x-lpv": "1",
+ },
+ },
+ );
+ const info = await postf.json();
+ const resp = {};
+ if (info.message == "success") {
+ resp.postUser = {
+ name: info.result.feed.post.userInfo.nickname,
+ mid: info.result.feed.post.userInfo.mid,
+ };
+ if (info.result.feed.post.comments) {
+ resp.commentUsers = [];
+ for (let i = 0; i < info.result.feed.post.comments.length; i++) {
+ resp.commentUsers[i] = {
+ name: info.result.feed.post.comments[i].userInfo.nickname,
+ mid: info.result.feed.post.comments[i].userInfo.mid,
+ };
+ }
+ }
+ if (info.result.feed.post.likes) {
+ resp.likeUsers = [];
+ for (let i = 0; i < info.result.feed.post.likes.length; i++) {
+ resp.likeUsers[i] = {
+ name: info.result.feed.post.likes[i].userInfo.nickname,
+ mid: info.result.feed.post.likes[i].userInfo.mid,
+ };
+ }
+ }
+ return resp;
+ }
+ throw new Error(info.message);
+ }
+}
+
+function objectPlus(baseObj, object) {
+ for (const key in object) {
+ if (Object.hasOwnProperty.call(object, key)) {
+ baseObj[key] = object[key];
+ }
+ }
+}
diff --git a/site/js/thrift/LoginAPI.js b/site/js/thrift/LoginAPI.js
new file mode 100644
index 0000000..94b2a40
--- /dev/null
+++ b/site/js/thrift/LoginAPI.js
@@ -0,0 +1,136 @@
+class PinVerifier {
+ constructor(message) {
+ this.message = message;
+ }
+
+ getRSACrypto(json) {
+ const message = this.message;
+ const rsa = new RSAKey();
+ console.log(rsa)
+ rsa.setPublic(json[2], json[3]);
+ const credentials = rsa.encrypt(message);
+ const keyname = json[1];
+ return { keyname, credentials, message };
+ }
+}
+class LoginAPI {
+ certs = {};
+ async requestEmailLogin(
+ email,
+ pw,
+ pin = (p) => console.log(`Enter Pincode:`, p),
+ e2ee = false,
+ ) {
+ const rsaKey = await this.getRSAKeyInfo();
+ const keynm = rsaKey[1];
+ const nvalue = rsaKey[2];
+ const evalue = rsaKey[3];
+ const sessionKey = rsaKey[4];
+ const message = String.fromCharCode(sessionKey.length) +
+ sessionKey +
+ String.fromCharCode(email.length) +
+ email +
+ String.fromCharCode(pw.length) +
+ pw;
+ const crypto =
+ new PinVerifier(message).getRSACrypto(rsaKey).credentials;
+ let secret;
+ if (e2ee) { //ß
+ secret =
+ "0\x8aEH\x96\xa7\x8d#5<\xfb\x91c\x12\x15\xbd\x13H\xfa\x04d\xcf\x96\xee1e\xa0]v,\x9f\xf2";
+ }
+ const res = await this.loginV2(
+ keynm,
+ crypto,
+ secret,
+ this.device,
+ null, //"0697765bf509fed4ab1de69aae623212bdd1bd875bee9db071e7d413e9d84f90", //this.certs[email],
+ null,
+ "loginZ",
+ );
+ if (res[1]) {
+ this.authToken = res[1];
+ return res;
+ } else {
+ pin(res[4]);
+ const headers = {
+ "Host": "gw.line.naver.jp",
+ "accept": "application/x-thrift",
+ "user-agent": this.ua,
+ "x-line-application": this.type,
+ "x-line-access": res[3],
+ "x-lal": "ja_JP",
+ //'x-le': '18', 'x-lap': '5',
+ "x-lpv": "1",
+ "x-lhm": "GET",
+ //"x-lcs":'0005svgBAiJMiGMJdzBkKqR/78GAZEMOQ6E0p3FJkMBZA/NXe10zfYnVQDufzNaRMEW1nvYJYsLWZaWb4ww7EsebLNXGbuhmyAT2V4Fr3tA23xzvvbOaLjCahQK/4qrha2gC54XuPRbtSFNzALjs3rAyfWyczSnlenV/KFv06iqMmt1v+l3KBQdBkN9uLqGRTXzII0Y/rXtkw1wTYvMZZB7b6KunfzHf9AbFOMCqyveInGhYAetFN9Ly9x3kf2uC2czTSlynvelkYn4qn2VeGmAWOLqZrbQelyh/rRIFPttCILbOrWNEwv71Y7Pa1C0MTGFGlWWQQKlBHj0lcK+kJL13Ww==',
+ "accept-encoding": "gzip",
+ };
+ const verifier = await this.proxyFetch("https://gw.line.naver.jp/Q", headers).then((res) => res.json());
+ const login_res = await this.loginV2(
+ keynm,
+ crypto,
+ secret,
+ this.deviceName,
+ null,
+ verifier.result.verifier,
+ "loginZ",
+ );
+ this.certs[email] = login_res[2];
+ this.authToken = login_res[1];
+ return login_res;
+ }
+ }
+ async loginV2(
+ keynm,
+ encData,
+ secret,
+ deviceName = this.device,
+ cert,
+ verifier,
+ calledName = "loginV2",
+ ) {
+ let loginType = 2;
+ if (!secret) loginType = 0;
+ if (verifier) {
+ loginType = 1;
+ }
+ return await this.direct_request(
+ [
+ [
+ 12,
+ 2,
+ [
+ [8, 1, loginType],
+ [8, 2, 1],
+ [11, 3, keynm],
+ [11, 4, encData],
+ [2, 5, 0],
+ [11, 6, ""],
+ [11, 7, deviceName],
+ [11, 8, cert],
+ [11, 9, verifier],
+ [11, 10, secret],
+ [8, 11, 1],
+ [11, 12, "System Product Name"],
+ ],
+ ],
+ ],
+ calledName,
+ 3,
+ true,
+ "/api/v3p/rs",
+ );
+ }
+ async getRSAKeyInfo(provider = 0) {
+ return await this.request(
+ [
+ [8, 2, provider],
+ ],
+ "getRSAKeyInfo",
+ 3,
+ true,
+ "/api/v3/TalkService.do",
+ );
+ }
+}
diff --git a/site/js/thrift/rename_thrift.js b/site/js/thrift/rename_thrift.js
new file mode 100644
index 0000000..e0307dc
--- /dev/null
+++ b/site/js/thrift/rename_thrift.js
@@ -0,0 +1,239 @@
+import thriftIdl from "./thriftrw-node/thrift-idl.js";
+const TYPE = {
+ STOP: 0,
+ VOID: 1,
+ BOOL: 2,
+ BYTE: 3,
+ I08: 3,
+ DOUBLE: 4,
+ I16: 6,
+ I32: 8,
+ I64: 10,
+ STRING: 11,
+ UTF7: 11,
+ STRUCT: 12,
+ MAP: 13,
+ SET: 14,
+ LIST: 15,
+ UTF8: 16,
+ UTF16: 17,
+};
+function getType(obj) {
+ if (obj.type === "BaseType") {
+ return TYPE[obj.baseType.toUpperCase()];
+ } else if (obj.type === "Identifier") {
+ return obj.name;
+ }
+}
+function isStruct(obj) {
+ return obj && obj.constructor === Array;
+}
+export default class ThriftRenameParser {
+ constructor(input) {
+ this.def = {};
+ if (!input) {
+ return;
+ }
+ this.add_def(input);
+ }
+ add_def(input) {
+ const def = thriftIdl.parse(input);
+ const thrift_def = {};
+ def.definitions.forEach((e) => {
+ if (e.type === "Struct") {
+ const name = e.id.name;
+ const fields_def = [];
+ const fields = e.fields;
+ for (let i = 0; i < fields.length; i++) {
+ const field = fields[i];
+ const field_fid = field.id.value;
+ const field_name = field.name;
+ const field_def = { fid: field_fid, name: field_name };
+ if (field.valueType.type == "Identifier") {
+ field_def.struct = field.valueType.name;
+ } else if (field.valueType.type == "Map") {
+ field_def.map = getType(field.valueType.valueType);
+ } else if (field.valueType.type == "List") {
+ field_def.list = getType(field.valueType.valueType);
+ } else if (field.valueType.type == "Set") {
+ field_def.set = getType(field.valueType.valueType);
+ } else if (field.valueType.baseType) {
+ field_def.type =
+ TYPE[field.valueType.baseType.toUpperCase()];
+ }
+ fields_def.push(field_def);
+ }
+ thrift_def[name] = fields_def;
+ } else if (e.type === "Enum") {
+ const name = e.id.name;
+ const defs_def = {};
+ const defs = e.definitions;
+ for (let i = 0; i < defs.length; i++) {
+ const def = defs[i];
+ defs_def[def.value.value] = def.id.name;
+ }
+ thrift_def[name] = defs_def;
+ }
+ });
+ this.def = { ...this.def, ...thrift_def };
+ }
+ name2fid(struct_name, name) {
+ const struct = this.def[struct_name];
+ if (struct) {
+ const result = struct.findIndex((e) => {
+ return e.name == name;
+ });
+ if (result === -1) {
+ return { name: name, fid: -1 };
+ } else {
+ return struct[result];
+ }
+ } else {
+ return { name: name, fid: -1 };
+ }
+ }
+ fid2name(struct_name, fid) {
+ const struct = this.def[struct_name];
+ if (struct) {
+ const result = struct.findIndex((e) => {
+ return e.fid == fid;
+ });
+ if (result === -1) {
+ return { name: fid, fid: fid };
+ } else {
+ return struct[result];
+ }
+ } else {
+ return { name: fid, fid: fid };
+ }
+ }
+ rename_thrift(struct_name, object) {
+ const newObject = {};
+ for (const fid in object) {
+ const value = object[fid];
+ const finfo = this.fid2name(struct_name, fid);
+ if (finfo.struct) {
+ if (isStruct(this.def[finfo.struct])) {
+ newObject[finfo.name] = this.rename_thrift(
+ finfo.struct,
+ value,
+ );
+ } else {
+ newObject[finfo.name] = this.def[finfo.struct][value] ||
+ value;
+ }
+ } else if (typeof finfo.list === "string") {
+ newObject[finfo.name] = [];
+ value.forEach((e, i) => {
+ newObject[finfo.name][i] = this.rename_thrift(
+ finfo.list,
+ e,
+ );
+ });
+ } else if (typeof finfo.map === "string") {
+ newObject[finfo.name] = {};
+ for (const key in value) {
+ const e = value[key];
+ newObject[finfo.name][key] = this.rename_thrift(
+ finfo.map,
+ e,
+ );
+ }
+ } else if (typeof finfo.set === "string") {
+ newObject[finfo.name] = [];
+ value.forEach((e, i) => {
+ newObject[finfo.name][i] = this.rename_thrift(
+ finfo.set,
+ e,
+ );
+ });
+ } else {
+ newObject[finfo.name] = value;
+ }
+ }
+ return newObject;
+ }
+ rename_data(data) {
+ const name = data._info.fname;
+ const value = data.value;
+ const struct_name = name.substr(0, 1).toUpperCase() + name.substr(1) +
+ "Response";
+ data.value = this.rename_thrift(struct_name, value);
+ return data;
+ }
+ parse_data(struct_name, object) {
+ const newThrift = [];
+ for (const fname in object) {
+ const value = object[fname];
+ const finfo = this.name2fid(struct_name, fname);
+ if (finfo.fid == -1) {
+ continue;
+ }
+ const thisValue = [null, finfo.fid, null];
+ if (finfo.struct) {
+ if (isStruct(this.def[finfo.struct])) {
+ thisValue[2] = this.parse_data(
+ finfo.struct,
+ value,
+ );
+ thisValue[0] = TYPE.STRUCT;
+ } else {
+ if (typeof value === "number") {
+ thisValue[2] = value;
+ thisValue[0] = TYPE.I64;
+ } else {
+ const Enum = this.def[finfo.struct];
+ let i64;
+ for (const k in Enum) {
+ const val = Enum[k];
+ if (val == value) {
+ i64 = Number(k);
+ }
+ }
+ thisValue[2] = i64;
+ thisValue[0] = TYPE.I64;
+ }
+ }
+ } else if (finfo.list) {
+ thisValue[0] = TYPE.LIST;
+ if (typeof finfo.list === "number") {
+ thisValue[2] = [finfo.list, value];
+ } else {
+ thisValue[2] = [
+ TYPE.STRUCT,
+ value.map((e) => this.parse_data(finfo.list, e)),
+ ];
+ }
+ } else if (finfo.map) {
+ thisValue[0] = TYPE.MAP;
+ if (typeof finfo.map === "number") {
+ thisValue[2] = [TYPE.STRING, finfo.map, value];
+ } else {
+ const obj = {};
+ for (const key in value) {
+ const e = value[key];
+ obj[key] = this.parse_data(finfo.map,e)
+ }
+ thisValue[2] = [TYPE.STRING, TYPE.STRUCT, obj];
+ }
+ } else if (finfo.set) {
+ thisValue[0] = TYPE.SET;
+ if (typeof finfo.map === "number") {
+ thisValue[2] = [finfo.map, value];
+ } else {
+ thisValue[2] = [
+ TYPE.STRUCT,
+ value.map((e) => this.parse_data(finfo.map, e)),
+ ];
+ }
+ } else if(finfo.type) {
+ thisValue[0] = finfo.type
+ thisValue[2] = value
+ }
+ newThrift.push(thisValue)
+ }
+ return newThrift;
+ }
+}
+globalThis.thriftIdl = thriftIdl;
+globalThis.ThriftRenameParser = ThriftRenameParser;
diff --git a/site/js/thrift/script.js b/site/js/thrift/script.js
new file mode 100644
index 0000000..2d0a19e
--- /dev/null
+++ b/site/js/thrift/script.js
@@ -0,0 +1,384 @@
+class LineThriftSocket {
+ constructor(authToken, device, resolve, ontokenUpdate,addH) {
+ this.socket = {};
+ this.socketInfo = {};
+ let appVer, sysName, sysVer, UA, appName;
+ sysVer = "12.1.4";
+ switch (device) {
+ case "DESKTOPWIN":
+ appVer = "7.16.1.3000";
+ sysName = "WINDOWS";
+ sysVer = "10.0.0-NT-x64";
+ break;
+ case "DESKTOPMAC":
+ appVer = "7.16.1.3000";
+ sysName = "MAC";
+ break;
+ case "CHROMEOS":
+ appVer = "3.0.3";
+ sysName = "Chrome_OS";
+ sysVer = "1";
+ break;
+ case "ANDROID":
+ appVer = "13.4.1";
+ sysName = "Android OS";
+ break;
+ case "IOS":
+ appVer = "13.3.0";
+ sysName = "iOS";
+ break;
+ case "IOSIPAD":
+ appVer = "13.3.0";
+ sysName = "iOS";
+ break;
+ case "WATCHOS":
+ appVer = "13.3.0";
+ sysName = "Watch OS";
+ break;
+ case "WEAROS":
+ appVer = "13.4.1";
+ sysName = "Wear OS";
+ break;
+ default:
+ throw new Error("deviceName is wrong");
+ break;
+ }
+ appName = device + "\t" + appVer + "\t" + sysName + "\t" + sysVer;
+ UA = "Line/" + appVer;
+ this.config = {
+ ua: UA,
+ appName: appName,
+ };
+ let account = { auth: authToken, ua: UA, type: appName };
+ if (addH) {
+ account["ex"] = JSON.stringify(addH);
+ }
+ this.wsURL = "ws" +
+ location.protocol.replace(":", "").replace("http", "") + "://" +
+ location.host + "/post?" + new URLSearchParams(account).toString();
+ this.socket.post = new WebSocket(this.wsURL);
+ this.socket.post.onopen = (e) => {
+ try {
+ setTimeout(() => resolve(this), 200);
+ } catch (e) {
+ }
+ this.socketInfo.post = { status: "open", waitFunc: {} };
+ };
+ this.socket.post.onclose = (e) => {
+ this.socketInfo.post.status = false;
+ };
+ this.socket.post.onmessage = null;
+ this.socket.post.onclose = (e) => {
+ this.socketInfo.post = { status: false };
+ };
+ this.socket.post.addEventListener("message",(e)=>{
+ const data = JSON.parse(e.data)
+ if (data.event) {
+ ontokenUpdate(data.event)
+ }
+ })
+ }
+ closeSocket() {
+ try {
+ this.socket.post.close();
+ } catch (e) {
+ }
+ }
+ reOpenSocket(resolve) {
+ this.closeSocket();
+ this.socket.post = new WebSocket(this.wsURL);
+ this.socket.post.onopen = (e) => {
+ try {
+ setTimeout(() => resolve(this), 200);
+ } catch (e) {
+ }
+ this.socketInfo.post = { status: "open", waitFunc: {} };
+ };
+ this.socket.post.onclose = (e) => {
+ this.socketInfo.post.status = false;
+ };
+ this.socket.post.onmessage = null;
+ this.socket.post.onclose = (e) => {
+ this.socketInfo.post = { status: false };
+ };
+ }
+ post(data) {
+ return new Promise((resolve, reject) => {
+ data = { arg: data };
+ data.id = Date.now();
+ this.send(
+ this.socket.post,
+ this.socketInfo.post.waitFunc,
+ data,
+ resolve,
+ );
+ });
+ }
+
+ async postParseThrift(data) {
+ let reqJson, resJson;
+ reqJson = data;
+ resJson = await this.post(reqJson);
+ if (resJson.err) {
+ throw new Error("Server Error : " + resJson.err);
+ }
+ return resJson;
+ }
+
+ postRequestAndGetResponse(
+ CHRdata,
+ methodName,
+ protocol_type = 3,
+ path = "/S3",
+ headers = {},
+ ) {
+ return new Promise((resolve, reject) => {
+ const request = [path, CHRdata, methodName, protocol_type, headers];
+ this.postParseThrift(request).then((r) => resolve(r)).catch((e) => {
+ this.reOpenSocket(() => {
+ this.postParseThrift(request).then((r) => resolve(r));
+ });
+ });
+ });
+ }
+ async serverConfig(
+ type,
+ value,
+ ) {
+ const request = ["!CONFIG", type, value];
+ const response = await this.postParseThrift(request);
+ return response;
+ }
+ send(socket, FuncMap, data, returnFunc) {
+ if (socket.readyState === socket.OPEN) {
+ socket.send(JSON.stringify(data));
+ FuncMap[data.id] = (e) => {
+ returnFunc(e);
+ };
+ socket.onmessage = (e) => {
+ let j = JSON.parse(e.data);
+ try {
+ FuncMap[j.id](j);
+ delete FuncMap[j.id];
+ } catch (error) {
+ }
+ };
+ } else throw new Error("socket not open");
+ }
+}
+class LineClient extends Classes(
+ //LoginAPI,
+ LineMethod,
+ ChannelService,
+ SquareServise,
+ LiffServise,
+ LINEServise,
+) {
+ constructor() {
+ super();
+ }
+ async init({
+ authToken,
+ device,
+ email,
+ pw,
+ pincall,
+ noLogin,
+ }) {
+ if (!authToken) {
+ authToken = 0;
+ }
+ this.deviceName = device;
+ await new Promise((resolve, reject) => {
+ this.thrift = new LineThriftSocket(authToken, device, () => {
+ setTimeout(async () => {
+ if (!authToken && !noLogin) {
+ return;
+ }
+ if (!authToken) {
+ return;
+ }
+ this.getProfile().then(() => {
+ resolve();
+ }).catch((e) => {
+ throw new Error(
+ "authTokenが間違っているか期限切れです。もう一度ログインしてください\n" +
+ e,
+ );
+ });
+ }, 200);
+ },(t)=>{
+ this.authToken = t
+ });
+ });
+ this.parser = new ThriftRenameParser();
+ this.parser.def = await fetch("./res/thrift.json").then((r) =>
+ r.json()
+ );
+ this.authToken = authToken;
+ if ((!authToken) && (!noLogin)) {
+ await this.loginMP(email, pw, pincall);
+ }
+ }
+ async setAuthToken(authToken) {
+ this.authToken = authToken;
+ await this.thrift.serverConfig("UPDATE_TOKEN", authToken);
+ await this.getProfile();
+ }
+ async request(
+ CHRdata,
+ methodName,
+ protocol_type = 3,
+ parse = true,
+ path = "/S3",
+ headers = {},
+ ) {
+ const res = await this.thrift.postRequestAndGetResponse(
+ [
+ [
+ 12,
+ 1,
+ CHRdata,
+ ],
+ ],
+ methodName,
+ protocol_type,
+ path,
+ headers,
+ );
+ if (res.e) {
+ throw new Error(JSON.stringify(res.e, null, 2), { cause: res.e });
+ }
+ if (this.parser && (parse === true)) {
+ this.parser.rename_data(res);
+ } else if (this.parser && parse) {
+ return this.parser.rename_thrift(parse, res.value);
+ }
+ return res.value;
+ }
+ async direct_request(
+ CHRdata,
+ methodName,
+ protocol_type = 3,
+ parse = true,
+ path = "/S3",
+ headers = {},
+ ) {
+ const res = await this.thrift.postRequestAndGetResponse(
+ CHRdata,
+ methodName,
+ protocol_type,
+ path,
+ headers,
+ );
+ if (res.e) {
+ throw new Error(JSON.stringify(res.e, null, 2), { cause: res.e });
+ }
+ if (this.parser && (parse === true)) {
+ this.parser.rename_data(res);
+ } else if (this.parser && parse) {
+ return this.parser.rename_thrift(parse, res.value);
+ }
+ return res.value;
+ }
+ async parse_request(
+ data,
+ methodName,
+ protocol_type = 3,
+ parse = true,
+ path = "/S3",
+ headers = {},
+ parseName,
+ ) {
+ if (!parseName) {
+ parseName = methodName.substr(0, 1).toUpperCase() +
+ methodName.substr(1) + "Request";
+ }
+ const CHRdata = this.parser.parse_data(parseName, data);
+ return this.request(
+ CHRdata,
+ methodName,
+ protocol_type,
+ parse,
+ path,
+ headers,
+ );
+ }
+ async proxyFetch(url, headers = {}, method = "GET", body = null) {
+ const requrl = new URL(url);
+ const reqhost = btoa(requrl.protocol + "//" + requrl.host).replace(
+ "=",
+ "",
+ );
+ const reqpath = requrl.pathname + requrl.search;
+ return await fetch(
+ location.origin + "/proxy/" + reqhost + "/path" + reqpath,
+ {
+ headers: headers,
+ method: method,
+ body: body,
+ },
+ );
+ }
+ async proxyFetchx(url, arg) {
+ const requrl = new URL(url);
+ const reqhost = btoa(requrl.protocol + "//" + requrl.host).replace(
+ "=",
+ "",
+ );
+ const reqpath = requrl.pathname + requrl.search;
+ return await fetch(
+ location.origin + "/proxy/" + reqhost + "/path" + reqpath,
+ arg,
+ );
+ }
+ sleep() {
+ this.thrift.closeSocket();
+ }
+ wake() {
+ this.thrift.reOpenSocket();
+ }
+ timeout(f, t, e) {
+ return new Promise((resolve, reject) => {
+ let time = true;
+ f().then((res) => {
+ resolve(res);
+ time = false;
+ });
+ setTimeout(() => {
+ if (time) {
+ reject("Time Out");
+ e();
+ }
+ }, t);
+ });
+ }
+ toJSON() {
+ return {
+ device: this.deviceName,
+ authToken: this.authToken,
+ profile: this.profile,
+ };
+ }
+ toString() {
+ return "LineClient(" + (JSON.stringify({
+ device: this.deviceName,
+ authToken: this.authToken,
+ })) + ")";
+ }
+}
+//export {LineSquareClient,LineTCompactSocket}
+function Classes(...bases) {
+ class Bases {
+ constructor() {
+ bases.forEach((base) => Object.assign(this, new base()));
+ }
+ }
+ bases.forEach((base) => {
+ Object.getOwnPropertyNames(base.prototype)
+ .filter((prop) => prop != "constructor")
+ .forEach((prop) => Bases.prototype[prop] = base.prototype[prop]);
+ });
+ return Bases;
+}
+let Line = {};
diff --git a/site/js/thrift/thriftrw-node/.DS_Store b/site/js/thrift/thriftrw-node/.DS_Store
new file mode 100644
index 0000000..e5c1f4c
Binary files /dev/null and b/site/js/thrift/thriftrw-node/.DS_Store differ
diff --git a/site/thriftrw-node/ast.js b/site/js/thrift/thriftrw-node/ast.js
similarity index 100%
rename from site/thriftrw-node/ast.js
rename to site/js/thrift/thriftrw-node/ast.js
diff --git a/site/thriftrw-node/thrift-idl.js b/site/js/thrift/thriftrw-node/thrift-idl.js
similarity index 99%
rename from site/thriftrw-node/thrift-idl.js
rename to site/js/thrift/thriftrw-node/thrift-idl.js
index e68d87d..ab22881 100644
--- a/site/thriftrw-node/thrift-idl.js
+++ b/site/js/thrift/thriftrw-node/thrift-idl.js
@@ -17,6 +17,7 @@
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
+
import ast from "./ast.js";
export default (function() {
/*
diff --git a/site/js/tmp.js b/site/js/tmp.js
new file mode 100644
index 0000000..09be420
--- /dev/null
+++ b/site/js/tmp.js
@@ -0,0 +1,239 @@
+let eventTemplate = {
+ undefined:{
+ "createdTime": 1712477065625,
+ "payload": {
+ "receiveMessage": {
+ "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
+ "squareMessage": {
+ "message": {
+ "_from": "p2a281f8efd6632add0ffa868a36eac35",
+ "to": "m3df38438ef13539f38b951d58ba30929",
+ "toType": 4,
+ "id": "502722166333374818",
+ "createdTime": 1712477065625,
+ "deliveredTime": 1712477065625,
+ "text": "あ",
+ "contentMetadata": {
+ "NOTIFICATION_DISABLED": "null",
+ "app_extension_type": "null",
+ "PREVIEW_URL_ENABLED": "true",
+ "app_version_code": "140420286"
+ }
+ },
+ "fromType": 5,
+ "squareMessageRevision": 1
+ }
+ }
+ },
+ "syncToken": "CgABAAAAAAAAACAKAAIAAAAAAAAADAoAAwAAAAAAAAAUCgAEAAAAAAAAAAUKAAUAAAAAAAAAAgoABgAAAAAAAAAACgAHAAABjreV9PcMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA="
+ },
+ 1:{
+ "createdTime": 1712476885873,
+ "type": 1,
+ "payload": {
+ "sendMessage": {
+ "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
+ "squareMessage": {
+ "message": {
+ "_from": "p84edcedb2ef04bb3add55b2c0f0101e5",
+ "to": "m3df38438ef13539f38b951d58ba30929",
+ "toType": 4,
+ "id": "502721864997798226",
+ "createdTime": 1712476885873,
+ "deliveredTime": 1712476885873,
+ "text": "あ",
+ "contentMetadata": {
+ "NOTIFICATION_DISABLED": "null",
+ "app_extension_type": "null",
+ "PREVIEW_URL_ENABLED": "true",
+ "app_version_code": "140420286"
+ }
+ },
+ "fromType": 5,
+ "squareMessageRevision": 1
+ },
+ "reqSeq": -1
+ }
+ },
+ "syncToken": "CgABAAAAAAAAABwKAAIAAAAAAAAACwoAAwAAAAAAAAAFCgAEAAAAAAAAAAUKAAUAAAAAAAAAAgoABgAAAAAAAAAACgAHAAABjreTboIMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA="
+ },
+ 2: {
+ "createdTime": 1700778236872,
+ "type": 2,
+ "payload": {
+ "notifiedJoinSquareChat": {
+ "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
+ "joinedMember": {
+ "squareMemberMid": "p5a5132d6ccf8433e2264f9669a3372d1",
+ "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
+ "displayName": "見物",
+ "profileImageObsHash": "0hfp6ASj3sOV8LOCpn1pJGCDRuZHF6XCJaYx1oeCpoY28kCysOZQwhMCs6ZTslC3kMYFZxPiZoZW0gCysJ",
+ "ableToReceiveMessage": true,
+ "membershipState": 7,
+ "role": 2,
+ "revision": 4,
+ "preference": {
+ "favoriteTimestamp": 18446744073709552000,
+ "notiForNewJoinRequest": true
+ }
+ }
+ }
+ },
+ "syncToken": "CgABAAAAAAAAAAEKAAIAAAAAAAAAAAoAAwAAAAAAAAAACgAEAAAAAAAAAAAKAAUAAAAAAAAAAAoABgAAAAAAAAAADAAICAABAAAAAAAMAAkNAAELCgAAAAAACgAKAAAAAAAAAAAA"
+ },
+ 4: {
+ "createdTime": 1712469113807,
+ "type": 4,
+ "payload": {
+ "notifiedLeaveSquareChat": {
+ "squareChatMid": "m877c95891929586ad3e90984db54e746",
+ "squareMemberMid": "p215d008221ac8a21eab6362260949157",
+ "sayGoodbye": true,
+ "squareMember": {
+ "squareMemberMid": "p215d008221ac8a21eab6362260949157",
+ "squareMid": "sf1630c98f02cd380409ee17582d3d03d",
+ "displayName": "長野マン",
+ "ableToReceiveMessage": true,
+ "membershipState": 4,
+ "role": 10,
+ "revision": 2,
+ "preference": {
+ "favoriteTimestamp": 18446744073709552000,
+ "notiForNewJoinRequest": true
+ }
+ }
+ }
+ },
+ "syncToken": "CgABAAAAAAABHR0KAAIAAAAAAAAqyAoAAwAAAAAAAAAACgAEAAAAAAAAAAAKAAUAAAAAAAAAAAoABgAAAAAAABGBDAAICAABAAAAAAAMAAkNAAELCgAAAAAACgAKAAAAAAAAAAAA"
+ },
+ 5: {
+ "createdTime": 0,
+ "type": 5,
+ "payload": {
+ "notifiedDestroyMessage": {
+ "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
+ "messageId": "502717230191215097"
+ }
+ },
+ "syncToken": "CgABAAAAAAAAABEKAAIAAAAAAAAAAQoAAwAAAAAAAAAFCgAEAAAAAAAAAAQKAAUAAAAAAAAAAAoABgAAAAAAAAAACgAHAAABjrdyUkUMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA="
+ },
+ 19:{
+ "createdTime": 1712477801027,
+ "type": 19,
+ "payload": {
+ "notifiedKickoutFromSquare": {
+ "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
+ "kickees": [
+ {
+ "squareMemberMid": "pc26e137584b426f862957ecc28df6eac",
+ "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
+ "displayName": "あ",
+ "ableToReceiveMessage": true,
+ "membershipState": 6,
+ "role": 10,
+ "revision": 2
+ }
+ ],
+ "by": {
+ "squareMemberMid": "p84edcedb2ef04bb3add55b2c0f0101e5",
+ "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
+ "displayName": "test",
+ "profileImageObsHash": "0hkT4bVyeTNHsJGydD1DtLLDZNaVV4fy9-YT5lXCUePh52fyZ-NiksHClIOUl0fiYpMS54Ty1Ma0slKycp",
+ "ableToReceiveMessage": true,
+ "membershipState": 2,
+ "role": 1,
+ "revision": 3
+ }
+ }
+ },
+ "syncToken": "CgABAAAAAAAAACoKAAIAAAAAAAAADAoAAwAAAAAAAAAfCgAEAAAAAAAAAAcKAAUAAAAAAAAAAgoABgAAAAAAAAAACgAHAAABjrehkwAMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA="
+ },
+ 30: {
+ "createdTime": 1712474206555,
+ "type": 30,
+ "payload": {
+ "notifiedUpdateSquareChatProfileName": {
+ "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
+ "editor": {
+ "squareMemberMid": "p84edcedb2ef04bb3add55b2c0f0101e5",
+ "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
+ "displayName": "ででででで",
+ "profileImageObsHash": "0hkT4bVyeTNHsJGydD1DtLLDZNaVV4fy9-YT5lXCUePh52fyZ-NiksHClIOUl0fiYpMS54Ty1Ma0slKycp",
+ "ableToReceiveMessage": true,
+ "membershipState": 2,
+ "role": 1,
+ "revision": 2,
+ "preference": {
+ "favoriteTimestamp": 18446744073709552000,
+ "notiForNewJoinRequest": true
+ }
+ },
+ "updatedChatName": "あい"
+ }
+ },
+ "syncToken": "CgABAAAAAAAAAAsKAAIAAAAAAAAAAAoAAwAAAAAAAAAACgAEAAAAAAAAAAAKAAUAAAAAAAAAAAoABgAAAAAAAAAADAAICAABAAAAAAAMAAkNAAELCgAAAAAACgAKAAAAAAAAAAAA"
+ },
+ 31: {
+ "createdTime": 1712474465001,
+ "type": 31,
+ "payload": {
+ "notifiedUpdateSquareChatProfileImage": {
+ "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
+ "editor": {
+ "squareMemberMid": "p84edcedb2ef04bb3add55b2c0f0101e5",
+ "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
+ "displayName": "ででででで",
+ "profileImageObsHash": "0hkT4bVyeTNHsJGydD1DtLLDZNaVV4fy9-YT5lXCUePh52fyZ-NiksHClIOUl0fiYpMS54Ty1Ma0slKycp",
+ "ableToReceiveMessage": true,
+ "membershipState": 2,
+ "role": 1,
+ "revision": 2,
+ "preference": {
+ "favoriteTimestamp": 18446744073709552000,
+ "notiForNewJoinRequest": true
+ }
+ }
+ }
+ },
+ "syncToken": "CgABAAAAAAAAAAwKAAIAAAAAAAAAAAoAAwAAAAAAAAAFCgAEAAAAAAAAAAQKAAUAAAAAAAAAAAoABgAAAAAAAAAACgAHAAABjrduWW0MAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA="
+ },
+ 41: {//torikeshi
+ "createdTime": 1712476065446,
+ "type": 41,
+ "payload": {
+ "41": {
+ "1": "m3df38438ef13539f38b951d58ba30929",
+ "2": {
+ "1": {
+ "1": "p84edcedb2ef04bb3add55b2c0f0101e5",
+ "2": "m3df38438ef13539f38b951d58ba30929",
+ "3": 4,
+ "4": "502720483964223505",
+ "5": 1712476062685,
+ "6": 1712476062685,
+ "18": {
+ "NOTIFICATION_DISABLED": "null",
+ "app_extension_type": "null",
+ "PREVIEW_URL_ENABLED": "true",
+ "app_version_code": "140420286",
+ "UNSENT": "true"
+ }
+ }
+ },
+ "9": []
+ }
+ }
+ },
+ 49: {//other
+ "createdTime": 1712476483151,
+ "type": 49,
+ "payload": {
+ "47": {
+ "1": "m3df38438ef13539f38b951d58ba30929",
+ "2": "設定が変更されたため、オープンチャットのプロフィールと検索結果に最新メッセージが表示されなくなります。なお、設定が反映されるまで時間がかかる場合があります。"
+ }
+ },
+ "syncToken": "CgABAAAAAAAAABsKAAIAAAAAAAAACwoAAwAAAAAAAAAFCgAEAAAAAAAAAAUKAAUAAAAAAAAAAgoABgAAAAAAAAAACgAHAAABjreKrWQMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA="
+ }
+}
+eventTemplate[1].payload.sendMessage.squareMessage.message
diff --git a/site/tmp/voom.html b/site/js/voom.html
similarity index 100%
rename from site/tmp/voom.html
rename to site/js/voom.html
diff --git a/site/js/voomUI.js b/site/js/voomUI.js
new file mode 100644
index 0000000..5101f06
--- /dev/null
+++ b/site/js/voomUI.js
@@ -0,0 +1,565 @@
+const voom=(elm,data)=>{
+ elm.appendChild(article(
+ {
+ "class": "generalPostLayout_feed_post__9CnYc",
+ "data-mid":data.mid,
+ "data-rmid":data.rmid,
+ "data-id":data.id,
+ },
+ div(
+ {
+ "class": "postHeaderLayout_post_header__jc8wg"
+ },
+ div(
+ {
+ "class": "writerInfoLayout_writer_info_wrap__IV9NI",
+ "$click":(...arg) => { buttonEvent("voom-profile", arg) }
+ },
+ a(
+ {
+ "class": "profileLayout_thumbnail_wrap__tAvs2",
+ },
+ span(
+ {
+ "class": "userProfileThumbnail_thumbnail__PANhF",
+ "style": "width: 100%; height: 100%;"
+ },
+ img(
+ {
+ "src": data.icon,
+ "class": "userProfileThumbnail_image__A5Afu",
+ "width": "64",
+ "height": "64"
+ },
+ )
+ )
+ ), span(
+ {
+ "class": "linkText_text_area__eG4IS"
+ },
+ a(
+ {
+ "class": "linkText_link__pMHBf",
+ },
+ strong(
+ {
+ "class": "linkText_text__QJFNU"
+ },
+ data.name
+ )
+ )
+ )
+ ), div(
+ {
+ "class": "postButtonLayout_post_button_wrap__hbU8V"
+ },
+ div(
+ {
+ "class": "postMenuLayout_post_menu_wrap__LXysY"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "postMenuLayout_button_menu__A5gwf"
+ },
+ i(
+ {
+ "class": "postMenuLayout_icon_menu__SawF4"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "15.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M12 10.5c-.829 0-1.5.671-1.5 1.5s.671 1.5 1.5 1.5 1.5-.671 1.5-1.5-.671-1.5-1.5-1.5Zm0-2.9722c.829 0 1.5-.671 1.5-1.5 0-.828-.671-1.5-1.5-1.5s-1.5.672-1.5 1.5c0 .829.671 1.5 1.5 1.5Zm0 8.9444c-.829 0-1.5.671-1.5 1.5 0 .311.094.599.256.838.054.08.116.155.183.223.272.271.647.439 1.061.439.414 0 .789-.168 1.061-.439.067-.068.129-.143.183-.223.162-.239.256-.527.256-.838 0-.829-.671-1.5-1.5-1.5Z"
+ },
+
+ )
+ )
+ ), span(
+ {
+ "class": "blind"
+ },
+ "Menu"
+ )
+ )
+ )
+ )
+ )
+ ), div(
+ {
+ "class": "postContentLayout_post_content__bYnAD",
+ "style": "--full-viewer-text-bottom: 24px; --full-viewer-inner-height: 54px;"
+ },
+ div(
+ {
+ "class": "viewer_trigger"
+ },
+ div(
+ {},
+ div(
+ {
+ "class": "voomEditor-layout"
+ },
+ div(
+ {},
+ div(
+ {
+ "class": "media_layout type_single"
+ },
+ div(
+ {
+ "class": "media_inner",
+ "style": "padding-top: 100%;"
+ },
+ div(
+ {
+ "role": "button",
+ "tabindex": "0",
+ "class": "media_box_layout"
+ },
+ div(
+ {
+ "class": "media_item type_viewer"
+ },
+ img(
+ {
+ "src": data.img,
+ "class": "media_image",
+ "alt": "",
+ "style": "object-position: 50% 50%;"
+ },
+
+ )
+ )
+ )
+ )
+ )
+ ), div(
+ {
+ "class": "post_text post_text_margin"
+ },
+ div(
+ {
+ "class": "text_layout"
+ },
+ div(
+ {
+ "class": "text_area"
+ },
+ div(
+ {
+ "class": "text_inner"
+ },
+ div(
+ {
+ "class": "text_viewer page_feed"
+ },
+ pre(
+ {},
+ data.text
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ ), section(
+ {
+ "class": "reactionLayout_reaction_group__B1CXz"
+ },
+ div(
+ {
+ "class": "likeButtonLayout_like_button_wrap__qJwig"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "likeButton_button_like__WwN6d",
+ "id": "",
+ "$click":(...arg) => { buttonEvent("voom-like", arg) }
+ },
+ i(
+ {
+ "class": "likeButton_icon___PUSz"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "15.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M8.6233 13.1151a.65.65 0 0 1 .8882.237c.4976.8597 1.4261 1.4359 2.4887 1.4359 1.0626 0 1.9911-.5762 2.4887-1.4359a.65.65 0 0 1 1.1252.6512c-.7206 1.2449-2.0689 2.0847-3.6139 2.0847s-2.8932-.8398-3.6138-2.0847a.65.65 0 0 1 .237-.8882ZM14.7773 9.2964c-.5522 0-1 .4477-1 1s.4478 1 1 1c.5523 0 1-.4477 1-1s-.4477-1-1-1Zm-5.5546 0c-.5523 0-1 .4477-1 1s.4477 1 1 1c.5522 0 1-.4477 1-1s-.4478-1-1-1Z"
+ },
+
+ ), path(
+ {
+ "d": "M12 4.05c-4.3907 0-7.95 3.5593-7.95 7.95 0 4.3907 3.5593 7.95 7.95 7.95 4.3907 0 7.95-3.5593 7.95-7.95 0-4.3907-3.5593-7.95-7.95-7.95ZM2.75 12c0-5.1086 4.1414-9.25 9.25-9.25s9.25 4.1414 9.25 9.25-4.1414 9.25-9.25 9.25S2.75 17.1086 2.75 12Z"
+ },
+
+ )
+ )
+ )
+ ), span(
+ {
+ "class": "blind"
+ },
+ "Like"
+ )
+ )
+ ), button(
+ {
+ "type": "button",
+ "class": "commentButton_button_comment__gjMIk",
+ "id": "",
+ "$click":(...arg) => { buttonEvent("voom-comment", arg) }
+ },
+ i(
+ {
+ "class": "commentButton_icon__2elZ8"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "15.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M5.412 5.412C7.1288 3.695 9.4172 2.75 11.839 2.75s4.7102.945 6.4272 2.662c2.8754 2.8753 3.4863 7.2297 1.5648 10.7585l1.2894 4.136a.65.65 0 0 1-.8108.815l-4.1492-1.2705a9.1125 9.1125 0 0 1-4.332 1.0983c-2.4226 0-4.7002-.9455-6.4166-2.6619C3.6946 16.5701 2.75 14.2816 2.75 11.8497c0-2.4332.9454-4.71 2.6604-6.4363l.0015-.0015Zm.92.9184C4.8575 7.8148 4.05 9.7626 4.05 11.8497c0 2.0886.8087 4.046 2.2812 5.5185 1.4733 1.4734 3.4206 2.2811 5.4973 2.2811 1.3838 0 2.7393-.3703 3.9296-1.063a.6504.6504 0 0 1 .5173-.0598l3.2376.9915-1.0066-3.2289a.6499.6499 0 0 1 .0597-.5221c1.7939-3.0613 1.3074-6.9094-1.219-9.4358-1.4728-1.4728-3.4304-2.2812-5.508-2.2812-2.0773 0-4.0345.8081-5.5072 2.2804Z"
+ },
+
+ ), path(
+ {
+ "d": "M15.5501 11.05c-.5235 0-.95.4265-.95.95 0 .5234.4265.95.95.95.5234 0 .95-.4266.95-.95 0-.5235-.4266-.95-.95-.95Zm-3.5503 0c-.5235 0-.95.4265-.95.95 0 .5234.4265.95.95.95.5234 0 .95-.4266.95-.95 0-.5235-.4169-.95-.95-.95Zm-3.5996 0c-.5235 0-.95.4265-.95.95 0 .5234.4265.95.95.95s.95-.4266.95-.95c0-.5235-.4265-.95-.95-.95Z"
+ },
+
+ )
+ )
+ )
+ ), span(
+ {
+ "class": "commentButton_count__rX03b"
+ },
+ data.comment
+ ), span(
+ {
+ "class": "blind"
+ },
+ "Comment"
+ )
+ ), div(
+ {
+ "class": "shareButton_share_button_wrap__3ksAj"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "shareButton_button_share__a21_m",
+ "id": ""
+ },
+ i(
+ {
+ "class": "shareButton_icon__6Sa8Y"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "15.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M4.4263 19.0055v-7.967h1.3V18.85h12.5461v-7.8115h1.3v7.967c0 .6321-.5124 1.1445-1.1445 1.1445H5.5708c-.6321 0-1.1445-.5124-1.1445-1.1445Zm7.5731-15.4009 4.1008 3.885-.894.9438-3.2068-3.038-3.2069 3.038-.894-.9438 4.1009-3.885Z"
+ },
+
+ ), path(
+ {
+ "d": "m11.3457 14.4995.0071-10 1.3.001-.0071 10-1.3-.001Z"
+ },
+
+ )
+ )
+ )
+ ), span(
+ {
+ "class": "shareButton_count___ItWD"
+ },""
+ ), span(
+ {
+ "class": "blind"
+ },
+ "Share"
+ )
+ )
+ )
+ ), div(
+ {
+ "class": "commentList_comment_list__6XUED"
+ },
+
+ ), div(
+ {
+ "class": "postFooter_post_footer__V0Dfl"
+ },
+ i(
+ {
+ "class": "iconPrivacy_icon_privacy__X1zsb"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "15.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M21.25 12c0-5.1-4.15-9.25-9.25-9.25S2.75 6.9 2.75 12 6.9 21.25 12 21.25h.06c5.07-.04 9.19-4.17 9.19-9.25ZM10.33 4.23c-.03.22-.12.46-.39.53-.43.12-.65.05-.88-.14.41-.16.83-.3 1.27-.39ZM4.05 12c0-.84.14-1.66.38-2.42.31.53.64 1.04.98 1.5.89 1.2 2.09 1.86 3.16 2.43.03.02.07.03.1.04.37.13.74.35 1 .6.04.06.09.1.14.14.12.14.2.27.21.39.02.18.01.36 0 .55-.01.35-.03.75.1 1.16.13.42.39.72.6.96.13.15.25.28.31.42.16.33.24.73.25 1.2 0 .38 0 .68.02.95-4.06-.36-7.25-3.77-7.25-7.91V12Zm10.08 7.65c0-.05.01-.1.02-.11.1-.29.33-.88.34-.92.11-.34.33-.99.49-1.26.08-.14.21-.29.34-.44.2-.22.42-.47.58-.8.2-.42.44-1.47.22-1.96-.36-1.34-1.87-1.61-2.7-1.55 0 0-1.25.07-1.77.09-.33.01-.64.17-.93.31-.05.02-.11.05-.16.08-.13-.25-.33-.57-.82-.95-.21-.16-.41-.25-.58-.32-.2-.09-.26-.12-.3-.18 0-.09.02-.24.03-.29.03-.07.32-.16.45-.19l.1-.03c.17-.05.22-.04.26-.01.74.8 1.68.1 2.04-.17.19-.14.31-.34.34-.57.06-.42-.2-.75-.43-1.05a.6257.6257 0 0 1-.09-.12c.17-.11.42-.22.57-.29.41-.18.76-.33.89-.71.14-.39-.04-.71-.21-.91.42-.43 1.18-1.22.81-2.47-.1-.26-.25-.49-.41-.7 2.39.37 4.43 1.8 5.62 3.8-.08 0-.16.02-.21.03h-.03c-.85.21-1.57.89-1.97 1.65-.4.76-.56 1.78.02 2.63.5.74 1.32 1.04 1.92 1.22.1.03.55.15.94.25l.23.06c-.65 2.84-2.83 5.09-5.61 5.87l.01.01Z"
+ },
+
+ )
+ )
+ ), span(
+ {
+ "class": "blind"
+ },
+ "Public"
+ )
+ ), span(
+ {
+ "class": "postFooter_time__dTT6T",
+ "id": "dateTime"
+ },
+ data.time
+ )
+ ), div(
+ {
+ "class": "commentWriter_comment_writer__KKGfj"
+ },
+ div(
+ {
+ "class": "commentWriter_thumbnail_wrap__Sg3o0"
+ },
+ span(
+ {
+ "class": "userProfileThumbnail_thumbnail__PANhF",
+ "style": "width: 100%; height: 100%;"
+ },
+ img(
+ {
+ "src": "",
+ "class": "userProfileThumbnail_image__A5Afu",
+ "width": "64",
+ "height": "64"
+ },
+ )
+ )
+ ), div(
+ {
+ "class": "commentWriter_writer_wrap__yJMVg"
+ },
+ div(
+ {
+ "class": "commentWriter_writer_area__71gGR"
+ },
+ div(
+ {
+ "class": "voomEditor-layout"
+ },
+ div(
+ {
+ "class": "comment_writer_layout"
+ },
+ div(
+ {
+ "class": "comment_content",
+ "data-name": "comment_content"
+ },
+ div(
+ {
+ "class": "voomEditor-layout"
+ },
+ div(
+ {
+ "class": "post_writer_text_card"
+ },
+ div(
+ {
+ "class": "text_layout animation_0"
+ },
+ div(
+ {
+ "class": "text_area"
+ },
+ div(
+ {
+ "class": "text_inner"
+ },
+ label(
+ {
+ "class": "text_editor"
+ },
+ textarea(
+ {
+ "class": "input_text",
+ "placeholder": "コメントしてみよう",
+ "maxlength": "1000",
+ "data-feedid": "1168769285681398053"
+ },
+
+ ), span(
+ {
+ "class": "label_text",
+ "aria-hidden": "true"
+ },
+ "コメントしてみよう"
+ )
+ ), div(
+ {
+ "class": "text_viewer page_editor"
+ },
+
+ )
+ )
+ )
+ )
+ )
+ )
+ ), div(
+ {
+ "class": "comment_tool_group"
+ },
+ label(
+ {
+ "class": "tool_button",
+ "title": "写真を追加"
+ },
+ input(
+ {
+ "type": "file",
+ "class": "blind",
+ "accept": "image/*"
+ },
+
+ ), i(
+ {
+ "class": "icon_photo"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "15.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M15.5519 8.5134c-.5769 0-1.0446.4678-1.0446 1.0447 0 .577.4677 1.0447 1.0446 1.0447s1.0446-.4677 1.0446-1.0447c0-.5769-.4677-1.0447-1.0446-1.0447ZM8.6929 10.2734l8.5795 8.5796a.6498.6498 0 0 1 0 .9192.6498.6498 0 0 1-.9192 0l-7.6603-7.6604-4.4334 4.4335a.65.65 0 1 1-.9192-.9192l5.3526-5.3527Z"
+ },
+
+ ), path(
+ {
+ "d": "M4.4499 5.3375v13.3251h15.1V5.3375h-15.1Zm-1.3-.15c0-.6353.515-1.15 1.15-1.15h15.4c.635 0 1.15.5147 1.15 1.15v13.6251c0 .6353-.515 1.15-1.15 1.15h-15.4c-.635 0-1.15-.5149-1.15-1.15V5.1875Z"
+ },
+
+ )
+ )
+ )
+ ), span(
+ {
+ "class": "blind"
+ },
+ "photo"
+ )
+ ), button(
+ {
+ "type": "button",
+ "class": "tool_button",
+ "title": "スタンプを追加"
+ },
+ i(
+ {
+ "class": "icon_sticker"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "15.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M8.6233 13.1151a.65.65 0 0 1 .8882.237c.4976.8597 1.4261 1.4359 2.4887 1.4359 1.0626 0 1.9911-.5762 2.4887-1.4359a.65.65 0 0 1 1.1252.6512c-.7206 1.2449-2.0689 2.0847-3.6139 2.0847s-2.8932-.8398-3.6138-2.0847a.65.65 0 0 1 .237-.8882ZM14.7773 9.2964c-.5522 0-1 .4477-1 1s.4478 1 1 1c.5523 0 1-.4477 1-1s-.4477-1-1-1Zm-5.5546 0c-.5523 0-1 .4477-1 1s.4477 1 1 1c.5522 0 1-.4477 1-1s-.4478-1-1-1Z"
+ },
+
+ ), path(
+ {
+ "d": "M12 4.05c-4.3907 0-7.95 3.5593-7.95 7.95 0 4.3907 3.5593 7.95 7.95 7.95 4.3907 0 7.95-3.5593 7.95-7.95 0-4.3907-3.5593-7.95-7.95-7.95ZM2.75 12c0-5.1086 4.1414-9.25 9.25-9.25s9.25 4.1414 9.25 9.25-4.1414 9.25-9.25 9.25S2.75 17.1086 2.75 12Z"
+ },
+
+ )
+ )
+ )
+ ), span(
+ {
+ "class": "blind"
+ },
+ "sticker"
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+))}
\ No newline at end of file
diff --git a/site/js/x3.js b/site/js/x3.js
new file mode 100644
index 0000000..d00ebc5
--- /dev/null
+++ b/site/js/x3.js
@@ -0,0 +1,628 @@
+const INIT_HTML = () => {
+ $("body").in(
+ div(
+ { "style": "display: none;", "id": "hide" },
+ "hidden DIV"
+ ),
+ noscript(
+ {},
+ "You need to enable JavaScript to run this app."
+ ),
+ div(
+ {
+ "id": "root",
+ "$click": () => {
+ document.querySelector("#modal-root").innerHTML = ""
+ }
+ },
+ div(
+ {
+ "class": "app"
+ },
+ div(
+ {
+ "class": "pageLayout-module__wrap__h-oSt"
+ },
+ div(
+ {
+ "class": "gnb-module__gnb__01tnB "
+ },
+ ul(
+ {
+ "class": "gnb-module__nav_list__wRO2S"
+ },
+ li(
+ {
+ "class": "gnb-module__nav_list_item__tbnc4"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "gnb-module__button_action__aTdj7",
+ "aria-label": "Friend",
+ "aria-current": "false",
+ "data-tooltip": "友だち",
+ "$click": (...arg) => { buttonEvent("openProfile", arg) }
+ },
+ i(
+ {
+ "class": "icon gnb-module__icon__RvjKM"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M19.394 16.513s-3.866-2.369-4.816-2.969c-.086-.055-.316-.2-.296-.694.014-.348.151-.712.271-.902.185-.291.395-.702.639-1.183.124-.244.258-.507.404-.782.339-.184.729-.559.866-1.493.078-.531-.07-.945-.223-1.214C16.175 4.555 14.45 2.669 12 2.669c-2.439 0-4.16 1.869-4.236 4.602-.154.269-.304.685-.226 1.22.138.941.535 1.314.866 1.49.145.276.28.54.404.784.244.481.454.892.639 1.183.12.19.257.554.271.902.02.494-.21.639-.297.694-.949.6-4.815 2.969-4.83 2.979a2.7233 2.7233 0 0 0-1.241 2.29v2.518h17.3v-2.518c0-.928-.464-1.784-1.256-2.3"
+ },
+
+ )
+ )
+ )
+ )
+ )
+ ), li(
+ {
+ "class": "gnb-module__nav_list_item__tbnc4"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "gnb-module__button_action__aTdj7",
+ "aria-label": "Chat",
+ "aria-current": "true",
+ "data-tooltip": "トーク",
+ "$click": (...arg) => { buttonEvent("openTalk", arg) }
+ },
+ i(
+ {
+ "class": "icon gnb-module__icon__RvjKM"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M12.1 3.078c5.194 0 8.549 2.979 8.549 7.591 0 4.185-3.405 7.59-7.591 7.59l-2.289.01c-1.346 0-2.132.993-2.555 1.826l-.418.827-.635-.676c-1.423-1.516-3.81-4.616-3.81-8.343 0-5.361 3.434-8.825 8.749-8.825Zm-3.724 7.155a.9.9 0 1 0 .0001 1.8001.9.9 0 0 0-.0001-1.8001Zm3.538 0a.9.9 0 1 0 .0001 1.8001.9.9 0 0 0-.0001-1.8001Zm3.538 0a.9.9 0 1 0 .0001 1.8001.9.9 0 0 0-.0001-1.8001Z"
+ },
+
+ )
+ )
+ )
+ )
+ ), div(
+ {
+ "class": "gnb-module__badge__nU45a badge-module__badge__Eh36I "
+ },
+ "25"
+ )
+ ), li(
+ {
+ "class": "gnb-module__nav_list_item__tbnc4"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "gnb-module__button_action__aTdj7",
+ "aria-label": "Voom",
+ "aria-current": "false",
+ "data-tooltip": "LINE VOOM",
+ "$click": (...arg) => { buttonEvent("openVoom", arg) }
+ },
+ i(
+ {
+ "class": "icon gnb-module__icon__RvjKM"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "7.3"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "m19.088 15.33-9.068 5.149a3.907 3.907 0 0 1-5.86-3.329v-1.62a3.1 3.1 0 0 1 1.579-2.69l4.351-2.47a.728.728 0 0 0 .367-.63.736.736 0 0 0-.149-.44.756.756 0 0 0-.963-.18L5.7 11.19a1.023 1.023 0 0 1-1.54-.87V6.851a3.908 3.908 0 0 1 5.86-3.33l9.068 5.149a3.816 3.816 0 0 1 0 6.66z"
+ },
+
+ )
+ )
+ )
+ )
+ )
+ ), li(
+ {
+ "class": "gnb-module__nav_list_item__tbnc4"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "gnb-module__button_action__aTdj7",
+ "aria-label": "Voom",
+ "aria-current": "false",
+ "data-tooltip": "LINE Openchat",
+ "$click": (...arg) => { buttonEvent("openSquare", arg) }
+ },
+ i(
+ {
+ "class": "icon gnb-module__icon__RvjKM"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "7.3"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M19.7 19.982V9.018c0-2.606-2.163-4.718-4.832-4.718H9.132C6.463 4.3 4.3 6.412 4.3 9.018v5.6c0 2.605 2.163 4.717 4.832 4.717h5.908",
+ "stroke": "#707991",
+ "stroke-width": "3",
+ "style": "color: #202a43;"
+ },
+
+ )
+ )
+ )
+ )
+ )
+ ), li(
+ {
+ "class": "gnb-module__nav_list_item__tbnc4"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "gnb-module__button_action__aTdj7",
+ "aria-label": "Voom",
+ "aria-current": "false",
+ "data-tooltip": "Console",
+ "$click": (...arg) => { buttonEvent("openConsole", arg) }
+ },
+ i(
+ {
+ "class": "icon gg-terminal"
+ },
+
+ )
+ )
+ )
+ ), ul(
+ {
+ "class": "gnb-module__nav_bottom_list__t-ASJ"
+ },
+ li(
+ {
+ "class": "gnb-module__nav_list_item__tbnc4"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "gnb-module__button_action__aTdj7",
+ "aria-label": "Popover more actions",
+ "data-tooltip": "設定",
+ "$click": (...arg) => { buttonEvent("openSettings", arg) }
+ },
+ i(
+ {
+ "class": "icon gnb-module__icon__RvjKM"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M12 10.5c.829 0 1.5.671 1.5 1.5s-.671 1.5-1.5 1.5-1.5-.671-1.5-1.5.671-1.5 1.5-1.5Zm5.9722 0c.828 0 1.5.671 1.5 1.5s-.672 1.5-1.5 1.5c-.829 0-1.5-.671-1.5-1.5s.671-1.5 1.5-1.5Zm-11.9444-.0003c.208 0 .405.042.584.118.18.076.341.186.477.322.272.271.439.646.439 1.06 0 .414-.167.789-.439 1.061-.136.136-.297.245-.477.322-.179.075-.376.117-.584.117-.828 0-1.5-.671-1.5-1.5 0-.828.672-1.5 1.5-1.5Z"
+ },
+
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ , div(
+ {
+ "class": "chatlist-module__tab__xaUJd folderTab-module__tab__YXsQR"
+ },
+ div(
+ {
+ "class": "folderTab-module__tab_list__hjBJ2",
+ "role": "tablist"
+ },
+ button(
+ {
+ "class": "folderTab-module__tab_item__7dbuI",
+ "role": "tab",
+ "data-state": "",
+ "data-folder-id": "ALL",
+ "aria-selected": "false"
+ },
+ span(
+ {
+ "class": "folderTab-module__text__0saah"
+ },
+ "すべて")
+ )
+ , button(
+ {
+ "class": "folderTab-module__tab_item__7dbuI",
+ "role": "tab",
+ "data-state": "",
+ "data-folder-id": "FRIENDS",
+ "aria-selected": "false"
+ },
+ span(
+ {
+ "class": "folderTab-module__text__0saah"
+ },
+ "友だち")
+ )
+ , button(
+ {
+ "class": "folderTab-module__tab_item__7dbuI",
+ "role": "tab",
+ "data-state": "",
+ "data-folder-id": "GROUP",
+ "aria-selected": "true"
+ },
+ span(
+ {
+ "class": "folderTab-module__text__0saah"
+ },
+ "グループ")
+ )
+ )
+ )
+ , div(
+ {
+ "class": "chatlist-module__chatlist_wrap__KtTpq"
+ },
+ div(
+ {
+ "class": "chatlist-module__search_box__enOMX searchInput-module__input_box__vp6NF"
+ },
+ label(
+ {
+ "class": "searchInput-module__label__40CWI"
+ },
+ i(
+ {
+ "class": "icon searchInput-module__icon_search__amOMA"
+ },
+ svg(
+ {
+ "xmlns": "http://www.w3.org/2000/svg",
+ "width": "24",
+ "height": "24",
+ "viewBox": "0 0 24 24"
+ },
+ g(
+ {
+ "fill": "none",
+ "fill-rule": "evenodd"
+ },
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ path(
+ {
+ "d": "M0 0H20V20H0z",
+ "transform": "translate(-261.000000, -95.000000) translate(181.000000, 54.000000) translate(74.000000, 34.000000) translate(6.000000, 7.000000) translate(2.000000, 2.000000)"
+ },
+ )
+ , g(
+ {
+ "stroke": "#B7B7B7",
+ "stroke-width": "1.5",
+ "transform": "translate(-261.000000, -95.000000) translate(181.000000, 54.000000) translate(74.000000, 34.000000) translate(6.000000, 7.000000) translate(2.000000, 2.000000) translate(4.000000, 4.000000)"
+ },
+ circle(
+ {
+ "cx": "4.5",
+ "cy": "4.5",
+ "r": "4.5",
+ "fill-rule": "nonzero"
+ },
+ )
+ , path(
+ {
+ "stroke-linecap": "square",
+ "d": "M8 8L11 11"
+ },
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ , input(
+ {
+ "class": "searchInput-module__input__ekGp7 ",
+ "placeholder": "トークルーム検索",
+ "maxlength": "20",
+ "value": ""
+ },
+ )
+ , button(
+ {
+ "type": "button",
+ "class": "searchInput-module__button_reset__l2-td",
+ "aria-label": "reset"
+ },
+ i(
+ {
+ "class": "icon searchInput-module__icon_reset__bPtuX"
+ },
+ svg(
+ {
+ "xmlns": "http://www.w3.org/2000/svg",
+ "width": "24",
+ "height": "24",
+ "viewBox": "0 0 24 24"
+ },
+ g(
+ {
+ "fill": "none",
+ "fill-rule": "evenodd"
+ },
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ path(
+ {
+ "d": "M0 0H24V24H0z",
+ "transform": "translate(-1216.000000, -227.000000) translate(928.000000, 162.000000) translate(14.000000, 58.000000) translate(274.000000, 7.000000)"
+ },
+ )
+ , path(
+ {
+ "fill": "#C8C8C8",
+ "d": "M12 5c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7 3.134-7 7-7zm2.413 3.5L12 10.912 9.587 8.5 8.5 9.587 10.912 12 8.5 14.413 9.587 15.5 12 13.087l2.413 2.413 1.087-1.087L13.087 12 15.5 9.587 14.413 8.5z",
+ "transform": "translate(-1216.000000, -227.000000) translate(928.000000, 162.000000) translate(14.000000, 58.000000) translate(274.000000, 7.000000)"
+ },
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ )
+ , div(
+ {
+ "class": "chatlist-module__chatlist__qruAE"
+ },
+ div(
+ {
+ "class": "chatlist-module__chatlist_inner__YtvQB",
+ "style": "position: relative; overflow: hidden;"
+ },
+ div(
+ {
+ "style": "position: absolute; width: 100%; height: 100%; overflow: scroll;"
+ },
+ div(
+ {
+ "style": "position: relative; height: auto; width: 100%; overflow: overlay; will-change: transform; direction: ltr;"
+ },
+
+ )
+ )
+ )
+ )
+ , div(
+ {
+ "class": "chatlist-module__create_chat_button__lADKP createChatButton-module__popover_wrap__CxRuU ",
+ "aria-hidden": "false",
+ "data-tooltip": "トークルームを作成"
+ },
+ button(
+ {
+ "type": "button",
+ "class": "createChatButton-module__button_create__-BK-p",
+ "aria-haspopup": "true",
+ "aria-expanded": "false",
+ "aria-labelledby": "create action list popover"
+ },
+ i(
+ {
+ "class": "icon createChatButton-module__icon_create__pLEwQ"
+ },
+ img({ src: "https://static.line-scdn.net/Openchat-Real/edge/img/apng/icon-nav-create.png", alt: "" })
+ )
+ )
+ , div(
+ {
+ "class": "createChatButton-module__popover_content__DG6zk"
+ },
+ ul(
+ {
+ "class": "createChatButton-module__action_list__zZqLv"
+ },
+ li(
+ {
+ "class": "createChatButton-module__action_list_item__I1EVN"
+ },
+ button(
+ {
+ "class": "createChatButton-module__link__1CoG2"
+ },
+ i(
+ {
+ "class": "icon"
+ },
+ svg(
+ {
+ "xmlns": "http://www.w3.org/2000/svg",
+ "width": "18",
+ "height": "18",
+ "viewBox": "0 0 18 18"
+ },
+ path(
+ {
+ "fill": "#303030",
+ "stroke": "#303030",
+ "stroke-width": "0.4",
+ "d": "M9.246 2.218c4.155 0 6.84 2.384 6.84 6.073-.004 3.352-2.72 6.069-6.073 6.072h0l-1.831.008c-.908.049-1.704.619-2.044 1.461h0l-.335.662-.508-.54C4.157 14.74 2.247 12.26 2.247 9.277c0-4.289 2.747-7.06 7-7.06zm0 1.04c-3.731 0-5.96 2.25-5.96 6.02 0 2.299 1.38 4.336 2.31 5.447.577-.864 1.544-1.387 2.583-1.394h0l1.832-.008c2.778-.002 5.031-2.253 5.035-5.032 0-3.104-2.223-5.033-5.8-5.033zm-.148 4.685c.397 0 .72.322.72.72 0 .397-.323.72-.72.72-.398 0-.72-.323-.72-.72 0-.398.322-.72.72-.72zm-2.83 0c.397 0 .72.322.72.72 0 .397-.323.72-.72.72-.399 0-.72-.323-.72-.72 0-.398.321-.72.72-.72zm5.66 0c.398 0 .72.322.72.72 0 .397-.322.72-.72.72-.397 0-.72-.323-.72-.72 0-.398.323-.72.72-.72z"
+ },
+ )
+ )
+ )
+ , span(
+ {
+ "class": "createChatButton-module__text__ji4iL"
+ },
+ "トーク")
+ )
+ )
+ , li(
+ {
+ "class": "createChatButton-module__action_list_item__I1EVN"
+ },
+ button(
+ {
+ "class": "createChatButton-module__link__1CoG2"
+ },
+ i(
+ {
+ "class": "icon"
+ },
+ svg(
+ {
+ "xmlns": "http://www.w3.org/2000/svg",
+ "width": "18",
+ "height": "18",
+ "viewBox": "0 0 18 18"
+ },
+ path(
+ {
+ "fill": "#303030",
+ "stroke": "#303030",
+ "stroke-width": "0.4",
+ "d": "M10.665 2.082c.864.004 1.69.353 2.296.969.605.616.94 1.449.927 2.313.149.267.204.577.158.88-.04.474-.267.913-.63 1.222-.307.566-.528.927-.72 1.231-.112.176-.154.538.017.658.312.218 1.994 1.376 2.964 2.043.575.396.919 1.049.918 1.747h0v2.175h-2.25v-1.04h1.21v-1.135c0-.355-.175-.688-.468-.89-.972-.669-2.657-1.83-2.97-2.048-.616-.51-.745-1.403-.3-2.066.224-.355.437-.709.743-1.279h0l.07-.13.128-.074c.032-.018.195-.133.26-.565.014-.092-.008-.187-.063-.263h0l-.106-.139v-.174c.082-1.134-.7-2.149-1.817-2.358-.21-.384-.48-.733-.797-1.035.142-.023.286-.037.43-.042zm-4.955.44c1.006-.587 2.251-.586 3.257.003 1.005.59 1.614 1.675 1.592 2.84.148.268.203.577.157.879-.04.474-.266.912-.628 1.22-.315.58-.533.937-.722 1.234-.111.175-.153.537.018.657.293.206 1.8 1.242 2.785 1.92h0l.179.123c.575.396.918 1.05.918 1.747h0v2.175H1.405v-2.36c0-.582.286-1.127.765-1.456h0l.203-.14c.977-.673 2.607-1.794 2.914-2.009.17-.12.129-.482.018-.657-.193-.305-.414-.666-.721-1.232-.363-.308-.589-.747-.63-1.221-.046-.304.01-.616.16-.884-.02-1.166.59-2.25 1.596-2.838zm2.787.933c-.703-.439-1.594-.444-2.302-.013S5.083 4.667 5.15 5.493h0v.174l-.105.163c-.055.076-.077.172-.061.265.063.43.226.545.258.563h0l.128.074.07.13c.306.57.519.924.744 1.28.444.663.314 1.555-.3 2.065-.308.215-1.942 1.34-2.92 2.014h0l-.205.14c-.197.136-.314.36-.314.599h0v1.32h9.78v-1.135c0-.355-.174-.688-.466-.89h0l-.18-.123c-.988-.68-2.498-1.72-2.791-1.925-.623-.506-.753-1.404-.301-2.065.19-.3.412-.663.744-1.28h0l.07-.129.126-.074c.16-.145.254-.35.26-.565.016-.093-.007-.188-.062-.264h0L9.52 5.69v-.174c.076-.826-.32-1.623-1.023-2.062z"
+ },
+ )
+ )
+ )
+ , span(
+ {
+ "class": "createChatButton-module__text__ji4iL"
+ },
+ "グループ")
+ )
+ )
+ )
+ )
+ )
+ ),
+ div({})
+ , div(
+ {
+ "class": "notificationStateToast-module__notification_toast__b7WP7 ",
+ "data-visible": "false"
+ },
+ i(
+ {
+ "class": "icon notificationStateToast-module__icon__hvseN"
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "7.0"
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)"
+ },
+ path(
+ {
+ "d": "M13.38 3.18 8.376 7.845H2.66a.65.65 0 0 0-.66.639v7.032l.006.094a.654.654 0 0 0 .654.545l5.716-.001 5.004 4.666c.419.391 1.119.103 1.119-.46V3.64c0-.563-.699-.851-1.119-.46zm-.203 1.965v13.711l-4.076-3.8-.078-.063a.68.68 0 0 0-.38-.117H3.319V9.124h5.324c.17 0 .333-.064.458-.179l4.076-3.8zm4.569 3.943a4.185 4.185 0 0 0-.725-.57l-.702 1.09.175.118A2.793 2.793 0 0 1 16.818 14c-.153.15-.32.281-.498.392l.701 1.09.192-.127c.19-.133.368-.28.533-.443a4.068 4.068 0 0 0 0-5.824zM18.638 6c.45.28.87.61 1.248.983h.002a7.008 7.008 0 0 1 0 10.034c-.306.3-.635.57-.984.809L18.64 18l-.704-1.09c.37-.23.712-.5 1.023-.805a5.735 5.735 0 0 0 0-8.21 5.874 5.874 0 0 0-.753-.626l-.27-.179.701-1.09z"
+ },
+ )
+ )
+ )
+ )
+ , span(
+ {
+ "class": "notificationStateToast-module__text__PGuSE"
+ },
+ )
+ )
+ )
+ , ul(
+ {
+ "class": "ToastContainer-module__toast-list__QAniw",
+ "style": "z-index: 100;"
+ },
+ )
+ )
+ )
+ , div(
+ {
+ "id": "modal-root"
+ },
+ ))
+}
\ No newline at end of file
diff --git a/site/js/xUI.js b/site/js/xUI.js
new file mode 100644
index 0000000..7a93cda
--- /dev/null
+++ b/site/js/xUI.js
@@ -0,0 +1,3020 @@
+// deno-lint-ignore-file no-window
+
+if (localStorage.getItem("auth")) {
+ document.getElementById("auth").value = localStorage.getItem("auth");
+}
+if (localStorage.getItem("device")) {
+ document.getElementById("device").value = localStorage.getItem("device");
+}
+function runnnn() {
+ window.Line = new LineSquareClient(
+ document.getElementById("auth").value,
+ document.getElementById("device").value,
+ () => {
+ setTimeout(async () => {
+ let rooms = await UserCashe.getItem(Line.mid + ":chatsList");
+ if (!rooms) {
+ rooms = await Line.getJoinedSquareChats();
+ await buildChatButton(rooms);
+ } else {
+ await buildChatButtonC(rooms);
+ }
+ }, 200);
+ },
+ );
+ localStorage.setItem("auth", document.getElementById("auth").value);
+ localStorage.setItem("device", document.getElementById("device").value);
+ runLINE();
+}
+window.version = "β 0.0.1";
+window.versionCode = 1;
+var chatData = { //チャットリストのデータを入れる
+ chatList: [],
+};
+const blobUrl = {};
+function createObjectURL(prot, blob) {
+ if (blobUrl[prot]) {
+ return blobUrl[prot];
+ }
+ blobUrl[prot] = URL.createObjectURL(blob);
+ return blobUrl[prot];
+}
+async function updateChat() {
+ if (roomData.roomMid) {
+ let isLate = false;
+ let data = await Line.timeout(
+ () =>
+ Line.fetchSquareChatEvents(
+ roomData.roomMid,
+ roomData.syncToken,
+ ),
+ 2100,
+ );
+ if (!data) {
+ setTimeout(() => {
+ isTooLate = true;
+ updateChat();
+ }, 2000);
+ return;
+ }
+ if (isLate) {
+ return;
+ }
+ if (data.syncToken && !Number(data.syncToken)) {
+ roomData.syncToken = data.syncToken;
+ } else if (!data.syncToken) {
+ console.log(data.events)
+ roomData.syncToken = data.events[data.events.length - 1].syncToken;
+ }
+
+ let events = [];
+ let reading = [];
+ for (let i = 0; i < data.events.length; i++) {
+ const e = data.events[i];
+ if (
+ e.type == 1 || e.type == undefined || e.type == 2 ||
+ e.type == 4 || e.type == 5 || e.type == 30 || e.type == 31 ||
+ e.type == 41 || e.type == 49 || e.type == 6
+ ) {
+ events.push(e);
+ } else if (e.type == 7) {
+ await refreshProfile(
+ e.payload.notifiedUpdateSquareMemberProfile.squareMember
+ .squareMemberMid,
+ );
+ }
+ }
+ if (roomData.syncToken) {
+ let readingTxt = "浮上中: ";
+ reading.forEach((e) => {
+ readingTxt += e.name + " ";
+ });
+ genNewMessage({
+ text: readingTxt,
+ by: "",
+ call: () => {
+ notify(readingTxt, "#fff", "#333");
+ },
+ });
+ }
+ await append2Talk(
+ events,
+ roomData.roomMid,
+ roomData.setting.viewMkRead,
+ );
+ setTimeout(() => {
+ isLate = true;
+ updateChat();
+ }, 2000);
+ } else {
+ }
+}
+
+async function initTalk(mid) {
+ let res = await Line.timeout(() => Line.fetchSquareChatEvents(mid), 2100);
+ roomData.syncToken = res.syncToken;
+ await append2Talk(res.events, mid, false);
+}
+
+async function append2Talk(events, mid, withEvent) {
+ let htmls = [];
+ for (let index = 0; index < events.length; index++) {
+ const e = events[index];
+ if (e.type == undefined && e.payload) {
+ roomData.messageView.dataList.push(
+ e.payload.receiveMessage.squareMessage.message,
+ );
+ htmls.push(
+ (await Message2Elm(
+ e.payload.receiveMessage.squareMessage.message,
+ ))[0],
+ );
+ } else if (e.type == 1) {
+ roomData.messageView.dataList.push(
+ e.payload.sendMessage.squareMessage.message,
+ );
+ htmls.push(
+ (await Message2Elm(
+ e.payload.sendMessage.squareMessage.message,
+ ))[0],
+ );
+ } else if (e.type == 2) {
+ let date = new Date(e.createdTime);
+ date = date.getMonth() + 1 + "/" + date.getDate() + " " +
+ date.toLocaleTimeString().substring(0, 5);
+ htmls.push(genSysMsg({
+ event: {
+ timeStr: date,
+ arg: e.payload,
+ text: (await getProfile(
+ e.payload.notifiedJoinSquareChat.joinedMember
+ .squareMemberMid,
+ )).name + " がトークに参加しました",
+ },
+ }));
+ } else if (e.type == 4) {
+ let date = new Date(e.createdTime);
+ date = date.getMonth() + 1 + "/" + date.getDate() + " " +
+ date.toLocaleTimeString().substring(0, 5);
+ htmls.push(genSysMsg({
+ event: {
+ timeStr: date,
+ arg: e.payload,
+ text: (await getProfile(
+ e.payload.notifiedLeaveSquareChat.squareMember
+ .squareMemberMid,
+ )).name + " がトークを退出しました",
+ },
+ }));
+ } else if (e.type == 5) {
+ htmls.push(genSysMsg({
+ event: {
+ timeStr: "",
+ onclick: async () => {
+ let res = await getMsgById(
+ e.payload.notifiedDestroyMessage.messageId,
+ true,
+ );
+ if (res) {
+ res.scrollIntoView();
+ res.focus();
+ }
+ },
+ text: "メッセージが削除されました",
+ },
+ }));
+ } else if (e.type == 6 && withEvent) {
+ htmls.push(genSysMsg({
+ event: {
+ timeStr: "",
+ arg: e.payload,
+ text: (await getProfile(
+ e.payload.notifiedMarkAsRead.sMemberMid,
+ )).name + "が既読しました",
+ },
+ }));
+ } else if (e.type == 19) {
+ let date = new Date(e.createdTime);
+ date = date.getMonth() + 1 + "/" + date.getDate() + " " +
+ date.toLocaleTimeString().substring(0, 5);
+ htmls.push(genSysMsg({
+ event: {
+ timeStr: date,
+ arg: e.payload,
+ text: (await getProfile(
+ e.payload.notifiedKickoutFromSquare.by
+ .squareMemberMid,
+ )).name + " が " +
+ e.payload.notifiedKickoutFromSquare.kickees[0]
+ .displayName +
+ " をこのトークから強制退会させました",
+ },
+ }));
+ } else if (e.type == 30) {
+ let date = new Date(e.createdTime);
+ date = date.getMonth() + 1 + "/" + date.getDate() + " " +
+ date.toLocaleTimeString().substring(0, 5);
+ htmls.push(genSysMsg({
+ event: {
+ timeStr: date,
+ arg: e.payload,
+ text: (await getProfile(
+ e.payload.notifiedUpdateSquareChatProfileName.editor
+ .squareMemberMid,
+ )).name + "がこのトークの名前を " +
+ e.payload.notifiedUpdateSquareChatProfileName
+ .updatedChatName +
+ " に変更しました",
+ },
+ }));
+ } else if (e.type == 31) {
+ let date = new Date(e.createdTime);
+ date = date.getMonth() + 1 + "/" + date.getDate() + " " +
+ date.toLocaleTimeString().substring(0, 5);
+ htmls.push(genSysMsg({
+ event: {
+ timeStr: date,
+ arg: e.payload,
+ text: (await getProfile(
+ e.payload.notifiedUpdateSquareChatProfileImage
+ .editor.squareMemberMid,
+ )).name + "がこのトークの背景画像を変更しました",
+ },
+ }));
+ } else if (e.type == 41) {
+ let date = new Date(e.createdTime);
+ date = date.getMonth() + 1 + "/" + date.getDate() + " " +
+ date.toLocaleTimeString().substring(0, 5);
+ htmls.push(genSysMsg({
+ event: {
+ timeStr: date,
+ onclick: async () => {
+ let res = await getMsgById(
+ e.payload[41][2][1][4],
+ true,
+ );
+ if (res) {
+ res.scrollIntoView();
+ res.focus();
+ }
+ },
+ text: "メッセージが送信取り消しされました",
+ },
+ }));
+ } else if (e.type == 49) {
+ let date = new Date(e.createdTime);
+ date = date.getMonth() + 1 + "/" + date.getDate() + " " +
+ date.toLocaleTimeString().substring(0, 5);
+ htmls.push(genSysMsg({
+ event: {
+ timeStr: date,
+ arg: e.payload,
+ text: e.payload[47][2],
+ },
+ }));
+ }
+ if (mid != roomData.roomMid) {
+ return;
+ }
+ }
+ for (let index = 0; index < htmls.length; index++) {
+ const dom = htmls[index];
+ roomData.messageView.elmList.prepend(dom);
+ if (roomData.followLatest) {
+ dom.scrollIntoView();
+ }
+ observer.observe(dom);
+ }
+ return;
+}
+
+function genNewMessage(data) {
+ roomData.notifyMsg.innerHTML = "";
+ roomData.notifyMsg.appendChild(div(
+ {
+ "class": "newMessage-module__new_message__7AimN ",
+ },
+ button(
+ {
+ "type": "button",
+ "class": "newMessage-module__button_new_message__4lxeN",
+ "$click": (...arg) => {
+ data.call(arg);
+ },
+ },
+ strong(
+ {
+ "class": "newMessage-module__name__i7cy-",
+ },
+ pre(
+ {},
+ data.by,
+ ),
+ ),
+ p(
+ {
+ "class": "newMessage-module__description__Bp-zX",
+ },
+ span(
+ {},
+ data.text,
+ ),
+ ),
+ ),
+ ));
+}
+
+var defaltIMG =
+ "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAYAAACHjumMAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABGKADAAQAAAABAAABGAAAAADGOxDpAAAUVklEQVR4Ae2daVNbORaGhQ0Ewp6tl6qZ//+vej7MdHcSSAIJJCy2R68J1Vmwde4i6+r4URWV4OUszxGvZV1daeOP/9zOAg0CEIBABgKjDDYxCQEIQGBOAIGhI0AAAtkIIDDZ0GIYAhBAYOgDEIBANgIITDa0GIYABBAY+gAEIJCNAAKTDS2GIQABBIY+AAEIZCOAwGRDi2EIQACBoQ9AAALZCCAw2dBiGAIQQGDoAxCAQDYCCEw2tBiGAAQQGPoABCCQjQACkw0thiEAAQSGPgABCGQjgMBkQ4thCEAAgaEPQAAC2QggMNnQYhgCEEBg6AMQgEA2AghMNrQYhgAEEBj6AAQgkI0AApMNLYYhAAEEhj4AAQhkI4DAZEOLYQhAAIGhD0AAAtkIIDDZ0GIYAhBAYOgDEIBANgIITDa0GIYABBAY+gAEIJCNAAKTDS2GIQABBIY+AAEIZCOAwGRDi2EIQACBoQ9AAALZCCAw2dBiGAIQQGDoAxCAQDYCCEw2tBiGAAQQGPoABCCQjQACkw0thiEAAQSGPgABCGQjgMBkQ4thCEAAgaEPQAAC2QggMNnQYhgCEEBg6AMQgEA2AghMNrQYhgAEEBj6AAQgkI0AApMNLYYhAAEEhj4AAQhkI4DAZEOLYQhAAIGhD0AAAtkIIDDZ0GIYAhBAYOgDEIBANgIITDa0GIYABBAY+gAEIJCNAAKTDS2GIQABBIY+AAEIZCOAwGRDi2EIQACBoQ9AAALZCCAw2dBiGAIQQGDoAxCAQDYCCEw2tBiGAAQQGPoABCCQjQACkw0thiEAAQSGPgABCGQjgMBkQ4thCEAAgaEPQAAC2QggMNnQYhgCEEBg6AMQgEA2AghMNrQYhgAEEBj6AAQgkI0AApMNLYYhAAEEhj4AAQhkI4DAZEOLYQhAAIGhD0AAAtkIIDDZ0GIYAhBAYOgDEIBANgIITDa0GIYABBAY+gAEIJCNwGY2yxiunsA4fvxsbsWfzY0w2ghh4+vH0WwawnQWwt3dLNzdhjCJv9Mg8BgBBOYxKmv62GbsDbu7G2F3ZyM8iT9jqYqhTaLaXH+Zhc/6+RxF587wJl6yFgQQmLUo8+IkN6KG7O1thP39Udh5YhOUH61JiJ4+1c/9M1+uZ+HTp2m4vJyFWRzp0NaXAAKzprWXsBzsb4Sjo1EYj9sJyyJ0EqqdJ+NwcjwL5+fT8PETQrOIlffHERjvFX4kv5349efF89F8buWRp3t7SML17Nk4HB7OwunZNHyJX6Fo60UAgVmveofnUVgO4tehVTZNEv/6yziOZKbhLAoNbX0IIDBrUmt9JXr1ahQncFcrLt/ilbBpIvnNmylzM9+Ccfz/cr3NMdShpTYeh/Dbr+Oi4vLARAKnWBQTzT8BBMZ5jbfiOhb9QW9v9zuR2wWbYlFMio3mmwBfkRzXVwvlNPfR9irRLF5j1pqWu8ksTOK/k8k9LI0+xrHnbMZJXH3l2dD3r4ZN8zK/xNj++nPCQr2G7Gp6OQJTU7UaxvriZfNL0BIVXe25uoo/cdHcg6gsci2xeRoX52kdjK5ONREbCZRifP2aid9FfGt/HIGpvYIL4j+O61uaTuheXk7D+/fTOGJZYPSRhyVAWuein80oNicno7hwz/7NWzEeH4XwIa6XofkjgMD4q+l8JHF0ZP/acnMzC2fvJuH6uhsMCdPb02m4+DgNz+P6F+u8j2L9ch1/WCfTrQADfLf9o2aAwRPSzwQ0HfLyxcj8VeXq8zT89Xd3cfk2EgmVbMq2pelr1X3MllfzmpoIIDA1VcsQ68FBvEnRuPRf9wvlWpOie5BkWz4sTTErdpovAgiMo3rqz/Pw0FZS/eFr+X7uJh9WkVHsSEzuiqzWvq03rjYmvLUksB9HALoyk2q3t5pzyS8uD3HIl3ymmmJXDjQ/BBAYP7UMR4bRiy5Dvz2drHSpvr4u3ftMi4wlB0clc58KAuOkxNrTRYvXUu38fBZublKv6v95+ZTvVFMOyoXmgwAC46OOYS8udEu1adx5TpeQSzX5VgypZsklZYPnh0EAgRlGHTpFoUvTO3E1bap9iovhpuX0Ze5bMaSacmlx90HKLM8XIIDAFIDet0st0R8l/iI193J+UVBdviatGBTLsqZclBOtfgIITP01DE8Me+lexzmQ1H1Fq0ChGCxzQJacVhEvProRQGC68RvEuy2bdQ9pGb5OH0g1S04pGzxfngACU74GnSPY2k6bGJLAWGKx5JTOmleUJoDAlK5AR/86uih1fpHmPK7jUSJDaYolNQ+jnIzHMg0lLeJ4hAAC8wiUmh7SyYupprucE/OqKRO9Pq9YLFtCWHLrNTCM9U4Agekd6WoNpkYvimYaBWZozRKTJbeh5UU83xNAYL7nUd1vD+dFLwtcR7sOrVlisuQ2tLyI53sCCMz3PKr7zXK1xTJaWHXilpgsua06bvw1I4DANOM1qFdrbd1+PP411Uqu3l0UmyUm5ZZYP7jIPI8PhAACM5BCtAlDm22PHF9qUW7KkVYvAQSm3tqZVvDq5kId2Tq0ppgsNz6yondolWsWDwLTjNegXm05uOziYhY3expU2PNgFNPFx/TksyXH4WVHRA8EEJgHEhX+a9l717rxdon0r67SIytLjiVix6eNAAJj4zTIVw3w6nPvnNYhx96hDcggAjOgYjQNZWb467OeTdTUdx+vt8RmybGPWLCRhwACk4frSqxa5laGvJbEEpslx5XAxkkrAghMK2zDeNONYad+nRk9GmCVFZNiSzVLjikbPF+OwAC7XjkYtXm2bHugtSTWs5JWmb9isqzhseS4yrjx1YwAAtOM16BefXcXwu1d+lLv0eFGPNIkPVpYVXLWeJSbcqTVSwCBqbd288g/GU4J0NnPJyfj+fnPpdPVGdSKRTGlmiW3lA2eL0sAgSnLv7P3j/OTAtKjGDnSnMe2Yfe7zkEtMCDflnkXvf1+BbItrwXueHgABBCYARShSwi6adByFIh8zEcyx+VKfhJ9W0YuirX0ESuKgdadQLne1j12LHwl8OF8GucqbJ/2u7ujYLk83Ddc+ZRvS1MuyolWPwFbxevP03UGGsW8eavzpm0ic3Ky+rJbfSoH5WLZzsF1UZ0kt/qe5gTc0NLQWUOnp+lDzRS37lC2zoX0kad8We6KlrgoB8u5SX3EhY38BBCY/IxX5uHyahbexj9QS9N8yKqa1ZdiVw40PwRW18v8MBt0JlfxD9RyRMnWlhbgpS8Vd01WPuQr1RSzYqf5IoDA+KrnPJv3722jmOOjURiP8wGQbfmwNGvMFlu8ZjgEbNUfTrxEYiDwRaOBz2mR0VJ969cXg9ufXiLbltsBFKtipvkjgMD4q+k8I40ILFeV9vY0Ads/BNmU7VRTjIxeUpTqfR6Bqbd2SyPXNgeWBXha+PbsWf/fk2TTsqhOMbIlw9JSVv0kAlN1+ZYH//7DNFgOOHuyvWE6/mS5t3+e1XEjsplqik0x0vwSQGD81na+WO2D8Q/YOhlrwWW1pdhYUGchWu9rEJh6a2eK/GPcuf/mJj2BurnZzyhGoxfZSjXFpNhovgkgML7rO8/u7N3ElOWeYYe5lCGrDWtMKX88P2wCCMyw69NLdNfXccL3Mj3XsbPT7ahWbfEiG6mmWBQTzT8BBMZ/jecZar4jddlaV30s9wwtQqb3pq4cKQbrvNAiPzxeDwEEpp5adYpUW09a9rfd3GzvxvJexcA2mO0Z1/ZOBKa2inWI98ZwhOzmOP0VZ1EIlvdaYlhkn8frI4DA1Fez1hFbDpufhfZXdizvtcTQOkHeODgCCMzgSpIvIMtdzR30JVjea4ohHwIsr5gAArNi4KXcaX7k6W76689th2NCLO9VDJa5mlKc8NsvAQSmX56DtKY/6t9+HZvubLYsyluUpOW9urtasVjEbpEfHq+HQIdrBvUkua6R6njWZ89GYX/P9jmizba7XOHRe2UjtZJ3HCeSX70az9fmvHvH7QKe+6et53km4DS33Thq+f33sVlchOGj4RC3FK4mNiR8ilGx0nwSQGCc1VWjlhfPR+GXOEKwXDZ+SL+vg86aHAQn34pRsSrm+O2J5owAAuOooPNRy29x1LLfvKx9fVXR3dHvjFt2foteMTOa+ZaIj/8374k+8naVhe4Bev4wajHcyfxj8pfx3qBPl+3Xv/xoT5tIyWbTprkbjWaUi3Ki1U+ASd7Ka6ibC/X1IjWxuijNj5+m4eysuRgssvfwuI4giftJhYMWoym9ZzfmdRrjstze8OCTf4dHYOOP/9z299E1vPzcRqRP+GfxhMaDg3aD0PleuPEGyIuLvOXXsSXa/Dt1E+SiQmnSWF+54j2StAoJIDAVFq3rqEVnEJ2eTVa2F+7Wliaex63v1Nalb0YzFXbUGDICU1HdNGrRGc+HHUYt2irhPPOoZRHSoziaOe4wmrmIo5n70xIWeeDxoRFAYIZWkQXx7MS9Vp6/GIWtFpO4MrnqUcuCNOIpj91GM7dxNHMW53c4R2kR4WE9jsAMqx4/RTMftcRP/YOD9GZOP705PjDf4Ok8jlrOhzWJcXQURzPx1Mc2czPKSfv56kQC5mYeq/pwHkNghlOLnyLR4WWau2h7B7LuDXp7urq5lp8SSDyg0czLF+OwbTji5DFTt/H6hOaS2H7zMTrDeAyBGUYdvouij1GLRiwf4silhqaRjEY0jGZqqFazGBGYZryyv7qPUYs+1W9usofaq4Pt7fvRGqOZXrEWN4bAFC/BfQBauHo8v0LU/pNcV4dq31BbV5l0tantaOYizs180LqZgdR13cNAYAbQA57o0zvORXSZa6lx1LIIfS+jmTj3dF3ZKG4Rj5ofR2AKV0+rXLXatfUndhy1eD3fGTaFO2cP7hGYHiC2MTEeh/mmS5ZD4h+zf6MrKPFTura5lsdyWfbYfDSjK01b7e5+vI5X0t68mYSJ7XDLZaHwXAsCCEwLaF3fosuz8/1aWiya0xqQdZtn6Do/pVsNXkeRuTUc29K1trz/ewIIzPc8sv+m+4hevYybK7XYXWnd1310ucKmDbXevOXu7Owd/AcH7W7F/cEIv9oIaDf9NuIyH7VcTMOff633ojItqBODi8hCTJo0CbrYc6JBE2rdX4vAdGdotqBVuU1HLhq1/P16wpYFXylLV7R9g5iITZMm9qoBbXUEEJgVsdbaDn09sjZGLctJtR3NqAaqBW01BBCYFXDWsFwLyKxNn8yvX7PRUorXw2hGrJqMZlQLviql6PbzvL3X9+NvLa0cHtrvGtYWlppnYDsCe1cRKzETO0vTmiPVhJafAJQzM9aNi/t7tiH5+/eT+f64DecvM2dQh3kx097CYmhpqolqQ8tLAIHJy3e+ebVlYld7z5baaS4zgpWaF0PL4W+qiTYWp+UlgMDk5Ws6tVALwdqcJZQ59GrNi6WYphonSqYIdX8egenOcKkFy/YDOkeIr0VLMTZ6UizFNNUstUnZ4PnlBBCY5Xw6P6vbAlLt8so2OZmyw/P/ELAwtdTmH4v8rw0BBKYNtQbvSc2/aL0L98g0AGp8qZimVvumamN0xcuWEEBglsDp+pQOok81neVMy0PAwtZSozzRrYdVw5/AeoAolSVzL/nIwzYfW6tlBMZKitdBAAKNCSAwjZHxBghAwEoAgbGS4nUQgEBjAghMY2S8AQIQsBJAYKykeB0EINCYAALTGBlvgAAErAQQGCspXgcBCDQmgMA0RsYbIAABK4G41xqtNAFWk5auAP5zEUBgcpE12t2MZyP9+1+UwYiLl1VGgK9IlRWMcCFQEwEEpqZqESsEKiOAwFRWMMKFQE0EEJiaqkWsEKiMAAJTWcEIFwI1EUBgaqoWsUKgMgIITGUFI1wI1ESABRiZq2U5PiNzCJiHQDECCExG9NoT9r//s500mDEMTEOgGAG+IhVDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUI/B/m95a6zS3tegAAAABJRU5ErkJggg==";
+async function chatMembersList(mid) {
+ notify("Loading...", "#FFF", "#333");
+ let member = (await Line.getSquareChatMembers(mid)).squareChatMembers;
+ let members = [];
+ for (let i = 0; i < member.length; i++) {
+ const e = member[i];
+ let data = {
+ mid: e.squareMemberMid,
+ name: e.displayName,
+ };
+ if (e.profileImageObsHash) {
+ data.img = await getObsUrl(e.profileImageObsHash + "/preview");
+ }
+ if (!data.img) {
+ data.img = defaltIMG;
+ }
+ members.push(data);
+ }
+ let data = {
+ mid: mid,
+ members: members,
+ };
+ $("#root > div > div > div:nth-child(4)").in(genMemberList(data));
+}
+
+function genMemberList(data) {
+ function memberButton(data, index) {
+ return div(
+ {
+ "class": "friendlistItem-module__item__1tuZn ",
+ "data-mid": data.mid,
+ "style": "position: absolute; left: 0px; top: " +
+ (index * 57 + 20) + "px; height: 57px; width: 100%;",
+ "$click": (...arg) => {
+ buttonEvent("openProfileM", arg);
+ },
+ },
+ div(
+ {
+ "class": "profileImage-module__thumbnail_wrap__0bK7m ",
+ "data-mid": data.mid,
+ "data-profile-image": "true",
+ "style": "width: 43px; height: 43px; border-radius: 50%;",
+ },
+ button(
+ {
+ "type": "button",
+ "class": "profileImage-module__button_profile__GqKue",
+ },
+ div(
+ {
+ "class":
+ "profileImage-module__thumbnail_area__nqIpB",
+ },
+ span(
+ {
+ "class":
+ "profileImage-module__thumbnail__Q6OsR",
+ },
+ img(
+ {
+ "src": data.img,
+ "class": "",
+ "loading": "lazy",
+ "alt": "",
+ "draggable": "false",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ div(
+ {
+ "class": "friendlistItem-module__info__89Stz",
+ },
+ strong(
+ {
+ "class": "friendlistItem-module__name_box__fUKhX",
+ "role": "",
+ },
+ span(
+ {
+ "class": "friendlistItem-module__text__YxSko",
+ },
+ pre(
+ {},
+ span(
+ {},
+ data.name,
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+ let members = [];
+ data.members.forEach((e, i) => {
+ members.push(memberButton(e, i));
+ });
+ return div(
+ {
+ "class": "memberPopup-module__popup__KtCXP ",
+ "style": "min-width:300;",
+ },
+ div(
+ {
+ "class": "memberPopup-module__contents__7scEN",
+ },
+ div(
+ {
+ "class": "friendlist-module__list_wrap__IeJXY",
+ "data-type": "invite",
+ },
+ div(
+ {
+ "class": "searchInput-module__input_box__vp6NF",
+ },
+ label(
+ {
+ "class": "searchInput-module__label__40CWI",
+ },
+ i(
+ {
+ "class":
+ "icon searchInput-module__icon_search__amOMA",
+ },
+ svg(
+ {
+ "xmlns": "http://www.w3.org/2000/svg",
+ "width": "24",
+ "height": "24",
+ "viewBox": "0 0 24 24",
+ },
+ g(
+ {
+ "fill": "none",
+ "fill-rule": "evenodd",
+ },
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ path(
+ {
+ "d": "M0 0H20V20H0z",
+ "transform":
+ "translate(-261.000000, -95.000000) translate(181.000000, 54.000000) translate(74.000000, 34.000000) translate(6.000000, 7.000000) translate(2.000000, 2.000000)",
+ },
+ ),
+ g(
+ {
+ "stroke":
+ "#B7B7B7",
+ "stroke-width":
+ "1.5",
+ "transform":
+ "translate(-261.000000, -95.000000) translate(181.000000, 54.000000) translate(74.000000, 34.000000) translate(6.000000, 7.000000) translate(2.000000, 2.000000) translate(4.000000, 4.000000)",
+ },
+ circle(
+ {
+ "cx": "4.5",
+ "cy": "4.5",
+ "r": "4.5",
+ "fill-rule":
+ "nonzero",
+ },
+ ),
+ path(
+ {
+ "stroke-linecap":
+ "square",
+ "d": "M8 8L11 11",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ input(
+ {
+ "class": "searchInput-module__input__ekGp7 ",
+ "placeholder": "名前で検索",
+ "maxlength": "20",
+ "data-chatmid": data.mid,
+ "value": "",
+ "$input": (...arg) => {
+ buttonEvent("searchMember", arg);
+ },
+ },
+ ),
+ button(
+ {
+ "type": "button",
+ "class":
+ "searchInput-module__button_reset__l2-td",
+ "aria-label": "reset",
+ "$click": (...arg) => { },
+ },
+ i(
+ {
+ "class":
+ "icon searchInput-module__icon_reset__bPtuX",
+ },
+ svg(
+ {
+ "xmlns": "http://www.w3.org/2000/svg",
+ "width": "24",
+ "height": "24",
+ "viewBox": "0 0 24 24",
+ },
+ g(
+ {
+ "fill": "none",
+ "fill-rule": "evenodd",
+ },
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ g(
+ {},
+ path(
+ {
+ "d": "M0 0H24V24H0z",
+ "transform":
+ "translate(-1216.000000, -227.000000) translate(928.000000, 162.000000) translate(14.000000, 58.000000) translate(274.000000, 7.000000)",
+ },
+ ),
+ path(
+ {
+ "fill":
+ "#C8C8C8",
+ "d": "M12 5c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7 3.134-7 7-7zm2.413 3.5L12 10.912 9.587 8.5 8.5 9.587 10.912 12 8.5 14.413 9.587 15.5 12 13.087l2.413 2.413 1.087-1.087L13.087 12 15.5 9.587 14.413 8.5z",
+ "transform":
+ "translate(-1216.000000, -227.000000) translate(928.000000, 162.000000) translate(14.000000, 58.000000) translate(274.000000, 7.000000)",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ div(
+ {
+ "class": "friendlist-module__list__Z-8nt",
+ },
+ div(
+ {
+ "class": "friendlist-module__inner__d3xFH",
+ "style": "position: relative; overflow: hidden;",
+ },
+ div(
+ {
+ "style":
+ "position: absolute; width: 100%; height: 100%;",
+ },
+ div(
+ {
+ "style":
+ "position: relative; height: 558px; width: 100%; overflow: overlay; will-change: transform; direction: ltr;",
+ },
+ div(
+ {
+ "style": "height: " +
+ (data.members.length * 57 + 60) +
+ "px; width: 100%;",
+ },
+ div(
+ {
+ "class":
+ "categoryLayout-module__category_wrap__31191 ",
+ "style":
+ "position: absolute; left: 0px; top: 0px; height: 20px; width: 100%;",
+ },
+ button(
+ {
+ "class":
+ "categoryLayout-module__button_category__nqIZM",
+ "aria-expanded": "true",
+ },
+ span(
+ {
+ "class":
+ "categoryLayout-module__title__iV725",
+ },
+ span(
+ {
+ "class":
+ "categoryLayout-module__text__crUcb",
+ },
+ "メンバー",
+ ),
+ span(
+ {
+ "class":
+ "categoryLayout-module__count__8h25Q",
+ },
+ data.members.length,
+ ),
+ ),
+ i(
+ {
+ "class":
+ "icon categoryLayout-module__icon_arrow__kdyor",
+ },
+ svg(
+ {
+ "xmlns":
+ "http://www.w3.org/2000/svg",
+ "width": "20",
+ "height": "20",
+ "viewBox": "0 0 20 20",
+ },
+ g(
+ {
+ "fill": "none",
+ "fill-rule":
+ "evenodd",
+ },
+ path(
+ {
+ "d": "M0 0H20V20H0z",
+ },
+ ),
+ path(
+ {
+ "fill-rule":
+ "nonzero",
+ "stroke":
+ "#C8C8C8",
+ "stroke-linecap":
+ "square",
+ "stroke-width":
+ "1.4",
+ "d": "M7 11L7 5 13 5",
+ "transform":
+ "rotate(-135 10 8)",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ...members,
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+}
+async function memberPopup(pid) {
+ let data = await refreshProfile(pid);
+ let data2 = await getProfile(pid, true);
+ data.desc = JSON.stringify(data2, null, 2);
+ let member = genProfilePopup(data);
+ $("#modal-root").in(member);
+ member.scrollIntoView();
+}
+function genProfilePopup(data) {
+ return div(
+ {
+ "class": "profileModal-module__modal__QRrnT ",
+ "role": "dialog",
+ "aria-labelledby": "profile modal",
+ "style":
+ "position: absolute;z-index: 28;left: 0px;top: 0px;width: 100%;height: 100%;text-align: center;",
+ },
+ div(
+ {
+ "class": "profileModal-module__content__qKTEy",
+ "style":
+ "width: 300px;height: 400px;margin-right: auto;margin-left: auto;margin-top: 100;border: solid;background-color: #fff;border-color: black;",
+ },
+ button({
+ "type": "button",
+ "style":
+ "margin-right: auto;font-size: 18px;margin-left: 10px;margin-top: 10px;",
+ "$click": () => {
+ document.querySelector("#modal-root").innerHTML = "";
+ },
+ }, "X"),
+ div(
+ {
+ "class": "profileModal-module__info_area__VRAIt",
+ "style": "height:100px",
+ },
+ div(
+ {
+ "class": "profileImage-module__thumbnail_wrap__0bK7m ",
+ "data-mid": data.mid,
+ "data-profile-image": "true",
+ "style":
+ "border-radius: 50%;cursor: default;margin: 0 0 0 0;",
+ },
+ div(
+ {
+ "class":
+ "profileImage-module__thumbnail_area__nqIpB",
+ "$click": (...arg) => {
+ buttonEvent("openProfileImg", arg);
+ },
+ },
+ span(
+ {
+ "class":
+ "profileImage-module__thumbnail__Q6OsR",
+ },
+ img(
+ {
+ "src": data.img,
+ "class": "",
+ "loading": "lazy",
+ "alt": "",
+ "draggable": "false",
+ },
+ ),
+ ),
+ ),
+ ),
+ div(
+ {
+ "class": "profileModal-module__name_box__vJfbr",
+ },
+ button(
+ {
+ "class": "editButton-module__button_edit__GA02s ",
+ "type": "button",
+ "aria-pressed": "false",
+ "data-ellipsis": "1",
+ },
+ span(
+ {
+ "class": "editButton-module__name__uQ-y5",
+ },
+ pre(
+ {},
+ span(
+ {},
+ data.name,
+ ),
+ ),
+ ),
+ ),
+ ),
+ div(
+ {
+ "class": "profileModal-module__description_box__Jb6O2",
+ "style": "max-height:300;",
+ },
+ pre(
+ {
+ "class": "profileModal-module__description__hSNDU",
+ "data-tooltip":
+ "87f15f9f-0c36-4796-bf4e-f74d9f10fef5",
+ "style": "text-align: left;user-select:text;",
+ },
+ data.desc,
+ ),
+ ),
+ ),
+ div(
+ {
+ "class": "profileModal-module__action_area__gN4d-",
+ "data-mid": data.mid,
+ },
+ button(
+ {
+ "type": "button",
+ "class": "profileModal-module__button_action__SmB4T",
+ "$click": (...arg) => {
+ buttonEvent("reportMember", arg);
+ },
+ },
+ "通報",
+ ),
+ button(
+ {
+ "type": "button",
+ "class": "profileModal-module__button_action__SmB4T",
+ "$click": (...arg) => {
+ buttonEvent("kickoutMember", arg);
+ },
+ },
+ "強制退会",
+ ),
+ ),
+ ),
+ );
+}
+
+function genTxtPopup(data) {
+ $("#modal-root").out.appendChild(div(
+ {
+ "class": "profileModal-module__modal__QRrnT ",
+ "role": "dialog",
+ "aria-labelledby": "profile modal",
+ "style":
+ "position: absolute;z-index: 28;left: 0px;top: 0px;width: 100%;height: 100%;text-align: center;",
+ },
+ div(
+ {
+ "class": "profileModal-module__content__qKTEy",
+ "style":
+ "width: 300px;height: 400px;margin-right: auto;margin-left: auto;margin-top: 100;border: solid;background-color: #fff;border-color: black;",
+ },
+ button({
+ "type": "button",
+ "style":
+ "margin-right: auto;font-size: 18px;margin-left: 10px;margin-top: 10px;",
+ "$click": () => {
+ document.querySelector("#modal-root").innerHTML = "";
+ },
+ }, "X"),
+ div(
+ {
+ "class": "profileModal-module__info_area__VRAIt",
+ "style": "height:100px",
+ },
+ div(
+ {
+ "class": "profileModal-module__name_box__vJfbr",
+ },
+ span(
+ {
+ "class": "editButton-module__name__uQ-y5",
+ },
+ pre(
+ {},
+ span(
+ {},
+ data.name,
+ ),
+ ),
+ ),
+ ),
+ div(
+ {
+ "class": "profileModal-module__description_box__Jb6O2",
+ "style": "max-height:300;",
+ },
+ pre(
+ {
+ "class": "profileModal-module__description__hSNDU",
+ "data-tooltip":
+ "87f15f9f-0c36-4796-bf4e-f74d9f10fef5",
+ "style": "text-align: left;user-select:text;",
+ },
+ data.desc,
+ ),
+ ),
+ ),
+ ),
+ ));
+ console.log(data);
+}
+
+function notify(text, color, bcolor, time = 5000) {
+ let noti = li(
+ {},
+ div(
+ {
+ style: "background-color:" + bcolor +
+ ";border-radius: 17.5px;user-select:text;",
+ "$click": () => {
+ $("#root > div > ul").out.innerHTML = "";
+ },
+ },
+ pre(
+ {
+ style: "font-size:20px;padding:5px;color:" + color + ";",
+ },
+ text,
+ ),
+ ),
+ );
+ $("#root > div > ul").out.appendChild(noti);
+ setTimeout(() => {
+ $("#root > div > ul").out.removeChild(noti);
+ }, time);
+}
+
+async function buildChatButton(squareChatResponseList = []) { //[getSquareChatResponse]からチャットリストのボタンを生成追加
+ function list(inElm) {
+ return div({
+ style: "height: " + 71 * squareChatResponseList.length +
+ "px; width: 100%;",
+ }, ...inElm);
+ }
+ let elms = [];
+ for (let index = 0; index < squareChatResponseList.length; index++) {
+ const element = squareChatResponseList[index];
+ let elm = await squareChat2chatButton(element, index);
+ observer.observe(elm);
+ elms.push(elm);
+ }
+ let res = list(elms);
+ $("#root > div > div > div.chatlist-module__chatlist_wrap__KtTpq > div.chatlist-module__chatlist__qruAE > div > div > div")
+ .in(res);
+ setInterval(() => {
+ try {
+ fetchEventUpdate();
+ //更新開始
+ } catch (error) {
+ }
+ }, 2000);
+ return res;
+}
+async function buildChatButtonC(dataList = []) { //dataListからチャットリストのボタンを生成追加
+ function list(inElm) {
+ return div({
+ style: "height: " + 71 * dataList.length + "px; width: 100%;",
+ }, ...inElm);
+ }
+ let elms = [];
+ for (let index = 0; index < dataList.length; index++) {
+ const element = await Line.getSquareChat(dataList[index]);
+ let elm = await squareChat2chatButton(element);
+ if (!elm) {
+ continue;
+ }
+ observer.observe(elm);
+ elms.push(elm);
+ }
+ let res = list(elms);
+ $("#root > div > div > div.chatlist-module__chatlist_wrap__KtTpq > div.chatlist-module__chatlist__qruAE > div > div > div")
+ .in(res);
+ setInterval(() => {
+ try {
+ fetchEventUpdate(); //更新開始
+ } catch (error) {
+ }
+ }, 2000);
+ return res;
+}
+function fetchEventUpdate() { //fetchMyEvents fetchSquareChatEvents から表示を更新
+ if (Line.SQ1.socket.post.readyState !== Line.SQ1.socket.post.OPEN) {
+ Line.SQ1.reOpenSocket();
+ notify("Network Error", "#fff", "#f00");
+ return;
+ }
+ let mids = [];
+ chatData.chatList.forEach((e, i) => {
+ let is1 = true;
+ mids.forEach((f) => {
+ if (e.mid == f) {
+ is1 = false;
+ }
+ });
+ if (is1) {
+ mids.push(e.mid);
+ } else {
+ chatData.chatList.splice(i, 1);
+ }
+ });
+
+ UserCashe.setItem(Line.mid + ":chatsList", mids);
+ //myEvent
+ (async () => {
+ function list(inElm) {
+ return div({
+ style: "height: " + 71 * inElm.length + "px; width: 100%;",
+ }, ...inElm);
+ }
+ let elms = [];
+ if (!chatData.syncToken) {
+ chatData.syncToken = (await Line.fetchMyEvents()).syncToken;
+ }
+ let res = await Line.timeout(
+ () => Line.fetchMyEvents(chatData.syncToken),
+ 3500,
+ );
+ chatData.syncToken = res.syncToken;
+ res.events.forEach(async (e) => {
+ let chat;
+ switch (e.type) {
+ case 29:
+ chat = await getChatdata(
+ e.payload.notificationMessage.squareChatMid,
+ );
+ let date =
+ e.payload.notificationMessage.squareMessage.message
+ .deliveredTime;
+ date = new Date(date);
+ date = date.getMonth() + 1 + "/" + date.getDate();
+ chat.timeInt =
+ e.payload.notificationMessage.squareMessage.message
+ .deliveredTime;
+ if (
+ e.payload.notificationMessage.squareMessage.message.text
+ ) {
+ chat.lastText =
+ e.payload.notificationMessage.squareMessage.message
+ .text;
+ }
+
+ if (e.payload.notificationMessage.unreadCount) {
+ let unread = e.payload.notificationMessage.unreadCount;
+ chat.unread = span({
+ class: "chatlistItem-module__message_count__FRt4s",
+ }, unread);
+ } else {
+ chat.unread = "";
+ }
+ break;
+ case 13:
+ chat = await getChatdata(
+ e.payload.notifiedUpdateSquareChatStatus.squareChatMid,
+ );
+ chat.member = e.payload.notifiedUpdateSquareChatStatus
+ .statusWithoutMessage.memberCount;
+ if (
+ e.payload.notifiedUpdateSquareChatStatus
+ .statusWithoutMessage.unreadCount
+ ) {
+ let unread = e.payload.notifiedUpdateSquareChatStatus
+ .statusWithoutMessage.unreadCount;
+ chat.unread = span({
+ class: "chatlistItem-module__message_count__FRt4s",
+ }, unread);
+ } else {
+ chat.unread = "";
+ }
+ default:
+ break;
+ }
+ });
+ chatData.chatList.sort((a, b) => {
+ return b.timeInt - a.timeInt;
+ });
+ chatData.chatList.forEach((e, i) => {
+ e.index = i;
+ elms.push(genChatButton(e));
+ });
+ let elm = list(elms);
+ $("#root > div > div > div.chatlist-module__chatlist_wrap__KtTpq > div.chatlist-module__chatlist__qruAE > div > div > div")
+ .in(elm);
+
+ async function getChatdata(id) {
+ for (let index = 0; index < chatData.chatList.length; index++) {
+ const e = chatData.chatList[index];
+ if (e.mid == id) {
+ return e;
+ }
+ }
+ let chat = await Line.getSquareChat(id);
+ await squareChat2chatButton(chat, 0);
+ return await getChatdata(id);
+ }
+ })();
+}
+
+async function squareChat2chatButton(squareChatResponse, index) { //getSquareChatと上からの順番からボタンを生成
+ let lastText = "";
+ let date = "";
+ let unread = "";
+ if (!squareChatResponse.squareChatStatus) {
+ return;
+ }
+ if (squareChatResponse.squareChatStatus.lastMessage) {
+ date = new Date(
+ squareChatResponse.squareChatStatus.lastMessage.message.createdTime,
+ );
+ date = date.getMonth() + 1 + "/" + date.getDate() + " " +
+ date.getHours() + ":" + date.getMinutes();
+ if (squareChatResponse.squareChatStatus.lastMessage.message.text) {
+ lastText =
+ squareChatResponse.squareChatStatus.lastMessage.message.text;
+ }
+ }
+ if (squareChatResponse.squareChatStatus.otherStatus.unreadMessageCount) {
+ unread =
+ squareChatResponse.squareChatStatus.otherStatus.unreadMessageCount;
+ unread = span(
+ { class: "chatlistItem-module__message_count__FRt4s" },
+ unread,
+ );
+ }
+ let data = {
+ mid: squareChatResponse.squareChat.squareChatMid,
+ name: squareChatResponse.squareChat.name,
+ member: squareChatResponse.squareChatStatus.otherStatus.memberCount,
+ img: await getObsUrl(squareChatResponse.squareChat.chatImageObsHash),
+ index: index,
+ date: date,
+ timeInt: squareChatResponse.squareChatStatus.lastMessage
+ ? squareChatResponse.squareChatStatus.lastMessage.message
+ .createdTime
+ : 0,
+ lastText: lastText,
+ unread: unread,
+ };
+ chatData.chatList.push(data);
+ return genChatButton(data);
+}
+
+function genChatButton(data) { //html生成部分
+ return div(
+ {
+ "class": "chatlistItem-module__chatlist_item__MOwxh ",
+ "aria-selected": "false",
+ "aria-busy": "false",
+ "aria-current": "true",
+ "data-mid": data.mid,
+ "style": "position: absolute; left: 0px; top: " + data.index * 71 +
+ "px; height: 71px; width: 100%;",
+ },
+ div(
+ {
+ "class": "profileImage-module__thumbnail_wrap__0bK7m ",
+ "data-mid": data.mid,
+ "data-profile-image": "true",
+ "style": "width: 53px; height: 53px; border-radius: 50%;",
+ },
+ button(
+ {
+ "type": "button",
+ "class": "profileImage-module__button_profile__GqKue",
+ },
+ div(
+ {
+ "class": "profileImage-module__thumbnail_area__nqIpB",
+ },
+ span(
+ {
+ "class": "profileImage-module__thumbnail__Q6OsR",
+ },
+ img(
+ {
+ "src": data.img,
+ "class": "",
+ "loading": "lazy",
+ "alt": "",
+ "draggable": "false",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ div(
+ {
+ "class": "chatlistItem-module__info__nHGhi",
+ },
+ strong(
+ {
+ "class": "chatlistItem-module__title_box__aDNJD",
+ },
+ span(
+ {
+ "class": "chatlistItem-module__text__daDD3",
+ },
+ pre(
+ {},
+ span(
+ {},
+ data.name,
+ ),
+ ),
+ ),
+ span(
+ {
+ "class": "chatlistItem-module__member_count__MbL2c",
+ },
+ "(" + data.member + ")",
+ ),
+ ),
+ time(
+ {
+ "datetime":
+ "Tue Mar 26 2024 14:20:07 GMT+0900 (日本標準時)",
+ "class": "chatlistItem-module__date__tG-MV",
+ },
+ data.date,
+ ),
+ div(
+ {
+ "class": "chatlistItem-module__description__JH3NE",
+ },
+ p(
+ {
+ "class": "chatlistItem-module__text__daDD3",
+ },
+ span(
+ {
+ "data-message-id": "500966165850882385",
+ },
+ data.lastText,
+ ),
+ ),
+ ),
+ data.unread,
+ ),
+ button(
+ {
+ "role": "link",
+ "type": "button",
+ "aria-label": "Go chatroom",
+ "class": "chatlistItem-module__button_chatlist_item__pcmtA",
+ "$click": (...arg) => {
+ buttonEvent("goChat", arg);
+ },
+ },
+ ),
+ );
+}
+
+var roomData = { //chat
+ messageView: {
+ dataList: [],
+ elmList: [],
+ },
+ mymid: null,
+ roomMid: null,
+ followLatest: false,
+ setting: {},
+};
+
+var URLcashe = localforage.createInstance({
+ name: "URLcashe",
+});
+var MDataCashe = localforage.createInstance({
+ name: "MDataCashe",
+});
+var ThriftCashe = localforage.createInstance({
+ name: "ThriftCashe",
+});
+var UserCashe = localforage.createInstance({
+ name: "UserCashe",
+});
+async function getMDataUrl(id) {
+ let url = "https://obs-jp.line-apps.com/r/g2/m/" + id;
+ let data = await MDataCashe.getItem(url);
+ if (data) {
+ return createObjectURL(url, data);
+ } else {
+ let res;
+ try {
+ res = await Line.proxyFetch(url, {
+ "x-line-access": Line.authToken,
+ "x-line-application": Line.SQ1.config.appName,
+ });
+ } catch (error) {
+ }
+ if (!res || !res.ok) {
+ console.error("Error response at " + url);
+ return "";
+ }
+ data = await res.blob();
+ MDataCashe.setItem(url, data);
+ return createObjectURL(url, data);
+ }
+}
+async function getMPDataUrl(id) {
+ let url = "https://obs-jp.line-apps.com/r/g2/m/" + id + "/preview";
+ let data = await MDataCashe.getItem(url);
+ if (data) {
+ return createObjectURL(url, data);
+ } else {
+ let res;
+ try {
+ res = await Line.proxyFetch(url, {
+ "x-line-access": Line.authToken,
+ "x-line-application": Line.SQ1.config.appName,
+ });
+ } catch (error) {
+ }
+ if (!res || !res.ok) {
+ console.error("Error response at " + url);
+ return "";
+ }
+ data = await res.blob();
+ MDataCashe.setItem(url, data);
+ return createObjectURL(url, data);
+ }
+}
+async function getMsgById(id, isElm) {
+ let data = { txt: "このメッセージはありません" };
+ if (isElm) {
+ for (
+ let index = 0;
+ index < roomData.messageView.elmList.childNodes.length;
+ index++
+ ) {
+ const e = roomData.messageView.elmList.childNodes[index];
+ if (e.dataset.id == id) {
+ return e;
+ }
+ }
+ return null;
+ }
+ for (let index = 0; index < roomData.messageView.dataList.length; index++) {
+ const e = roomData.messageView.dataList[index];
+ if (e.id == id) {
+ if (e.text) {
+ data.txt = e.text;
+ data.profile = await getProfile(e._from);
+ } else {
+ data.txt = "";
+ data.profile = await getProfile(e._from);
+ }
+ return data;
+ }
+ }
+
+ if (!data.profile) {
+ data.profile = { img: defaltIMG, mid: "", name: "" };
+ }
+ return data;
+}
+async function getObsUrl(obs) {
+ let url = "https://obs.line-scdn.net/" + obs;
+ let data = await URLcashe.getItem(url);
+ if (data) {
+ return createObjectURL(url, data);
+ } else {
+ let res;
+ try {
+ res = await fetch(url);
+ } catch (error) {
+ }
+ if (!res || !res.ok) {
+ console.error("Error response at " + url);
+ res = await fetch(defaltIMG);
+ }
+ data = await res.blob();
+ URLcashe.setItem(url, data);
+ return createObjectURL(url, data);
+ }
+}
+async function getSquareChatHistory(mid) {
+ let prot = "squareChatHistory:" + mid;
+ let data = await ThriftCashe.getItem(prot);
+ if (data) {
+ return data;
+ } else {
+ return null;
+ }
+}
+async function setSquareChatHistory(mid, sync, history = []) {
+ let prot = "squareChatHistory:" + mid;
+ let data = await getSquareChatHistory(mid);
+ if (data) {
+ data = {
+ syncToken: sync,
+ history: [...data.history, ...history],
+ };
+ } else {
+ data = {
+ syncToken: sync,
+ history: history,
+ };
+ }
+ await ThriftCashe.setItem(prot, data);
+}
+async function refreshProfile(mid) {
+ let prot = "squareMember:" + mid;
+ await ThriftCashe.removeItem(prot);
+ return await getProfile(mid);
+}
+async function getProfile(mid, raw, Line) {
+ if (mid.substring(0, 1) == "v") {
+ return {
+ name: "Auto-reply",
+ img: await getObsUrl(
+ "0hC0fMBLdfHB9bNA6h2cdjSGViQTEgRwUNJkwRLXxnSyp0DAxBNFVRfncwQykhAFJPY1YDK3g2RngkUAw/preview",
+ ),
+ mid: mid,
+ };
+ }
+ const prot = "squareMember:" + mid;
+ let data = await ThriftCashe.getItem(prot);
+ if (data) {
+ } else {
+ const member = (await Line.getSquareMember(mid)).squareMember;
+ data = member;
+ ThriftCashe.setItem(prot, data);
+ }
+ if (raw) {
+ return data;
+ }
+ let img = defaltIMG;
+ if (data.profileImageObsHash) {
+ img = await getObsUrl(data.profileImageObsHash + "/preview");
+ }
+ return { name: data.displayName, img: img, mid: data.squareMemberMid };
+}
+async function getStkDataUrl(id) {
+ let url = "https://stickershop.line-scdn.net/stickershop/v1/sticker/" + id +
+ "/android/sticker.png";
+ let data = await URLcashe.getItem(url);
+ if (data) {
+ return URL.createObjectURL(data);
+ } else {
+ let res;
+ try {
+ res = await fetch(url);
+ } catch (error) {
+ }
+ if (!res || !res.ok) {
+ console.error("Error response at " + url);
+ return "";
+ }
+ data = await res.blob();
+ URLcashe.setItem(url, data);
+ return URL.createObjectURL(data);
+ }
+}
+async function buttonEvent(n, arg, add) {
+ if (n == "goChat") {
+ if (roomData.roomMid == arg[0].parentElement.dataset.mid) {
+ notify("すでに開いています", "red", "#fff");
+ return;
+ }
+ notify("Loading...", "#000", "#fff");
+ roomData.roomMid = arg[0].parentElement.dataset.mid;
+ await squareChat2chatroom(
+ await Line.getSquareChat(arg[0].parentElement.dataset.mid),
+ );
+ await initTalk(arg[0].parentElement.dataset.mid);
+ updateChat();
+ return;
+ }
+ if (n == "send") {
+ if (roomData.command) {
+ cRequest(
+ arg[0].parentElement.parentElement.childNodes[0].childNodes[0]
+ .value,
+ );
+ cResponse(
+ await runCommand(
+ " " +
+ arg[0].parentElement.parentElement.childNodes[0]
+ .childNodes[0].value,
+ ),
+ );
+ }
+ if (
+ arg[0].parentElement.parentElement.childNodes[0].childNodes[0].value
+ .substring(0, 4) == "$cmd"
+ ) {
+ notify(
+ await runCommand(
+ arg[0].parentElement.parentElement.childNodes[0]
+ .childNodes[0].value.substring(4),
+ ),
+ "#fff",
+ "#222",
+ 7000,
+ );
+ return;
+ }
+ Line.sendTxtMessage(
+ roomData.roomMid,
+ arg[0].parentElement.parentElement.childNodes[0].childNodes[0]
+ .value,
+ );
+ arg[0].parentElement.parentElement.childNodes[0].childNodes[0].value =
+ "";
+ return;
+ }
+ if (n == "viewReply") {
+ let res = await getMsgById(
+ arg[0].parentElement.dataset.messageId,
+ true,
+ );
+ if (res) {
+ res.scrollIntoView();
+ }
+ return;
+ }
+ if (n == "chatScroll") {
+ var scroll = arg[0].scrollTop;
+ if (scroll > -1) {
+ arg[0].parentElement.childNodes[1].dataset.hidden = "true";
+ roomData.followLatest = true;
+ } else {
+ roomData.followLatest = false;
+ arg[0].parentElement.childNodes[1].dataset.hidden = "false";
+ }
+ return;
+ }
+ if (n == "chatDown") {
+ roomData.followLatest = true;
+ arg[0].parentElement.childNodes[2].scrollTop = 0;
+ return;
+ }
+ if (n == "openProfileM") {
+ memberPopup(arg[0].dataset.mid);
+ return;
+ }
+ if (n == "openProfile") {
+ memberPopup(arg[0].parentElement.dataset.mid);
+ return;
+ }
+ if (n == "closeChat") {
+ roomData.roomMid = null;
+ $("#root > div > div > div:nth-child(4)").out.innerHTML = "";
+ return;
+ }
+ if (n == "memberView") {
+ roomData.roomMid = null;
+ chatMembersList(
+ arg[0].parentElement.parentElement.parentElement.parentElement
+ .dataset.mid,
+ );
+ return;
+ }
+ if (n == "imgMsgView") {
+ notify("画像を読み込み中...", "#fff", "green");
+ open(
+ await getMDataUrl(
+ arg[0].parentElement.parentElement.dataset.messageId,
+ ),
+ "image",
+ "popup,width=400,height=400",
+ );
+ return;
+ }
+ if (n == "videoMsgView") {
+ notify("動画を読み込み中...", "#fff", "green");
+ open(
+ await getMDataUrl(
+ arg[0].parentElement.parentElement.dataset.messageId,
+ ),
+ "video",
+ "popup,width=400,height=400",
+ );
+ return;
+ }
+ if (n == "stkView") {
+ open(
+ "https://store.line.me/stickershop/product/" +
+ arg[0].dataset.stkPkgId,
+ );
+ return;
+ }
+ if (n == "openProfileImg") {
+ open(
+ "https://obs.line-scdn.net/" +
+ (await getProfile(arg[0].parentElement.dataset.mid, true))
+ .profileImageObsHash,
+ "image",
+ "popup,width=400,height=400",
+ );
+ return;
+ }
+ if (n == "openConsole") {
+ consoleRoom();
+ return;
+ }
+ if (n == "msgAction") {
+ genTxtPopup({
+ name: "Message Data",
+ desc: JSON.stringify(add, null, 2),
+ });
+ return;
+ }
+ if (n == "eventView") {
+ genTxtPopup({ name: "Event Data", desc: JSON.stringify(add, null, 2) });
+ return;
+ }
+ if (n == "msgInput") {
+ return;
+ }
+ console.log(n, arg);
+}
+async function runCommand(command) {
+ console.log(command);
+ command = command.split(" ");
+ switch (command[1]) {
+ case "viewRead":
+ if (command[2] == "true") {
+ roomData.setting.viewMkRead = true;
+ return "viewMkRead : true";
+ } else {
+ roomData.setting.viewMkRead = false;
+ return "viewMkRead : false";
+ }
+ case "allkick":
+ return "👿";
+ case "silent":
+ return `${command[2]} : mode = Silent`;
+ case "nosilent":
+ return `${command[2]} : mode = Normal`;
+ case "status":
+ return `OpenChat-Web-Client : ${window.version} / ${window.versionCode}
+User-Name : ${Line.name}
+User-Mid : ${Line.mid}
+User-Device : ${Line.deviceName}
+SquareChatMid : ${roomData.commandMid ? roomData.commandMid : roomData.roomMid}
+MySquareMemberMid : ${roomData.mymid}`;
+ case "cd":
+ roomData.commandMid = command[2];
+ roomData.mymid = null;
+ return `SquareChatMid : ${roomData.commandMid}`;
+ default:
+ return "unknown command : " + command[1];
+ }
+}
+function consoleRoom() {
+ let data = {
+ mymid: roomData.mymid,
+ mid: roomData.roomMid,
+ name: "Console",
+ member: version,
+ img: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBoRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAMAAAExAAIAAAARAAAATgAAAAAAAJOjAAAD6AAAk6MAAAPocGFpbnQubmV0IDUuMC4xMwAA/+ICKElDQ19QUk9GSUxFAAEBAAACGAAAAAAEMAAAbW50clJHQiBYWVogAAAAAAAAAAAAAAAAYWNzcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAPbWAAEAAAAA0y0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJZGVzYwAAAPAAAAB0clhZWgAAAWQAAAAUZ1hZWgAAAXgAAAAUYlhZWgAAAYwAAAAUclRSQwAAAaAAAAAoZ1RSQwAAAaAAAAAoYlRSQwAAAaAAAAAod3RwdAAAAcgAAAAUY3BydAAAAdwAAAA8bWx1YwAAAAAAAAABAAAADGVuVVMAAABYAAAAHABzAFIARwBCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9wYXJhAAAAAAAEAAAAAmZmAADypwAADVkAABPQAAAKWwAAAAAAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y1tbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCAABAAEDARIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+f+igD//Z",
+ inputName: "コマンド ",
+ };
+ let res = genChatroom(data);
+ $("#root > div > div > div:nth-child(4)").in(res);
+ if (!roomData.commandMid) {
+ roomData.commandMid = roomData.roomMid;
+ }
+ roomData.command = true;
+ roomData.roomMid = null;
+ data = {
+ isSelected: false,
+ timeInt: new Date().getTime(),
+ timeStr: new Date()
+ .toLocaleTimeString()
+ .substring(0, 5),
+ profile: { img: defaltIMG, name: "console", mid: "vconsole" },
+ mid: "vconsole",
+ msgId: new Date().getTime(),
+ contentType: 0,
+ direction: "", //reverse
+ msgGroup: "item",
+ text: `chatCommand
+OpenChat-Web-Client : ${window.version} / ${window.versionCode}
+User-Name : ${Line.name}
+User-Mid : ${Line.mid}
+User-Device : ${Line.deviceName}
+SquareChatMid : ${roomData.commandMid}
+MySquareMemberMid : ${roomData.mymid}`,
+ };
+ appendMsgByData(data);
+}
+function cResponse(text) {
+ data = {
+ isSelected: false,
+ timeInt: new Date().getTime(),
+ timeStr: new Date()
+ .toLocaleTimeString()
+ .substring(0, 5),
+ profile: { img: defaltIMG, name: "console", mid: "vconsole" },
+ mid: "vconsole",
+ msgId: new Date().getTime(),
+ contentType: 0,
+ direction: "", //reverse
+ msgGroup: "item",
+ text: text,
+ };
+ appendMsgByData(data);
+}
+function cRequest(text) {
+ data = {
+ isSelected: false,
+ timeInt: new Date().getTime(),
+ timeStr: new Date()
+ .toLocaleTimeString()
+ .substring(0, 5),
+ profile: { img: defaltIMG, name: "console", mid: "vconsole" },
+ mid: "vconsole",
+ msgId: new Date().getTime(),
+ contentType: 0,
+ direction: "reverse", //
+ msgGroup: "item",
+ text: text,
+ };
+ appendMsgByData(data);
+}
+function appendMsgByData(data) {
+ let dom = genMsg(data);
+ roomData.messageView.elmList.prepend(dom);
+ if (roomData.followLatest) {
+ dom.scrollIntoView();
+ }
+ observer.observe(dom);
+}
+async function squareChat2chatroom(squareChatResponse) {
+ roomData.messageView.dataList = [];
+ roomData.commandMid = null;
+ roomData.command = false;
+ roomData.roomMid = squareChatResponse.squareChat.squareChatMid;
+ let data = {
+ mymid: squareChatResponse.squareChatMember.squareMemberMid,
+ mid: squareChatResponse.squareChat.squareChatMid,
+ name: squareChatResponse.squareChat.name,
+ member: squareChatResponse.squareChatStatus.otherStatus.memberCount,
+ img: await getObsUrl(squareChatResponse.squareChat.chatImageObsHash),
+ inputName: (await getProfile(
+ squareChatResponse.squareChatMember.squareMemberMid,
+ )).name + "として",
+ };
+ let res = genChatroom(data);
+ $("#root > div > div > div:nth-child(4)").in(res);
+ return res;
+}
+function genChatroom(data) {
+ let mlist = div(
+ {
+ "class": "message_list",
+ "role": "log",
+ "data-mymid": data.mymid,
+ "$scroll": (...arg) => {
+ buttonEvent("chatScroll", arg);
+ },
+ "style": "background-color:rgba(0,0,0,0.2)",
+ },
+ );
+ roomData.mymid = data.mymid;
+ roomData.messageView.elmList = mlist;
+ let notifyMsg = div({});
+ roomData.notifyMsg = notifyMsg;
+ return div(
+ {
+ "class": "chatroom-module__chatroom__eVUaK ",
+ "data-mid": data.mid,
+ "data-font-size": "normal",
+ "data-is-dropzone": "true",
+ },
+ div(
+ {
+ "class": "chatroomHeader-module__header__ihDT2",
+ },
+ div(
+ {
+ "class": "chatroomHeader-module__inner__0P5fp",
+ },
+ div(
+ {
+ "class": "chatroomHeader-module__info__2my0W",
+ },
+ button(
+ {
+ "type": "button",
+ "class":
+ "chatroomHeader-module__button_name__US7lb",
+ "aria-controls": "member_popup",
+ "aria-haspopup": "false",
+ "aria-expanded": "false",
+ "$click": (...arg) => {
+ buttonEvent("memberView", arg);
+ },
+ },
+ strong(
+ {
+ "class": "chatroomHeader-module__name__t-K11",
+ },
+ pre(
+ {},
+ span(
+ {},
+ data.name,
+ ),
+ ),
+ ),
+ span(
+ {
+ "class":
+ "chatroomHeader-module__member_count__s6hqu",
+ },
+ "(" + data.member + ")",
+ ),
+ ),
+ button(
+ {
+ "class":
+ "chatroomHeader-module__button_alarm__dBqwP",
+ "data-tooltip": "通知オフ",
+ "$click": (...arg) => {
+ buttonEvent("chatNotiDisable", arg);
+ },
+ },
+ i(
+ {
+ "class":
+ "icon chatroomHeader-module__icon_alarm__tgjw2",
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "7.0",
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)",
+ },
+ path(
+ {
+ "d": "m8.377 7.845 5.004-4.665c.419-.391 1.119-.103 1.119.46v16.72c0 .563-.699.851-1.119.46l-5.004-4.665H2.661a.654.654 0 0 1-.654-.545L2 15.515v-7.03a.65.65 0 0 1 .661-.64h5.716zm9.37 1.243a4.185 4.185 0 0 0-.725-.57l-.702 1.09.175.118A2.793 2.793 0 0 1 16.819 14c-.153.15-.32.281-.498.392l.701 1.09.192-.127c.19-.133.368-.28.533-.443a4.068 4.068 0 0 0 0-5.824zM18.637 6c.452.28.87.61 1.25.983a7.008 7.008 0 0 1 0 10.034c-.305.3-.634.57-.983.809L18.64 18l-.704-1.09c.37-.23.712-.5 1.023-.805a5.735 5.735 0 0 0 0-8.21 5.874 5.874 0 0 0-.753-.626l-.27-.179.701-1.09z",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ button(
+ {
+ "class":
+ "chatroomHeader-module__button_popup__tcF1V",
+ "data-tooltip": "閉じる",
+ "$click": (...arg) => {
+ buttonEvent("closeChat", arg);
+ },
+ },
+ "X",
+ ),
+ ),
+ div(
+ {
+ "class": "chatroomHeader-module__action_group__k8w1P",
+ },
+ button(
+ {
+ "type": "button",
+ "aria-label": "more button",
+ "data-tooltip": "ノート",
+ "class":
+ "chatroomHeader-module__button_more__9rz-2",
+ "aria-haspopup": "true",
+ "$click": (...arg) => {
+ buttonEvent("noteView", arg);
+ },
+ },
+ i(
+ {
+ "class":
+ "icon chatroomHeader-module__icon_more__Q8OVO",
+ },
+ svg(
+ {
+ "xmlns": "http://www.w3.org/2000/svg",
+ "height": "2em",
+ "fill": "#fff",
+ "viewBox": "0 0 20 20",
+ },
+ g(
+ {
+ "stroke": "#000",
+ "stroke-width": "1.5",
+ },
+ path(
+ {
+ "d": "M3.75 4c0-.69.56-1.25 1.25-1.25h13c.69 0 1.25.56 1.25 1.25v14.004c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25V4zM8.523 8.026h5.954M8.523 10.979h5.954M8.523 13.979h5.954",
+ },
+ ),
+ ),
+ defs(
+ {},
+ clipPath(
+ {
+ "id": "bcclip0_1_5447",
+ },
+ path(
+ {
+ "fill": "currentColor",
+ "transform": "translate(3 2)",
+ "d": "M0 0h17v18H0z",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ button(
+ {
+ "type": "button",
+ "aria-label": "more button",
+ "class":
+ "chatroomHeader-module__button_more__9rz-2",
+ "aria-haspopup": "true",
+ "$click": (...arg) => {
+ buttonEvent("chatAction", arg);
+ },
+ },
+ i(
+ {
+ "class":
+ "icon chatroomHeader-module__icon_more__Q8OVO",
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0",
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)",
+ },
+ path(
+ {
+ "d": "M12 16.4722c.829 0 1.5.671 1.5 1.5 0 .311-.094.599-.256.838-.054.08-.116.155-.183.223a1.499 1.499 0 0 1-1.061.439c-.414 0-.789-.168-1.061-.439a1.5739 1.5739 0 0 1-.183-.223 1.487 1.487 0 0 1-.256-.838c0-.829.671-1.5 1.5-1.5ZM12 10.5c.829 0 1.5.671 1.5 1.5s-.671 1.5-1.5 1.5-1.5-.671-1.5-1.5.671-1.5 1.5-1.5Zm0-5.9722c.829 0 1.5.672 1.5 1.5 0 .829-.671 1.5-1.5 1.5s-1.5-.671-1.5-1.5c0-.828.671-1.5 1.5-1.5Z",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ div(
+ {
+ "class": "chatroomContent-module__content_area__gK6db ",
+ "style": "background-image:url(" + data.img +
+ ");background-size: 100% auto;background-position: center;height:50vh;",
+ },
+ ul(
+ {
+ "class": "ToastContainer-module__toast-list__QAniw",
+ "style": "z-index: 100;",
+ },
+ ),
+ button(
+ {
+ "type": "button",
+ "aria-label": "Scroll down",
+ "class":
+ "scrollDownButton-module__button_scroll_down__-XrLT",
+ "data-hidden": "true",
+ "$click": (...arg) => {
+ buttonEvent("chatDown", arg);
+ },
+ },
+ i(
+ {
+ "class":
+ "icon scrollDownButton-module__icon_arrow__6We-I",
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "5.0",
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)",
+ },
+ path(
+ {
+ "d": "m13 3.6245-.0002 13.046 5.7122-5.4163 1.3762 1.4512L12 20.3754l-8.0882-7.67 1.3762-1.4512 5.7118 5.4163L11 3.6245h2Z",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ mlist,
+ notifyMsg,
+ ),
+ div(
+ {
+ "class": "chatroomEditor-module__editor_area__1UsgR",
+ },
+ div(
+ {
+ "data-is-empty": "true",
+ "class": "text chatroomEditor-module__textarea__yKTlH",
+ spellcheck: "false",
+ autofocus: "",
+ maxlength: "10000",
+ placeholder: "メッセージを入力",
+ },
+ textarea(
+ {
+ "part": "input",
+ "class": "input ",
+ "placeholder": data.inputName + "メッセージを入力",
+ "maxlength": "10000",
+ "autofocus": "",
+ "style":
+ 'max-width: 100%; min-width: 100%;max-height:150%;--inherited-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", helvetica, "Hiragino Sans", arial, "MS PGothic", sans-serif; --webfont-family: F2607980855;',
+ "$input": (...arg) => {
+ buttonEvent("msgInput", arg);
+ },
+ },
+ ),
+ div(
+ {
+ "class": "cover",
+ "part": "cover",
+ "style":
+ '--inherited-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", helvetica, "Hiragino Sans", arial, "MS PGothic", sans-serif; --webfont-family: F2607980855;',
+ },
+ ),
+ ),
+ div(
+ {
+ "class": "actionGroup-module__action_box__-HA8N ",
+ },
+ button(
+ {
+ "type": "button",
+ "aria-label": "Send file",
+ "class": "actionGroup-module__button_action__VwNgx",
+ "data-type": "file",
+ "data-tooltip": "ファイル送信",
+ "data-tooltip-placement": "top-start",
+ "$click": (...arg) => {
+ buttonEvent("sendFile", arg);
+ },
+ },
+ i(
+ {
+ "class": "icon",
+ },
+ svg(
+ {
+ "width": "24",
+ "height": "24",
+ "viewBox": "0 0 24 24",
+ "fill": "none",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ path(
+ {
+ "d": "M11.479 4.971c1.664-1.925 4.658-2.24 6.686-.702.988.749 1.603 1.823 1.73 3.021a4.32 4.32 0 0 1-.908 3.123l-.156.19-8.75 10.125-1.1-.834 8.78-10.158c.566-.655.828-1.47.74-2.3A3.009 3.009 0 0 0 17.3 5.341c-1.382-1.049-3.414-.88-4.615.352l-.134.147-6.762 7.828a1.86 1.86 0 0 0-.458 1.421c.054.513.316.971.744 1.295a2.16 2.16 0 0 0 1.54.418 2.17 2.17 0 0 0 1.296-.597l.123-.131 6.763-7.83a.707.707 0 0 0-.109-1.042.885.885 0 0 0-1.098.046l-.078.078-5.367 6.213-1.043-.954 5.34-6.128a2.316 2.316 0 0 1 3.113-.326 2.034 2.034 0 0 1 .415 2.854l-.102.127-6.763 7.83a3.579 3.579 0 0 1-2.348 1.21 3.578 3.578 0 0 1-2.55-.696 3.192 3.192 0 0 1-1.269-2.22 3.176 3.176 0 0 1 .638-2.26l.142-.176 6.762-7.829z",
+ "fill": "#303030",
+ },
+ ),
+ ),
+ ),
+ ),
+ button(
+ {
+ "type": "button",
+ "aria-label": "Select sticker",
+ "class": "actionGroup-module__button_action__VwNgx",
+ "data-type": "sticker",
+ "data-tooltip": "スタンプ",
+ "data-tooltip-placement": "top-end",
+ "$click": (...arg) => {
+ buttonEvent("sendStk", arg);
+ },
+ },
+ i(
+ {
+ "class": "icon",
+ },
+ svg(
+ {
+ "width": "24",
+ "height": "24",
+ "viewBox": "0 0 24 24",
+ "fill": "none",
+ "xmlns": "http://www.w3.org/2000/svg",
+ },
+ g(
+ {
+ "opacity": "0.01",
+ "fill": "#fff",
+ },
+ path(
+ {
+ "d": "M0 0h24v24H0z",
+ },
+ ),
+ path(
+ {
+ "opacity": "0.7",
+ "d": "M2 2h20v20H2z",
+ },
+ ),
+ ),
+ path(
+ {
+ "d": "M14.843 13.17a.624.624 0 0 0-.853.228 2.76 2.76 0 0 1-4.78 0 .624.624 0 1 0-1.08.625 4.008 4.008 0 0 0 6.94 0 .624.624 0 0 0-.227-.852z",
+ "fill": "#303030",
+ },
+ ),
+ circle(
+ {
+ "cx": "14.266",
+ "cy": "10.464",
+ "r": "0.96",
+ "fill": "#303030",
+ },
+ ),
+ circle(
+ {
+ "cx": "8.934",
+ "cy": "10.464",
+ "r": "0.96",
+ "fill": "#303030",
+ },
+ ),
+ path(
+ {
+ "fill-rule": "evenodd",
+ "clip-rule": "evenodd",
+ "d": "M11.6 3.22a8.88 8.88 0 1 0 8.88 8.88 8.89 8.89 0 0 0-8.88-8.88zm0 16.512a7.632 7.632 0 1 1 7.632-7.632 7.64 7.64 0 0 1-7.632 7.632z",
+ "fill": "#303030",
+ },
+ ),
+ path(
+ {
+ "d": "M11.6 3.22v-.1.1zm8.88 8.88h.1-.1zm-8.88 7.632v.1-.1zm7.632-7.632h.1-.1zM11.6 3.12a8.98 8.98 0 0 0-8.98 8.98h.2a8.78 8.78 0 0 1 8.78-8.78v-.2zM2.62 12.1a8.98 8.98 0 0 0 8.98 8.98v-.2a8.78 8.78 0 0 1-8.78-8.78h-.2zm8.98 8.98a8.98 8.98 0 0 0 8.98-8.98h-.2a8.78 8.78 0 0 1-8.78 8.78v.2zm8.98-8.98a8.99 8.99 0 0 0-8.98-8.98v.2a8.79 8.79 0 0 1 8.78 8.78h.2zm-8.98 7.532a7.532 7.532 0 0 1-6.96-4.649l-.184.077a7.732 7.732 0 0 0 7.144 4.772v-.2zm-6.96-4.649a7.532 7.532 0 0 1 1.633-8.209l-.142-.141a7.732 7.732 0 0 0-1.675 8.427l.185-.077zm1.633-8.209a7.532 7.532 0 0 1 8.209-1.633l.076-.185a7.732 7.732 0 0 0-8.427 1.677l.142.141zm8.209-1.633a7.532 7.532 0 0 1 4.65 6.959h.2a7.732 7.732 0 0 0-4.774-7.144l-.076.185zm4.65 6.959a7.54 7.54 0 0 1-7.532 7.532v.2a7.74 7.74 0 0 0 7.731-7.732h-.2z",
+ "fill": "#303030",
+ },
+ ),
+ ),
+ ),
+ ),
+ button(
+ {
+ "type": "button",
+ "aria-label": "Select sticker",
+ "class": "actionGroup-module__button_action__VwNgx",
+ "data-type": "send",
+ "data-tooltip": "送信",
+ "data-tooltip-placement": "top-end",
+ "$click": (...arg) => {
+ buttonEvent("send", arg);
+ },
+ },
+ i(
+ {
+ "class": "icon",
+ "style": "color:#007aff;",
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "15.0",
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)",
+ },
+ path(
+ {
+ "d": "m20.1864 11.0044-15.477-7.736a1.1091 1.1091 0 0 0-1.165.105c-.338.254-.503.671-.427 1.087l1.274 7.04h8.108v1h-8.119l-1.263 7.039c-.076.417.089.833.427 1.087.198.148.432.224.667.224.169 0 .34-.039.499-.118l15.476-7.737c.379-.19.614-.571.614-.995 0-.425-.235-.806-.614-.996Z",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+}
+
+const observer = new IntersectionObserver((entries) => {
+ for (const e of entries) {
+ if (e.isIntersecting) {
+ e.target.setAttribute("style", "");
+ } else {
+ e.target.setAttribute("style", "visibility:hidden;");
+ }
+ }
+});
+
+var fileMenu = "";
+
+async function Message2Elm(message) {
+ let date = new Date(message.deliveredTime);
+ let data = {
+ isSelected: false,
+ timeInt: message.deliveredTime,
+ timeStr: date.getHours() + ":" + date.getMinutes(),
+ profile: await getProfile(message._from),
+ mid: message._from,
+ msgId: message.id,
+ rId: message.relatedMessageId,
+ contentType: message.contentType,
+ direction: "",
+ msgGroup: "",
+ };
+
+ if (data.mid == roomData.mymid) {
+ data.direction = "reverse";
+ }
+ if (
+ data.rId && (message.relatedMessageServiceCode == 2) &&
+ (message.messageRelationType == 3)
+ ) {
+ data.reply = await getMsgById(data.rId);
+ }
+ let add;
+
+ if (message.contentMetadata && message.contentMetadata.UNSENT == "true") {
+ return [genSysMsg({
+ event: {
+ timeStr: data.timeStr,
+ arg: message,
+ text: data.profile.name + "が送信取り消ししたメッセージ",
+ },
+ })];
+ }
+
+ switch (message.contentType) {
+ case 0: //t
+ add = {
+ text: [message.text],
+ emoji: message.contentMetadata
+ ? message.contentMetadata.REPLACE
+ : null,
+ mention: message.contentMetadata
+ ? message.contentMetadata.MENTION
+ : null,
+ };
+ data = { ...data, ...add };
+ break;
+ case undefined: //t
+ add = {
+ text: [message.text],
+ emoji: message.contentMetadata
+ ? message.contentMetadata.REPLACE
+ : null,
+ mention: message.contentMetadata
+ ? message.contentMetadata.MENTION
+ : null,
+ };
+ data = { ...data, ...add };
+ break;
+ case 1: //i
+ add = {
+ data: {
+ preview: await getMPDataUrl(message.id),
+ },
+ };
+ data = { ...data, ...add };
+ break;
+ case 2: //v
+ add = {
+ data: {
+ preview: await getMPDataUrl(message.id),
+ },
+ };
+ data = { ...data, ...add };
+ break;
+ case 3: //a
+ add = {
+ data: await getMDataUrl(message.id),
+ };
+ data = { ...data, ...add };
+ break;
+ case 7: //st
+ add = {
+ img: await getStkDataUrl(message.contentMetadata.STKID),
+ stkId: message.contentMetadata.STKID,
+ stkPId: message.contentMetadata.STKPKGID,
+ };
+ data = { ...data, ...add };
+ break;
+ case 14: //fi
+ break;
+ case 16: //note
+ add = {
+ text: message.text,
+ url: message.contentMetadata.postEndUrl,
+ createBy: message.contentMetadata.officialName,
+ };
+ data = { ...data, ...add };
+ break;
+ break;
+ case 22: //fl
+ add = {
+ text: message.contentMetadata.ALT_TEXT,
+ flex: message.contentMetadata.FLEX_JSON,
+ };
+ data = { ...data, ...add };
+ break;
+ default:
+ break;
+ }
+
+ return [genMsg(data, message), data, genMsg]; //elm data func
+}
+
+function genSysMsg(data, raw) {
+ if (data.date) {
+ return div(
+ {
+ "class": "messageDate-module__date_wrap__I4ily ",
+ "data-selected": "false",
+ },
+ time(
+ {
+ "class": "messageDate-module__date__pDnK3",
+ },
+ data.date,
+ ),
+ );
+ } else if (data.event) {
+ return div(
+ {
+ "class": "systemMessage-module__message__yIiOJ ",
+ "data-flexible": "true",
+ "data-selected": "false",
+ "data-timestamp": data.event.timeStr,
+ "$click": (data.event.arg
+ ? (...arg) => {
+ setTimeout(() =>
+ genTxtPopup({
+ name: "Event Data",
+ desc: JSON.stringify(data.event.arg, null, 2),
+ })
+ );
+ }
+ : data.event.onclick),
+ },
+ div(
+ {
+ "class": "systemMessage-module__text__7T3Lj",
+ },
+ pre(
+ {},
+ time(
+ {
+ "class": "systemMessage-module__date__o1LDL",
+ "style": "color:#fff;",
+ },
+ data.event.timeStr,
+ ),
+ span(
+ { "style": "color:#fff;" },
+ data.event.text,
+ ),
+ ),
+ ),
+ );
+ }
+}
+function genMsg(data = {}, raw) {
+ return div(
+ {
+ "class":
+ "message-module__message__7odk3 messageLayout-module__message__YVDhk ",
+ "data-selected": data.isSelected,
+ "data-timestamp": data.timeInt,
+ "data-message-content-prefix": data.timeStr + " " +
+ data.profile.name,
+ "data-mid": data.mid,
+ "data-group": data.msgGroup,
+ "data-direction": data.direction,
+ "data-id": data.msgId,
+ },
+ div(
+ {
+ "class":
+ "thumbnail profileImage-module__thumbnail_wrap__0bK7m ",
+ "data-mid": data.mid,
+ "data-profile-image": "true",
+ "style": "border-radius: 50%;",
+ },
+ button(
+ {
+ "type": "button",
+ "class": "profileImage-module__button_profile__GqKue",
+ "$click": (...arg) => {
+ buttonEvent("openProfile", arg);
+ },
+ },
+ div(
+ {
+ "class": "profileImage-module__thumbnail_area__nqIpB",
+ },
+ span(
+ {
+ "class": "profileImage-module__thumbnail__Q6OsR",
+ },
+ img(
+ {
+ "src": data.profile.img,
+ "class": "",
+ "loading": "lazy",
+ "alt": "",
+ "draggable": "false",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ pre(
+ {
+ "class": "username-module__username__vGQGj",
+ "style": "color:#fff;",
+ },
+ fuchi(data.profile.name),
+ ),
+ div(
+ {
+ "class": "messageLayout-module__content__PGz66",
+ },
+ div(
+ {
+ "class": "message-module__content__OuUCi",
+ },
+ div(
+ {
+ "class": "message-module__content_inner__j-iko",
+ },
+ msgMain(data, raw),
+ div(
+ {
+ "class": "metaInfo-module__meta__F2Lfn ",
+ },
+ span(
+ {
+ "class": "metaInfo-module__read_count__8-U6j",
+ },
+ ),
+ time(
+ {
+ "class": "metaInfo-module__send_time__-3Q6-",
+ "style": "color:#fff;",
+ },
+ fuchi(data.timeStr),
+ ),
+ ),
+ ),
+ ),
+ div(
+ {
+ "class":
+ "reactionBubblelist-module__reaction_bubble_list__eV9o2 ",
+ },
+ ),
+ fileMenu,
+ ),
+ "",
+ );
+}
+function msgMain(data, raw) {
+ fileMenu = "";
+ switch (data.contentType) {
+ case 0: //txt
+ if (data.reply) {
+ return replyBox(data, textMsg(data));
+ } else {
+ return textMsg(data);
+ }
+ break;
+ case undefined: //txt
+ if (data.reply) {
+ return replyBox(data, textMsg(data));
+ } else {
+ return textMsg(data);
+ }
+ break;
+ case 1: //img
+ return imgMsg(data);
+ case 2: //video
+ return videoMsg(data);
+ case 3: //audio
+ return audioMsg(data);
+ case 7: //sticker
+ return stickerMsg(data);
+ case 14: //file
+ break;
+ case 16: //note
+ return noteMessage(data);
+ case 22: //flex
+ return flexMsg(data);
+ default:
+ break;
+ }
+ function noteMessage(data) {
+ if (!data.text) {
+ data.text = "";
+ }
+ let text = [
+ "ノート\n",
+ data.text,
+ "\n",
+ a({ href: data.url }, "ノートを見る"),
+ ];
+ return div(
+ {
+ "class": "textMessageContent-module__content_wrap__238E1 ",
+ "data-message-id": data.msgId,
+ "$contextmenu": (...arg) => {
+ buttonEvent("msgAction", arg, raw);
+ },
+ "data-direction": data.direction,
+ },
+ pre(
+ {
+ "class": "textMessageContent-module__text__EFwEN",
+ },
+ span(
+ {
+ "data-message-content": "",
+ "data-is-message-text": "true",
+ },
+ ...text,
+ ),
+ ),
+ );
+ }
+ function textMsg(data) {
+ if (!data.text) {
+ data.text = [""];
+ }
+ if (data.mention) {
+ let mention = JSON.parse(data.mention);
+ let txt = [];
+ let otxt = data.text[0];
+ mention.MENTIONEES.forEach((e, i, l) => {
+ let oE;
+ if (l[i - 1]) {
+ oE = Number(l[i - 1].E);
+ } else {
+ oE = 0;
+ }
+
+ if (i == (l.length - 1)) {
+ txt.push(otxt.substring(oE, Number(e.S)));
+ txt.push(strong(
+ {
+ "class": "mention",
+ "data-mid": e.M,
+ "$click": (...arg) => {
+ buttonEvent("openProfileM", arg);
+ },
+ },
+ otxt.substring(Number(e.S), Number(e.E)),
+ ));
+ txt.push(otxt.substring(Number(e.E)));
+ } else {
+ txt.push(otxt.substring(oE, Number(e.S)));
+ txt.push(strong(
+ {
+ "class": "mention",
+ "data-mid": e.M,
+ "$click": (...arg) => {
+ buttonEvent("openProfileM", arg);
+ },
+ },
+ otxt.substring(Number(e.S), Number(e.E)),
+ ));
+ }
+ });
+ data.text = txt;
+ } else if (data.emoji) {
+ let emoji = JSON.parse(data.emoji);
+ let txt = [];
+ let otxt = data.text[0];
+ emoji.sticon.resources.forEach((e, i, l) => {
+ let oE;
+ if (l[i - 1]) {
+ oE = l[i - 1].E;
+ } else {
+ oE = 0;
+ }
+
+ if (i == (l.length - 1)) {
+ txt.push(otxt.substring(oE, e.S));
+ txt.push(span(
+ {
+ "class": "emoji-wrap",
+ "data-tooltip": "",
+ "data-tooltip-is-html": "true",
+ "data-tooltip-is-preserved": "true",
+ "data-emoji": e.productId + ":" + e.sticonId,
+ "$click": (...arg) => {
+ buttonEvent("emojiView", arg);
+ },
+ },
+ img(
+ {
+ "src":
+ `https://stickershop.line-scdn.net/sticonshop/v1/sticon/${e.productId}/android/${e.sticonId}.png`,
+ "class": "emoji",
+ "alt": "(emoji)",
+ "loading": "lazy",
+ },
+ ),
+ ));
+ txt.push(otxt.substring(e.E));
+ } else {
+ txt.push(otxt.substring(oE, e.S));
+ txt.push(span(
+ {
+ "class": "emoji-wrap",
+ "data-tooltip": "",
+ "data-tooltip-is-html": "true",
+ "data-tooltip-is-preserved": "true",
+ "data-emoji": e.productId + ":" + e.sticonId,
+ "$click": (...arg) => {
+ buttonEvent("emojiView", arg);
+ },
+ },
+ img(
+ {
+ "src":
+ `https://stickershop.line-scdn.net/sticonshop/v1/sticon/${e.productId}/android/${e.sticonId}.png`,
+ "class": "emoji",
+ "alt": "(emoji)",
+ "loading": "lazy",
+ },
+ ),
+ ));
+ }
+ });
+ data.text = txt;
+ }
+ return div(
+ {
+ "class": "textMessageContent-module__content_wrap__238E1 ",
+ "data-message-id": data.msgId,
+ "$contextmenu": (...arg) => {
+ buttonEvent("msgAction", arg, raw);
+ },
+ "data-direction": data.direction,
+ },
+ pre(
+ {
+ "class": "textMessageContent-module__text__EFwEN",
+ "style": "max-height: 500px;overflow-y: auto;",
+ },
+ span(
+ {
+ "data-message-content": "",
+ "data-is-message-text": "true",
+ },
+ ...data.text,
+ ),
+ ),
+ );
+ }
+
+ function replyBox(data, index) {
+ return div(
+ {
+ "class": "replyMessageContent-module__content_wrap__D0K-5 ",
+ "data-type": "",
+ "data-content-type": "",
+ "data-message-id": data.rId,
+ },
+ button(
+ {
+ "type": "button",
+ "class": "replyMessageContent-module__button_move__Jo33w",
+ "aria-label": "See in chat",
+ "$click": (...arg) => {
+ buttonEvent("viewReply", arg);
+ },
+ },
+ div(
+ {
+ "class":
+ "replyMessageContent-module__message__0FNkK messageLayout-module__message__YVDhk ",
+ },
+ div(
+ {
+ "class":
+ "thumbnail profileImage-module__thumbnail_wrap__0bK7m ",
+ "data-mid": data.reply.profile.mid,
+ "data-profile-image": "true",
+ "style": "border-radius: 50%; cursor: default;",
+ },
+ div(
+ {
+ "class":
+ "profileImage-module__thumbnail_area__nqIpB",
+ },
+ span(
+ {
+ "class":
+ "profileImage-module__thumbnail__Q6OsR",
+ },
+ img(
+ {
+ "src": data.reply.profile.img,
+ "class": "",
+ "loading": "lazy",
+ "alt": "",
+ "draggable": "false",
+ },
+ ),
+ ),
+ ),
+ ),
+ pre(
+ {
+ "class": "username-module__username__vGQGj",
+ },
+ span(
+ {},
+ data.reply.profile.name,
+ ),
+ ),
+ div(
+ {
+ "class": "messageLayout-module__content__PGz66",
+ },
+ p(
+ {
+ "class":
+ "replyMessageContent-module__text__0T50-",
+ },
+ span(
+ {},
+ data.reply.txt,
+ ),
+ ),
+ ),
+ "",
+ ),
+ ),
+ index,
+ );
+ }
+ function imgMsg(data) {
+ return div(
+ {
+ "class": "imageMessageContent-module__content_wrap__bT-Si ",
+ "data-type": "",
+ },
+ div(
+ {
+ "class": "imageMessageContent-module__image_group__ZOeAa",
+ },
+ div(
+ {
+ "class": "imageMessageContent-module__item__fJDih ",
+ "data-message-id": data.msgId,
+ },
+ div(
+ {
+ "class":
+ "imageMessageContent-module__thumbnail__z4GO8",
+ },
+ button(
+ {
+ "type": "button",
+ "class":
+ "imageMessageContent-module__button_view__4y-jN",
+ "aria-label": "Show image",
+ "data-index": "0",
+ "$click": (...arg) => {
+ buttonEvent("imgMsgView", arg);
+ },
+ },
+ img(
+ {
+ "alt": "",
+ "src": data.data.preview,
+ "class": "",
+ "loading": "lazy",
+ "draggable": "false",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+ function videoMsg(data) {
+ return div(
+ {
+ "class": "videoMessageContent-module__content_wrap__ffvJq ",
+ "data-message-id": data.msgId,
+ },
+ div(
+ {
+ "class": "videoMessageContent-module__thumbnail__Va9Ie",
+ },
+ button(
+ {
+ "type": "button",
+ "class":
+ "videoMessageContent-module__button_view__qMX7E",
+ "aria-label": "view video",
+ "$click": (...arg) => {
+ buttonEvent("videoMsgView", arg);
+ },
+ },
+ img(
+ {
+ "alt": "",
+ "src": data.data.preview,
+ "class": "",
+ "loading": "lazy",
+ "draggable": "false",
+ },
+ ),
+ div(
+ {
+ "class": "videoMessageContent-module__info__j528-",
+ },
+ i(
+ {
+ "class":
+ "icon videoMessageContent-module__icon_play__N7WFP",
+ },
+ svg(
+ {
+ "height": "1em",
+ "fill": "currentColor",
+ "viewBox": "0 0 20 20",
+ "xmlns": "http://www.w3.org/2000/svg",
+ "data-laicon-version": "10.0",
+ },
+ g(
+ {
+ "transform": "translate(-2 -2)",
+ },
+ path(
+ {
+ "d": "M18.105 11.437a.665.665 0 0 1 0 1.126L7.412 19.29a.665.665 0 0 1-1.02-.563V5.274a.665.665 0 0 1 1.02-.563l10.693 6.726z",
+ },
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+ function audioMsg(data) {
+ return div(
+ {
+ "class": "textMessageContent-module__content_wrap__238E1 ",
+ "data-message-id": data.msgId,
+ },
+ audio(
+ {
+ controls: "",
+ src: data.data,
+ },
+ ),
+ );
+ }
+ function stickerMsg(data) {
+ return div(
+ {
+ "class": "stickerMessageContent-module__content_wrap__BGfk- ",
+ "data-message-id": data.msgId,
+ },
+ button(
+ {
+ "type": "button",
+ "class": "stickerMessageContent-module__button_view__rTOx0",
+ "aria-label": "view sticker",
+ "data-stkPkgId": data.stkPId,
+ "$click": (...arg) => {
+ buttonEvent("stkView", arg);
+ },
+ },
+ div(
+ {
+ "class":
+ "stickerMessageContent-module__thumbnail__eMXOS",
+ },
+ div(
+ {
+ "class": "sticker",
+ },
+ img(
+ {
+ "src": data.img,
+ "alt": "[スタンプ]",
+ "loading": "lazy",
+ "draggable": "false",
+ "class": "",
+ "width": "170",
+ "height": "149.33333333333334",
+ "data-is-owned": "false",
+ "data-is-effect-sticker": "false",
+ },
+ ),
+ ),
+ ),
+ ),
+ );
+ }
+ function flexMsg(data) {
+ let flex = JSON.parse(data.flex);
+ let html =
+ '';
+ html += flex2html("hide", {
+ "type": "flex",
+ "altText": "Flex Message",
+ "contents": flex,
+ }) + "
";
+ document.getElementById("hide").innerHTML = "";
+ let ifr = iframe(
+ {
+ "frameborder": "0",
+ "title": "",
+ "style": "width:100%;height:100%;",
+ "data-message-id": "501557461296873730",
+ "srcdoc": html,
+ },
+ );
+ setTimeout(() => {
+ ifr.setAttribute(
+ "style",
+ "width:" +
+ (ifr.contentWindow.document.documentElement.offsetWidth +
+ 1) +
+ "px;height:" +
+ (ifr.contentWindow.document.documentElement.offsetHeight +
+ 11) +
+ "px;",
+ );
+ }, 2000);
+
+ return div(
+ {
+ "class": "iframeMessage-module__iframe_wrap__PUSyZ",
+ },
+ ifr,
+ );
+ }
+ function fileM() {
+ fileMenu = div(
+ {
+ "class":
+ "message-module__action_group__c8hSm actionGroup-module__action_group__sGYDY",
+ },
+ button(
+ {
+ "type": "button",
+ "class": "actionGroup-module__button_action__Cu9RJ",
+ "$click": (...arg) => {
+ buttonEvent("dlFile", arg);
+ },
+ },
+ span(
+ {
+ "class": "actionGroup-module__text__OBOQx",
+ },
+ fuchi("保存"),
+ ),
+ ),
+ );
+ }
+}
+
+function fuchi(txt) {
+ return span(
+ { style: "color:#fff;" },
+ txt,
+ );
+}
+/*setInterval(()=>{
+ let a=Date.now()
+ setTimeout(()=>{
+ let b=Date.now()
+ if ((b-a)>80) {
+ location.reload()
+ }
+ },10)
+ debugger;
+
+},500)*/
diff --git a/site/rename_thrift.js b/site/rename_thrift.js
deleted file mode 100644
index 6c64fa9..0000000
--- a/site/rename_thrift.js
+++ /dev/null
@@ -1,129 +0,0 @@
-import thriftIdl from "./thriftrw-node/thrift-idl.js";
-
-function getType(obj) {
- if (obj.type === "BaseType") {
- return;
- } else if (obj.type === "Identifier") {
- return obj.name;
- }
-}
-function isStruct(obj) {
- return obj && obj.constructor === Object;
-}
-export default class ThriftRenameParser {
- constructor(input) {
- const def = thriftIdl.parse(input);
- const thrift_def = {};
- def.definitions.forEach((e) => {
- if (e.type === "Struct") {
- const name = e.id.name;
- const fields_def = [];
- const fields = e.fields;
- for (let i = 0; i < fields.length; i++) {
- const field = fields[i];
- const field_fid = field.id.value;
- const field_name = field.name;
- const field_def = { fid: field_fid, name: field_name };
- if (field.valueType.type == "Identifier") {
- field_def.struct = field.valueType.name;
- } else if (field.valueType.type == "Map") {
- field_def.map = getType(field.valueType.valueType);
- } else if (field.valueType.type == "List") {
- field_def.list = getType(field.valueType.valueType);
- } else if (field.valueType.type == "Set") {
- field_def.set = getType(field.valueType.valueType);
- }
- fields_def.push(field_def);
- }
- thrift_def[name] = fields_def;
- } else if (e.type === "Enum") {
- const name = e.id.name;
- const defs_def = {};
- const defs = e.definitions;
- for (let i = 0; i < defs.length; i++) {
- const def = defs[i];
- defs_def[def.value.value] = def.id.name;
- }
- thrift_def[name] = defs_def;
- }
- });
- this.def = thrift_def;
- }
- name2fid(struct_name, name) {
- const struct = this.def[struct_name];
- if (isStruct(struct)) {
- return struct.find((e) => {
- return e.name === name;
- });
- }
- }
- fid2name(struct_name, fid) {
- const struct = this.def[struct_name];
- if (struct) {
- const result = struct.findIndex((e) => {
- return e.fid == fid;
- });
- if (result === -1) {
- return { name: fid, fid: fid };
- } else {
- return struct[result];
- }
- } else {
- return { name: fid, fid: fid };
- }
- }
- rename_thrift(struct_name, object) {
- const newObject = {};
- for (const fid in object) {
- const value = object[fid];
- const finfo = this.fid2name(struct_name, fid);
- if (finfo.struct) {
- if (isStruct(this.def[finfo.struct])) {
- newObject[finfo.name] = this.rename_thrift(
- finfo.struct,
- value,
- );
- } else {
- newObject[finfo.name] = this.def[finfo.struct][value] ||
- value;
- }
- } else if (finfo.list) {
- newObject[finfo.name] = [];
- value.forEach((e, i) => {
- newObject[finfo.name][i] = this.rename_thrift(
- finfo.list,
- e,
- );
- });
- } else if (finfo.map) {
- newObject[finfo.name] = {};
- for (const key in value) {
- const e = value[key];
- newObject[finfo.name][key] = this.rename_thrift(
- finfo.map,
- e,
- );
- }
- } else if (finfo.set) {
- newObject[finfo.name] = [];
- value.forEach((e, i) => {
- newObject[finfo.name][i] = this.rename_thrift(
- finfo.set,
- e,
- );
- });
- } else {
- newObject[finfo.name] = value;
- }
- }
- return newObject;
- }
- rename_data(data){
- const name = data._info.fname
- const value = data.value
- const struct_name = name.substr(0, 1).toUpperCase() + name.substr(1) + "Response";
- data.value = this.rename_thrift(struct_name,value)
- return data
- }
-}
-
diff --git a/site/res/README.html b/site/res/README.html
new file mode 100644
index 0000000..e5c3b65
--- /dev/null
+++ b/site/res/README.html
@@ -0,0 +1,682 @@
+
+
+
+README.md
+
+
+
+
+
+
+
+
+
+
+Line-Deno-Client
+Line-Deno-ClientはDenoで書かれたLINEの非公式APIです。
+DenoまたはDeno DeployのHTTPサーバーを利用してブラウザ上で、またDeno単体でも実行できます。
+使用方法
+git clone -b dev https://github.com/test0987654321234567890/Line-Deno-Client
+cd Line-Deno-Client
+
+deno run server/main.js
+
+コード例
+インスタンス生成と初期化
+Denoの場合、importします。
+import LineClient from "./server/line_deno.js";
+
+Webの場合、deno run server/main.js
でサーバーを起動してからlocalhost:7070にアクセスします。
+または、Deno Deployのテストサーバーにアクセスします。
+メールとパスワードでログイン:
+const Line = new LineClient();
+await Line.init({
+ device: "device",
+ email: "email",
+ pw: "pass_word",
+ pincall: (pincode) => {
+
+ },
+});
+
+Tokenで初期化:
+const Line = new LineClient();
+await Line.init({
+ authToken: "FHZWgN1MvZyCcGvljBib.vVQ0sVYTH+QJRnQ0rDoTsW.GBdUE+X+C7SrvpMBMbBrjaVbhQc+hCFoijX6xE29cbM=",
+ device: "IOSIPAD",
+});
+
+Lineリクエストを送信
+LineClient.request
を使用してthriftデータを送信、受信できます:
+await Line.request(
+ CHRdata = [],
+ methodName,
+ protocol_type = 3,
+ parse = true,
+ path = "/S3",
+ headers = {},
+);
+
+
+
+実装されているメソッドを利用することもできます:
+
+await Line.getJoinedSquares(limit = 50, continuationToken);
+await Line.inviteIntoSquareChat(inviteeMids, squareChatMid);
+await Line.inviteToSquare(squareMid, invitees, squareChatMid);
+await Line.markAsRead(squareChatMid, messageId);
+await Line.reactToMessage(squareChatMid, messageId, reactionType = 2);
+
+await Line.findSquareByInvitationTicket(invitationTicket);
+await Line.fetchMyEvents(
+ syncToken = undefined,
+ limit = 100,
+ continuationToken = undefined,
+ subscriptionId,
+);
+await Line.fetchSquareChatEvents(
+ squareChatMid,
+ syncToken = undefined,
+ continuationToken = undefined,
+ subscriptionId = 0,
+ limit = 100,
+);
+await Line.sendSquareMessage(
+ squareChatMid,
+ text = "test Message",
+ contentType = 0,
+ contentMetadata = {},
+ relatedMessageId = undefined,
+);
+await Line.getSquare(squareMid);
+await Line.getSquareChat(squareChatMid);
+await Line.getJoinableSquareChats(
+ squareMid,
+ continuationToken = undefined,
+ limit = 100,
+);
+await Line.createSquare(
+ name = "TEST Square",
+ displayName = "Tester",
+ profileImageObsHash =
+ "0h6tJf0hQsaVt3H0eLAsAWDFheczgHd3wTCTx2eApNKSoefHNVGRdwfgxbdgUMLi8MSngnPFMeNmpbLi8MSngnPFMeNmpbLi8MSngnOA",
+ desc = "test with Line-Deno-Client",
+ searchable = true,
+ SquareJoinMethodType = 0,
+);
+
+await Line.getSquareChatAnnouncements(squareChatMid);
+await Line.updateSquareFeatureSet(
+ updateAttributes = [],
+ squareMid,
+ revision,
+ creatingSecretSquareChat = 0,
+);
+
+await Line.joinSquare(
+ squareMid,
+ displayName,
+ ableToReceiveMessage = false,
+ passCode = undefined,
+);
+await Line.removeSubscriptions(subscriptionIds = []);
+await Line.unsendSquareMessage(squareChatMid, messageId);
+await Line.createSquareChat(
+ squareChatMid,
+ name,
+ chatImageObsHash,
+ squareChatType = 1,
+ maxMemberCount = 5000,
+ ableToSearchMessage = 1,
+ squareMemberMids = [],
+);
+
+await Line.getSquareChatMembers(
+ squareChatMid,
+ continuationToken = undefined,
+ limit = 200,
+);
+await Line.getSquareFeatureSet(squareMid);
+await Line.getSquareInvitationTicketUrl(mid);
+await Line.updateSquareChatMember(
+ squareMemberMid,
+ squareChatMid,
+ notificationForMessage = true,
+ notificationForNewMember = true,
+ updatedAttrs = [6],
+);
+
+await Line.updateSquareMember(
+ updatedAttrs = [],
+ updatedPreferenceAttrs = [],
+ squareMemberMid,
+ squareMid,
+ revision,
+ displayName,
+ membershipState,
+ role,
+);
+
+await Line.kickOutSquareMember(sid, pid);
+await Line.checkSquareJoinCode(squareMid, code);
+await Line.createSquareChatAnnouncement(
+ squareChatMid,
+ messageId,
+ text,
+ senderSquareMemberMid,
+ createdAt,
+ announcementType = 0,
+);
+await Line.getSquareMember(squareMemberMid);
+await Line.searchSquareChatMembers(
+ squareChatMid,
+ displayName = "",
+ continuationToken,
+ limit = 20,
+);
+await Line.getSquareEmid(squareMid);
+await Line.getSquareMembersBySquare(squareMid, squareMemberMids = []);
+await Line.manualRepair(syncToken, limit = 100, continuationToken);
+await Line.sendSquareRequestByName(METHOD_NAME, params);
+
+await Line.getProfile();
+
+await Line.issueLiffView(
+ chatMid,
+ liffId = "1562242036-RW04okm",
+ lang = "ja_JP",
+);
+
+await Line.approveChannelAndIssueChannelToken(channelId = "1341209850");
+
+イベントハンドラー
+Squareでイベントハンドラーを利用できます。
+fetchMyEventsのハンドラー:
+const handler = (event, line) => {
+ console.log(event);
+};
+const remove = await Line.squareEvent(handler, ?syncToken, ?interval, ?remove);
+function stopRoop() {
+ remove.remove = true;
+}
+
+fetchSquareChatEventsのハンドラー:
+const handler = (event, line, mid) => {
+ console.log(event);
+};
+const remove = await Line.squareChatEvent(
+ handler,
+ mid,
+ ?syncToken,
+ ?interval,
+ ?remove,
+);
+function stopRoop() {
+ remove.remove = true;
+}
+
+addEventListener
+addEventListenerを利用して処理することもできます。
+fetchMyEventsのハンドラー:
+const eventTarget = Line.getSquareEventTarget();
+eventTarget.addEventListener(
+ "message",
+ (e) => console.log(e.squareMessage.message.text),
+);
+eventTarget.onmessage = (e) => console.log(e.squareMessage.message.text);
+
+function stopRoop() {
+ eventTarget.remove.remove = true;
+}
+
+fetchSquareChatEventsのハンドラー:
+const eventTarget = Line.getSquareChatEventTarget(mid);
+eventTarget.addEventListener(
+ "message",
+ (e) => {
+ console.log(e.squareMessage.message.text);
+ Line.sendSquareMessage(
+ mid,
+ e.squareMessage.message.text,
+ );
+
+ },
+);
+eventTarget.onmessage = (e) => console.log(e.squareMessage.message.text);
+
+eventTarget.addEventListener(
+ "markAsRead",
+ (e) => console.log("既読:", e),
+);
+
+function stopRoop() {
+ eventTarget.remove.remove = true;
+}
+
+イベント名の配列は以下のコードで取得できます:
+const eventNameArray = Line.parser.def.SquareEventPayload.map((e) => {
+ let name = e.name.replace("notified", "")
+ .replace("notification", "");
+ name = name[0].toLowerCase() + name.substring(1);
+ return name;
+});
+
+ただし、全てのイベントが確実に発生するとは限りません。
+例えば、メッセージの受信時にsquareEventTarget
ではmessage
のみ発生しますが、squareChatEventTarget
ではsendMessage
とreceiveMessage
も発生します。
+また、/site/res/thrift.json
|for webに記載されていないイベントではイベント名はそのfid
の値になります。
+Thanks
+このプロジェクトは直接的、または間接的に以下の人々/プロジェクトの支援を得ました。深く感謝します。
+
+Licence free
+
+
+
diff --git a/site/tmp/icon_tale.svg b/site/res/icon_tale.svg
similarity index 100%
rename from site/tmp/icon_tale.svg
rename to site/res/icon_tale.svg
diff --git a/site/tmp/main.bdef6c38.css b/site/res/main.bdef6c38.css
similarity index 100%
rename from site/tmp/main.bdef6c38.css
rename to site/res/main.bdef6c38.css
diff --git a/site/res/thrift.json b/site/res/thrift.json
new file mode 100644
index 0000000..ee80218
--- /dev/null
+++ b/site/res/thrift.json
@@ -0,0 +1,14958 @@
+{
+ "ApplicationType": {
+ "16": "IOS",
+ "17": "IOS_RC",
+ "18": "IOS_BETA",
+ "19": "IOS_ALPHA",
+ "32": "ANDROID",
+ "33": "ANDROID_RC",
+ "34": "ANDROID_BETA",
+ "35": "ANDROID_ALPHA",
+ "48": "WAP",
+ "49": "WAP_RC",
+ "50": "WAP_BETA",
+ "51": "WAP_ALPHA",
+ "64": "BOT",
+ "65": "BOT_RC",
+ "66": "BOT_BETA",
+ "67": "BOT_ALPHA",
+ "80": "WEB",
+ "81": "WEB_RC",
+ "82": "WEB_BETA",
+ "83": "WEB_ALPHA",
+ "96": "DESKTOPWIN",
+ "97": "DESKTOPWIN_RC",
+ "98": "DESKTOPWIN_BETA",
+ "99": "DESKTOPWIN_ALPHA",
+ "112": "DESKTOPMAC",
+ "113": "DESKTOPMAC_RC",
+ "114": "DESKTOPMAC_BETA",
+ "115": "DESKTOPMAC_ALPHA",
+ "128": "CHANNELGW",
+ "129": "CHANNELGW_RC",
+ "130": "CHANNELGW_BETA",
+ "131": "CHANNELGW_ALPHA",
+ "144": "CHANNELCP",
+ "145": "CHANNELCP_RC",
+ "146": "CHANNELCP_BETA",
+ "147": "CHANNELCP_ALPHA",
+ "160": "WINPHONE",
+ "161": "WINPHONE_RC",
+ "162": "WINPHONE_BETA",
+ "163": "WINPHONE_ALPHA",
+ "176": "BLACKBERRY",
+ "177": "BLACKBERRY_RC",
+ "178": "BLACKBERRY_BETA",
+ "179": "BLACKBERRY_ALPHA",
+ "192": "WINMETRO",
+ "193": "WINMETRO_RC",
+ "194": "WINMETRO_BETA",
+ "195": "WINMETRO_ALPHA",
+ "208": "S40",
+ "209": "S40_RC",
+ "210": "S40_BETA",
+ "211": "S40_ALPHA",
+ "224": "CHRONO",
+ "225": "CHRONO_RC",
+ "226": "CHRONO_BETA",
+ "227": "CHRONO_ALPHA",
+ "256": "TIZEN",
+ "257": "TIZEN_RC",
+ "258": "TIZEN_BETA",
+ "259": "TIZEN_ALPHA",
+ "272": "VIRTUAL",
+ "288": "FIREFOXOS",
+ "289": "FIREFOXOS_RC",
+ "290": "FIREFOXOS_BETA",
+ "291": "FIREFOXOS_ALPHA",
+ "304": "IOSIPAD",
+ "305": "IOSIPAD_RC",
+ "306": "IOSIPAD_BETA",
+ "307": "IOSIPAD_ALPHA",
+ "320": "BIZIOS",
+ "321": "BIZIOS_RC",
+ "322": "BIZIOS_BETA",
+ "323": "BIZIOS_ALPHA",
+ "336": "BIZANDROID",
+ "337": "BIZANDROID_RC",
+ "338": "BIZANDROID_BETA",
+ "339": "BIZANDROID_ALPHA",
+ "352": "BIZBOT",
+ "353": "BIZBOT_RC",
+ "354": "BIZBOT_BETA",
+ "355": "BIZBOT_ALPHA",
+ "368": "CHROMEOS",
+ "369": "CHROMEOS_RC",
+ "370": "CHROMEOS_BETA",
+ "371": "CHROMEOS_ALPHA",
+ "384": "ANDROIDLITE",
+ "385": "ANDROIDLITE_RC",
+ "386": "ANDROIDLITE_BETA",
+ "387": "ANDROIDLITE_ALPHA",
+ "400": "WIN10",
+ "401": "WIN10_RC",
+ "402": "WIN10_BETA",
+ "403": "WIN10_ALPHA",
+ "416": "BIZWEB",
+ "417": "BIZWEB_RC",
+ "418": "BIZWEB_BETA",
+ "419": "BIZWEB_ALPHA",
+ "432": "DUMMYPRIMARY",
+ "433": "DUMMYPRIMARY_RC",
+ "434": "DUMMYPRIMARY_BETA",
+ "435": "DUMMYPRIMARY_ALPHA",
+ "448": "SQUARE",
+ "449": "SQUARE_RC",
+ "450": "SQUARE_BETA",
+ "451": "SQUARE_ALPHA",
+ "464": "INTERNAL",
+ "465": "INTERNAL_RC",
+ "466": "INTERNAL_BETA",
+ "467": "INTERNAL_ALPHA",
+ "480": "CLOVAFRIENDS",
+ "481": "CLOVAFRIENDS_RC",
+ "482": "CLOVAFRIENDS_BETA",
+ "483": "CLOVAFRIENDS_ALPHA",
+ "496": "WATCHOS",
+ "497": "WATCHOS_RC",
+ "498": "WATCHOS_BETA",
+ "499": "WATCHOS_ALPHA",
+ "512": "OPENCHAT_PLUG",
+ "513": "OPENCHAT_PLUG_RC",
+ "514": "OPENCHAT_PLUG_BETA",
+ "515": "OPENCHAT_PLUG_ALPHA",
+ "528": "ANDROIDSECONDARY",
+ "529": "ANDROIDSECONDARY_RC",
+ "530": "ANDROIDSECONDARY_BETA",
+ "531": "ANDROIDSECONDARY_ALPHA",
+ "544": "WEAROS",
+ "545": "WEAROS_RC",
+ "546": "WEAROS_BETA",
+ "547": "WEAROS_ALPHA"
+ },
+ "ExtendedProfileAttribute": {},
+ "PrivacyLevelType": {
+ "0": "PUBLIC",
+ "1": "PRIVATE"
+ },
+ "PaidCallerIdStatus": {
+ "0": "NOT_SPECIFIED",
+ "1": "VALID",
+ "2": "VERIFICATION_REQUIRED",
+ "3": "NOT_PERMITTED",
+ "4": "LIMIT_EXCEEDED",
+ "5": "LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED"
+ },
+ "PaidCallProductType": {
+ "0": "COIN",
+ "1": "CREDIT",
+ "2": "MONTHLY"
+ },
+ "PaidCallType": {
+ "0": "OUT",
+ "1": "IN",
+ "2": "TOLLFREE",
+ "3": "RECORD",
+ "4": "AD",
+ "5": "CS"
+ },
+ "BotType": {
+ "0": "RESERVED",
+ "1": "OFFICIAL",
+ "2": "LINE_AT_0",
+ "3": "LINE_AT"
+ },
+ "BuddyOnAirLabel": {
+ "0": "ON_AIR",
+ "1": "LIVE",
+ "2": "GLP"
+ },
+ "BuddyBannerLinkType": {
+ "0": "BUDDY_BANNER_LINK_HIDDEN",
+ "1": "BUDDY_BANNER_LINK_MID",
+ "2": "BUDDY_BANNER_LINK_URL"
+ },
+ "BuddyOnAirType": {
+ "0": "NORMAL",
+ "1": "LIVE",
+ "2": "VOIP"
+ },
+ "Diff": {
+ "0": "ADDED",
+ "1": "UPDATED",
+ "2": "REMOVED"
+ },
+ "ReportType": {
+ "1": "ADVERTISING",
+ "2": "GENDER_HARASSMENT",
+ "3": "HARASSMENT",
+ "4": "OTHER"
+ },
+ "SyncTriggerReason": {
+ "0": "UNKNOWN",
+ "1": "REVISION_GAP_TOO_LARGE_CLIENT",
+ "2": "REVISION_GAP_TOO_LARGE_SERVER",
+ "3": "OPERATION_EXPIRED",
+ "4": "REVISION_HOLE",
+ "5": "FORCE_TRIGGERED"
+ },
+ "ReportCategory": {
+ "0": "PUSH_NORMAL_PLAIN",
+ "1": "PUSH_NORMAL_E2EE",
+ "2": "PUSH_VOIP_PLAIN",
+ "3": "PUSH_VOIP_E2EE"
+ },
+ "BuddyResultState": {
+ "1": "ACCEPTED",
+ "2": "SUCCEEDED",
+ "3": "FAILED",
+ "4": "CANCELLED",
+ "5": "NOTIFY_FAILED",
+ "11": "STORING",
+ "21": "UPLOADING",
+ "31": "NOTIFYING",
+ "41": "REMOVING_SUBSCRIPTION",
+ "42": "UNREGISTERING_ACCOUNT",
+ "43": "NOTIFYING_LEAVE_CHAT"
+ },
+ "BuddySearchRequestSource": {
+ "0": "NA",
+ "1": "FRIEND_VIEW",
+ "2": "OFFICIAL_ACCOUNT_VIEW"
+ },
+ "CarrierCode": {
+ "0": "NOT_SPECIFIED",
+ "1": "JP_DOCOMO",
+ "2": "JP_AU",
+ "3": "JP_SOFTBANK",
+ "4": "JP_DOCOMO_LINE",
+ "17": "KR_SKT",
+ "18": "KR_KT",
+ "19": "KR_LGT"
+ },
+ "ChannelConfiguration": {
+ "0": "MESSAGE",
+ "1": "MESSAGE_NOTIFICATION",
+ "2": "NOTIFICATION_CENTER"
+ },
+ "ChannelPermission": {
+ "0": "PROFILE",
+ "1": "FRIENDS",
+ "2": "GROUP"
+ },
+ "ChannelFeatureLicense": {
+ "26": "BLE_LCS_API_USABLE",
+ "27": "PROHIBIT_MINIMIZE_CHANNEL_BROWSER",
+ "28": "ALLOW_IOS_WEBKIT"
+ },
+ "ChannelErrorCode": {
+ "0": "ILLEGAL_ARGUMENT",
+ "1": "INTERNAL_ERROR",
+ "2": "CONNECTION_ERROR",
+ "3": "AUTHENTICATIONI_FAILED",
+ "4": "NEED_PERMISSION_APPROVAL",
+ "5": "COIN_NOT_USABLE",
+ "6": "WEBVIEW_NOT_ALLOWED"
+ },
+ "ChannelSyncType": {
+ "0": "SYNC",
+ "1": "REMOVE",
+ "2": "REMOVE_ALL"
+ },
+ "LoginType": {
+ "0": "ID_CREDENTIAL",
+ "1": "QRCODE",
+ "2": "ID_CREDENTIAL_WITH_E2EE"
+ },
+ "ContactAttribute": {
+ "1": "CONTACT_ATTRIBUTE_CAPABLE_VOICE_CALL",
+ "2": "CONTACT_ATTRIBUTE_CAPABLE_VIDEO_CALL",
+ "16": "CONTACT_ATTRIBUTE_CAPABLE_MY_HOME",
+ "32": "CONTACT_ATTRIBUTE_CAPABLE_BUDDY"
+ },
+ "ContactCategory": {
+ "0": "NORMAL",
+ "1": "RECOMMEND"
+ },
+ "ContactRelation": {
+ "0": "ONEWAY",
+ "1": "BOTH",
+ "2": "NOT_REGISTERED"
+ },
+ "AsymmetricKeyAlgorithm": {
+ "1": "ASYMMETRIC_KEY_ALGORITHM_RSA",
+ "2": "ASYMMETRIC_KEY_ALGORITHM_ECDH"
+ },
+ "ContactSetting": {
+ "1": "CONTACT_SETTING_NOTIFICATION_DISABLE",
+ "2": "CONTACT_SETTING_DISPLAY_NAME_OVERRIDE",
+ "4": "CONTACT_SETTING_CONTACT_HIDE",
+ "8": "CONTACT_SETTING_FAVORITE",
+ "16": "CONTACT_SETTING_DELETE"
+ },
+ "ContactStatus": {
+ "0": "UNSPECIFIED",
+ "1": "FRIEND",
+ "2": "FRIEND_BLOCKED",
+ "3": "RECOMMEND",
+ "4": "RECOMMEND_BLOCKED",
+ "5": "DELETED",
+ "6": "DELETED_BLOCKED"
+ },
+ "ContactType": {
+ "0": "MID",
+ "1": "PHONE",
+ "2": "EMAIL",
+ "3": "USERID",
+ "4": "PROXIMITY",
+ "5": "GROUP",
+ "6": "USER",
+ "7": "QRCODE",
+ "8": "PROMOTION_BOT",
+ "9": "CONTACT_MESSAGE",
+ "10": "FRIEND_REQUEST",
+ "11": "BEACON",
+ "128": "REPAIR",
+ "2305": "FACEBOOK",
+ "2306": "SINA",
+ "2307": "RENREN",
+ "2308": "FEIXIN",
+ "2309": "BBM"
+ },
+ "GroupPreferenceAttribute": {
+ "1": "INVITATION_TICKET",
+ "2": "FAVORITE_TIMESTAMP"
+ },
+ "ContentType": {
+ "0": "NONE",
+ "1": "IMAGE",
+ "2": "VIDEO",
+ "3": "AUDIO",
+ "4": "HTML",
+ "5": "PDF",
+ "6": "CALL",
+ "7": "STICKER",
+ "8": "PRESENCE",
+ "9": "GIFT",
+ "10": "GROUPBOARD",
+ "11": "APPLINK",
+ "12": "LINK",
+ "13": "CONTACT",
+ "14": "FILE",
+ "15": "LOCATION",
+ "16": "POSTNOTIFICATION",
+ "17": "RICH",
+ "18": "CHATEVENT",
+ "19": "MUSIC",
+ "20": "PAYMENT",
+ "21": "EXTIMAGE",
+ "22": "FLEX"
+ },
+ "MessageRelationType": {
+ "0": "FORWARD",
+ "1": "AUTO_REPLY",
+ "2": "SUBORDINATE",
+ "3": "REPLY"
+ },
+ "CustomMode": {
+ "1": "PROMOTION_FRIENDS_INVITE",
+ "2": "CAPABILITY_SERVER_SIDE_SMS",
+ "3": "LINE_CLIENT_ANALYTICS_CONFIGURATION"
+ },
+ "RoomAttribute": {
+ "1": "NOTIFICATION_SETTING",
+ "255": "ALL"
+ },
+ "UserStatus": {
+ "0": "NORMAL",
+ "1": "UNBOUND",
+ "2": "UNREGISTERED",
+ "3": "UNKNOWN"
+ },
+ "EmailConfirmationStatus": {
+ "0": "NOT_SPECIFIED",
+ "1": "NOT_YET",
+ "3": "DONE",
+ "4": "NEED_ENFORCED_INPUT"
+ },
+ "AccountMigrationPincodeType": {
+ "0": "NOT_APPLICABLE",
+ "1": "NOT_SET",
+ "2": "SET",
+ "3": "NEED_ENFORCED_INPUT"
+ },
+ "AccountMigrationCheckType": {
+ "0": "SKIP",
+ "1": "PINCODE",
+ "2": "SECURITY_CENTER"
+ },
+ "SecurityCenterSettingsType": {
+ "0": "NOT_APPLICABLE",
+ "1": "NOT_SET",
+ "2": "SET",
+ "3": "NEED_ENFORCED_INPUT"
+ },
+ "EmailConfirmationType": {
+ "0": "SERVER_SIDE_EMAIL",
+ "1": "CLIENT_SIDE_EMAIL"
+ },
+ "SquareChatAnnouncementType": {},
+ "SquareChatAttribute": {
+ "2": "NAME",
+ "3": "SQUARE_CHAT_IMAGE",
+ "4": "STATE"
+ },
+ "SquareMemberAttribute": {
+ "1": "DISPLAY_NAME",
+ "2": "PROFILE_IMAGE",
+ "3": "ABLE_TO_RECEIVE_MESSAGE",
+ "5": "MEMBERSHIP_STATE",
+ "6": "ROLE",
+ "7": "PREFERENCE"
+ },
+ "SquareMemberRelationAttribute": {
+ "1": "BLOCKED"
+ },
+ "SquarePreferenceAttribute": {
+ "1": "FAVORITE",
+ "2": "NOTI_FOR_NEW_JOIN_REQUEST"
+ },
+ "SquareState": {
+ "0": "ALIVE",
+ "1": "DELETED",
+ "2": "SUSPENDED"
+ },
+ "CommitMessageResultCode": {
+ "0": "DELIVERED",
+ "1": "DELIVERY_SKIPPED",
+ "2": "DELIVERY_RESTRICTED"
+ },
+ "ErrorCode": {
+ "0": "ILLEGAL_ARGUMENT",
+ "1": "AUTHENTICATION_FAILED",
+ "2": "DB_FAILED",
+ "3": "INVALID_STATE",
+ "4": "EXCESSIVE_ACCESS",
+ "5": "NOT_FOUND",
+ "6": "INVALID_LENGTH",
+ "7": "NOT_AVAILABLE_USER",
+ "8": "NOT_AUTHORIZED_DEVICE",
+ "9": "INVALID_MID",
+ "10": "NOT_A_MEMBER",
+ "11": "INCOMPATIBLE_APP_VERSION",
+ "12": "NOT_READY",
+ "13": "NOT_AVAILABLE_SESSION",
+ "14": "NOT_AUTHORIZED_SESSION",
+ "15": "SYSTEM_ERROR",
+ "16": "NO_AVAILABLE_VERIFICATION_METHOD",
+ "17": "NOT_AUTHENTICATED",
+ "18": "INVALID_IDENTITY_CREDENTIAL",
+ "19": "NOT_AVAILABLE_IDENTITY_IDENTIFIER",
+ "20": "INTERNAL_ERROR",
+ "21": "NO_SUCH_IDENTITY_IDENFIER",
+ "22": "DEACTIVATED_ACCOUNT_BOUND_TO_THIS_IDENTITY",
+ "23": "ILLEGAL_IDENTITY_CREDENTIAL",
+ "24": "UNKNOWN_CHANNEL",
+ "25": "NO_SUCH_MESSAGE_BOX",
+ "26": "NOT_AVAILABLE_MESSAGE_BOX",
+ "27": "CHANNEL_DOES_NOT_MATCH",
+ "28": "NOT_YOUR_MESSAGE",
+ "29": "MESSAGE_DEFINED_ERROR",
+ "30": "USER_CANNOT_ACCEPT_PRESENTS",
+ "32": "USER_NOT_STICKER_OWNER",
+ "33": "MAINTENANCE_ERROR",
+ "34": "ACCOUNT_NOT_MATCHED",
+ "35": "ABUSE_BLOCK",
+ "36": "NOT_FRIEND",
+ "37": "NOT_ALLOWED_CALL",
+ "38": "BLOCK_FRIEND",
+ "39": "INCOMPATIBLE_VOIP_VERSION",
+ "40": "INVALID_SNS_ACCESS_TOKEN",
+ "41": "EXTERNAL_SERVICE_NOT_AVAILABLE",
+ "42": "NOT_ALLOWED_ADD_CONTACT",
+ "43": "NOT_CERTIFICATED",
+ "44": "NOT_ALLOWED_SECONDARY_DEVICE",
+ "45": "INVALID_PIN_CODE",
+ "46": "NOT_FOUND_IDENTITY_CREDENTIAL",
+ "47": "EXCEED_FILE_MAX_SIZE",
+ "48": "EXCEED_DAILY_QUOTA",
+ "49": "NOT_SUPPORT_SEND_FILE",
+ "50": "MUST_UPGRADE",
+ "51": "NOT_AVAILABLE_PIN_CODE_SESSION",
+ "52": "EXPIRED_REVISION",
+ "54": "NOT_YET_PHONE_NUMBER",
+ "55": "BAD_CALL_NUMBER",
+ "56": "UNAVAILABLE_CALL_NUMBER",
+ "57": "NOT_SUPPORT_CALL_SERVICE",
+ "58": "CONGESTION_CONTROL",
+ "59": "NO_BALANCE",
+ "60": "NOT_PERMITTED_CALLER_ID",
+ "61": "NO_CALLER_ID_LIMIT_EXCEEDED",
+ "62": "CALLER_ID_VERIFICATION_REQUIRED",
+ "63": "NO_CALLER_ID_LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED",
+ "64": "MESSAGE_NOT_FOUND",
+ "65": "INVALID_ACCOUNT_MIGRATION_PINCODE_FORMAT",
+ "66": "ACCOUNT_MIGRATION_PINCODE_NOT_MATCHED",
+ "67": "ACCOUNT_MIGRATION_PINCODE_BLOCKED",
+ "69": "INVALID_PASSWORD_FORMAT",
+ "70": "FEATURE_RESTRICTED",
+ "71": "MESSAGE_NOT_DESTRUCTIBLE",
+ "72": "PAID_CALL_REDEEM_FAILED",
+ "73": "PREVENTED_JOIN_BY_TICKET",
+ "75": "SEND_MESSAGE_NOT_PERMITTED_FROM_LINE_AT",
+ "76": "SEND_MESSAGE_NOT_PERMITTED_WHILE_AUTO_REPLY",
+ "77": "SECURITY_CENTER_NOT_VERIFIED",
+ "78": "SECURITY_CENTER_BLOCKED_BY_SETTING",
+ "79": "SECURITY_CENTER_BLOCKED",
+ "80": "TALK_PROXY_EXCEPTION",
+ "81": "E2EE_INVALID_PROTOCOL",
+ "82": "E2EE_RETRY_ENCRYPT",
+ "83": "E2EE_UPDATE_SENDER_KEY",
+ "84": "E2EE_UPDATE_RECEIVER_KEY",
+ "85": "E2EE_INVALID_ARGUMENT",
+ "86": "E2EE_INVALID_VERSION",
+ "87": "E2EE_SENDER_DISABLED",
+ "88": "E2EE_RECEIVER_DISABLED",
+ "89": "E2EE_SENDER_NOT_ALLOWED",
+ "90": "E2EE_RECEIVER_NOT_ALLOWED",
+ "91": "E2EE_RESEND_FAIL",
+ "92": "E2EE_RESEND_OK",
+ "93": "HITOKOTO_BACKUP_NO_AVAILABLE_DATA",
+ "94": "E2EE_UPDATE_PRIMARY_DEVICE",
+ "95": "SUCCESS",
+ "96": "CANCEL",
+ "97": "E2EE_PRIMARY_NOT_SUPPORT",
+ "98": "E2EE_RETRY_PLAIN",
+ "99": "E2EE_RECREATE_GROUP_KEY",
+ "100": "E2EE_GROUP_TOO_MANY_MEMBERS",
+ "101": "SERVER_BUSY",
+ "102": "NOT_ALLOWED_ADD_FOLLOW",
+ "103": "INCOMING_FRIEND_REQUEST_LIMIT",
+ "104": "OUTGOING_FRIEND_REQUEST_LIMIT",
+ "105": "OUTGOING_FRIEND_REQUEST_QUOTA",
+ "106": "DUPLICATED",
+ "107": "BANNED",
+ "108": "NOT_AN_INVITEE",
+ "109": "NOT_AN_OUTSIDER",
+ "111": "EMPTY_GROUP",
+ "112": "EXCEED_FOLLOW_LIMIT",
+ "113": "UNSUPPORTED_ACCOUNT_TYPE",
+ "114": "AGREEMENT_REQUIRED",
+ "115": "SHOULD_RETRY",
+ "116": "OVER_MAX_CHATS_PER_USER",
+ "117": "NOT_AVAILABLE_API",
+ "118": "INVALID_OTP",
+ "119": "MUST_REFRESH_V3_TOKEN",
+ "120": "ALREADY_EXPIRED",
+ "121": "USER_NOT_STICON_OWNER",
+ "122": "REFRESH_MEDIA_FLOW",
+ "123": "EXCEED_FOLLOWER_LIMIT"
+ },
+ "FeatureType": {
+ "1": "OBS_VIDEO",
+ "2": "OBS_GENERAL",
+ "3": "OBS_RINGBACK_TONE"
+ },
+ "GroupAttribute": {
+ "1": "NAME",
+ "2": "PICTURE_STATUS",
+ "4": "PREVENTED_JOIN_BY_TICKET",
+ "8": "NOTIFICATION_SETTING",
+ "255": "ALL"
+ },
+ "IdentityProvider": {
+ "0": "UNKNOWN",
+ "1": "LINE",
+ "2": "NAVER_KR",
+ "3": "LINE_PHONE"
+ },
+ "LoginResultType": {
+ "1": "SUCCESS",
+ "2": "REQUIRE_QRCODE",
+ "3": "REQUIRE_DEVICE_CONFIRM",
+ "4": "REQUIRE_SMS_CONFIRM"
+ },
+ "MessageOperationType": {
+ "1": "SEND_MESSAGE",
+ "2": "RECEIVE_MESSAGE",
+ "3": "READ_MESSAGE",
+ "4": "NOTIFIED_READ_MESSAGE",
+ "5": "NOTIFIED_JOIN_CHAT",
+ "6": "FAILED_SEND_MESSAGE",
+ "7": "SEND_CONTENT",
+ "8": "SEND_CONTENT_RECEIPT",
+ "9": "SEND_CHAT_REMOVED",
+ "10": "REMOVE_ALL_MESSAGES"
+ },
+ "MIDType": {
+ "0": "USER",
+ "1": "ROOM",
+ "2": "GROUP",
+ "3": "SQUARE",
+ "4": "SQUARE_CHAT",
+ "5": "SQUARE_MEMBER",
+ "6": "BOT"
+ },
+ "ServiceCode": {
+ "0": "UNKNOWN",
+ "1": "TALK",
+ "2": "SQUARE"
+ },
+ "FriendRequestDirection": {
+ "1": "INCOMING",
+ "2": "OUTGOING"
+ },
+ "FriendRequestMethod": {
+ "1": "TIMELINE",
+ "2": "NEARBY",
+ "3": "SQUARE"
+ },
+ "FriendRequestStatus": {
+ "0": "NONE",
+ "1": "AVAILABLE",
+ "2": "ALREADY_REQUESTED",
+ "3": "UNAVAILABLE"
+ },
+ "ModificationType": {
+ "0": "ADD",
+ "1": "REMOVE",
+ "2": "MODIFY"
+ },
+ "NotificationItemFetchMode": {
+ "0": "ALL",
+ "1": "APPEND"
+ },
+ "NotificationQueueType": {
+ "1": "GLOBAL",
+ "2": "MESSAGE",
+ "3": "PRIMARY"
+ },
+ "GroupCallMediaType": {
+ "1": "AUDIO",
+ "2": "VIDEO",
+ "3": "LIVE"
+ },
+ "PersonalInfo": {
+ "0": "EMAIL",
+ "1": "PHONE",
+ "2": "BIRTHDAY",
+ "3": "RAW_BIRTHDAY"
+ },
+ "NotificationStatus": {
+ "1": "NOTIFICATION_ITEM_EXIST",
+ "2": "TIMELINE_ITEM_EXIST",
+ "4": "NOTE_GROUP_NEW_ITEM_EXIST",
+ "8": "TIMELINE_BUDDYGROUP_CHANGED",
+ "16": "NOTE_ONE_TO_ONE_NEW_ITEM_EXIST",
+ "32": "ALBUM_ITEM_EXIST",
+ "64": "TIMELINE_ITEM_DELETED",
+ "128": "OTOGROUP_ITEM_EXIST",
+ "256": "GROUPHOME_NEW_ITEM_EXIST",
+ "512": "GROUPHOME_HIDDEN_ITEM_CHANGED",
+ "1024": "NOTIFICATION_ITEM_CHANGED",
+ "2048": "BEAD_ITEM_HIDE",
+ "4096": "BEAD_ITEM_SHOW",
+ "8192": "LINE_TICKET_UPDATED",
+ "16384": "TIMELINE_STORY_UPDATED",
+ "32768": "SMARTCH_UPDATED",
+ "65536": "AVATAR_UPDATED",
+ "131072": "HOME_NOTIFICATION_ITEM_EXIST",
+ "262144": "TIMELINE_REBOOT_COMPLETED",
+ "524288": "TIMELINE_GUIDE_STORY_UPDATED"
+ },
+ "NotificationType": {
+ "1": "APPLE_APNS",
+ "2": "GOOGLE_C2DM",
+ "3": "NHN_NNI",
+ "4": "SKT_AOM",
+ "5": "MS_MPNS",
+ "6": "RIM_BIS",
+ "7": "GOOGLE_GCM",
+ "8": "NOKIA_NNAPI",
+ "9": "TIZEN",
+ "10": "MOZILLA_SIMPLE",
+ "17": "LINE_BOT",
+ "18": "LINE_WAP",
+ "19": "APPLE_APNS_VOIP",
+ "20": "MS_WNS",
+ "21": "GOOGLE_FCM",
+ "22": "CLOVA",
+ "23": "CLOVA_VOIP",
+ "24": "HUAWEI_HCM"
+ },
+ "OpStatus": {
+ "0": "NORMAL",
+ "1": "ALERT_DISABLED",
+ "2": "ALWAYS"
+ },
+ "OpType": {
+ "0": "END_OF_OPERATION",
+ "1": "UPDATE_PROFILE",
+ "2": "NOTIFIED_UPDATE_PROFILE",
+ "3": "REGISTER_USERID",
+ "4": "ADD_CONTACT",
+ "5": "NOTIFIED_ADD_CONTACT",
+ "6": "BLOCK_CONTACT",
+ "7": "UNBLOCK_CONTACT",
+ "8": "NOTIFIED_RECOMMEND_CONTACT",
+ "9": "CREATE_GROUP",
+ "10": "UPDATE_GROUP",
+ "11": "NOTIFIED_UPDATE_GROUP",
+ "12": "INVITE_INTO_GROUP",
+ "13": "NOTIFIED_INVITE_INTO_GROUP",
+ "14": "LEAVE_GROUP",
+ "15": "NOTIFIED_LEAVE_GROUP",
+ "16": "ACCEPT_GROUP_INVITATION",
+ "17": "NOTIFIED_ACCEPT_GROUP_INVITATION",
+ "18": "KICKOUT_FROM_GROUP",
+ "19": "NOTIFIED_KICKOUT_FROM_GROUP",
+ "20": "CREATE_ROOM",
+ "21": "INVITE_INTO_ROOM",
+ "22": "NOTIFIED_INVITE_INTO_ROOM",
+ "23": "LEAVE_ROOM",
+ "24": "NOTIFIED_LEAVE_ROOM",
+ "25": "SEND_MESSAGE",
+ "26": "RECEIVE_MESSAGE",
+ "27": "SEND_MESSAGE_RECEIPT",
+ "28": "RECEIVE_MESSAGE_RECEIPT",
+ "29": "SEND_CONTENT_RECEIPT",
+ "30": "RECEIVE_ANNOUNCEMENT",
+ "31": "CANCEL_INVITATION_GROUP",
+ "32": "NOTIFIED_CANCEL_INVITATION_GROUP",
+ "33": "NOTIFIED_UNREGISTER_USER",
+ "34": "REJECT_GROUP_INVITATION",
+ "35": "NOTIFIED_REJECT_GROUP_INVITATION",
+ "36": "UPDATE_SETTINGS",
+ "37": "NOTIFIED_REGISTER_USER",
+ "38": "INVITE_VIA_EMAIL",
+ "39": "NOTIFIED_REQUEST_RECOVERY",
+ "40": "SEND_CHAT_CHECKED",
+ "41": "SEND_CHAT_REMOVED",
+ "42": "NOTIFIED_FORCE_SYNC",
+ "43": "SEND_CONTENT",
+ "44": "SEND_MESSAGE_MYHOME",
+ "45": "NOTIFIED_UPDATE_CONTENT_PREVIEW",
+ "46": "REMOVE_ALL_MESSAGES",
+ "47": "NOTIFIED_UPDATE_PURCHASES",
+ "48": "DUMMY",
+ "49": "UPDATE_CONTACT",
+ "50": "NOTIFIED_RECEIVED_CALL",
+ "51": "CANCEL_CALL",
+ "52": "NOTIFIED_REDIRECT",
+ "53": "NOTIFIED_CHANNEL_SYNC",
+ "54": "FAILED_SEND_MESSAGE",
+ "55": "NOTIFIED_READ_MESSAGE",
+ "56": "FAILED_EMAIL_CONFIRMATION",
+ "58": "NOTIFIED_CHAT_CONTENT",
+ "59": "NOTIFIED_PUSH_NOTICENTER_ITEM",
+ "60": "NOTIFIED_JOIN_CHAT",
+ "61": "NOTIFIED_LEAVE_CHAT",
+ "62": "NOTIFIED_TYPING",
+ "63": "FRIEND_REQUEST_ACCEPTED",
+ "64": "DESTROY_MESSAGE",
+ "65": "NOTIFIED_DESTROY_MESSAGE",
+ "66": "UPDATE_PUBLICKEYCHAIN",
+ "67": "NOTIFIED_UPDATE_PUBLICKEYCHAIN",
+ "68": "NOTIFIED_BLOCK_CONTACT",
+ "69": "NOTIFIED_UNBLOCK_CONTACT",
+ "70": "UPDATE_GROUPPREFERENCE",
+ "71": "NOTIFIED_PAYMENT_EVENT",
+ "72": "REGISTER_E2EE_PUBLICKEY",
+ "73": "NOTIFIED_E2EE_KEY_EXCHANGE_REQ",
+ "74": "NOTIFIED_E2EE_KEY_EXCHANGE_RESP",
+ "75": "NOTIFIED_E2EE_MESSAGE_RESEND_REQ",
+ "76": "NOTIFIED_E2EE_MESSAGE_RESEND_RESP",
+ "77": "NOTIFIED_E2EE_KEY_UPDATE",
+ "78": "NOTIFIED_BUDDY_UPDATE_PROFILE",
+ "79": "NOTIFIED_UPDATE_LINEAT_TABS",
+ "80": "UPDATE_ROOM",
+ "81": "NOTIFIED_BEACON_DETECTED",
+ "82": "UPDATE_EXTENDED_PROFILE",
+ "83": "ADD_FOLLOW",
+ "84": "NOTIFIED_ADD_FOLLOW",
+ "85": "DELETE_FOLLOW",
+ "86": "NOTIFIED_DELETE_FOLLOW",
+ "87": "UPDATE_TIMELINE_SETTINGS",
+ "88": "NOTIFIED_FRIEND_REQUEST",
+ "89": "UPDATE_RINGBACK_TONE",
+ "90": "NOTIFIED_POSTBACK",
+ "91": "RECEIVE_READ_WATERMARK",
+ "92": "NOTIFIED_MESSAGE_DELIVERED",
+ "93": "NOTIFIED_UPDATE_CHAT_BAR",
+ "94": "NOTIFIED_CHATAPP_INSTALLED",
+ "95": "NOTIFIED_CHATAPP_UPDATED",
+ "96": "NOTIFIED_CHATAPP_NEW_MARK",
+ "97": "NOTIFIED_CHATAPP_DELETED",
+ "98": "NOTIFIED_CHATAPP_SYNC",
+ "99": "NOTIFIED_UPDATE_MESSAGE",
+ "100": "UPDATE_CHATROOMBGM",
+ "101": "NOTIFIED_UPDATE_CHATROOMBGM",
+ "102": "UPDATE_RINGTONE",
+ "118": "UPDATE_USER_SETTINGS",
+ "119": "NOTIFIED_UPDATE_STATUS_BAR",
+ "120": "CREATE_CHAT",
+ "121": "UPDATE_CHAT",
+ "122": "NOTIFIED_UPDATE_CHAT",
+ "123": "INVITE_INTO_CHAT",
+ "124": "NOTIFIED_INVITE_INTO_CHAT",
+ "125": "CANCEL_CHAT_INVITATION",
+ "126": "NOTIFIED_CANCEL_CHAT_INVITATION",
+ "127": "DELETE_SELF_FROM_CHAT",
+ "128": "NOTIFIED_DELETE_SELF_FROM_CHAT",
+ "129": "ACCEPT_CHAT_INVITATION",
+ "130": "NOTIFIED_ACCEPT_CHAT_INVITATION",
+ "131": "REJECT_CHAT_INVITATION",
+ "132": "DELETE_OTHER_FROM_CHAT",
+ "133": "NOTIFIED_DELETE_OTHER_FROM_CHAT",
+ "134": "NOTIFIED_CONTACT_CALENDAR_EVENT",
+ "135": "NOTIFIED_CONTACT_CALENDAR_EVENT_ALL",
+ "136": "UPDATE_THINGS_OPERATIONS",
+ "137": "SEND_CHAT_HIDDEN",
+ "138": "CHAT_META_SYNC_ALL",
+ "139": "SEND_REACTION",
+ "140": "NOTIFIED_SEND_REACTION",
+ "141": "NOTIFIED_UPDATE_PROFILE_CONTENT",
+ "142": "FAILED_DELIVERY_MESSAGE"
+ },
+ "PayloadType": {
+ "101": "PAYLOAD_BUY",
+ "111": "PAYLOAD_CS",
+ "121": "PAYLOAD_BONUS",
+ "131": "PAYLOAD_EVENT"
+ },
+ "PaymentPgType": {
+ "0": "PAYMENT_PG_NONE",
+ "1": "PAYMENT_PG_AU",
+ "2": "PAYMENT_PG_AL"
+ },
+ "PaymentType": {
+ "1": "PAYMENT_APPLE",
+ "2": "PAYMENT_GOOGLE"
+ },
+ "ProductBannerLinkType": {
+ "0": "BANNER_LINK_NONE",
+ "1": "BANNER_LINK_ITEM",
+ "2": "BANNER_LINK_URL",
+ "3": "BANNER_LINK_CATEGORY"
+ },
+ "ProductEventType": {
+ "0": "NO_EVENT",
+ "65537": "CARRIER_ANY",
+ "131073": "BUDDY_ANY",
+ "196609": "INSTALL_IOS",
+ "196610": "INSTALL_ANDROID",
+ "262145": "MISSION_ANY",
+ "327681": "MUSTBUY_ANY"
+ },
+ "StickerResourceType": {
+ "1": "STATIC",
+ "2": "ANIMATION",
+ "3": "SOUND",
+ "4": "ANIMATION_SOUND",
+ "5": "POPUP",
+ "6": "POPUP_SOUND",
+ "7": "NAME_TEXT",
+ "8": "PER_STICKER_TEXT"
+ },
+ "PlaceSearchProvider": {
+ "0": "GOOGLE",
+ "1": "BAIDU",
+ "2": "FOURSQUARE"
+ },
+ "PointErrorCode": {
+ "3001": "REQUEST_DUPLICATION",
+ "3002": "INVALID_PARAMETER",
+ "3003": "NOT_ENOUGH_BALANCE",
+ "3004": "AUTHENTICATION_FAIL",
+ "3005": "API_ACCESS_FORBIDDEN",
+ "3006": "MEMBER_ACCOUNT_NOT_FOUND",
+ "3007": "SERVICE_ACCOUNT_NOT_FOUND",
+ "3008": "TRANSACTION_NOT_FOUND",
+ "3009": "ALREADY_REVERSED_TRANSACTION",
+ "3010": "MESSAGE_NOT_READABLE",
+ "3011": "HTTP_REQUEST_METHOD_NOT_SUPPORTED",
+ "3012": "HTTP_MEDIA_TYPE_NOT_SUPPORTED",
+ "3013": "NOT_ALLOWED_TO_DEPOSIT",
+ "3014": "NOT_ALLOWED_TO_PAY",
+ "3015": "TRANSACTION_ACCESS_FORBIDDEN",
+ "4001": "INVALID_SERVICE_CONFIGURATION",
+ "5004": "DCS_COMMUNICATION_FAIL",
+ "5007": "UPDATE_BALANCE_FAIL",
+ "5888": "SYSTEM_MAINTENANCE",
+ "5999": "SYSTEM_ERROR"
+ },
+ "ProfileAttribute": {
+ "1": "EMAIL",
+ "2": "DISPLAY_NAME",
+ "4": "PHONETIC_NAME",
+ "8": "PICTURE",
+ "16": "STATUS_MESSAGE",
+ "32": "ALLOW_SEARCH_BY_USERID",
+ "64": "ALLOW_SEARCH_BY_EMAIL",
+ "128": "BUDDY_STATUS",
+ "256": "MUSIC_PROFILE",
+ "511": "ALL"
+ },
+ "PublicType": {
+ "0": "HIDDEN",
+ "1000": "PUBLIC"
+ },
+ "RedirectType": {
+ "0": "NONE",
+ "1": "EXPIRE_SECOND"
+ },
+ "RegistrationType": {
+ "0": "PHONE",
+ "1": "EMAIL_WAP",
+ "2305": "FACEBOOK",
+ "2306": "SINA",
+ "2307": "RENREN",
+ "2308": "FEIXIN"
+ },
+ "ChatRoomAnnouncementType": {
+ "0": "MESSAGE",
+ "1": "NOTE"
+ },
+ "SettingsAttribute": {
+ "1": "NOTIFICATION_ENABLE",
+ "2": "NOTIFICATION_MUTE_EXPIRATION",
+ "4": "NOTIFICATION_NEW_MESSAGE",
+ "8": "NOTIFICATION_GROUP_INVITATION",
+ "16": "NOTIFICATION_SHOW_MESSAGE",
+ "32": "NOTIFICATION_INCOMING_CALL",
+ "64": "PRIVACY_SYNC_CONTACTS",
+ "128": "PRIVACY_SEARCH_BY_PHONE_NUMBER",
+ "256": "NOTIFICATION_SOUND_MESSAGE",
+ "512": "NOTIFICATION_SOUND_GROUP",
+ "1024": "CONTACT_MY_TICKET",
+ "2048": "IDENTITY_PROVIDER",
+ "4096": "IDENTITY_IDENTIFIER",
+ "8192": "PRIVACY_SEARCH_BY_USERID",
+ "16384": "PRIVACY_SEARCH_BY_EMAIL",
+ "32768": "PREFERENCE_LOCALE",
+ "65536": "NOTIFICATION_DISABLED_WITH_SUB",
+ "131072": "NOTIFICATION_PAYMENT",
+ "262144": "SECURITY_CENTER_SETTINGS",
+ "524288": "SNS_ACCOUNT",
+ "1048576": "PHONE_REGISTRATION",
+ "2097152": "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN",
+ "4194304": "CUSTOM_MODE",
+ "8388608": "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME",
+ "16777216": "EMAIL_CONFIRMATION_STATUS",
+ "33554432": "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND",
+ "67108864": "PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL",
+ "134217728": "PRIVACY_AGREE_USE_PAIDCALL",
+ "268435456": "ACCOUNT_MIGRATION_PINCODE",
+ "536870912": "ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE",
+ "1073741824": "PRIVACY_ALLOW_FRIEND_REQUEST",
+ "2147483647": "ALL"
+ },
+ "SettingsAttributeEx": {
+ "0": "NOTIFICATION_ENABLE",
+ "1": "NOTIFICATION_MUTE_EXPIRATION",
+ "2": "NOTIFICATION_NEW_MESSAGE",
+ "3": "NOTIFICATION_GROUP_INVITATION",
+ "4": "NOTIFICATION_SHOW_MESSAGE",
+ "5": "NOTIFICATION_INCOMING_CALL",
+ "6": "PRIVACY_SYNC_CONTACTS",
+ "7": "PRIVACY_SEARCH_BY_PHONE_NUMBER",
+ "8": "NOTIFICATION_SOUND_MESSAGE",
+ "9": "NOTIFICATION_SOUND_GROUP",
+ "10": "CONTACT_MY_TICKET",
+ "11": "IDENTITY_PROVIDER",
+ "12": "IDENTITY_IDENTIFIER",
+ "13": "PRIVACY_SEARCH_BY_USERID",
+ "14": "PRIVACY_SEARCH_BY_EMAIL",
+ "15": "PREFERENCE_LOCALE",
+ "16": "NOTIFICATION_DISABLED_WITH_SUB",
+ "17": "NOTIFICATION_PAYMENT",
+ "18": "SECURITY_CENTER_SETTINGS",
+ "19": "SNS_ACCOUNT",
+ "20": "PHONE_REGISTRATION",
+ "21": "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN",
+ "22": "CUSTOM_MODE",
+ "23": "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME",
+ "24": "EMAIL_CONFIRMATION_STATUS",
+ "25": "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND",
+ "26": "PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL",
+ "27": "PRIVACY_AGREE_USE_PAIDCALL",
+ "28": "ACCOUNT_MIGRATION_PINCODE",
+ "29": "ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE",
+ "30": "PRIVACY_ALLOW_FRIEND_REQUEST",
+ "33": "E2EE_ENABLE",
+ "34": "HITOKOTO_BACKUP_REQUESTED",
+ "35": "PRIVACY_PROFILE_MUSIC_POST_TO_MYHOME",
+ "36": "CONTACT_ALLOW_FOLLOWING",
+ "37": "PRIVACY_ALLOW_NEARBY",
+ "38": "AGREEMENT_NEARBY",
+ "39": "AGREEMENT_SQUARE",
+ "40": "NOTIFICATION_MENTION",
+ "41": "ALLOW_UNREGISTRATION_SECONDARY_DEVICE",
+ "42": "AGREEMENT_BOT_USE",
+ "43": "AGREEMENT_SHAKE_FUNCTION",
+ "44": "AGREEMENT_MOBILE_CONTACT_NAME",
+ "45": "NOTIFICATION_THUMBNAIL",
+ "46": "AGREEMENT_SOUND_TO_TEXT",
+ "47": "ENABLE_SOUND_TO_TEXT"
+ },
+ "SnsIdType": {
+ "1": "FACEBOOK",
+ "2": "SINA",
+ "3": "RENREN",
+ "4": "FEIXIN",
+ "5": "BBM",
+ "6": "APPLE",
+ "7": "YAHOOJAPAN"
+ },
+ "SpammerReason": {
+ "0": "OTHER",
+ "1": "ADVERTISING",
+ "2": "GENDER_HARASSMENT",
+ "3": "HARASSMENT"
+ },
+ "SyncActionType": {
+ "0": "SYNC",
+ "1": "REPORT"
+ },
+ "SpotCategory": {
+ "0": "UNKNOWN",
+ "1": "GOURMET",
+ "2": "BEAUTY",
+ "3": "TRAVEL",
+ "4": "SHOPPING",
+ "5": "ENTERTAINMENT",
+ "6": "SPORTS",
+ "7": "TRANSPORT",
+ "8": "LIFE",
+ "9": "HOSPITAL",
+ "10": "FINANCE",
+ "11": "EDUCATION",
+ "12": "OTHER",
+ "10000": "ALL"
+ },
+ "SyncCategory": {
+ "0": "PROFILE",
+ "1": "SETTINGS",
+ "2": "OPS",
+ "3": "CONTACT",
+ "4": "RECOMMEND",
+ "5": "BLOCK",
+ "6": "GROUP",
+ "7": "ROOM",
+ "8": "NOTIFICATION",
+ "9": "ADDRESS_BOOK"
+ },
+ "TMessageBoxStatus": {
+ "1": "ACTIVATED",
+ "2": "UNREAD"
+ },
+ "UniversalNotificationServiceErrorCode": {
+ "0": "INTERNAL_ERROR",
+ "1": "INVALID_KEY",
+ "2": "ILLEGAL_ARGUMENT",
+ "3": "TOO_MANY_REQUEST",
+ "4": "AUTHENTICATION_FAILED",
+ "5": "NO_WRITE_PERMISSION"
+ },
+ "UnregistrationReason": {
+ "1": "UNREGISTRATION_REASON_UNREGISTER_USER",
+ "2": "UNREGISTRATION_REASON_UNBIND_DEVICE"
+ },
+ "UserAgeType": {
+ "1": "OVER",
+ "2": "UNDER",
+ "3": "UNDEFINED"
+ },
+ "VerificationMethod": {
+ "0": "NO_AVAILABLE",
+ "1": "PIN_VIA_SMS",
+ "2": "CALLERID_INDIGO",
+ "4": "PIN_VIA_TTS",
+ "10": "SKIP"
+ },
+ "VerificationResult": {
+ "0": "FAILED",
+ "1": "OK_NOT_REGISTERED_YET",
+ "2": "OK_REGISTERED_WITH_SAME_DEVICE",
+ "3": "OK_REGISTERED_WITH_ANOTHER_DEVICE"
+ },
+ "WapInvitationType": {
+ "1": "REGISTRATION",
+ "2": "CHAT"
+ },
+ "MediaType": {
+ "1": "AUDIO",
+ "2": "VIDEO"
+ },
+ "SQErrorCode": {
+ "0": "UNKNOWN",
+ "400": "ILLEGAL_ARGUMENT",
+ "401": "AUTHENTICATION_FAILURE",
+ "403": "FORBIDDEN",
+ "404": "NOT_FOUND",
+ "409": "REVISION_MISMATCH",
+ "410": "PRECONDITION_FAILED",
+ "500": "INTERNAL_ERROR",
+ "501": "NOT_IMPLEMENTED",
+ "505": "TRY_AGAIN_LATER"
+ },
+ "SquareEventType": {
+ "0": "RECEIVE_MESSAGE",
+ "1": "SEND_MESSAGE",
+ "2": "NOTIFIED_JOIN_SQUARE_CHAT",
+ "3": "NOTIFIED_INVITE_INTO_SQUARE_CHAT",
+ "4": "NOTIFIED_LEAVE_SQUARE_CHAT",
+ "5": "NOTIFIED_DESTROY_MESSAGE",
+ "6": "NOTIFIED_MARK_AS_READ",
+ "7": "NOTIFIED_UPDATE_SQUARE_MEMBER_PROFILE",
+ "8": "NOTIFIED_UPDATE_SQUARE",
+ "9": "NOTIFIED_UPDATE_SQUARE_STATUS",
+ "10": "NOTIFIED_UPDATE_SQUARE_AUTHORITY",
+ "11": "NOTIFIED_UPDATE_SQUARE_MEMBER",
+ "12": "NOTIFIED_UPDATE_SQUARE_CHAT",
+ "13": "NOTIFIED_UPDATE_SQUARE_CHAT_STATUS",
+ "14": "NOTIFIED_UPDATE_SQUARE_CHAT_MEMBER",
+ "15": "NOTIFIED_CREATE_SQUARE_MEMBER",
+ "16": "NOTIFIED_CREATE_SQUARE_CHAT_MEMBER",
+ "17": "NOTIFIED_UPDATE_SQUARE_MEMBER_RELATION",
+ "18": "NOTIFIED_SHUTDOWN_SQUARE",
+ "19": "NOTIFIED_KICKOUT_FROM_SQUARE",
+ "20": "NOTIFIED_DELETE_SQUARE_CHAT",
+ "21": "NOTIFICATION_JOIN_REQUEST",
+ "22": "NOTIFICATION_JOINED",
+ "23": "NOTIFICATION_PROMOTED_COADMIN",
+ "24": "NOTIFICATION_PROMOTED_ADMIN",
+ "25": "NOTIFICATION_DEMOTED_MEMBER",
+ "26": "NOTIFICATION_KICKED_OUT",
+ "27": "NOTIFICATION_SQUARE_DELETE",
+ "28": "NOTIFICATION_SQUARE_CHAT_DELETE",
+ "29": "NOTIFICATION_MESSAGE",
+ "30": "NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_NAME",
+ "31": "NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_IMAGE",
+ "32": "NOTIFIED_UPDATE_SQUARE_FEATURE_SET",
+ "33": "NOTIFIED_ADD_BOT",
+ "34": "NOTIFIED_REMOVE_BOT",
+ "36": "NOTIFIED_UPDATE_SQUARE_NOTE_STATUS",
+ "37": "NOTIFIED_UPDATE_SQUARE_CHAT_ANNOUNCEMENT",
+ "38": "NOTIFIED_UPDATE_SQUARE_CHAT_MAX_MEMBER_COUNT",
+ "39": "NOTIFICATION_POST_ANNOUNCEMENT",
+ "40": "NOTIFICATION_POST",
+ "41": "MUTATE_MESSAGE",
+ "42": "NOTIFICATION_NEW_CHAT_MEMBER",
+ "43": "NOTIFIED_UPDATE_READONLY_CHAT",
+ "46": "NOTIFIED_UPDATE_MESSAGE_STATUS",
+ "47": "NOTIFICATION_MESSAGE_REACTION",
+ "48": "NOTIFIED_CHAT_POPUP",
+ "49": "NOTIFIED_SYSTEM_MESSAGE",
+ "50": "NOTIFIED_UPDATE_SQUARE_CHAT_FEATURE_SET"
+ },
+ "SquareMemberRelationState": {
+ "1": "NONE",
+ "2": "BLOCKED"
+ },
+ "SquareFeatureControlState": {
+ "1": "DISABLED",
+ "2": "ENABLED"
+ },
+ "BooleanState": {
+ "0": "NONE",
+ "1": "OFF",
+ "2": "ON"
+ },
+ "SquareType": {
+ "0": "CLOSED",
+ "1": "OPEN"
+ },
+ "SquareChatType": {
+ "1": "OPEN",
+ "2": "SECRET",
+ "3": "ONE_ON_ONE",
+ "4": "SQUARE_DEFAULT"
+ },
+ "SquareErrorCode": {
+ "0": "UNKNOWN",
+ "400": "ILLEGAL_ARGUMENT",
+ "401": "AUTHENTICATION_FAILURE",
+ "403": "FORBIDDEN",
+ "404": "NOT_FOUND",
+ "409": "REVISION_MISMATCH",
+ "410": "PRECONDITION_FAILED",
+ "500": "INTERNAL_ERROR",
+ "501": "NOT_IMPLEMENTED",
+ "503": "TRY_AGAIN_LATER",
+ "505": "MAINTENANCE",
+ "506": "NO_PRESENCE_EXISTS"
+ },
+ "SquareChatState": {
+ "0": "ALIVE",
+ "1": "DELETED",
+ "2": "SUSPENDED"
+ },
+ "SquareFeatureSetAttribute": {
+ "1": "CREATING_SECRET_SQUARE_CHAT",
+ "2": "INVITING_INTO_OPEN_SQUARE_CHAT"
+ },
+ "SquareMembershipState": {
+ "1": "JOIN_REQUESTED",
+ "2": "JOINED",
+ "3": "REJECTED",
+ "4": "LEFT",
+ "5": "KICK_OUT",
+ "6": "BANNED",
+ "7": "DELETED"
+ },
+ "SquareChatMemberAttribute": {
+ "4": "MEMBERSHIP_STATE",
+ "6": "NOTIFICATION_MESSAGE"
+ },
+ "SquareMemberRole": {
+ "1": "ADMIN",
+ "2": "CO_ADMIN",
+ "10": "MEMBER"
+ },
+ "PreconditionFailedExtraInfo": {
+ "0": "DUPLICATED_DISPLAY_NAME"
+ },
+ "SquareChatMembershipState": {
+ "1": "JOINED",
+ "2": "LEFT"
+ },
+ "FetchDirection": {
+ "1": "FORWARD",
+ "2": "BACKWARD"
+ },
+ "SquareAttribute": {
+ "1": "NAME",
+ "2": "WELCOME_MESSAGE",
+ "3": "PROFILE_IMAGE",
+ "4": "DESCRIPTION",
+ "6": "SEARCHABLE",
+ "7": "CATEGORY",
+ "8": "INVITATION_URL",
+ "9": "ABLE_TO_USE_INVITATION_URL",
+ "10": "STATE"
+ },
+ "SquareAuthorityAttribute": {
+ "1": "UPDATE_SQUARE_PROFILE",
+ "2": "INVITE_NEW_MEMBER",
+ "3": "APPROVE_JOIN_REQUEST",
+ "4": "CREATE_POST",
+ "5": "CREATE_OPEN_SQUARE_CHAT",
+ "6": "DELETE_SQUARE_CHAT_OR_POST",
+ "7": "REMOVE_SQUARE_MEMBER",
+ "8": "GRANT_ROLE",
+ "9": "ENABLE_INVITATION_TICKET",
+ "10": "CREATE_CHAT_ANNOUNCEMENT"
+ },
+ "SquareEventStatus": {
+ "1": "NORMAL",
+ "2": "ALERT_DISABLED"
+ },
+ "Location": [
+ {
+ "fid": 1,
+ "name": "title",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "address",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "latitude",
+ "type": 4
+ },
+ {
+ "fid": 4,
+ "name": "longitude",
+ "type": 4
+ },
+ {
+ "fid": 5,
+ "name": "phone",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "categoryId",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "provider",
+ "struct": "PlaceSearchProvider"
+ },
+ {
+ "fid": 8,
+ "name": "accuracy",
+ "struct": "GeolocationAccuracy"
+ },
+ {
+ "fid": 9,
+ "name": "altitudeMeters",
+ "type": 4
+ }
+ ],
+ "MessageBoxV2MessageId": [
+ {
+ "fid": 1,
+ "name": "deliveredTime",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "messageId",
+ "type": 10
+ }
+ ],
+ "MessageCommitResult": [
+ {
+ "fid": 1,
+ "name": "requestId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "state",
+ "struct": "BuddyResultState"
+ },
+ {
+ "fid": 3,
+ "name": "messageStoreRequestId",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "messageIds",
+ "list": 11
+ },
+ {
+ "fid": 11,
+ "name": "receiverCount",
+ "type": 10
+ },
+ {
+ "fid": 12,
+ "name": "successCount",
+ "type": 10
+ },
+ {
+ "fid": 13,
+ "name": "failCount",
+ "type": 10
+ },
+ {
+ "fid": 14,
+ "name": "blockCount",
+ "type": 10
+ },
+ {
+ "fid": 15,
+ "name": "unregisteredCount",
+ "type": 10
+ },
+ {
+ "fid": 16,
+ "name": "unrelatedCount",
+ "type": 10
+ },
+ {
+ "fid": 21,
+ "name": "errorDescription",
+ "type": 11
+ }
+ ],
+ "CallHost": [
+ {
+ "fid": 1,
+ "name": "host",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "port",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "zone",
+ "type": 11
+ }
+ ],
+ "AgeCheckDocomoResult": [
+ {
+ "fid": 1,
+ "name": "authUrl",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "userAgeType",
+ "struct": "UserAgeType"
+ }
+ ],
+ "AgeCheckRequestResult": [
+ {
+ "fid": 1,
+ "name": "authUrl",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "sessionId",
+ "type": 11
+ }
+ ],
+ "TextMessageAnnouncementContents": [
+ {
+ "fid": 1,
+ "name": "messageId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "text",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "senderSquareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "createdAt",
+ "type": 10
+ },
+ {
+ "fid": 5,
+ "name": "senderMid",
+ "type": 11
+ }
+ ],
+ "SquareChatAnnouncementContents": [
+ {
+ "fid": 1,
+ "name": "textMessageAnnouncementContents",
+ "struct": "TextMessageAnnouncementContents"
+ }
+ ],
+ "SquareChatAnnouncement": [
+ {
+ "fid": 1,
+ "name": "announcementSeq",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "type",
+ "struct": "SquareChatAnnouncementType"
+ },
+ {
+ "fid": 3,
+ "name": "contents",
+ "struct": "SquareChatAnnouncementContents"
+ },
+ {
+ "fid": 4,
+ "name": "createdAt",
+ "type": 10
+ },
+ {
+ "fid": 5,
+ "name": "creator",
+ "type": 11
+ }
+ ],
+ "Announcement": [
+ {
+ "fid": 1,
+ "name": "index",
+ "type": 8
+ },
+ {
+ "fid": 10,
+ "name": "forceUpdate",
+ "type": 2
+ },
+ {
+ "fid": 11,
+ "name": "title",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "text",
+ "type": 11
+ },
+ {
+ "fid": 13,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 14,
+ "name": "pictureUrl",
+ "type": 11
+ },
+ {
+ "fid": 15,
+ "name": "thumbnailUrl",
+ "type": 11
+ }
+ ],
+ "ChannelProvider": [
+ {
+ "fid": 1,
+ "name": "name",
+ "type": 11
+ }
+ ],
+ "E2EEPublicKey": [
+ {
+ "fid": 1,
+ "name": "version",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "keyId",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "keyData"
+ },
+ {
+ "fid": 5,
+ "name": "createdTime",
+ "type": 10
+ }
+ ],
+ "ChannelDomain": [
+ {
+ "fid": 1,
+ "name": "host",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "removed",
+ "type": 2
+ }
+ ],
+ "E2EENegotiationResult": [
+ {
+ "fid": 1,
+ "name": "allowedTypes",
+ "set": "ContentType"
+ },
+ {
+ "fid": 2,
+ "name": "publicKey",
+ "struct": "E2EEPublicKey"
+ },
+ {
+ "fid": 3,
+ "name": "specVersion",
+ "type": 8
+ }
+ ],
+ "OTPResult": [
+ {
+ "fid": 1,
+ "name": "otpId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "otp",
+ "type": 11
+ }
+ ],
+ "Square": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "welcomeMessage",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "profileImageObsHash",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "desc",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "searchable",
+ "type": 2
+ },
+ {
+ "fid": 7,
+ "name": "type",
+ "struct": "SquareType"
+ },
+ {
+ "fid": 8,
+ "name": "categoryId",
+ "type": 8
+ },
+ {
+ "fid": 9,
+ "name": "invitationURL",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 11,
+ "name": "ableToUseInvitationTicket",
+ "type": 2
+ },
+ {
+ "fid": 12,
+ "name": "state",
+ "struct": "SquareState"
+ },
+ {
+ "fid": 13,
+ "name": "emblems",
+ "list": "SquareEmblem"
+ },
+ {
+ "fid": 14,
+ "name": "joinMethod",
+ "struct": "SquareJoinMethod"
+ },
+ {
+ "fid": 15,
+ "name": "adultOnly",
+ "struct": "BooleanState"
+ },
+ {
+ "fid": 16,
+ "name": "svcTags",
+ "list": 11
+ },
+ {
+ "fid": 17,
+ "name": "createdAt",
+ "type": 10
+ }
+ ],
+ "SquareAuthority": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "updateSquareProfile",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 3,
+ "name": "inviteNewMember",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 4,
+ "name": "approveJoinRequest",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 5,
+ "name": "createPost",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 6,
+ "name": "createOpenSquareChat",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 7,
+ "name": "deleteSquareChatOrPost",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 8,
+ "name": "removeSquareMember",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 9,
+ "name": "grantRole",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 10,
+ "name": "enableInvitationTicket",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 11,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 12,
+ "name": "createSquareChatAnnouncement",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 13,
+ "name": "updateMaxChatMemberCount",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 14,
+ "name": "useReadonlyDefaultChat",
+ "struct": "SquareMemberRole"
+ }
+ ],
+ "SquarePreference": [
+ {
+ "fid": 1,
+ "name": "favoriteTimestamp",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "notiForNewJoinRequest",
+ "type": 2
+ }
+ ],
+ "SquareMember": [
+ {
+ "fid": 1,
+ "name": "squareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "profileImageObsHash",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "ableToReceiveMessage",
+ "type": 2
+ },
+ {
+ "fid": 7,
+ "name": "membershipState",
+ "struct": "SquareMembershipState"
+ },
+ {
+ "fid": 8,
+ "name": "role",
+ "struct": "SquareMemberRole"
+ },
+ {
+ "fid": 9,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "preference",
+ "struct": "SquarePreference"
+ },
+ {
+ "fid": 11,
+ "name": "joinMessage",
+ "type": 11
+ }
+ ],
+ "SquareMemberRelation": [
+ {
+ "fid": 1,
+ "name": "state",
+ "struct": "SquareMemberRelationState"
+ },
+ {
+ "fid": 2,
+ "name": "revision",
+ "type": 10
+ }
+ ],
+ "SquareFeature": [
+ {
+ "fid": 1,
+ "name": "controlState",
+ "struct": "SquareFeatureControlState"
+ },
+ {
+ "fid": 2,
+ "name": "booleanValue",
+ "struct": "BooleanState"
+ }
+ ],
+ "SquareFeatureSet": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 11,
+ "name": "creatingSecretSquareChat",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 12,
+ "name": "invitingIntoOpenSquareChat",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 13,
+ "name": "creatingSquareChat",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 14,
+ "name": "readonlyDefaultChat",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 15,
+ "name": "showingAdvertisement",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 16,
+ "name": "delegateJoinToPlug",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 17,
+ "name": "delegateKickOutToPlug",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 18,
+ "name": "disableUpdateJoinMethod",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 19,
+ "name": "disableTransferAdmin",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 20,
+ "name": "creatingLiveTalk",
+ "struct": "SquareFeature"
+ },
+ {
+ "fid": 21,
+ "name": "disableUpdateSearchable",
+ "struct": "SquareFeature"
+ }
+ ],
+ "SquareStatus": [
+ {
+ "fid": 1,
+ "name": "memberCount",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "joinRequestCount",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "lastJoinRequestAt",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "openChatCount",
+ "type": 8
+ }
+ ],
+ "SquareChat": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "type",
+ "struct": "SquareChatType"
+ },
+ {
+ "fid": 4,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "chatImageObsHash",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "squareChatRevision",
+ "type": 10
+ },
+ {
+ "fid": 7,
+ "name": "maxMemberCount",
+ "type": 8
+ },
+ {
+ "fid": 8,
+ "name": "state",
+ "struct": "SquareChatState"
+ },
+ {
+ "fid": 9,
+ "name": "invitationUrl",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "messageVisibility",
+ "struct": "MessageVisibility"
+ },
+ {
+ "fid": 11,
+ "name": "ableToSearchMessage",
+ "struct": "BooleanState"
+ }
+ ],
+ "NoteStatus": [
+ {
+ "fid": 1,
+ "name": "noteCount",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "latestCreatedAt",
+ "type": 10
+ }
+ ],
+ "SquareInfo": [
+ {
+ "fid": 1,
+ "name": "square",
+ "struct": "Square"
+ },
+ {
+ "fid": 2,
+ "name": "squareStatus",
+ "struct": "SquareStatus"
+ },
+ {
+ "fid": 3,
+ "name": "squareNoteStatus",
+ "struct": "NoteStatus"
+ }
+ ],
+ "BotUseInfo": [
+ {
+ "fid": 1,
+ "name": "botUseAgreementAccepted",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "botInFriends",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "primaryApplication",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "locale",
+ "type": 11
+ }
+ ],
+ "PaidCallAdCountry": [
+ {
+ "fid": 1,
+ "name": "countryCode",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "rateDivision",
+ "type": 11
+ }
+ ],
+ "PaidCallAdResult": [
+ {
+ "fid": 1,
+ "name": "adRemains",
+ "type": 8
+ }
+ ],
+ "PaidCallBalance": [
+ {
+ "fid": 1,
+ "name": "productType",
+ "struct": "PaidCallProductType"
+ },
+ {
+ "fid": 2,
+ "name": "productName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "unit",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "limitedPaidBalance",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "limitedFreeBalance",
+ "type": 8
+ },
+ {
+ "fid": 6,
+ "name": "unlimitedPaidBalance",
+ "type": 8
+ },
+ {
+ "fid": 7,
+ "name": "unlimitedFreeBalance",
+ "type": 8
+ },
+ {
+ "fid": 8,
+ "name": "startTime",
+ "type": 10
+ },
+ {
+ "fid": 9,
+ "name": "endTime",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "autopayEnabled",
+ "type": 2
+ }
+ ],
+ "PaidCallCurrencyExchangeRate": [
+ {
+ "fid": 1,
+ "name": "currencyCode",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "currencyName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "currencySign",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "preferred",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "coinRate",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "creditRate",
+ "type": 11
+ }
+ ],
+ "ExtendedProfileBirthday": [
+ {
+ "fid": 1,
+ "name": "year",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "yearPrivacyLevelType",
+ "struct": "PrivacyLevelType"
+ },
+ {
+ "fid": 3,
+ "name": "yearEnabled",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "day",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "dayPrivacyLevelType",
+ "struct": "PrivacyLevelType"
+ },
+ {
+ "fid": 7,
+ "name": "dayEnabled",
+ "type": 2
+ }
+ ],
+ "ExtendedProfile": [
+ {
+ "fid": 1,
+ "name": "birthday",
+ "struct": "ExtendedProfileBirthday"
+ }
+ ],
+ "PaidCallDialing": [
+ {
+ "fid": 1,
+ "name": "type",
+ "struct": "PaidCallType"
+ },
+ {
+ "fid": 2,
+ "name": "dialedNumber",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "serviceDomain",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "productType",
+ "struct": "PaidCallProductType"
+ },
+ {
+ "fid": 5,
+ "name": "productName",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "multipleProduct",
+ "type": 2
+ },
+ {
+ "fid": 7,
+ "name": "callerIdStatus",
+ "struct": "PaidCallerIdStatus"
+ },
+ {
+ "fid": 10,
+ "name": "balance",
+ "type": 8
+ },
+ {
+ "fid": 11,
+ "name": "unit",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "rate",
+ "type": 8
+ },
+ {
+ "fid": 13,
+ "name": "displayCode",
+ "type": 11
+ },
+ {
+ "fid": 14,
+ "name": "calledNumber",
+ "type": 11
+ },
+ {
+ "fid": 15,
+ "name": "calleeNationalNumber",
+ "type": 11
+ },
+ {
+ "fid": 16,
+ "name": "calleeCallingCode",
+ "type": 11
+ },
+ {
+ "fid": 17,
+ "name": "rateDivision",
+ "type": 11
+ },
+ {
+ "fid": 20,
+ "name": "adMaxMin",
+ "type": 8
+ },
+ {
+ "fid": 21,
+ "name": "adRemains",
+ "type": 8
+ },
+ {
+ "fid": 22,
+ "name": "adSessionId",
+ "type": 11
+ }
+ ],
+ "SpotItem": [
+ {
+ "fid": 2,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "phone",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "category",
+ "struct": "SpotCategory"
+ },
+ {
+ "fid": 5,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "countryAreaCode",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "freePhoneCallable",
+ "type": 2
+ }
+ ],
+ "SpotNearbyItem": [
+ {
+ "fid": 2,
+ "name": "spotItem",
+ "struct": "SpotItem"
+ },
+ {
+ "fid": 11,
+ "name": "location",
+ "struct": "Location"
+ }
+ ],
+ "SpotNearbyResponse": [
+ {
+ "fid": 1,
+ "name": "spotNearbyItems",
+ "list": "SpotNearbyItem"
+ }
+ ],
+ "SpotPhoneNumberResponse": [
+ {
+ "fid": 1,
+ "name": "spotItems",
+ "list": "SpotItem"
+ }
+ ],
+ "PaidCallHistory": [
+ {
+ "fid": 1,
+ "name": "seq",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "type",
+ "struct": "PaidCallType"
+ },
+ {
+ "fid": 3,
+ "name": "dialedNumber",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "calledNumber",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "toMid",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "toName",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "setupTime",
+ "type": 10
+ },
+ {
+ "fid": 8,
+ "name": "startTime",
+ "type": 10
+ },
+ {
+ "fid": 9,
+ "name": "endTime",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "duration",
+ "type": 10
+ },
+ {
+ "fid": 11,
+ "name": "terminate",
+ "type": 8
+ },
+ {
+ "fid": 12,
+ "name": "productType",
+ "struct": "PaidCallProductType"
+ },
+ {
+ "fid": 13,
+ "name": "charge",
+ "type": 8
+ },
+ {
+ "fid": 14,
+ "name": "unit",
+ "type": 11
+ },
+ {
+ "fid": 15,
+ "name": "result",
+ "type": 11
+ }
+ ],
+ "PaidCallHistoryResult": [
+ {
+ "fid": 1,
+ "name": "historys",
+ "list": "PaidCallHistory"
+ },
+ {
+ "fid": 2,
+ "name": "hasNext",
+ "type": 2
+ }
+ ],
+ "PaidCallMetadataResult": [
+ {
+ "fid": 1,
+ "name": "currencyExchangeRates",
+ "list": "PaidCallCurrencyExchangeRate"
+ },
+ {
+ "fid": 2,
+ "name": "recommendedCountryCodes",
+ "list": 11
+ },
+ {
+ "fid": 3,
+ "name": "adCountries",
+ "list": "PaidCallAdCountry"
+ }
+ ],
+ "PaidCallRedeemResult": [
+ {
+ "fid": 1,
+ "name": "eventName",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "eventAmount",
+ "type": 8
+ }
+ ],
+ "PaidCallResponse": [
+ {
+ "fid": 1,
+ "name": "host",
+ "struct": "CallHost"
+ },
+ {
+ "fid": 2,
+ "name": "dialing",
+ "struct": "PaidCallDialing"
+ },
+ {
+ "fid": 3,
+ "name": "token",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "spotItems",
+ "list": "SpotItem"
+ }
+ ],
+ "PaidCallUserRate": [
+ {
+ "fid": 1,
+ "name": "countryCode",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "rate",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "rateDivision",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "rateName",
+ "type": 11
+ }
+ ],
+ "ChannelInfo": [
+ {
+ "fid": 1,
+ "name": "channelId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "entryPageUrl",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "descriptionText",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "provider",
+ "struct": "ChannelProvider"
+ },
+ {
+ "fid": 7,
+ "name": "publicType",
+ "struct": "PublicType"
+ },
+ {
+ "fid": 8,
+ "name": "iconImage",
+ "type": 11
+ },
+ {
+ "fid": 9,
+ "name": "permissions",
+ "list": 11
+ },
+ {
+ "fid": 11,
+ "name": "iconThumbnailImage",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "channelConfigurations",
+ "list": "ChannelConfiguration"
+ },
+ {
+ "fid": 13,
+ "name": "lcsAllApiUsable",
+ "type": 2
+ },
+ {
+ "fid": 14,
+ "name": "allowedPermissions",
+ "set": "ChannelPermission"
+ },
+ {
+ "fid": 15,
+ "name": "channelDomains",
+ "list": "ChannelDomain"
+ },
+ {
+ "fid": 16,
+ "name": "updatedTimestamp",
+ "type": 10
+ }
+ ],
+ "ApprovedChannelInfo": [
+ {
+ "fid": 1,
+ "name": "channelInfo",
+ "struct": "ChannelInfo"
+ },
+ {
+ "fid": 2,
+ "name": "approvedAt",
+ "type": 10
+ }
+ ],
+ "ApprovedChannelInfos": [
+ {
+ "fid": 1,
+ "name": "approvedChannelInfos",
+ "list": "ApprovedChannelInfo"
+ },
+ {
+ "fid": 2,
+ "name": "revision",
+ "type": 10
+ }
+ ],
+ "AuthQrcode": [
+ {
+ "fid": 1,
+ "name": "qrcode",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "verifier",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "callbackUrl",
+ "type": 11
+ }
+ ],
+ "AnalyticsInfo": [
+ {
+ "fid": 1,
+ "name": "gaSamplingRate",
+ "type": 4
+ },
+ {
+ "fid": 2,
+ "name": "tmid",
+ "type": 11
+ }
+ ],
+ "ContactTransition": [
+ {
+ "fid": 1,
+ "name": "ownerMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "targetMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "previousStatus",
+ "struct": "ContactStatus"
+ },
+ {
+ "fid": 4,
+ "name": "resultStatus",
+ "struct": "ContactStatus"
+ }
+ ],
+ "UserTicketResponse": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "userTicket",
+ "type": 11
+ }
+ ],
+ "BuddyBanner": [
+ {
+ "fid": 1,
+ "name": "buddyBannerLinkType",
+ "struct": "BuddyBannerLinkType"
+ },
+ {
+ "fid": 2,
+ "name": "buddyBannerLink",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "buddyBannerImageUrl",
+ "type": 11
+ }
+ ],
+ "BuddyDetail": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "memberCount",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "onAir",
+ "type": 2
+ },
+ {
+ "fid": 4,
+ "name": "businessAccount",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "addable",
+ "type": 2
+ },
+ {
+ "fid": 6,
+ "name": "acceptableContentTypes",
+ "set": "ContentType"
+ },
+ {
+ "fid": 7,
+ "name": "capableMyhome",
+ "type": 2
+ },
+ {
+ "fid": 8,
+ "name": "freePhoneCallable",
+ "type": 2
+ },
+ {
+ "fid": 9,
+ "name": "phoneNumberToDial",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "needPermissionApproval",
+ "type": 2
+ },
+ {
+ "fid": 11,
+ "name": "channelId",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "channelProviderName",
+ "type": 11
+ },
+ {
+ "fid": 13,
+ "name": "iconType",
+ "type": 8
+ },
+ {
+ "fid": 14,
+ "name": "botType",
+ "struct": "BotType"
+ },
+ {
+ "fid": 15,
+ "name": "showRichMenu",
+ "type": 2
+ },
+ {
+ "fid": 16,
+ "name": "richMenuRevision",
+ "type": 10
+ },
+ {
+ "fid": 17,
+ "name": "onAirLabel",
+ "struct": "BuddyOnAirLabel"
+ },
+ {
+ "fid": 18,
+ "name": "useTheme",
+ "type": 2
+ },
+ {
+ "fid": 19,
+ "name": "themeId",
+ "type": 11
+ },
+ {
+ "fid": 20,
+ "name": "useBar",
+ "type": 2
+ },
+ {
+ "fid": 21,
+ "name": "barRevision",
+ "type": 10
+ },
+ {
+ "fid": 22,
+ "name": "useBackground",
+ "type": 2
+ },
+ {
+ "fid": 23,
+ "name": "backgroundId",
+ "type": 11
+ },
+ {
+ "fid": 24,
+ "name": "statusBarEnabled",
+ "type": 2
+ },
+ {
+ "fid": 25,
+ "name": "statusBarRevision",
+ "type": 10
+ },
+ {
+ "fid": 26,
+ "name": "searchId",
+ "type": 11
+ },
+ {
+ "fid": 27,
+ "name": "onAirVersion",
+ "type": 8
+ },
+ {
+ "fid": 28,
+ "name": "blockable",
+ "type": 2
+ },
+ {
+ "fid": 29,
+ "name": "botActiveStatus",
+ "struct": "BuddyBotActiveStatus"
+ },
+ {
+ "fid": 30,
+ "name": "membershipEnabled",
+ "type": 2
+ }
+ ],
+ "Contact": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "type",
+ "struct": "ContactType"
+ },
+ {
+ "fid": 11,
+ "name": "status",
+ "struct": "ContactStatus"
+ },
+ {
+ "fid": 21,
+ "name": "relation",
+ "struct": "ContactRelation"
+ },
+ {
+ "fid": 22,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 23,
+ "name": "phoneticName",
+ "type": 11
+ },
+ {
+ "fid": 24,
+ "name": "pictureStatus",
+ "type": 11
+ },
+ {
+ "fid": 25,
+ "name": "thumbnailUrl",
+ "type": 11
+ },
+ {
+ "fid": 26,
+ "name": "statusMessage",
+ "type": 11
+ },
+ {
+ "fid": 27,
+ "name": "displayNameOverridden",
+ "type": 11
+ },
+ {
+ "fid": 28,
+ "name": "favoriteTime",
+ "type": 10
+ },
+ {
+ "fid": 31,
+ "name": "capableVoiceCall",
+ "type": 2
+ },
+ {
+ "fid": 32,
+ "name": "capableVideoCall",
+ "type": 2
+ },
+ {
+ "fid": 33,
+ "name": "capableMyhome",
+ "type": 2
+ },
+ {
+ "fid": 34,
+ "name": "capableBuddy",
+ "type": 2
+ },
+ {
+ "fid": 35,
+ "name": "attributes",
+ "type": 8
+ },
+ {
+ "fid": 36,
+ "name": "settings",
+ "type": 10
+ },
+ {
+ "fid": 37,
+ "name": "picturePath",
+ "type": 11
+ },
+ {
+ "fid": 38,
+ "name": "recommendParams",
+ "type": 11
+ },
+ {
+ "fid": 39,
+ "name": "friendRequestStatus",
+ "struct": "FriendRequestStatus"
+ },
+ {
+ "fid": 40,
+ "name": "musicProfile",
+ "type": 11
+ },
+ {
+ "fid": 42,
+ "name": "videoProfile",
+ "type": 11
+ },
+ {
+ "fid": 43,
+ "name": "statusMessageContentMetadata",
+ "map": 11
+ },
+ {
+ "fid": 44,
+ "name": "avatarProfile",
+ "struct": "AvatarProfile"
+ },
+ {
+ "fid": 45,
+ "name": "friendRingtone",
+ "type": 11
+ },
+ {
+ "fid": 46,
+ "name": "friendRingbackTone",
+ "type": 11
+ },
+ {
+ "fid": 47,
+ "name": "nftProfile",
+ "type": 2
+ },
+ {
+ "fid": 48,
+ "name": "pictureSource",
+ "struct": "PictureSource"
+ }
+ ],
+ "BuddyList": [
+ {
+ "fid": 1,
+ "name": "classification",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalBuddyCount",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "popularContacts",
+ "list": "Contact"
+ }
+ ],
+ "RegisterWithPhoneNumberResult": [
+ {
+ "fid": 1,
+ "name": "authToken",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "recommendEmailRegistration",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "certificate",
+ "type": 11
+ }
+ ],
+ "BuddyMessageRequest": [
+ {
+ "fid": 1,
+ "name": "contentType",
+ "struct": "ContentType"
+ },
+ {
+ "fid": 2,
+ "name": "text",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "location",
+ "struct": "Location"
+ },
+ {
+ "fid": 4,
+ "name": "content"
+ },
+ {
+ "fid": 5,
+ "name": "contentMetadata",
+ "map": 11
+ }
+ ],
+ "BuddyOnAirUrls": [
+ {
+ "fid": 1,
+ "name": "hls",
+ "map": 11
+ },
+ {
+ "fid": 2,
+ "name": "smoothStreaming",
+ "map": 11
+ }
+ ],
+ "BuddyOnAir": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "freshnessLifetime",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "onAirId",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "onAir",
+ "type": 2
+ },
+ {
+ "fid": 11,
+ "name": "text",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "viewerCount",
+ "type": 10
+ },
+ {
+ "fid": 13,
+ "name": "targetCount",
+ "type": 10
+ },
+ {
+ "fid": 31,
+ "name": "onAirType",
+ "struct": "BuddyOnAirType"
+ },
+ {
+ "fid": 32,
+ "name": "onAirUrls",
+ "struct": "BuddyOnAirUrls"
+ }
+ ],
+ "BuddyProfile": [
+ {
+ "fid": 1,
+ "name": "buddyId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "searchId",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "statusMessage",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "contactCount",
+ "type": 10
+ }
+ ],
+ "CommitMessageResult": [
+ {
+ "fid": 1,
+ "name": "message",
+ "struct": "Message"
+ },
+ {
+ "fid": 2,
+ "name": "code",
+ "struct": "CommitMessageResultCode"
+ },
+ {
+ "fid": 3,
+ "name": "reason",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "successCount",
+ "type": 10
+ },
+ {
+ "fid": 5,
+ "name": "failCount",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "unregisterCount",
+ "type": 10
+ },
+ {
+ "fid": 7,
+ "name": "blockCount",
+ "type": 10
+ }
+ ],
+ "BuddySearchResult": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "pictureStatus",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "picturePath",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "statusMessage",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "businessAccount",
+ "type": 2
+ }
+ ],
+ "SyncParamMid": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "diff",
+ "struct": "Diff"
+ },
+ {
+ "fid": 3,
+ "name": "revision",
+ "type": 10
+ }
+ ],
+ "SIMInfo": [
+ {
+ "fid": 1,
+ "name": "phoneNumber",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "countryCode",
+ "type": 11
+ }
+ ],
+ "SyncParamContact": [
+ {
+ "fid": 1,
+ "name": "syncParamMid",
+ "struct": "SyncParamMid"
+ },
+ {
+ "fid": 2,
+ "name": "contactStatus",
+ "struct": "ContactStatus"
+ }
+ ],
+ "ChannelDomains": [
+ {
+ "fid": 1,
+ "name": "channelDomains",
+ "list": "ChannelDomain"
+ },
+ {
+ "fid": 2,
+ "name": "revision",
+ "type": 10
+ }
+ ],
+ "ProductCategory": [
+ {
+ "fid": 1,
+ "name": "productCategoryId",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "title",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "productCount",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "newFlag",
+ "type": 2
+ }
+ ],
+ "ChannelInfos": [
+ {
+ "fid": 1,
+ "name": "channelInfos",
+ "list": "ChannelInfo"
+ },
+ {
+ "fid": 2,
+ "name": "revision",
+ "type": 10
+ }
+ ],
+ "ChannelNotificationSetting": [
+ {
+ "fid": 1,
+ "name": "channelId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "notificationReceivable",
+ "type": 2
+ },
+ {
+ "fid": 4,
+ "name": "messageReceivable",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "showDefault",
+ "type": 2
+ }
+ ],
+ "ChannelSyncDatas": [
+ {
+ "fid": 1,
+ "name": "channelInfos",
+ "list": "ChannelInfo"
+ },
+ {
+ "fid": 2,
+ "name": "channelDomains",
+ "list": "ChannelDomain"
+ },
+ {
+ "fid": 3,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "expires",
+ "type": 10
+ }
+ ],
+ "NotiCenterEventData": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "to",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "from_",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "toChannel",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "fromChannel",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "eventType",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 8,
+ "name": "operationRevision",
+ "type": 10
+ },
+ {
+ "fid": 9,
+ "name": "content",
+ "map": 11
+ },
+ {
+ "fid": 10,
+ "name": "push",
+ "map": 11
+ }
+ ],
+ "ChannelToken": [
+ {
+ "fid": 1,
+ "name": "token",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "obsToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "expiration",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "refreshToken",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "channelAccessToken",
+ "type": 11
+ }
+ ],
+ "ChannelSettings": [
+ {
+ "fid": 1,
+ "name": "unapprovedMessageReceivable",
+ "type": 2
+ }
+ ],
+ "ChannelIdWithLastUpdated": [
+ {
+ "fid": 1,
+ "name": "channelId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "lastUpdated",
+ "type": 10
+ }
+ ],
+ "Coin": [
+ {
+ "fid": 1,
+ "name": "freeCoinBalance",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "payedCoinBalance",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "totalCoinBalance",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "rewardCoinBalance",
+ "type": 8
+ }
+ ],
+ "CoinPayLoad": [
+ {
+ "fid": 1,
+ "name": "payCoin",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "freeCoin",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "type",
+ "struct": "PayloadType"
+ },
+ {
+ "fid": 4,
+ "name": "rewardCoin",
+ "type": 8
+ }
+ ],
+ "CoinHistory": [
+ {
+ "fid": 1,
+ "name": "payDate",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "coinBalance",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "coin",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "price",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "title",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "refund",
+ "type": 2
+ },
+ {
+ "fid": 7,
+ "name": "paySeq",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "currency",
+ "type": 11
+ },
+ {
+ "fid": 9,
+ "name": "currencySign",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "displayPrice",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "payload",
+ "struct": "CoinPayLoad"
+ },
+ {
+ "fid": 12,
+ "name": "channelId",
+ "type": 11
+ }
+ ],
+ "CoinHistoryCondition": [
+ {
+ "fid": 1,
+ "name": "start",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "size",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "language",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "eddt",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "appStoreCode",
+ "struct": "PaymentType"
+ }
+ ],
+ "CoinHistoryResult": [
+ {
+ "fid": 1,
+ "name": "historys",
+ "list": "CoinHistory"
+ },
+ {
+ "fid": 2,
+ "name": "balance",
+ "struct": "Coin"
+ },
+ {
+ "fid": 3,
+ "name": "hasNext",
+ "type": 2
+ }
+ ],
+ "CoinProductItem": [
+ {
+ "fid": 1,
+ "name": "itemId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "coin",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "freeCoin",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "currency",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "price",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "displayPrice",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 9,
+ "name": "desc",
+ "type": 11
+ }
+ ],
+ "CoinPurchaseConfirm": [
+ {
+ "fid": 1,
+ "name": "orderId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "appStoreCode",
+ "struct": "PaymentType"
+ },
+ {
+ "fid": 3,
+ "name": "receipt",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "signature",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "seller",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "requestType",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "ignoreReceipt",
+ "type": 2
+ }
+ ],
+ "CoinPurchaseReservation": [
+ {
+ "fid": 1,
+ "name": "productId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "country",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "currency",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "price",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "appStoreCode",
+ "struct": "PaymentType"
+ },
+ {
+ "fid": 6,
+ "name": "language",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "pgCode",
+ "struct": "PaymentPgType"
+ },
+ {
+ "fid": 8,
+ "name": "redirectUrl",
+ "type": 11
+ }
+ ],
+ "CoinUseReservationItem": [
+ {
+ "fid": 1,
+ "name": "itemId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "itemName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "amount",
+ "type": 8
+ }
+ ],
+ "CoinUseReservation": [
+ {
+ "fid": 1,
+ "name": "channelId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "shopOrderId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "appStoreCode",
+ "struct": "PaymentType"
+ },
+ {
+ "fid": 4,
+ "name": "items",
+ "list": "CoinUseReservationItem"
+ },
+ {
+ "fid": 5,
+ "name": "country",
+ "type": 11
+ }
+ ],
+ "CompactContact": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "modifiedTime",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "status",
+ "struct": "ContactStatus"
+ },
+ {
+ "fid": 5,
+ "name": "settings",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "displayNameOverridden",
+ "type": 11
+ }
+ ],
+ "ContactModification": [
+ {
+ "fid": 1,
+ "name": "type",
+ "struct": "ModificationType"
+ },
+ {
+ "fid": 2,
+ "name": "luid",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "phones",
+ "list": 11
+ },
+ {
+ "fid": 12,
+ "name": "emails",
+ "list": 11
+ },
+ {
+ "fid": 13,
+ "name": "userids",
+ "list": 11
+ }
+ ],
+ "ContactRegistration": [
+ {
+ "fid": 1,
+ "name": "contact",
+ "struct": "Contact"
+ },
+ {
+ "fid": 10,
+ "name": "luid",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "contactType",
+ "struct": "ContactType"
+ },
+ {
+ "fid": 12,
+ "name": "contactKey",
+ "type": 11
+ }
+ ],
+ "ContactReport": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "exists",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "contact",
+ "struct": "Contact"
+ }
+ ],
+ "ContactReportResult": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "exists",
+ "type": 2
+ }
+ ],
+ "DeviceInfo": [
+ {
+ "fid": 1,
+ "name": "deviceName",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "systemName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "systemVersion",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "model",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "carrierCode",
+ "struct": "CarrierCode"
+ },
+ {
+ "fid": 11,
+ "name": "carrierName",
+ "type": 11
+ },
+ {
+ "fid": 20,
+ "name": "applicationType",
+ "struct": "ApplicationType"
+ }
+ ],
+ "EmailConfirmation": [
+ {
+ "fid": 1,
+ "name": "usePasswordSet",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "email",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "password",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "ignoreDuplication",
+ "type": 2
+ }
+ ],
+ "EmailConfirmationSession": [
+ {
+ "fid": 1,
+ "name": "emailConfirmationType",
+ "struct": "EmailConfirmationType"
+ },
+ {
+ "fid": 2,
+ "name": "verifier",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "targetEmail",
+ "type": 11
+ }
+ ],
+ "FriendChannelMatrix": [
+ {
+ "fid": 1,
+ "name": "channelId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "representMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "count",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "point",
+ "type": 8
+ }
+ ],
+ "FriendChannelMatricesResponse": [
+ {
+ "fid": 1,
+ "name": "expires",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "matrices",
+ "list": "FriendChannelMatrix"
+ }
+ ],
+ "FriendRequest": [
+ {
+ "fid": 1,
+ "name": "eMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "direction",
+ "struct": "FriendRequestDirection"
+ },
+ {
+ "fid": 4,
+ "name": "method",
+ "struct": "FriendRequestMethod"
+ },
+ {
+ "fid": 5,
+ "name": "param",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "timestamp",
+ "type": 10
+ },
+ {
+ "fid": 7,
+ "name": "seqId",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "picturePath",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "pictureStatus",
+ "type": 11
+ }
+ ],
+ "FriendRequestsInfo": [
+ {
+ "fid": 1,
+ "name": "totalIncomingCount",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "totalOutgoingCount",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "recentIncomings",
+ "list": "FriendRequest"
+ },
+ {
+ "fid": 4,
+ "name": "recentOutgoings",
+ "list": "FriendRequest"
+ },
+ {
+ "fid": 5,
+ "name": "totalIncomingLimit",
+ "type": 8
+ },
+ {
+ "fid": 6,
+ "name": "totalOutgoingLimit",
+ "type": 8
+ }
+ ],
+ "Geolocation": [
+ {
+ "fid": 1,
+ "name": "longitude",
+ "type": 4
+ },
+ {
+ "fid": 2,
+ "name": "latitude",
+ "type": 4
+ }
+ ],
+ "NotificationTarget": [
+ {
+ "fid": 1,
+ "name": "applicationType",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "applicationVersion",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "region",
+ "type": 11
+ }
+ ],
+ "GlobalEvent": [
+ {
+ "fid": 1,
+ "name": "type",
+ "struct": "GlobalEventType"
+ },
+ {
+ "fid": 2,
+ "name": "minDelayInMinutes",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "maxDelayInMinutes",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "createTimeMillis",
+ "type": 10
+ },
+ {
+ "fid": 5,
+ "name": "maxDelayHardLimit",
+ "type": 2
+ }
+ ],
+ "GroupPreference": [
+ {
+ "fid": 1,
+ "name": "invitationTicket",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "favoriteTimestamp",
+ "type": 10
+ }
+ ],
+ "Group": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "pictureStatus",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "preventedJoinByTicket",
+ "type": 2
+ },
+ {
+ "fid": 13,
+ "name": "groupPreference",
+ "struct": "GroupPreference"
+ },
+ {
+ "fid": 20,
+ "name": "members",
+ "list": "Contact"
+ },
+ {
+ "fid": 21,
+ "name": "creator",
+ "struct": "Contact"
+ },
+ {
+ "fid": 22,
+ "name": "invitee",
+ "list": "Contact"
+ },
+ {
+ "fid": 31,
+ "name": "notificationDisabled",
+ "type": 2
+ }
+ ],
+ "IdentityCredential": [
+ {
+ "fid": 1,
+ "name": "provider",
+ "struct": "IdentityProvider"
+ },
+ {
+ "fid": 2,
+ "name": "identifier",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "password",
+ "type": 11
+ }
+ ],
+ "LastReadMessageId": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "lastReadMessageId",
+ "type": 11
+ }
+ ],
+ "LastReadMessageIds": [
+ {
+ "fid": 1,
+ "name": "chatId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "lastReadMessageIds",
+ "list": "LastReadMessageId"
+ }
+ ],
+ "VerificationSessionData": [
+ {
+ "fid": 1,
+ "name": "sessionId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "method",
+ "struct": "VerificationMethod"
+ },
+ {
+ "fid": 3,
+ "name": "callback",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "normalizedPhone",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "countryCode",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "nationalSignificantNumber",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "availableVerificationMethods",
+ "list": "VerificationMethod"
+ },
+ {
+ "fid": 8,
+ "name": "callerIdMask",
+ "type": 11
+ }
+ ],
+ "LoginResult": [
+ {
+ "fid": 1,
+ "name": "authToken",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "certificate",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "verifier",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "pinCode",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "type",
+ "struct": "LoginResultType"
+ },
+ {
+ "fid": 6,
+ "name": "lastPrimaryBindTime",
+ "type": 10
+ },
+ {
+ "fid": 7,
+ "name": "displayMessage",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "sessionForSMSConfirm",
+ "struct": "VerificationSessionData"
+ }
+ ],
+ "LoginRequest": [
+ {
+ "fid": 1,
+ "name": "type",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "identityProvider",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "identifier",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "password",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "keepLoggedIn",
+ "type": 2
+ },
+ {
+ "fid": 6,
+ "name": "accessLocation",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "systemName",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "certificate",
+ "type": 11
+ },
+ {
+ "fid": 9,
+ "name": "verifier",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "secret",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "e2eeVersion",
+ "type": 8
+ }
+ ],
+ "LoginSession": [
+ {
+ "fid": 1,
+ "name": "tokenKey",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "expirationTime",
+ "type": 10
+ },
+ {
+ "fid": 11,
+ "name": "applicationType",
+ "struct": "ApplicationType"
+ },
+ {
+ "fid": 12,
+ "name": "systemName",
+ "type": 11
+ },
+ {
+ "fid": 22,
+ "name": "accessLocation",
+ "type": 11
+ }
+ ],
+ "Message": [
+ {
+ "fid": 1,
+ "name": "_from",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "to",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "toType",
+ "struct": "MIDType"
+ },
+ {
+ "fid": 4,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "deliveredTime",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "text",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "location",
+ "struct": "Location"
+ },
+ {
+ "fid": 14,
+ "name": "hasContent",
+ "type": 2
+ },
+ {
+ "fid": 15,
+ "name": "contentType",
+ "struct": "ContentType"
+ },
+ {
+ "fid": 17,
+ "name": "contentPreview"
+ },
+ {
+ "fid": 18,
+ "name": "contentMetadata",
+ "map": 11
+ },
+ {
+ "fid": 19,
+ "name": "sessionId"
+ },
+ {
+ "fid": 20,
+ "name": "chunks"
+ },
+ {
+ "fid": 21,
+ "name": "relatedMessageId",
+ "type": 11
+ },
+ {
+ "fid": 22,
+ "name": "messageRelationType",
+ "struct": "MessageRelationType"
+ },
+ {
+ "fid": 23,
+ "name": "readCount",
+ "type": 10
+ },
+ {
+ "fid": 24,
+ "name": "relatedMessageServiceCode",
+ "struct": "ServiceCode"
+ },
+ {
+ "fid": 25,
+ "name": "appExtensionType",
+ "struct": "AppExtensionType"
+ },
+ {
+ "fid": 27,
+ "name": "reactions",
+ "list": "Reaction"
+ }
+ ],
+ "SquareMessage": [
+ {
+ "fid": 1,
+ "name": "message",
+ "struct": "Message"
+ },
+ {
+ "fid": 3,
+ "name": "fromType",
+ "struct": "MIDType"
+ },
+ {
+ "fid": 4,
+ "name": "squareMessageRevision",
+ "type": 10
+ },
+ {
+ "fid": 5,
+ "name": "state",
+ "struct": "SquareMessageState"
+ }
+ ],
+ "SquareChatStatusWithoutMessage": [
+ {
+ "fid": 1,
+ "name": "memberCount",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "unreadMessageCount",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "markedAsReadMessageId",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "mentionedMessageId",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "notifiedMessageType",
+ "struct": "NotifiedMessageType"
+ }
+ ],
+ "SquareChatStatus": [
+ {
+ "fid": 3,
+ "name": "lastMessage",
+ "struct": "SquareMessage"
+ },
+ {
+ "fid": 4,
+ "name": "senderDisplayName",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "otherStatus",
+ "struct": "SquareChatStatusWithoutMessage"
+ }
+ ],
+ "SquareChatMember": [
+ {
+ "fid": 1,
+ "name": "squareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "membershipState",
+ "struct": "SquareChatMembershipState"
+ },
+ {
+ "fid": 5,
+ "name": "notificationForMessage",
+ "type": 2
+ },
+ {
+ "fid": 6,
+ "name": "notificationForNewMember",
+ "type": 2
+ }
+ ],
+ "MessageOperation": [
+ {
+ "fid": 1,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "type",
+ "struct": "MessageOperationType"
+ },
+ {
+ "fid": 4,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "status",
+ "struct": "OpStatus"
+ },
+ {
+ "fid": 10,
+ "name": "param1",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "param2",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "param3",
+ "type": 11
+ },
+ {
+ "fid": 20,
+ "name": "message",
+ "struct": "Message"
+ }
+ ],
+ "MessageOperations": [
+ {
+ "fid": 1,
+ "name": "operations",
+ "list": "MessageOperation"
+ },
+ {
+ "fid": 2,
+ "name": "endFlag",
+ "type": 2
+ }
+ ],
+ "MessageStoreResult": [
+ {
+ "fid": 1,
+ "name": "requestId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "messageIds",
+ "list": 11
+ }
+ ],
+ "MetaProfile": [
+ {
+ "fid": 1,
+ "name": "createTime",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "regionCode",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "identities",
+ "map": 11
+ }
+ ],
+ "NotificationItem": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "_from",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "to",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "fromChannel",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "toChannel",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 8,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 9,
+ "name": "content",
+ "map": 11
+ }
+ ],
+ "NotificationFetchResult": [
+ {
+ "fid": 1,
+ "name": "fetchMode",
+ "struct": "NotificationItemFetchMode"
+ },
+ {
+ "fid": 2,
+ "name": "itemList",
+ "list": "NotificationItem"
+ }
+ ],
+ "Operation": [
+ {
+ "fid": 1,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "type",
+ "struct": "OpType"
+ },
+ {
+ "fid": 4,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "checksum",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "status",
+ "struct": "OpStatus"
+ },
+ {
+ "fid": 10,
+ "name": "param1",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "param2",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "param3",
+ "type": 11
+ },
+ {
+ "fid": 20,
+ "name": "message",
+ "struct": "Message"
+ }
+ ],
+ "PaymentReservation": [
+ {
+ "fid": 1,
+ "name": "receiverMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "productId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "language",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "location",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "currency",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "price",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "appStoreCode",
+ "struct": "PaymentType"
+ },
+ {
+ "fid": 8,
+ "name": "messageText",
+ "type": 11
+ },
+ {
+ "fid": 9,
+ "name": "messageTemplate",
+ "type": 8
+ },
+ {
+ "fid": 10,
+ "name": "packageId",
+ "type": 10
+ }
+ ],
+ "PaymentReservationResult": [
+ {
+ "fid": 1,
+ "name": "orderId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "confirmUrl",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "extras",
+ "map": 11
+ }
+ ],
+ "Product": [
+ {
+ "fid": 1,
+ "name": "productId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "packageId",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "version",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "authorName",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "onSale",
+ "type": 2
+ },
+ {
+ "fid": 6,
+ "name": "validDays",
+ "type": 8
+ },
+ {
+ "fid": 7,
+ "name": "saleType",
+ "type": 8
+ },
+ {
+ "fid": 8,
+ "name": "copyright",
+ "type": 11
+ },
+ {
+ "fid": 9,
+ "name": "title",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "descriptionText",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "shopOrderId",
+ "type": 10
+ },
+ {
+ "fid": 12,
+ "name": "fromMid",
+ "type": 11
+ },
+ {
+ "fid": 13,
+ "name": "toMid",
+ "type": 11
+ },
+ {
+ "fid": 14,
+ "name": "validUntil",
+ "type": 10
+ },
+ {
+ "fid": 15,
+ "name": "priceTier",
+ "type": 8
+ },
+ {
+ "fid": 16,
+ "name": "price",
+ "type": 11
+ },
+ {
+ "fid": 17,
+ "name": "currency",
+ "type": 11
+ },
+ {
+ "fid": 18,
+ "name": "currencySymbol",
+ "type": 11
+ },
+ {
+ "fid": 19,
+ "name": "paymentType",
+ "struct": "PaymentType"
+ },
+ {
+ "fid": 20,
+ "name": "createDate",
+ "type": 10
+ },
+ {
+ "fid": 21,
+ "name": "ownFlag",
+ "type": 2
+ },
+ {
+ "fid": 22,
+ "name": "eventType",
+ "struct": "ProductEventType"
+ },
+ {
+ "fid": 23,
+ "name": "urlSchema",
+ "type": 11
+ },
+ {
+ "fid": 24,
+ "name": "downloadUrl",
+ "type": 11
+ },
+ {
+ "fid": 25,
+ "name": "buddyMid",
+ "type": 11
+ },
+ {
+ "fid": 26,
+ "name": "publishSince",
+ "type": 10
+ },
+ {
+ "fid": 27,
+ "name": "newFlag",
+ "type": 2
+ },
+ {
+ "fid": 28,
+ "name": "missionFlag",
+ "type": 2
+ },
+ {
+ "fid": 29,
+ "name": "categories",
+ "list": "ProductCategory"
+ },
+ {
+ "fid": 30,
+ "name": "missionButtonText",
+ "type": 11
+ },
+ {
+ "fid": 31,
+ "name": "missionShortDescription",
+ "type": 11
+ },
+ {
+ "fid": 32,
+ "name": "authorId",
+ "type": 11
+ },
+ {
+ "fid": 41,
+ "name": "grantedByDefault",
+ "type": 2
+ },
+ {
+ "fid": 42,
+ "name": "displayOrder",
+ "type": 8
+ },
+ {
+ "fid": 43,
+ "name": "availableForPresent",
+ "type": 2
+ },
+ {
+ "fid": 44,
+ "name": "availableForMyself",
+ "type": 2
+ },
+ {
+ "fid": 51,
+ "name": "hasAnimation",
+ "type": 2
+ },
+ {
+ "fid": 52,
+ "name": "hasSound",
+ "type": 2
+ },
+ {
+ "fid": 53,
+ "name": "recommendationsEnabled",
+ "type": 2
+ },
+ {
+ "fid": 54,
+ "name": "stickerResourceType",
+ "struct": "StickerResourceType"
+ }
+ ],
+ "ProductList": [
+ {
+ "fid": 1,
+ "name": "productList",
+ "list": "ProductDetail"
+ },
+ {
+ "fid": 2,
+ "name": "offset",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 8
+ },
+ {
+ "fid": 11,
+ "name": "title",
+ "type": 11
+ }
+ ],
+ "StickerIdRange": [
+ {
+ "fid": 1,
+ "name": "start",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "size",
+ "type": 8
+ }
+ ],
+ "ProductSimple": [
+ {
+ "fid": 1,
+ "name": "productId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "packageId",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "version",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "onSale",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "validUntil",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "stickerIdRanges",
+ "list": "StickerIdRange"
+ },
+ {
+ "fid": 41,
+ "name": "grantedByDefault",
+ "type": 2
+ },
+ {
+ "fid": 42,
+ "name": "displayOrder",
+ "type": 8
+ }
+ ],
+ "ProductSimpleList": [
+ {
+ "fid": 1,
+ "name": "hasNext",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "reinvokeHour",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "lastVersionSeq",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "productList",
+ "list": "ProductSimple"
+ },
+ {
+ "fid": 5,
+ "name": "recentNewReleaseDate",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "recentEventReleaseDate",
+ "type": 10
+ }
+ ],
+ "Profile": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "userid",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "phone",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "email",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "regionCode",
+ "type": 11
+ },
+ {
+ "fid": 20,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 21,
+ "name": "phoneticName",
+ "type": 11
+ },
+ {
+ "fid": 22,
+ "name": "pictureStatus",
+ "type": 11
+ },
+ {
+ "fid": 23,
+ "name": "thumbnailUrl",
+ "type": 11
+ },
+ {
+ "fid": 24,
+ "name": "statusMessage",
+ "type": 11
+ },
+ {
+ "fid": 31,
+ "name": "allowSearchByUserid",
+ "type": 2
+ },
+ {
+ "fid": 32,
+ "name": "allowSearchByEmail",
+ "type": 2
+ },
+ {
+ "fid": 33,
+ "name": "picturePath",
+ "type": 11
+ },
+ {
+ "fid": 34,
+ "name": "musicProfile",
+ "type": 11
+ },
+ {
+ "fid": 35,
+ "name": "videoProfile",
+ "type": 11
+ },
+ {
+ "fid": 36,
+ "name": "statusMessageContentMetadata",
+ "map": 11
+ },
+ {
+ "fid": 37,
+ "name": "avatarProfile",
+ "struct": "AvatarProfile"
+ },
+ {
+ "fid": 38,
+ "name": "nftProfile",
+ "type": 2
+ },
+ {
+ "fid": 39,
+ "name": "pictureSource",
+ "struct": "PictureSource"
+ }
+ ],
+ "ProximityMatchCandidateResult": [
+ {
+ "fid": 1,
+ "name": "users",
+ "list": "Contact"
+ },
+ {
+ "fid": 2,
+ "name": "buddies",
+ "list": "Contact"
+ }
+ ],
+ "RegisterWithSnsIdResult": [
+ {
+ "fid": 1,
+ "name": "authToken",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "userCreated",
+ "type": 2
+ }
+ ],
+ "RequestTokenResponse": [
+ {
+ "fid": 1,
+ "name": "requestToken",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "returnUrl",
+ "type": 11
+ }
+ ],
+ "Room": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "contacts",
+ "list": "Contact"
+ },
+ {
+ "fid": 31,
+ "name": "notificationDisabled",
+ "type": 2
+ },
+ {
+ "fid": 40,
+ "name": "memberMids",
+ "list": 11
+ }
+ ],
+ "SuggestDictionary": [
+ {
+ "fid": 1,
+ "name": "language",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "name",
+ "type": 11
+ }
+ ],
+ "SuggestItemDictionaryIncrement": [
+ {
+ "fid": 1,
+ "name": "status",
+ "struct": "SuggestDictionaryIncrementStatus"
+ },
+ {
+ "fid": 2,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "scheme",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "data"
+ }
+ ],
+ "SuggestTagDictionaryIncrement": [
+ {
+ "fid": 1,
+ "name": "status",
+ "struct": "SuggestDictionaryIncrementStatus"
+ },
+ {
+ "fid": 2,
+ "name": "language",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "scheme",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "data"
+ }
+ ],
+ "SuggestDictionaryIncrements": [
+ {
+ "fid": 1,
+ "name": "itemIncrement",
+ "struct": "SuggestItemDictionaryIncrement"
+ },
+ {
+ "fid": 2,
+ "name": "tagIncrements",
+ "list": "SuggestTagDictionaryIncrement"
+ }
+ ],
+ "SuggestDictionaryIncrementStatus": {
+ "0": "SUCCESS",
+ "1": "INVALID_REVISION",
+ "2": "TOO_LARGE_DATA",
+ "3": "SCHEME_CHANGED",
+ "4": "RETRY",
+ "5": "FAIL",
+ "6": "TOO_OLD_DATA"
+ },
+ "SuggestItemDictionaryRevision": [
+ {
+ "fid": 1,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "scheme",
+ "type": 11
+ }
+ ],
+ "SuggestTagDictionaryRevision": [
+ {
+ "fid": 1,
+ "name": "language",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "scheme",
+ "type": 11
+ }
+ ],
+ "SuggestDictionaryRevisions": [
+ {
+ "fid": 1,
+ "name": "itemRevision",
+ "struct": "SuggestItemDictionaryRevision"
+ },
+ {
+ "fid": 2,
+ "name": "tagRevisions",
+ "list": "SuggestTagDictionaryRevision"
+ }
+ ],
+ "SuggestDictionarySettings": [
+ {
+ "fid": 1,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "newRevision",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "dictionaries",
+ "list": "SuggestDictionary"
+ },
+ {
+ "fid": 4,
+ "name": "preloadedDictionaries",
+ "list": 11
+ }
+ ],
+ "PhoneInfoForChannel": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "normalizedPhoneNumber",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "allowedToSearchByPhoneNumber",
+ "type": 2
+ },
+ {
+ "fid": 4,
+ "name": "allowedToReceiveMessageFromNonFriend",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "region",
+ "type": 11
+ }
+ ],
+ "PhoneVerificationResult": [
+ {
+ "fid": 1,
+ "name": "verificationResult",
+ "struct": "VerificationResult"
+ },
+ {
+ "fid": 2,
+ "name": "accountMigrationCheckType",
+ "struct": "AccountMigrationCheckType"
+ },
+ {
+ "fid": 3,
+ "name": "recommendAddFriends",
+ "type": 2
+ }
+ ],
+ "PlaceSearchInfo": [
+ {
+ "fid": 1,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "address",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "latitude",
+ "type": 4
+ },
+ {
+ "fid": 4,
+ "name": "longitude",
+ "type": 4
+ }
+ ],
+ "RSAKey": [
+ {
+ "fid": 1,
+ "name": "keynm",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "nvalue",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "evalue",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "sessionKey",
+ "type": 11
+ }
+ ],
+ "SecurityCenterResult": [
+ {
+ "fid": 1,
+ "name": "uri",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "token",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "cookiePath",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "skip",
+ "type": 2
+ }
+ ],
+ "SendBuddyMessageResult": [
+ {
+ "fid": 1,
+ "name": "requestId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "state",
+ "struct": "BuddyResultState"
+ },
+ {
+ "fid": 3,
+ "name": "messageId",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "eventNo",
+ "type": 8
+ },
+ {
+ "fid": 11,
+ "name": "receiverCount",
+ "type": 10
+ },
+ {
+ "fid": 12,
+ "name": "successCount",
+ "type": 10
+ },
+ {
+ "fid": 13,
+ "name": "failCount",
+ "type": 10
+ },
+ {
+ "fid": 14,
+ "name": "cancelCount",
+ "type": 10
+ },
+ {
+ "fid": 15,
+ "name": "blockCount",
+ "type": 10
+ },
+ {
+ "fid": 16,
+ "name": "unregisterCount",
+ "type": 10
+ },
+ {
+ "fid": 21,
+ "name": "timestamp",
+ "type": 10
+ },
+ {
+ "fid": 22,
+ "name": "message",
+ "type": 11
+ }
+ ],
+ "SetBuddyOnAirResult": [
+ {
+ "fid": 1,
+ "name": "requestId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "state",
+ "struct": "BuddyResultState"
+ },
+ {
+ "fid": 3,
+ "name": "eventNo",
+ "type": 8
+ },
+ {
+ "fid": 11,
+ "name": "receiverCount",
+ "type": 10
+ },
+ {
+ "fid": 12,
+ "name": "successCount",
+ "type": 10
+ },
+ {
+ "fid": 13,
+ "name": "failCount",
+ "type": 10
+ },
+ {
+ "fid": 14,
+ "name": "cancelCount",
+ "type": 10
+ },
+ {
+ "fid": 15,
+ "name": "unregisterCount",
+ "type": 10
+ },
+ {
+ "fid": 21,
+ "name": "timestamp",
+ "type": 10
+ },
+ {
+ "fid": 22,
+ "name": "message",
+ "type": 11
+ }
+ ],
+ "Settings": [
+ {
+ "fid": 10,
+ "name": "notificationEnable",
+ "type": 2
+ },
+ {
+ "fid": 11,
+ "name": "notificationMuteExpiration",
+ "type": 10
+ },
+ {
+ "fid": 12,
+ "name": "notificationNewMessage",
+ "type": 2
+ },
+ {
+ "fid": 13,
+ "name": "notificationGroupInvitation",
+ "type": 2
+ },
+ {
+ "fid": 14,
+ "name": "notificationShowMessage",
+ "type": 2
+ },
+ {
+ "fid": 15,
+ "name": "notificationIncomingCall",
+ "type": 2
+ },
+ {
+ "fid": 16,
+ "name": "notificationSoundMessage",
+ "type": 11
+ },
+ {
+ "fid": 17,
+ "name": "notificationSoundGroup",
+ "type": 11
+ },
+ {
+ "fid": 18,
+ "name": "notificationDisabledWithSub",
+ "type": 2
+ },
+ {
+ "fid": 19,
+ "name": "notificationPayment",
+ "type": 2
+ },
+ {
+ "fid": 20,
+ "name": "privacySyncContacts",
+ "type": 2
+ },
+ {
+ "fid": 21,
+ "name": "privacySearchByPhoneNumber",
+ "type": 2
+ },
+ {
+ "fid": 22,
+ "name": "privacySearchByUserid",
+ "type": 2
+ },
+ {
+ "fid": 23,
+ "name": "privacySearchByEmail",
+ "type": 2
+ },
+ {
+ "fid": 24,
+ "name": "privacyAllowSecondaryDeviceLogin",
+ "type": 2
+ },
+ {
+ "fid": 25,
+ "name": "privacyProfileImagePostToMyhome",
+ "type": 2
+ },
+ {
+ "fid": 26,
+ "name": "privacyReceiveMessagesFromNotFriend",
+ "type": 2
+ },
+ {
+ "fid": 27,
+ "name": "privacyAgreeUseLineCoinToPaidCall",
+ "type": 2
+ },
+ {
+ "fid": 28,
+ "name": "privacyAgreeUsePaidCall",
+ "type": 2
+ },
+ {
+ "fid": 29,
+ "name": "privacyAllowFriendRequest",
+ "type": 2
+ },
+ {
+ "fid": 30,
+ "name": "contactMyTicket",
+ "type": 11
+ },
+ {
+ "fid": 40,
+ "name": "identityProvider",
+ "struct": "IdentityProvider"
+ },
+ {
+ "fid": 41,
+ "name": "identityIdentifier",
+ "type": 11
+ },
+ {
+ "fid": 42,
+ "name": "snsAccounts",
+ "map": 11
+ },
+ {
+ "fid": 43,
+ "name": "phoneRegistration",
+ "type": 2
+ },
+ {
+ "fid": 44,
+ "name": "emailConfirmationStatus",
+ "struct": "EmailConfirmationStatus"
+ },
+ {
+ "fid": 45,
+ "name": "accountMigrationPincodeType",
+ "struct": "AccountMigrationPincodeType"
+ },
+ {
+ "fid": 46,
+ "name": "enforcedInputAccountMigrationPincode",
+ "type": 2
+ },
+ {
+ "fid": 47,
+ "name": "securityCenterSettingsType",
+ "struct": "SecurityCenterSettingsType"
+ },
+ {
+ "fid": 48,
+ "name": "allowUnregistrationSecondaryDevice",
+ "type": 2
+ },
+ {
+ "fid": 49,
+ "name": "pwlessPrimaryCredentialRegistration",
+ "type": 2
+ },
+ {
+ "fid": 50,
+ "name": "preferenceLocale",
+ "type": 11
+ },
+ {
+ "fid": 60,
+ "name": "customModes",
+ "map": 11
+ },
+ {
+ "fid": 61,
+ "name": "e2eeEnable",
+ "type": 2
+ },
+ {
+ "fid": 62,
+ "name": "hitokotoBackupRequested",
+ "type": 2
+ },
+ {
+ "fid": 63,
+ "name": "privacyProfileMusicPostToMyhome",
+ "type": 2
+ },
+ {
+ "fid": 65,
+ "name": "privacyAllowNearby",
+ "type": 2
+ },
+ {
+ "fid": 66,
+ "name": "agreementNearbyTime",
+ "type": 10
+ },
+ {
+ "fid": 67,
+ "name": "agreementSquareTime",
+ "type": 10
+ },
+ {
+ "fid": 68,
+ "name": "notificationMention",
+ "type": 2
+ },
+ {
+ "fid": 69,
+ "name": "botUseAgreementAcceptedAt",
+ "type": 10
+ },
+ {
+ "fid": 70,
+ "name": "agreementShakeFunction",
+ "type": 10
+ },
+ {
+ "fid": 71,
+ "name": "agreementMobileContactName",
+ "type": 10
+ },
+ {
+ "fid": 73,
+ "name": "agreementSoundToText",
+ "type": 10
+ },
+ {
+ "fid": 74,
+ "name": "privacyPolicyVersion",
+ "type": 11
+ },
+ {
+ "fid": 75,
+ "name": "agreementAdByWebAccess",
+ "type": 10
+ },
+ {
+ "fid": 76,
+ "name": "agreementPhoneNumberMatching",
+ "type": 10
+ },
+ {
+ "fid": 77,
+ "name": "agreementCommunicationInfo",
+ "type": 10
+ },
+ {
+ "fid": 78,
+ "name": "privacySharePersonalInfoToFriends",
+ "struct": "UserSharePersonalInfoToFriendsType"
+ },
+ {
+ "fid": 79,
+ "name": "agreementThingsWirelessCommunication",
+ "type": 10
+ },
+ {
+ "fid": 80,
+ "name": "agreementGdpr",
+ "type": 10
+ },
+ {
+ "fid": 81,
+ "name": "privacyStatusMessageHistory",
+ "struct": "UserStatusMessageHistoryType"
+ },
+ {
+ "fid": 82,
+ "name": "agreementProvideLocation",
+ "type": 10
+ },
+ {
+ "fid": 83,
+ "name": "agreementBeacon",
+ "type": 10
+ },
+ {
+ "fid": 85,
+ "name": "privacyAllowProfileHistory",
+ "struct": "UserAllowProfileHistoryType"
+ },
+ {
+ "fid": 86,
+ "name": "agreementContentsSuggest",
+ "type": 10
+ },
+ {
+ "fid": 87,
+ "name": "agreementContentsSuggestDataCollection",
+ "type": 10
+ },
+ {
+ "fid": 88,
+ "name": "privacyAgeResult",
+ "struct": "UserAgeType"
+ },
+ {
+ "fid": 89,
+ "name": "privacyAgeResultReceived",
+ "type": 2
+ },
+ {
+ "fid": 72,
+ "name": "notificationThumbnail",
+ "type": 2
+ },
+ {
+ "fid": 90,
+ "name": "agreementOcrImageCollection",
+ "type": 10
+ },
+ {
+ "fid": 91,
+ "name": "privacyAllowFollow",
+ "type": 2
+ },
+ {
+ "fid": 92,
+ "name": "privacyShowFollowList",
+ "type": 2
+ },
+ {
+ "fid": 93,
+ "name": "notificationBadgeTalkOnly",
+ "type": 2
+ },
+ {
+ "fid": 94,
+ "name": "agreementIcna",
+ "type": 10
+ },
+ {
+ "fid": 95,
+ "name": "notificationReaction",
+ "type": 2
+ },
+ {
+ "fid": 96,
+ "name": "agreementMid",
+ "type": 10
+ },
+ {
+ "fid": 97,
+ "name": "homeNotificationNewFriend",
+ "type": 2
+ },
+ {
+ "fid": 98,
+ "name": "homeNotificationFavoriteFriendUpdate",
+ "type": 2
+ },
+ {
+ "fid": 99,
+ "name": "homeNotificationGroupMemberUpdate",
+ "type": 2
+ },
+ {
+ "fid": 100,
+ "name": "homeNotificationBirthday",
+ "type": 2
+ },
+ {
+ "fid": 101,
+ "name": "eapAllowedToConnect",
+ "map": 2
+ },
+ {
+ "fid": 102,
+ "name": "agreementLineOutUse",
+ "type": 10
+ },
+ {
+ "fid": 103,
+ "name": "agreementLineOutProvideInfo",
+ "type": 10
+ },
+ {
+ "fid": 104,
+ "name": "notificationShowProfileImage",
+ "type": 2
+ },
+ {
+ "fid": 105,
+ "name": "agreementPdpa",
+ "type": 10
+ },
+ {
+ "fid": 106,
+ "name": "agreementLocationVersion",
+ "type": 11
+ },
+ {
+ "fid": 107,
+ "name": "zhdPageAllowedToShow",
+ "type": 2
+ }
+ ],
+ "SimpleChannelClient": [
+ {
+ "fid": 1,
+ "name": "applicationType",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "applicationVersion",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "locale",
+ "type": 11
+ }
+ ],
+ "SimpleChannelContact": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "pictureStatus",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "picturePath",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "statusMessage",
+ "type": 11
+ }
+ ],
+ "SnsFriend": [
+ {
+ "fid": 1,
+ "name": "snsUserId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "snsUserName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "snsIdType",
+ "struct": "SnsIdType"
+ }
+ ],
+ "SnsFriendContactRegistration": [
+ {
+ "fid": 1,
+ "name": "contact",
+ "struct": "Contact"
+ },
+ {
+ "fid": 2,
+ "name": "snsIdType",
+ "struct": "SnsIdType"
+ },
+ {
+ "fid": 3,
+ "name": "snsUserId",
+ "type": 11
+ }
+ ],
+ "SnsFriendModification": [
+ {
+ "fid": 1,
+ "name": "type",
+ "struct": "ModificationType"
+ },
+ {
+ "fid": 2,
+ "name": "snsFriend",
+ "struct": "SnsFriend"
+ }
+ ],
+ "SnsFriends": [
+ {
+ "fid": 1,
+ "name": "snsFriends",
+ "list": "SnsFriend"
+ },
+ {
+ "fid": 2,
+ "name": "hasMore",
+ "type": 2
+ }
+ ],
+ "SnsIdUserStatus": [
+ {
+ "fid": 1,
+ "name": "userExisting",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "phoneNumberRegistered",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "sameDevice",
+ "type": 2
+ }
+ ],
+ "SnsProfile": [
+ {
+ "fid": 1,
+ "name": "snsUserId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "snsUserName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "email",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "thumbnailUrl",
+ "type": 11
+ }
+ ],
+ "SystemConfiguration": [
+ {
+ "fid": 1,
+ "name": "endpoint",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "endpointSsl",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "updateUrl",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "c2dmAccount",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "nniServer",
+ "type": 11
+ }
+ ],
+ "Ticket": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "expirationTime",
+ "type": 10
+ },
+ {
+ "fid": 21,
+ "name": "maxUseCount",
+ "type": 8
+ }
+ ],
+ "TMessageBox": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "channelId",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "lastSeq",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "unreadCount",
+ "type": 10
+ },
+ {
+ "fid": 7,
+ "name": "lastModifiedTime",
+ "type": 10
+ },
+ {
+ "fid": 8,
+ "name": "status",
+ "type": 8
+ },
+ {
+ "fid": 9,
+ "name": "midType",
+ "struct": "MIDType"
+ },
+ {
+ "fid": 10,
+ "name": "lastMessages",
+ "list": "Message"
+ }
+ ],
+ "TMessageBoxWrapUp": [
+ {
+ "fid": 1,
+ "name": "messageBox",
+ "struct": "TMessageBox"
+ },
+ {
+ "fid": 2,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "contacts",
+ "list": "Contact"
+ },
+ {
+ "fid": 4,
+ "name": "pictureRevision",
+ "type": 11
+ }
+ ],
+ "TMessageBoxWrapUpResponse": [
+ {
+ "fid": 1,
+ "name": "messageBoxWrapUpList",
+ "list": "TMessageBoxWrapUp"
+ },
+ {
+ "fid": 2,
+ "name": "totalSize",
+ "type": 8
+ }
+ ],
+ "TMessageReadRangeEntry": [
+ {
+ "fid": 1,
+ "name": "startMessageId",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "endMessageId",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "startTime",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "endTime",
+ "type": 10
+ }
+ ],
+ "TMessageReadRange": [
+ {
+ "fid": 1,
+ "name": "chatId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "ranges"
+ }
+ ],
+ "ChatRoomAnnouncementContents": [
+ {
+ "fid": 1,
+ "name": "displayFields",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "text",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "link",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "thumbnail",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "contentMetadata",
+ "struct": "ChatRoomAnnouncementContentMetadata"
+ }
+ ],
+ "ChatRoomAnnouncement": [
+ {
+ "fid": 1,
+ "name": "announcementSeq",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "type",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "contents",
+ "struct": "ChatRoomAnnouncementContents"
+ },
+ {
+ "fid": 4,
+ "name": "creatorMid",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "deletePermission",
+ "type": 8
+ }
+ ],
+ "ErrorExtraInfo": [
+ {
+ "fid": 1,
+ "name": "preconditionFailedExtraInfo",
+ "struct": "PreconditionFailedExtraInfo"
+ },
+ {
+ "fid": 2,
+ "name": "userRestrictionInfo",
+ "struct": "UserRestrictionExtraInfo"
+ }
+ ],
+ "SyncRelations": [
+ {
+ "fid": 1,
+ "name": "syncAll",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "syncParamContact",
+ "list": "SyncParamContact"
+ },
+ {
+ "fid": 3,
+ "name": "syncParamMid",
+ "list": "SyncParamMid"
+ }
+ ],
+ "SyncScope": [
+ {
+ "fid": 1,
+ "name": "syncProfile",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "syncSettings",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "syncSticker",
+ "type": 2
+ },
+ {
+ "fid": 4,
+ "name": "syncThemeShop",
+ "type": 2
+ },
+ {
+ "fid": 10,
+ "name": "contact",
+ "struct": "SyncRelations"
+ },
+ {
+ "fid": 11,
+ "name": "group",
+ "struct": "SyncRelations"
+ },
+ {
+ "fid": 12,
+ "name": "room",
+ "struct": "SyncRelations"
+ },
+ {
+ "fid": 13,
+ "name": "chat",
+ "struct": "SyncRelations"
+ }
+ ],
+ "JoinSquareResponse": [
+ {
+ "fid": 1,
+ "name": "square",
+ "struct": "Square"
+ },
+ {
+ "fid": 2,
+ "name": "squareAuthority",
+ "struct": "SquareAuthority"
+ },
+ {
+ "fid": 3,
+ "name": "squareStatus",
+ "struct": "SquareStatus"
+ },
+ {
+ "fid": 4,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 5,
+ "name": "squareFeatureSet",
+ "struct": "SquareFeatureSet"
+ },
+ {
+ "fid": 6,
+ "name": "noteStatus",
+ "struct": "NoteStatus"
+ }
+ ],
+ "JoinSquareRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "member",
+ "struct": "SquareMember"
+ }
+ ],
+ "JoinSquareChatResponse": [
+ {
+ "fid": 1,
+ "name": "squareChat",
+ "struct": "SquareChat"
+ },
+ {
+ "fid": 2,
+ "name": "squareChatStatus",
+ "struct": "SquareChatStatus"
+ },
+ {
+ "fid": 3,
+ "name": "squareChatMember",
+ "struct": "SquareChatMember"
+ }
+ ],
+ "JoinSquareChatRequest": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ }
+ ],
+ "SendMessageResponse": [
+ {
+ "fid": 1,
+ "name": "createdSquareMessage",
+ "struct": "SquareMessage"
+ }
+ ],
+ "SendMessageRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareMessage",
+ "struct": "SquareMessage"
+ }
+ ],
+ "MarkAsReadRequest": [
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "messageId",
+ "type": 11
+ }
+ ],
+ "MarkAsReadResponse": [],
+ "SubscriptionState": [
+ {
+ "fid": 1,
+ "name": "subscriptionId",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "ttlMillis",
+ "type": 10
+ }
+ ],
+ "ApproveSquareMembersResponse": [
+ {
+ "fid": 1,
+ "name": "approvedMembers",
+ "list": "SquareMember"
+ },
+ {
+ "fid": 2,
+ "name": "status",
+ "struct": "SquareStatus"
+ }
+ ],
+ "ApproveSquareMembersRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "requestedMemberMids",
+ "list": 11
+ }
+ ],
+ "CreateSquareChatResponse": [
+ {
+ "fid": 1,
+ "name": "squareChat",
+ "struct": "SquareChat"
+ },
+ {
+ "fid": 2,
+ "name": "squareChatStatus",
+ "struct": "SquareChatStatus"
+ },
+ {
+ "fid": 3,
+ "name": "squareChatMember",
+ "struct": "SquareChatMember"
+ }
+ ],
+ "CreateSquareChatRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "squareChat",
+ "struct": "SquareChat"
+ },
+ {
+ "fid": 3,
+ "name": "squareMemberMids",
+ "list": 11
+ }
+ ],
+ "CreateSquareResponse": [
+ {
+ "fid": 1,
+ "name": "square",
+ "struct": "Square"
+ },
+ {
+ "fid": 2,
+ "name": "creator",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "authority",
+ "struct": "SquareAuthority"
+ },
+ {
+ "fid": 4,
+ "name": "status",
+ "struct": "SquareStatus"
+ },
+ {
+ "fid": 5,
+ "name": "featureSet",
+ "struct": "SquareFeatureSet"
+ },
+ {
+ "fid": 6,
+ "name": "noteStatus",
+ "struct": "NoteStatus"
+ },
+ {
+ "fid": 7,
+ "name": "squareChat",
+ "struct": "SquareChat"
+ },
+ {
+ "fid": 8,
+ "name": "squareChatStatus",
+ "struct": "SquareChatStatus"
+ },
+ {
+ "fid": 9,
+ "name": "squareChatMember",
+ "struct": "SquareChatMember"
+ },
+ {
+ "fid": 10,
+ "name": "squareChatFeatureSet",
+ "struct": "SquareChatFeatureSet"
+ }
+ ],
+ "CreateSquareRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "square",
+ "struct": "Square"
+ },
+ {
+ "fid": 3,
+ "name": "creator",
+ "struct": "SquareMember"
+ }
+ ],
+ "DeleteSquareResponse": [],
+ "DeleteSquareRequest": [
+ {
+ "fid": 2,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "revision",
+ "type": 10
+ }
+ ],
+ "DestroyMessageResponse": [],
+ "DestroyMessageRequest": [
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "messageId",
+ "type": 11
+ }
+ ],
+ "GetSquareChatMembersRequest": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "limit",
+ "type": 8
+ }
+ ],
+ "GetSquareChatMembersResponse": [
+ {
+ "fid": 1,
+ "name": "squareChatMembers",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "GetSquareChatStatusRequest": [
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ }
+ ],
+ "GetSquareChatStatusResponse": [
+ {
+ "fid": 1,
+ "name": "chatStatus",
+ "struct": "SquareChatStatus"
+ }
+ ],
+ "GetSquareChatRequest": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ }
+ ],
+ "GetSquareChatResponse": [
+ {
+ "fid": 1,
+ "name": "squareChat",
+ "struct": "SquareChat"
+ },
+ {
+ "fid": 2,
+ "name": "squareChatMember",
+ "struct": "SquareChatMember"
+ },
+ {
+ "fid": 3,
+ "name": "squareChatStatus",
+ "struct": "SquareChatStatus"
+ }
+ ],
+ "GetSquareAuthorityRequest": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ }
+ ],
+ "GetSquareAuthorityResponse": [
+ {
+ "fid": 1,
+ "name": "authority",
+ "struct": "SquareAuthority"
+ }
+ ],
+ "GetJoinedSquaresRequest": [
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "limit",
+ "type": 8
+ }
+ ],
+ "GetJoinedSquaresResponse": [
+ {
+ "fid": 1,
+ "name": "squares",
+ "list": "Square"
+ },
+ {
+ "fid": 2,
+ "name": "members",
+ "map": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "authorities",
+ "map": "SquareAuthority"
+ },
+ {
+ "fid": 4,
+ "name": "statuses",
+ "map": "SquareStatus"
+ },
+ {
+ "fid": 5,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "noteStatuses",
+ "map": "NoteStatus"
+ }
+ ],
+ "GetJoinableSquareChatsRequest": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "limit",
+ "type": 8
+ }
+ ],
+ "GetJoinableSquareChatsResponse": [
+ {
+ "fid": 1,
+ "name": "squareChats",
+ "list": "SquareChat"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSquareChatCount",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "squareChatStatuses",
+ "map": "SquareChatStatus"
+ }
+ ],
+ "GetInvitationTicketUrlRequest": [
+ {
+ "fid": 2,
+ "name": "mid",
+ "type": 11
+ }
+ ],
+ "GetInvitationTicketUrlResponse": [
+ {
+ "fid": 1,
+ "name": "invitationURL",
+ "type": 11
+ }
+ ],
+ "LeaveSquareRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ }
+ ],
+ "LeaveSquareResponse": [],
+ "LeaveSquareChatRequest": [
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "sayGoodbye",
+ "type": 2
+ },
+ {
+ "fid": 4,
+ "name": "squareChatMemberRevision",
+ "type": 10
+ }
+ ],
+ "LeaveSquareChatResponse": [],
+ "SquareMemberSearchOption": [
+ {
+ "fid": 1,
+ "name": "membershipState",
+ "struct": "SquareMembershipState"
+ },
+ {
+ "fid": 2,
+ "name": "memberRoles",
+ "set": "SquareMemberRole"
+ },
+ {
+ "fid": 3,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "ableToReceiveMessage",
+ "struct": "BooleanState"
+ },
+ {
+ "fid": 5,
+ "name": "ableToReceiveFriendRequest",
+ "struct": "BooleanState"
+ },
+ {
+ "fid": 6,
+ "name": "chatMidToExcludeMembers",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "includingMe",
+ "type": 2
+ }
+ ],
+ "SearchSquareMembersRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "searchOption",
+ "struct": "SquareMemberSearchOption"
+ },
+ {
+ "fid": 4,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "limit",
+ "type": 8
+ }
+ ],
+ "SearchSquareMembersResponse": [
+ {
+ "fid": 1,
+ "name": "members",
+ "list": "SquareMember"
+ },
+ {
+ "fid": 2,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "totalCount",
+ "type": 8
+ }
+ ],
+ "FindSquareByInvitationTicketRequest": [
+ {
+ "fid": 2,
+ "name": "invitationTicket",
+ "type": 11
+ }
+ ],
+ "FindSquareByInvitationTicketResponse": [
+ {
+ "fid": 1,
+ "name": "square",
+ "struct": "Square"
+ },
+ {
+ "fid": 2,
+ "name": "myMembership",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "squareAuthority",
+ "struct": "SquareAuthority"
+ },
+ {
+ "fid": 4,
+ "name": "squareStatus",
+ "struct": "SquareStatus"
+ },
+ {
+ "fid": 5,
+ "name": "squareFeatureSet",
+ "struct": "SquareFeatureSet"
+ },
+ {
+ "fid": 6,
+ "name": "noteStatus",
+ "struct": "NoteStatus"
+ },
+ {
+ "fid": 7,
+ "name": "chat",
+ "struct": "SquareChat"
+ },
+ {
+ "fid": 8,
+ "name": "chatStatus",
+ "struct": "SquareChatStatus"
+ }
+ ],
+ "SquareEventReceiveMessage": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMessage",
+ "struct": "SquareMessage"
+ },
+ {
+ "fid": 3,
+ "name": "senderDisplayName",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "messageReactionStatus",
+ "struct": "SquareMessageReactionStatus"
+ },
+ {
+ "fid": 5,
+ "name": "senderRevision",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "squareMid",
+ "type": 11
+ }
+ ],
+ "SquareEventSendMessage": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMessage",
+ "struct": "SquareMessage"
+ },
+ {
+ "fid": 3,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "senderDisplayName",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "messageReactionStatus",
+ "struct": "SquareMessageReactionStatus"
+ }
+ ],
+ "SquareEventNotifiedJoinSquareChat": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "joinedMember",
+ "struct": "SquareMember"
+ }
+ ],
+ "SquareEventNotifiedInviteIntoSquareChat": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "invitees",
+ "list": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "invitor",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 4,
+ "name": "invitorRelation",
+ "struct": "SquareMemberRelation"
+ }
+ ],
+ "SquareEventNotifiedLeaveSquareChat": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "sayGoodbye",
+ "type": 2
+ },
+ {
+ "fid": 4,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ }
+ ],
+ "SquareEventNotifiedDestroyMessage": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "messageId",
+ "type": 11
+ }
+ ],
+ "SquareEventNotifiedMarkAsRead": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "sMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "messageId",
+ "type": 11
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareMemberProfile": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ }
+ ],
+ "SquareEventNotifiedKickoutFromSquare": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "kickees",
+ "list": "SquareMember"
+ },
+ {
+ "fid": 4,
+ "name": "kicker",
+ "struct": "SquareMember"
+ }
+ ],
+ "SquareEventNotifiedShutdownSquare": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "square",
+ "struct": "Square"
+ }
+ ],
+ "SquareEventNotifiedDeleteSquareChat": [
+ {
+ "fid": 1,
+ "name": "squareChat",
+ "struct": "SquareChat"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareChatProfileName": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "editor",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "updatedChatName",
+ "type": 11
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareChatProfileImage": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "editor",
+ "struct": "SquareMember"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareChatStatus": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "statusWithoutMessage",
+ "struct": "SquareChatStatusWithoutMessage"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareStatus": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareStatus",
+ "struct": "SquareStatus"
+ }
+ ],
+ "SquareEventNotifiedCreateSquareMember": [
+ {
+ "fid": 1,
+ "name": "square",
+ "struct": "Square"
+ },
+ {
+ "fid": 2,
+ "name": "squareAuthority",
+ "struct": "SquareAuthority"
+ },
+ {
+ "fid": 3,
+ "name": "squareStatus",
+ "struct": "SquareStatus"
+ },
+ {
+ "fid": 4,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 5,
+ "name": "squareFeatureSet",
+ "struct": "SquareFeatureSet"
+ },
+ {
+ "fid": 6,
+ "name": "noteStatus",
+ "struct": "NoteStatus"
+ }
+ ],
+ "SquareEventNotifiedCreateSquareChatMember": [
+ {
+ "fid": 1,
+ "name": "chat",
+ "struct": "SquareChat"
+ },
+ {
+ "fid": 2,
+ "name": "chatStatus",
+ "struct": "SquareChatStatus"
+ },
+ {
+ "fid": 3,
+ "name": "chatMember",
+ "struct": "SquareChatMember"
+ },
+ {
+ "fid": 4,
+ "name": "joinedAt",
+ "type": 10
+ },
+ {
+ "fid": 5,
+ "name": "peerSquareMember",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 6,
+ "name": "squareChatFeatureSet",
+ "struct": "SquareChatFeatureSet"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareMemberRelation": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "myMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "targetSquareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "squareMemberRelation",
+ "struct": "SquareMemberRelation"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquare": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "square",
+ "struct": "Square"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareMember": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareChat": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareChat",
+ "struct": "SquareChat"
+ }
+ ],
+ "SquareEventNotificationJoinRequest": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "requestMemberName",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "profileImageObsHash",
+ "type": 11
+ }
+ ],
+ "SquareEventNotificationMemberUpdate": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "profileImageObsHash",
+ "type": 11
+ }
+ ],
+ "SquareEventNotificationSquareDelete": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "profileImageObsHash",
+ "type": 11
+ }
+ ],
+ "SquareEventNotificationSquareChatDelete": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareChatName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "profileImageObsHash",
+ "type": 11
+ }
+ ],
+ "SquareEventNotificationMessage": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMessage",
+ "struct": "SquareMessage"
+ },
+ {
+ "fid": 3,
+ "name": "senderDisplayName",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "unreadCount",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "requiredToFetchChatEvents",
+ "type": 2
+ },
+ {
+ "fid": 6,
+ "name": "mentionedMessageId",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "notifiedMessageType",
+ "struct": "NotifiedMessageType"
+ },
+ {
+ "fid": 8,
+ "name": "reqSeq",
+ "type": 8
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareChatMember": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareChatMember",
+ "struct": "SquareChatMember"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareAuthority": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareAuthority",
+ "struct": "SquareAuthority"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareFeatureSet": [
+ {
+ "fid": 1,
+ "name": "squareFeatureSet",
+ "struct": "SquareFeatureSet"
+ }
+ ],
+ "SquareEventPayload": [
+ {
+ "fid": 1,
+ "name": "receiveMessage",
+ "struct": "SquareEventReceiveMessage"
+ },
+ {
+ "fid": 2,
+ "name": "sendMessage",
+ "struct": "SquareEventSendMessage"
+ },
+ {
+ "fid": 3,
+ "name": "notifiedJoinSquareChat",
+ "struct": "SquareEventNotifiedJoinSquareChat"
+ },
+ {
+ "fid": 4,
+ "name": "notifiedInviteIntoSquareChat",
+ "struct": "SquareEventNotifiedInviteIntoSquareChat"
+ },
+ {
+ "fid": 5,
+ "name": "notifiedLeaveSquareChat",
+ "struct": "SquareEventNotifiedLeaveSquareChat"
+ },
+ {
+ "fid": 6,
+ "name": "notifiedDestroyMessage",
+ "struct": "SquareEventNotifiedDestroyMessage"
+ },
+ {
+ "fid": 7,
+ "name": "notifiedMarkAsRead",
+ "struct": "SquareEventNotifiedMarkAsRead"
+ },
+ {
+ "fid": 8,
+ "name": "notifiedUpdateSquareMemberProfile",
+ "struct": "SquareEventNotifiedUpdateSquareMemberProfile"
+ },
+ {
+ "fid": 9,
+ "name": "notifiedUpdateSquare",
+ "struct": "SquareEventNotifiedUpdateSquare"
+ },
+ {
+ "fid": 10,
+ "name": "notifiedUpdateSquareMember",
+ "struct": "SquareEventNotifiedUpdateSquareMember"
+ },
+ {
+ "fid": 11,
+ "name": "notifiedUpdateSquareChat",
+ "struct": "SquareEventNotifiedUpdateSquareChat"
+ },
+ {
+ "fid": 12,
+ "name": "notifiedUpdateSquareChatMember",
+ "struct": "SquareEventNotifiedUpdateSquareChatMember"
+ },
+ {
+ "fid": 13,
+ "name": "notifiedUpdateSquareAuthority",
+ "struct": "SquareEventNotifiedUpdateSquareAuthority"
+ },
+ {
+ "fid": 14,
+ "name": "notifiedUpdateSquareStatus",
+ "struct": "SquareEventNotifiedUpdateSquareStatus"
+ },
+ {
+ "fid": 15,
+ "name": "notifiedUpdateSquareChatStatus",
+ "struct": "SquareEventNotifiedUpdateSquareChatStatus"
+ },
+ {
+ "fid": 16,
+ "name": "notifiedCreateSquareMember",
+ "struct": "SquareEventNotifiedCreateSquareMember"
+ },
+ {
+ "fid": 17,
+ "name": "notifiedCreateSquareChatMember",
+ "struct": "SquareEventNotifiedCreateSquareChatMember"
+ },
+ {
+ "fid": 18,
+ "name": "notifiedUpdateSquareMemberRelation",
+ "struct": "SquareEventNotifiedUpdateSquareMemberRelation"
+ },
+ {
+ "fid": 19,
+ "name": "notifiedShutdownSquare",
+ "struct": "SquareEventNotifiedShutdownSquare"
+ },
+ {
+ "fid": 20,
+ "name": "notifiedKickoutFromSquare",
+ "struct": "SquareEventNotifiedKickoutFromSquare"
+ },
+ {
+ "fid": 21,
+ "name": "notifiedDeleteSquareChat",
+ "struct": "SquareEventNotifiedDeleteSquareChat"
+ },
+ {
+ "fid": 22,
+ "name": "notificationJoinRequest",
+ "struct": "SquareEventNotificationJoinRequest"
+ },
+ {
+ "fid": 23,
+ "name": "notificationJoined",
+ "struct": "SquareEventNotificationMemberUpdate"
+ },
+ {
+ "fid": 24,
+ "name": "notificationPromoteCoadmin",
+ "struct": "SquareEventNotificationMemberUpdate"
+ },
+ {
+ "fid": 25,
+ "name": "notificationPromoteAdmin",
+ "struct": "SquareEventNotificationMemberUpdate"
+ },
+ {
+ "fid": 26,
+ "name": "notificationDemoteMember",
+ "struct": "SquareEventNotificationMemberUpdate"
+ },
+ {
+ "fid": 27,
+ "name": "notificationKickedOut",
+ "struct": "SquareEventNotificationMemberUpdate"
+ },
+ {
+ "fid": 28,
+ "name": "notificationSquareDelete",
+ "struct": "SquareEventNotificationSquareDelete"
+ },
+ {
+ "fid": 29,
+ "name": "notificationSquareChatDelete",
+ "struct": "SquareEventNotificationSquareChatDelete"
+ },
+ {
+ "fid": 30,
+ "name": "notificationMessage",
+ "struct": "SquareEventNotificationMessage"
+ },
+ {
+ "fid": 31,
+ "name": "notifiedUpdateSquareChatProfileName",
+ "struct": "SquareEventNotifiedUpdateSquareChatProfileName"
+ },
+ {
+ "fid": 32,
+ "name": "notifiedUpdateSquareChatProfileImage",
+ "struct": "SquareEventNotifiedUpdateSquareChatProfileImage"
+ },
+ {
+ "fid": 33,
+ "name": "notifiedUpdateSquareFeatureSet",
+ "struct": "SquareEventNotifiedUpdateSquareFeatureSet"
+ },
+ {
+ "fid": 34,
+ "name": "notifiedAddBot",
+ "struct": "SquareEventNotifiedAddBot"
+ },
+ {
+ "fid": 35,
+ "name": "notifiedRemoveBot",
+ "struct": "SquareEventNotifiedRemoveBot"
+ },
+ {
+ "fid": 36,
+ "name": "notifiedUpdateSquareNoteStatus",
+ "struct": "SquareEventNotifiedUpdateSquareNoteStatus"
+ },
+ {
+ "fid": 37,
+ "name": "notifiedUpdateSquareChatAnnouncement",
+ "struct": "SquareEventNotifiedUpdateSquareChatAnnouncement"
+ },
+ {
+ "fid": 38,
+ "name": "notifiedUpdateSquareChatMaxMemberCount",
+ "struct": "SquareEventNotifiedUpdateSquareChatMaxMemberCount"
+ },
+ {
+ "fid": 39,
+ "name": "notificationPostAnnouncement",
+ "struct": "SquareEventNotificationPostAnnouncement"
+ },
+ {
+ "fid": 40,
+ "name": "notificationPost",
+ "struct": "SquareEventNotificationPost"
+ },
+ {
+ "fid": 41,
+ "name": "mutateMessage",
+ "struct": "SquareEventMutateMessage"
+ },
+ {
+ "fid": 42,
+ "name": "notificationNewChatMember",
+ "struct": "SquareEventNotificationNewChatMember"
+ },
+ {
+ "fid": 43,
+ "name": "notifiedUpdateReadonlyChat",
+ "struct": "SquareEventNotifiedUpdateReadonlyChat"
+ },
+ {
+ "fid": 44,
+ "name": "notifiedUpdateMessageStatus",
+ "struct": "SquareEventNotifiedUpdateMessageStatus"
+ },
+ {
+ "fid": 45,
+ "name": "notificationMessageReaction",
+ "struct": "SquareEventNotificationMessageReaction"
+ },
+ {
+ "fid": 46,
+ "name": "chatPopup",
+ "struct": "SquareEventChatPopup"
+ },
+ {
+ "fid": 47,
+ "name": "notifiedSystemMessage",
+ "struct": "SquareEventNotifiedSystemMessage"
+ },
+ {
+ "fid": 48,
+ "name": "notifiedUpdateSquareChatFeatureSet",
+ "struct": "SquareEventNotifiedUpdateSquareChatFeatureSet"
+ }
+ ],
+ "SquareEvent": [
+ {
+ "fid": 2,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "type",
+ "struct": "SquareEventType"
+ },
+ {
+ "fid": 4,
+ "name": "payload",
+ "struct": "SquareEventPayload"
+ },
+ {
+ "fid": 5,
+ "name": "syncToken",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "eventStatus",
+ "struct": "SquareEventStatus"
+ }
+ ],
+ "FetchMyEventsRequest": [
+ {
+ "fid": 1,
+ "name": "subscriptionId",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "syncToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "limit",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "FetchMyEventsResponse": [
+ {
+ "fid": 1,
+ "name": "subscription",
+ "struct": "SubscriptionState"
+ },
+ {
+ "fid": 2,
+ "name": "events",
+ "list": "SquareEvent"
+ },
+ {
+ "fid": 3,
+ "name": "syncToken",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "FetchSquareChatEventsRequest": [
+ {
+ "fid": 1,
+ "name": "subscriptionId",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "syncToken",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "limit",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "direction",
+ "struct": "FetchDirection"
+ }
+ ],
+ "FetchSquareChatEventsResponse": [
+ {
+ "fid": 1,
+ "name": "subscription",
+ "struct": "SubscriptionState"
+ },
+ {
+ "fid": 2,
+ "name": "events",
+ "list": "SquareEvent"
+ },
+ {
+ "fid": 3,
+ "name": "syncToken",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "InviteToSquareRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "invitees",
+ "list": 11
+ },
+ {
+ "fid": 4,
+ "name": "squareChatMid",
+ "type": 11
+ }
+ ],
+ "InviteToSquareResponse": [],
+ "InviteToSquareChatRequest": [
+ {
+ "fid": 1,
+ "name": "inviteeMids",
+ "list": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ }
+ ],
+ "InviteToSquareChatResponse": [
+ {
+ "fid": 1,
+ "name": "inviteeMids",
+ "list": 11
+ }
+ ],
+ "GetSquareMemberRequest": [
+ {
+ "fid": 1,
+ "name": "squareMemberMid",
+ "type": 11
+ }
+ ],
+ "GetSquareMemberResponse": [
+ {
+ "fid": 1,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 2,
+ "name": "relation",
+ "struct": "SquareMemberRelation"
+ },
+ {
+ "fid": 3,
+ "name": "oneOnOneChatMid",
+ "type": 11
+ }
+ ],
+ "GetSquareMembersRequest": [
+ {
+ "fid": 2,
+ "name": "mids",
+ "set": 11
+ }
+ ],
+ "GetSquareMembersResponse": [
+ {
+ "fid": 1,
+ "name": "members",
+ "struct": "SquareMember"
+ }
+ ],
+ "GetSquareMemberRelationsRequest": [
+ {
+ "fid": 2,
+ "name": "state",
+ "struct": "SquareMemberRelationState"
+ },
+ {
+ "fid": 3,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "limit",
+ "type": 8
+ }
+ ],
+ "GetSquareMemberRelationsResponse": [
+ {
+ "fid": 1,
+ "name": "squareMembers",
+ "list": "SquareMember"
+ },
+ {
+ "fid": 2,
+ "name": "relations",
+ "map": "SquareMemberRelation"
+ },
+ {
+ "fid": 3,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "GetSquareMemberRelationRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "targetSquareMemberMid",
+ "type": 11
+ }
+ ],
+ "GetSquareMemberRelationResponse": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "targetSquareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "relation",
+ "struct": "SquareMemberRelation"
+ }
+ ],
+ "Category": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 10
+ },
+ {
+ "fid": 11,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "newFlag",
+ "type": 2
+ },
+ {
+ "fid": 13,
+ "name": "productCount",
+ "type": 8
+ },
+ {
+ "fid": 14,
+ "name": "thumbnailUrl",
+ "type": 11
+ }
+ ],
+ "GetSquareCategoriesRequest": [],
+ "GetSquareCategoriesResponse": [
+ {
+ "fid": 1,
+ "name": "categoryList",
+ "list": "Category"
+ }
+ ],
+ "UpdateSquareRequest": [
+ {
+ "fid": 2,
+ "name": "updatedAttrs",
+ "set": "SquareAttribute"
+ },
+ {
+ "fid": 3,
+ "name": "square",
+ "struct": "Square"
+ }
+ ],
+ "UpdateSquareResponse": [
+ {
+ "fid": 1,
+ "name": "updatedAttrs",
+ "set": "SquareAttribute"
+ },
+ {
+ "fid": 2,
+ "name": "square",
+ "struct": "Square"
+ }
+ ],
+ "SearchSquaresRequest": [
+ {
+ "fid": 2,
+ "name": "query",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "limit",
+ "type": 8
+ }
+ ],
+ "SearchSquaresResponse": [
+ {
+ "fid": 1,
+ "name": "squares",
+ "list": "Square"
+ },
+ {
+ "fid": 2,
+ "name": "squareStatuses",
+ "map": "SquareStatus"
+ },
+ {
+ "fid": 3,
+ "name": "myMemberships",
+ "map": "SquareMember"
+ },
+ {
+ "fid": 4,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "noteStatuses",
+ "map": "NoteStatus"
+ }
+ ],
+ "GetSquareFeatureSetRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ }
+ ],
+ "GetSquareFeatureSetResponse": [
+ {
+ "fid": 1,
+ "name": "squareFeatureSet",
+ "struct": "SquareFeatureSet"
+ }
+ ],
+ "UpdateSquareFeatureSetRequest": [
+ {
+ "fid": 2,
+ "name": "updateAttributes",
+ "set": "SquareFeatureSetAttribute"
+ },
+ {
+ "fid": 3,
+ "name": "squareFeatureSet",
+ "struct": "SquareFeatureSet"
+ }
+ ],
+ "UpdateSquareFeatureSetResponse": [
+ {
+ "fid": 1,
+ "name": "updateAttributes",
+ "set": "SquareFeatureSetAttribute"
+ },
+ {
+ "fid": 2,
+ "name": "squareFeatureSet",
+ "struct": "SquareFeatureSet"
+ }
+ ],
+ "UpdateSquareMemberRequest": [
+ {
+ "fid": 2,
+ "name": "updatedAttrs",
+ "set": "SquareMemberAttribute"
+ },
+ {
+ "fid": 3,
+ "name": "updatedPreferenceAttrs",
+ "set": "SquarePreferenceAttribute"
+ },
+ {
+ "fid": 4,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ }
+ ],
+ "UpdateSquareMemberResponse": [
+ {
+ "fid": 1,
+ "name": "updatedAttrs",
+ "set": "SquareMemberAttribute"
+ },
+ {
+ "fid": 2,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "updatedPreferenceAttrs",
+ "set": "SquarePreferenceAttribute"
+ }
+ ],
+ "UpdateSquareMembersRequest": [
+ {
+ "fid": 2,
+ "name": "updatedAttrs",
+ "set": "SquareMemberAttribute"
+ },
+ {
+ "fid": 3,
+ "name": "members",
+ "list": "SquareMember"
+ }
+ ],
+ "UpdateSquareMembersResponse": [
+ {
+ "fid": 1,
+ "name": "updatedAttrs",
+ "set": "SquareMemberAttribute"
+ },
+ {
+ "fid": 2,
+ "name": "editor",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "members",
+ "map": "SquareMember"
+ }
+ ],
+ "RejectSquareMembersRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "requestedMemberMids",
+ "list": 11
+ }
+ ],
+ "RejectSquareMembersResponse": [
+ {
+ "fid": 1,
+ "name": "rejectedMembers",
+ "list": "SquareMember"
+ },
+ {
+ "fid": 2,
+ "name": "status",
+ "struct": "SquareStatus"
+ }
+ ],
+ "RemoveSubscriptionsRequest": [
+ {
+ "fid": 2,
+ "name": "unsubscriptions",
+ "list": 10
+ }
+ ],
+ "RemoveSubscriptionsResponse": [],
+ "RefreshSubscriptionsRequest": [
+ {
+ "fid": 2,
+ "name": "subscriptions",
+ "list": 10
+ }
+ ],
+ "RefreshSubscriptionsResponse": [
+ {
+ "fid": 1,
+ "name": "ttlMillis",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "subscriptionStates",
+ "map": "SubscriptionState"
+ }
+ ],
+ "UpdateSquareChatRequest": [
+ {
+ "fid": 2,
+ "name": "updatedAttrs",
+ "set": "SquareChatAttribute"
+ },
+ {
+ "fid": 3,
+ "name": "squareChat",
+ "struct": "SquareChat"
+ }
+ ],
+ "UpdateSquareChatResponse": [
+ {
+ "fid": 1,
+ "name": "updatedAttrs",
+ "set": "SquareChatAttribute"
+ },
+ {
+ "fid": 2,
+ "name": "squareChat",
+ "struct": "SquareChat"
+ }
+ ],
+ "DeleteSquareChatRequest": [
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "revision",
+ "type": 10
+ }
+ ],
+ "DeleteSquareChatResponse": [],
+ "UpdateSquareChatMemberRequest": [
+ {
+ "fid": 2,
+ "name": "updatedAttrs",
+ "set": "SquareChatMemberAttribute"
+ },
+ {
+ "fid": 3,
+ "name": "chatMember",
+ "struct": "SquareChatMember"
+ }
+ ],
+ "UpdateSquareChatMemberResponse": [
+ {
+ "fid": 1,
+ "name": "updatedChatMember",
+ "struct": "SquareChatMember"
+ }
+ ],
+ "UpdateSquareAuthorityRequest": [
+ {
+ "fid": 2,
+ "name": "updateAttributes",
+ "set": "SquareAuthorityAttribute"
+ },
+ {
+ "fid": 3,
+ "name": "authority",
+ "struct": "SquareAuthority"
+ }
+ ],
+ "UpdateSquareAuthorityResponse": [
+ {
+ "fid": 1,
+ "name": "updatdAttributes",
+ "set": "SquareAuthorityAttribute"
+ },
+ {
+ "fid": 2,
+ "name": "authority",
+ "struct": "SquareAuthority"
+ }
+ ],
+ "UpdateSquareMemberRelationRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "targetSquareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "updatedAttrs",
+ "set": "SquareMemberRelationAttribute"
+ },
+ {
+ "fid": 5,
+ "name": "relation",
+ "struct": "SquareMemberRelation"
+ }
+ ],
+ "UpdateSquareMemberRelationResponse": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "targetSquareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "updatedAttrs",
+ "set": "SquareMemberRelationAttribute"
+ },
+ {
+ "fid": 4,
+ "name": "relation",
+ "struct": "SquareMemberRelation"
+ }
+ ],
+ "ReportSquareRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "reportType",
+ "struct": "ReportType"
+ },
+ {
+ "fid": 4,
+ "name": "otherReason",
+ "type": 11
+ }
+ ],
+ "ReportSquareResponse": [],
+ "ReportSquareChatRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "reportType",
+ "struct": "ReportType"
+ },
+ {
+ "fid": 6,
+ "name": "otherReason",
+ "type": 11
+ }
+ ],
+ "ReportSquareChatResponse": [],
+ "ReportSquareMessageRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "squareMessageId",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "reportType",
+ "struct": "ReportType"
+ },
+ {
+ "fid": 6,
+ "name": "otherReason",
+ "type": 11
+ }
+ ],
+ "ReportSquareMessageResponse": [],
+ "ReportSquareMemberRequest": [
+ {
+ "fid": 2,
+ "name": "squareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "reportType",
+ "struct": "ReportType"
+ },
+ {
+ "fid": 4,
+ "name": "otherReason",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "squareChatMid",
+ "type": 11
+ }
+ ],
+ "ReportSquareMemberResponse": [],
+ "GetSquareRequest": [
+ {
+ "fid": 2,
+ "name": "mid",
+ "type": 11
+ }
+ ],
+ "GetSquareResponse": [
+ {
+ "fid": 1,
+ "name": "square",
+ "struct": "Square"
+ },
+ {
+ "fid": 2,
+ "name": "myMembership",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "squareAuthority",
+ "struct": "SquareAuthority"
+ },
+ {
+ "fid": 4,
+ "name": "squareStatus",
+ "struct": "SquareStatus"
+ },
+ {
+ "fid": 5,
+ "name": "squareFeatureSet",
+ "struct": "SquareFeatureSet"
+ },
+ {
+ "fid": 6,
+ "name": "noteStatus",
+ "struct": "NoteStatus"
+ }
+ ],
+ "GetSquareStatusRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ }
+ ],
+ "GetSquareStatusResponse": [
+ {
+ "fid": 1,
+ "name": "squareStatus",
+ "struct": "SquareStatus"
+ }
+ ],
+ "GetNoteStatusRequest": [
+ {
+ "fid": 2,
+ "name": "squareMid",
+ "type": 11
+ }
+ ],
+ "GetNoteStatusResponse": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "status",
+ "struct": "NoteStatus"
+ }
+ ],
+ "CreateSquareChatAnnouncementRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareChatAnnouncement",
+ "struct": "SquareChatAnnouncement"
+ }
+ ],
+ "CreateSquareChatAnnouncementResponse": [
+ {
+ "fid": 1,
+ "name": "announcement",
+ "struct": "SquareChatAnnouncement"
+ }
+ ],
+ "DeleteSquareChatAnnouncementRequest": [
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "announcementSeq",
+ "type": 10
+ }
+ ],
+ "DeleteSquareChatAnnouncementResponse": [],
+ "GetSquareChatAnnouncementsRequest": [
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ }
+ ],
+ "GetSquareChatAnnouncementsResponse": [
+ {
+ "fid": 1,
+ "name": "announcements",
+ "list": "SquareChatAnnouncement"
+ }
+ ],
+ "GetJoinedSquareChatsRequest": [
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "limit",
+ "type": 8
+ }
+ ],
+ "GetJoinedSquareChatsResponse": [
+ {
+ "fid": 1,
+ "name": "chats",
+ "list": "SquareChat"
+ },
+ {
+ "fid": 2,
+ "name": "chatMembers",
+ "map": "SquareChatMember"
+ },
+ {
+ "fid": 3,
+ "name": "statuses",
+ "map": "SquareChatStatus"
+ },
+ {
+ "fid": 4,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "UpdateBuddyProfileResult": [
+ {
+ "fid": 1,
+ "name": "requestId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "state",
+ "struct": "BuddyResultState"
+ },
+ {
+ "fid": 3,
+ "name": "eventNo",
+ "type": 8
+ },
+ {
+ "fid": 11,
+ "name": "receiverCount",
+ "type": 10
+ },
+ {
+ "fid": 12,
+ "name": "successCount",
+ "type": 10
+ },
+ {
+ "fid": 13,
+ "name": "failCount",
+ "type": 10
+ },
+ {
+ "fid": 14,
+ "name": "cancelCount",
+ "type": 10
+ },
+ {
+ "fid": 15,
+ "name": "unregisterCount",
+ "type": 10
+ },
+ {
+ "fid": 21,
+ "name": "timestamp",
+ "type": 10
+ },
+ {
+ "fid": 22,
+ "name": "message",
+ "type": 11
+ }
+ ],
+ "UserAuthStatus": [
+ {
+ "fid": 1,
+ "name": "phoneNumberRegistered",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "registeredSnsIdTypes",
+ "list": "SnsIdType"
+ }
+ ],
+ "WapInvitation": [
+ {
+ "fid": 1,
+ "name": "type",
+ "struct": "WapInvitationType"
+ },
+ {
+ "fid": 10,
+ "name": "inviteeEmail",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "inviterMid",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "roomMid",
+ "type": 11
+ }
+ ],
+ "GroupCall": [
+ {
+ "fid": 1,
+ "name": "online",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "chatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "hostMids",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "memberMids",
+ "list": 11
+ },
+ {
+ "fid": 5,
+ "name": "started",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "mediaType",
+ "struct": "GroupCallMediaType"
+ },
+ {
+ "fid": 7,
+ "name": "protocol",
+ "struct": "GroupCallProtocol"
+ }
+ ],
+ "GroupCallRoute": [
+ {
+ "fid": 1,
+ "name": "token",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "cscf",
+ "struct": "CallHost"
+ },
+ {
+ "fid": 3,
+ "name": "mix",
+ "struct": "CallHost"
+ }
+ ],
+ "LiffErrorCode": {
+ "1": "INVALID_REQUEST",
+ "2": "UNAUTHORIZED",
+ "3": "CONSENT_REQUIRED",
+ "4": "VERSION_UPDATE_REQUIRED",
+ "5": "COMPREHENSIVE_AGREEMENT_REQUIRED",
+ "6": "SPLASH_SCREEN_REQUIRED",
+ "100": "SERVER_ERROR"
+ },
+ "HomeExceptionCode": {
+ "0": "INTERNAL_ERROR",
+ "1": "ILLEGAL_ARGUMENT",
+ "2": "VERIFICATION_FAILED",
+ "3": "NOT_FOUND",
+ "4": "RETRY_LATER",
+ "5": "HUMAN_VERIFICATION_REQUIRED",
+ "100": "INVALID_CONTEXT",
+ "101": "APP_UPGRADE_REQUIRED",
+ "102": "NO_CONTENT"
+ },
+ "ChatappErrorCode": {
+ "1": "INVALID_REQUEST",
+ "2": "UNAUTHORIZED",
+ "100": "SERVER_ERROR"
+ },
+ "MembershipErrorCode": {
+ "0": "ILLEGAL_ARGUMENT",
+ "1": "AUTHENTICATION_FAILED",
+ "5": "NOT_FOUND",
+ "20": "INTERNAL_ERROR",
+ "33": "MAINTENANCE_ERROR"
+ },
+ "BotErrorCode": {
+ "0": "UNKNOWN",
+ "1": "BOT_NOT_FOUND",
+ "2": "BOT_NOT_AVAILABLE",
+ "3": "NOT_A_MEMBER",
+ "400": "ILLEGAL_ARGUMENT",
+ "401": "AUTHENTICATION_FAILED",
+ "500": "INTERNAL_ERROR"
+ },
+ "BotExternalErrorCode": {
+ "0": "ILLEGAL_ARGUMENT",
+ "1": "INTERNAL_ERROR"
+ },
+ "AccessTokenRefreshErrorCode": {
+ "1000": "INVALID_REQUEST",
+ "1001": "RETRY_REQUIRED"
+ },
+ "AccountEapConnectErrorCode": {
+ "0": "INTERNAL_ERROR",
+ "1": "ILLEGAL_ARGUMENT",
+ "2": "VERIFICATION_FAILED",
+ "4": "RETRY_LATER",
+ "5": "HUMAN_VERIFICATION_REQUIRED",
+ "101": "APP_UPGRADE_REQUIRED"
+ },
+ "PwlessCredentialErrorCode": {
+ "0": "INTERNAL_ERROR",
+ "1": "ILLEGAL_ARGUMENT",
+ "2": "VERIFICATION_FAILED",
+ "3": "EXTERNAL_SERVICE_UNAVAILABLE",
+ "4": "RETRY_LATER",
+ "100": "INVALID_CONTEXT",
+ "101": "NOT_SUPPORTED",
+ "102": "FORBIDDEN",
+ "201": "FIDO_RETRY_WITH_ANOTHER_AUTHENTICATOR"
+ },
+ "SecondAuthFactorPinCodeErrorCode": {
+ "0": "INTERNAL_ERROR",
+ "1": "ILLEGAL_ARGUMENT",
+ "2": "VERIFICATION_FAILED",
+ "3": "RETRY_LATER",
+ "100": "INVALID_CONTEXT",
+ "101": "APP_UPGRADE_REQUIRED"
+ },
+ "AuthErrorCode": {
+ "0": "INTERNAL_ERROR",
+ "1": "ILLEGAL_ARGUMENT",
+ "2": "VERIFICATION_FAILED",
+ "3": "NOT_FOUND",
+ "4": "RETRY_LATER",
+ "5": "HUMAN_VERIFICATION_REQUIRED",
+ "100": "INVALID_CONTEXT",
+ "101": "APP_UPGRADE_REQUIRED"
+ },
+ "SecondaryPwlessLoginErrorCode": {
+ "0": "INTERNAL_ERROR",
+ "1": "VERIFICATION_FAILED",
+ "2": "LOGIN_NOT_ALLOWED",
+ "3": "EXTERNAL_SERVICE_UNAVAILABLE",
+ "4": "RETRY_LATER",
+ "100": "NOT_SUPPORTED",
+ "101": "ILLEGAL_ARGUMENT",
+ "102": "INVALID_CONTEXT",
+ "103": "FORBIDDEN",
+ "200": "FIDO_UNKNOWN_CREDENTIAL_ID",
+ "201": "FIDO_RETRY_WITH_ANOTHER_AUTHENTICATOR",
+ "202": "FIDO_UNACCEPTABLE_CONTENT"
+ },
+ "SecondaryQrCodeErrorCode": {
+ "0": "INTERNAL_ERROR",
+ "1": "ILLEGAL_ARGUMENT",
+ "2": "VERIFICATION_FAILED",
+ "3": "NOT_ALLOWED_QR_CODE_LOGIN",
+ "4": "VERIFICATION_NOTICE_FAILED",
+ "5": "RETRY_LATER",
+ "100": "INVALID_CONTEXT",
+ "101": "APP_UPGRADE_REQUIRED"
+ },
+ "PaymentErrorCode": {
+ "0": "SUCCESS",
+ "1000": "GENERAL_USER_ERROR",
+ "1101": "ACCOUNT_NOT_EXISTS",
+ "1102": "ACCOUNT_INVALID_STATUS",
+ "1103": "ACCOUNT_ALREADY_EXISTS",
+ "1104": "MERCHANT_NOT_EXISTS",
+ "1105": "MERCHANT_INVALID_STATUS",
+ "1107": "AGREEMENT_REQUIRED",
+ "1108": "BLACKLISTED",
+ "1109": "WRONG_PASSWORD",
+ "1110": "INVALID_CREDIT_CARD",
+ "1111": "LIMIT_EXCEEDED",
+ "1115": "CANNOT_PROCEED",
+ "1120": "TOO_WEAK_PASSWORD",
+ "1125": "CANNOT_CREATE_ACCOUNT",
+ "1130": "TEMPORARY_PASSWORD_ERROR",
+ "1140": "MISSING_PARAMETERS",
+ "1141": "NO_VALID_MYCODE_ACCOUNT",
+ "1142": "INSUFFICIENT_BALANCE",
+ "1150": "TRANSACTION_NOT_FOUND",
+ "1152": "TRANSACTION_FINISHED",
+ "1153": "PAYMENT_AMOUNT_WRONG",
+ "1157": "BALANCE_ACCOUNT_NOT_EXISTS",
+ "1158": "DUPLICATED_CITIZEN_ID",
+ "1159": "PAYMENT_REQUEST_NOT_FOUND",
+ "1169": "AUTH_FAILED",
+ "1171": "PASSWORD_SETTING_REQUIRED",
+ "1172": "TRANSACTION_ALREADY_PROCESSED",
+ "1178": "CURRENCY_NOT_SUPPORTED",
+ "1180": "PAYMENT_NOT_AVAILABLE",
+ "1181": "TRANSFER_REQUEST_NOT_FOUND",
+ "1183": "INVALID_PAYMENT_AMOUNT",
+ "1184": "INSUFFICIENT_PAYMENT_AMOUNT",
+ "1185": "EXTERNAL_SYSTEM_MAINTENANCE",
+ "1186": "EXTERNAL_SYSTEM_INOPERATIONAL",
+ "1192": "SESSION_EXPIRED",
+ "1195": "UPGRADE_REQUIRED",
+ "1196": "REQUEST_TOKEN_EXPIRED",
+ "1198": "OPERATION_FINISHED",
+ "1199": "EXTERNAL_SYSTEM_ERROR",
+ "1299": "PARTIAL_AMOUNT_APPROVED",
+ "1600": "PINCODE_AUTH_REQUIRED",
+ "1601": "ADDITIONAL_AUTH_REQUIRED",
+ "1603": "NOT_BOUND",
+ "1610": "OTP_USER_REGISTRATION_ERROR",
+ "1611": "OTP_CARD_REGISTRATION_ERROR",
+ "1612": "NO_AUTH_METHOD",
+ "1696": "GENERAL_USER_ERROR_RESTART",
+ "1697": "GENERAL_USER_ERROR_REFRESH",
+ "1698": "GENERAL_USER_ERROR_CLOSE",
+ "9000": "INTERNAL_SERVER_ERROR",
+ "9999": "INTERNAL_SYSTEM_MAINTENANCE",
+ "10000": "UNKNOWN_ERROR"
+ },
+ "SettingsErrorCode": {
+ "0": "UNKNOWN",
+ "1": "NONE",
+ "16641": "ILLEGAL_ARGUMENT",
+ "16642": "NOT_FOUND",
+ "16643": "NOT_AVAILABLE",
+ "16644": "TOO_LARGE_VALUE",
+ "16645": "CLOCK_DRIFT_DETECTED",
+ "16646": "UNSUPPORTED_APPLICATION_TYPE",
+ "16647": "DUPLICATED_ENTRY",
+ "16897": "AUTHENTICATION_FAILED",
+ "20737": "INTERNAL_SERVER_ERROR",
+ "20738": "SERVICE_IN_MAINTENANCE_MODE",
+ "20739": "SERVICE_UNAVAILABLE"
+ },
+ "ThingsErrorCode": {
+ "0": "INTERNAL_SERVER_ERROR",
+ "1": "UNAUTHORIZED",
+ "2": "INVALID_REQUEST",
+ "3": "INVALID_STATE",
+ "4096": "DEVICE_LIMIT_EXCEEDED",
+ "4097": "UNSUPPORTED_REGION"
+ },
+ "SuggestTrialErrorCode": {
+ "0": "UNKNOWN",
+ "1": "NONE",
+ "16641": "ILLEGAL_ARGUMENT",
+ "16642": "NOT_FOUND",
+ "16643": "NOT_AVAILABLE",
+ "16897": "AUTHENTICATION_FAILED",
+ "20737": "INTERNAL_SERVER_ERROR",
+ "20739": "SERVICE_UNAVAILABLE"
+ },
+ "LFLPremiumErrorCode": {
+ "16641": "ILLEGAL_ARGUMENT",
+ "16642": "MAJOR_VERSION_NOT_SUPPORTED",
+ "16897": "AUTHENTICATION_FAILED",
+ "20737": "INTERNAL_SERVER_ERROR"
+ },
+ "WalletErrorCode": {
+ "400": "INVALID_PARAMETER",
+ "401": "AUTHENTICATION_FAILED",
+ "500": "INTERNAL_SERVER_ERROR",
+ "503": "SERVICE_IN_MAINTENANCE_MODE"
+ },
+ "ShopErrorCode": {
+ "0": "UNKNOWN",
+ "1": "NONE",
+ "16641": "ILLEGAL_ARGUMENT",
+ "16642": "NOT_FOUND",
+ "16643": "NOT_AVAILABLE",
+ "16644": "NOT_PAID_PRODUCT",
+ "16645": "NOT_FREE_PRODUCT",
+ "16646": "ALREADY_OWNED",
+ "16647": "ERROR_WITH_CUSTOM_MESSAGE",
+ "16648": "NOT_AVAILABLE_TO_RECIPIENT",
+ "16649": "NOT_AVAILABLE_FOR_CHANNEL_ID",
+ "16650": "NOT_SALE_FOR_COUNTRY",
+ "16651": "NOT_SALES_PERIOD",
+ "16652": "NOT_SALE_FOR_DEVICE",
+ "16653": "NOT_SALE_FOR_VERSION",
+ "16654": "ALREADY_EXPIRED",
+ "16655": "LIMIT_EXCEEDED",
+ "16656": "MISSING_CAPABILITY",
+ "16897": "AUTHENTICATION_FAILED",
+ "17153": "BALANCE_SHORTAGE",
+ "20737": "INTERNAL_SERVER_ERROR",
+ "20738": "SERVICE_IN_MAINTENANCE_MODE",
+ "20739": "SERVICE_UNAVAILABLE"
+ },
+ "E2EEKeyBackupErrorCode": {
+ "0": "ILLEGAL_ARGUMENT",
+ "1": "AUTHENTICATION_FAILED",
+ "2": "INTERNAL_ERROR",
+ "3": "RESTORE_KEY_FIRST",
+ "4": "NO_BACKUP",
+ "5": "LOCKOUT",
+ "6": "INVALID_PIN"
+ },
+ "TalkSyncReason": {
+ "0": "UNSPECIFIED",
+ "1": "UNKNOWN",
+ "2": "INITIALIZATION",
+ "3": "OPERATION",
+ "4": "FULL_SYNC",
+ "5": "AUTO_REPAIR",
+ "6": "MANUAL_REPAIR",
+ "7": "INTERNAL",
+ "8": "USER_INITIATED"
+ },
+ "AppExtensionType": {
+ "1": "SIRI",
+ "2": "GOOGLE_ASSISTANT",
+ "3": "OS_SHARE"
+ },
+ "PredefinedReactionType": {
+ "2": "NICE",
+ "3": "LOVE",
+ "4": "FUN",
+ "5": "AMAZING",
+ "6": "SAD",
+ "7": "OMG"
+ },
+ "GeolocationAccuracyMode": {
+ "0": "UNKNOWN",
+ "1": "IOS_REDUCED_ACCURACY",
+ "2": "IOS_FULL_ACCURACY",
+ "3": "AOS_PRECISE_LOCATION",
+ "4": "AOS_APPROXIMATE_LOCATION"
+ },
+ "ContactCalendarEventType": {
+ "0": "BIRTHDAY"
+ },
+ "ContactCalendarEventState": {
+ "0": "SHOW",
+ "1": "HIDE"
+ },
+ "UserAllowProfileHistoryType": {
+ "0": "OWNER",
+ "1": "FRIEND"
+ },
+ "UserStatusMessageHistoryType": {
+ "1": "NONE",
+ "2": "ALL"
+ },
+ "UserSharePersonalInfoToFriendsType": {
+ "0": "NEVER_SHOW",
+ "1": "ONE_WAY",
+ "2": "MUTUAL"
+ },
+ "CharType": {
+ "0": "GROUP",
+ "1": "ROOM",
+ "2": "PEER"
+ },
+ "ChatAttribute": {
+ "1": "NAME",
+ "2": "PICTURE_STATUS",
+ "4": "PREVENTED_JOIN_BY_TICKET",
+ "8": "NOTIFICATION_SETTING",
+ "16": "INVITATION_TICKET",
+ "32": "FAVORITE_TIMESTAMP",
+ "64": "CHAT_TYPE"
+ },
+ "BuddyBotActiveStatus": {
+ "0": "UNSPECIFIED",
+ "1": "INACTIVE",
+ "2": "ACTIVE",
+ "3": "DELETED"
+ },
+ "GroupCallProtocol": {
+ "1": "STANDARD",
+ "2": "CONSTELLA"
+ },
+ "GlobalEventType": {
+ "0": "DUMMY",
+ "1": "NOTICE",
+ "2": "MORETAB",
+ "3": "STICKERSHOP",
+ "4": "CHANNEL",
+ "5": "DENY_KEYWORD",
+ "6": "CONNECTIONINFO",
+ "7": "BUDDY",
+ "8": "TIMELINEINFO",
+ "9": "THEMESHOP",
+ "10": "CALLRATE",
+ "11": "CONFIGURATION",
+ "12": "STICONSHOP",
+ "13": "SUGGESTDICTIONARY",
+ "14": "SUGGESTSETTINGS",
+ "15": "USERSETTINGS",
+ "16": "ANALYTICSINFO",
+ "17": "SEARCHPOPULARKEYWORD",
+ "18": "SEARCHNOTICE",
+ "19": "TIMELINE",
+ "20": "SEARCHPOPULARCATEGORY",
+ "21": "EXTENDEDPROFILE",
+ "22": "SEASONALMARKETING",
+ "23": "NEWSTAB",
+ "24": "SUGGESTDICTIONARYV2",
+ "25": "CHATAPPSYNC",
+ "26": "AGREEMENTS",
+ "27": "INSTANTNEWS",
+ "28": "EMOJI_MAPPING",
+ "29": "SEARCHBARKEYWORDS",
+ "30": "SHOPPING",
+ "31": "CHAT_EFFECT_BACKGROUND",
+ "32": "CHAT_EFFECT_KEYWORD",
+ "33": "SEARCHINDEX",
+ "34": "HUBTAB",
+ "35": "PAY_RULE_UPDATED",
+ "36": "SMARTCH",
+ "37": "HOME_SERVICE_LIST",
+ "38": "TIMELINESTORY",
+ "39": "WALLET_TAB",
+ "40": "POD_TAB",
+ "41": "HOME_SAFETY_CHECK"
+ },
+ "SyncCategories": {
+ "0": "ALL",
+ "1": "PROFILE",
+ "2": "SETTINGS",
+ "3": "CONFIGURATIONS",
+ "4": "CONTACT",
+ "5": "GROUP",
+ "6": "E2EE",
+ "7": "MESSAGE"
+ },
+ "MediaMessageFlow": {
+ "1": "V1",
+ "2": "V2"
+ },
+ "MessageReactionType": {
+ "0": "ALL",
+ "1": "UNDO",
+ "2": "NICE",
+ "3": "LOVE",
+ "4": "FUN",
+ "5": "AMAZING",
+ "6": "SAD",
+ "7": "OMG"
+ },
+ "PictureSource": {
+ "1": "NFT",
+ "2": "AVATAR",
+ "3": "SNOW",
+ "4": "ARCZ"
+ },
+ "RejectionReason": {
+ "0": "UNKNOWN",
+ "1": "INVALID_TARGET_USER",
+ "2": "AGE_VALIDATION",
+ "3": "TOO_MANY_FRIENDS",
+ "4": "TOO_MANY_REQUESTS",
+ "5": "MALFORMED_REQUEST"
+ },
+ "UpdateChatRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "chat",
+ "struct": "Chat"
+ },
+ {
+ "fid": 3,
+ "name": "updatedAttribute",
+ "type": 8
+ }
+ ],
+ "UpdateChatResponse": [],
+ "AcceptChatInvitationByTicketRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "chatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "ticketId",
+ "type": 11
+ }
+ ],
+ "AcceptChatInvitationByTicketResponse": [],
+ "AcceptChatInvitationRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "chatMid",
+ "type": 11
+ }
+ ],
+ "ReissueChatTicketRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "groupMid",
+ "type": 11
+ }
+ ],
+ "AcceptChatInvitationResponse": [],
+ "ReissueChatTicketResponse": [
+ {
+ "fid": 1,
+ "name": "ticketId",
+ "type": 11
+ }
+ ],
+ "RejectChatInvitationRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "chatMid",
+ "type": 11
+ }
+ ],
+ "GetAllChatMidsRequest": [
+ {
+ "fid": 1,
+ "name": "withMemberChats",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "withInvitedChats",
+ "type": 2
+ }
+ ],
+ "RejectChatInvitationResponse": [],
+ "GetAllChatMidsResponse": [
+ {
+ "fid": 1,
+ "name": "memberChatMids",
+ "set": 11
+ },
+ {
+ "fid": 2,
+ "name": "invitedChatMids",
+ "set": 11
+ }
+ ],
+ "CreateChatRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "type",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "targetUserMids",
+ "set": 11
+ },
+ {
+ "fid": 5,
+ "name": "picturePath",
+ "type": 11
+ }
+ ],
+ "CreateChatResponse": [
+ {
+ "fid": 1,
+ "name": "chat",
+ "struct": "Chat"
+ }
+ ],
+ "BeaconCondition": [
+ {
+ "fid": 1,
+ "name": "inFriends",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "notInFriends",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "termsAgreed",
+ "type": 2
+ }
+ ],
+ "BeaconBackgroundNotification": [
+ {
+ "fid": 1,
+ "name": "actionInterval",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "actionAndConditions",
+ "list": "BeaconCondition"
+ },
+ {
+ "fid": 3,
+ "name": "actionDelay",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "actionConditions",
+ "list": "BeaconCondition"
+ }
+ ],
+ "LiffErrorPayload": [
+ {
+ "fid": 3,
+ "name": "consentRequired",
+ "struct": "LiffErrorConsentRequired"
+ }
+ ],
+ "LiffErrorConsentRequired": [
+ {
+ "fid": 1,
+ "name": "channelId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "consentUrl",
+ "type": 11
+ }
+ ],
+ "UserRestrictionExtraInfo": [
+ {
+ "fid": 1,
+ "name": "linkUrl",
+ "type": 11
+ }
+ ],
+ "WebAuthDetails": [
+ {
+ "fid": 1,
+ "name": "baseUrl",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "token",
+ "type": 11
+ }
+ ],
+ "AvatarProfile": [
+ {
+ "fid": 1,
+ "name": "version",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "updatedMillis",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "thumbnail",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "usablePublicly",
+ "type": 2
+ }
+ ],
+ "Reaction": [
+ {
+ "fid": 1,
+ "name": "fromUserMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "atMillis",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "reactionType",
+ "struct": "ReactionType"
+ }
+ ],
+ "ReactionType": [
+ {
+ "fid": 1,
+ "name": "predefinedReactionType",
+ "struct": "PredefinedReactionType"
+ }
+ ],
+ "ReactRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "messageId",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "reactionType",
+ "struct": "ReactionType"
+ }
+ ],
+ "GeolocationAccuracy": [
+ {
+ "fid": 1,
+ "name": "radiusMeters",
+ "type": 4
+ },
+ {
+ "fid": 2,
+ "name": "radiusConfidence",
+ "type": 4
+ },
+ {
+ "fid": 3,
+ "name": "altitudeAccuracy",
+ "type": 4
+ },
+ {
+ "fid": 4,
+ "name": "velocityAccuracy",
+ "type": 4
+ },
+ {
+ "fid": 5,
+ "name": "bearingAccuracy",
+ "type": 4
+ },
+ {
+ "fid": 6,
+ "name": "accuracyMode",
+ "struct": "GeolocationAccuracyMode"
+ }
+ ],
+ "GetContactsV2Request": [
+ {
+ "fid": 1,
+ "name": "targetUserMids",
+ "list": 11
+ },
+ {
+ "fid": 2,
+ "name": "neededContactCalendarEvents",
+ "set": "ContactCalendarEventType"
+ },
+ {
+ "fid": 3,
+ "name": "withUserStatus",
+ "type": 2
+ }
+ ],
+ "GetContactsV2Response": [
+ {
+ "fid": 1,
+ "name": "contacts",
+ "map": "ContactEntry"
+ }
+ ],
+ "ContactEntry": [
+ {
+ "fid": 1,
+ "name": "userStatus",
+ "struct": "UserStatus"
+ },
+ {
+ "fid": 2,
+ "name": "snapshotTimeMillis",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "contact",
+ "struct": "Contact"
+ },
+ {
+ "fid": 4,
+ "name": "calendarEvents",
+ "struct": "ContactCalendarEvents"
+ }
+ ],
+ "ContactCalendarEvents": [
+ {
+ "fid": 1,
+ "name": "events",
+ "map": "ContactCalendarEvent"
+ }
+ ],
+ "ContactCalendarEvent": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "state",
+ "struct": "ContactCalendarEventState"
+ },
+ {
+ "fid": 3,
+ "name": "year",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "month",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "day",
+ "type": 8
+ }
+ ],
+ "Configurations": [
+ {
+ "fid": 1,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "configMap",
+ "map": 11
+ }
+ ],
+ "E2EEGroupSharedKey": [
+ {
+ "fid": 1,
+ "name": "keyVersion",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "groupKeyId",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "creator",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "creatorKeyId",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "receiver",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "receiverKeyId",
+ "type": 8
+ },
+ {
+ "fid": 7,
+ "name": "encryptedSharedKey"
+ },
+ {
+ "fid": 8,
+ "name": "allowedTypes",
+ "set": "ContentType"
+ },
+ {
+ "fid": 9,
+ "name": "specVersion",
+ "type": 8
+ }
+ ],
+ "FollowRequest": [
+ {
+ "fid": 1,
+ "name": "followMid",
+ "struct": "FollowMid"
+ }
+ ],
+ "FollowMid": [
+ {
+ "fid": 1,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "eMid",
+ "type": 11
+ }
+ ],
+ "UnfollowRequest": [
+ {
+ "fid": 1,
+ "name": "followMid",
+ "struct": "FollowMid"
+ }
+ ],
+ "GetChatsRequest": [
+ {
+ "fid": 1,
+ "name": "chatMids",
+ "list": 11
+ },
+ {
+ "fid": 2,
+ "name": "withMembers",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "withInvitees",
+ "type": 2
+ }
+ ],
+ "GetChatsResponse": [
+ {
+ "fid": 1,
+ "name": "chats",
+ "list": "Chat"
+ }
+ ],
+ "Chat": [
+ {
+ "fid": 1,
+ "name": "type",
+ "struct": "CharType"
+ },
+ {
+ "fid": 2,
+ "name": "chatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "notificationDisabled",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "favoriteTimestamp",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "chatName",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "picturePath",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "extra",
+ "struct": "Extra"
+ }
+ ],
+ "Extra": [
+ {
+ "fid": 1,
+ "name": "groupExtra",
+ "struct": "GroupExtra"
+ },
+ {
+ "fid": 2,
+ "name": "peerExtra",
+ "struct": "PeerExtra"
+ }
+ ],
+ "GroupExtra": [
+ {
+ "fid": 1,
+ "name": "creator",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "preventedJoinByTicket",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "invitationTicket",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "memberMids",
+ "map": 10
+ },
+ {
+ "fid": 5,
+ "name": "inviteeMids",
+ "map": 10
+ },
+ {
+ "fid": 6,
+ "name": "addFriendDisabled",
+ "type": 2
+ },
+ {
+ "fid": 7,
+ "name": "ticketDisabled",
+ "type": 2
+ }
+ ],
+ "PeerExtra": [],
+ "GetFollowersRequest": [
+ {
+ "fid": 1,
+ "name": "followMid",
+ "struct": "FollowMid"
+ },
+ {
+ "fid": 2,
+ "name": "cursor",
+ "type": 11
+ }
+ ],
+ "GetFollowersResponse": [
+ {
+ "fid": 1,
+ "name": "profiles",
+ "list": "FollowProfile"
+ },
+ {
+ "fid": 2,
+ "name": "cursor",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "followingCount",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "followerCount",
+ "type": 10
+ }
+ ],
+ "FollowProfile": [
+ {
+ "fid": 1,
+ "name": "followMid",
+ "struct": "FollowMid"
+ },
+ {
+ "fid": 2,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "picturePath",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "following",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "allowFollow",
+ "type": 2
+ },
+ {
+ "fid": 6,
+ "name": "followBuddyDetail",
+ "struct": "FollowBuddyDetail"
+ }
+ ],
+ "FollowBuddyDetail": [
+ {
+ "fid": 1,
+ "name": "iconType",
+ "type": 8
+ }
+ ],
+ "GetFollowingsRequest": [
+ {
+ "fid": 1,
+ "name": "followMid",
+ "struct": "FollowMid"
+ },
+ {
+ "fid": 2,
+ "name": "cursor",
+ "type": 11
+ }
+ ],
+ "GetFollowingsResponse": [
+ {
+ "fid": 1,
+ "name": "profiles",
+ "list": "FollowProfile"
+ },
+ {
+ "fid": 2,
+ "name": "cursor",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "followingCount",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "followerCount",
+ "type": 10
+ }
+ ],
+ "GetE2EEKeyBackupCertificatesRequest": [],
+ "GetE2EEKeyBackupCertificatesResponse": [
+ {
+ "fid": 1,
+ "name": "urlHashList",
+ "list": 11
+ }
+ ],
+ "DeleteOtherFromChatRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "chatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "targetUserMids",
+ "set": 11
+ }
+ ],
+ "DeleteOtherFromChatResponse": [],
+ "InviteIntoChatRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "chatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "targetUserMids",
+ "set": 11
+ }
+ ],
+ "InviteIntoChatResponse": [],
+ "CancelChatInvitationRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "chatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "targetUserMids",
+ "set": 11
+ }
+ ],
+ "CancelChatInvitationResponse": [],
+ "DeleteSelfFromChatRequest": [
+ {
+ "fid": 1,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "chatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "lastSeenMessageDeliveredTime",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "lastSeenMessageId",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "lastMessageDeliveredTime",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "lastMessageId",
+ "type": 11
+ }
+ ],
+ "DeleteSelfFromChatResponse": [],
+ "FindChatByTicketRequest": [
+ {
+ "fid": 1,
+ "name": "ticketId",
+ "type": 11
+ }
+ ],
+ "FindChatByTicketResponse": [
+ {
+ "fid": 1,
+ "name": "chat",
+ "struct": "Chat"
+ }
+ ],
+ "RefreshAccessTokenRequest": [
+ {
+ "fid": 1,
+ "name": "refreshToken",
+ "type": 11
+ }
+ ],
+ "RefreshAccessTokenResponse": [
+ {
+ "fid": 1,
+ "name": "accessToken",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "durationUntilRefreshInSec",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "retryPolicy",
+ "struct": "RetryPolicy"
+ },
+ {
+ "fid": 4,
+ "name": "tokenIssueTimeEpochSec",
+ "type": 10
+ },
+ {
+ "fid": 5,
+ "name": "refreshToken",
+ "type": 11
+ }
+ ],
+ "RetryPolicy": [
+ {
+ "fid": 1,
+ "name": "initialDelayInMillis",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "maxDelayInMillis",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "multiplier",
+ "type": 4
+ },
+ {
+ "fid": 4,
+ "name": "jitterRate",
+ "type": 4
+ }
+ ],
+ "GetPreviousMessagesV2Request": [
+ {
+ "fid": 1,
+ "name": "messageBoxId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "endMessageId",
+ "struct": "MessageBoxV2MessageId"
+ },
+ {
+ "fid": 3,
+ "name": "messagesCount",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "withReadCount",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "receivedOnly",
+ "type": 2
+ }
+ ],
+ "SyncResponse": [
+ {
+ "fid": 1,
+ "name": "operationResponse",
+ "struct": "OperationResponse"
+ },
+ {
+ "fid": 2,
+ "name": "fullSyncResponse",
+ "struct": "FullSyncResponse"
+ },
+ {
+ "fid": 3,
+ "name": "partialFullSyncResponse",
+ "struct": "PartialFullSyncResponse"
+ }
+ ],
+ "OperationResponse": [
+ {
+ "fid": 1,
+ "name": "operations",
+ "list": "Operation"
+ },
+ {
+ "fid": 2,
+ "name": "hasMoreOps",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "globalEvents",
+ "struct": "TGlobalEvents"
+ },
+ {
+ "fid": 4,
+ "name": "individualEvents",
+ "struct": "TIndividualEvents"
+ }
+ ],
+ "FullSyncResponse": [
+ {
+ "fid": 1,
+ "name": "reasons",
+ "set": "SyncTriggerReason"
+ },
+ {
+ "fid": 2,
+ "name": "nextRevision",
+ "type": 10
+ }
+ ],
+ "PartialFullSyncResponse": [
+ {
+ "fid": 1,
+ "name": "targetCategories",
+ "map": 10
+ }
+ ],
+ "TGlobalEvents": [
+ {
+ "fid": 1,
+ "name": "events",
+ "map": "GlobalEvent"
+ },
+ {
+ "fid": 2,
+ "name": "lastRevision",
+ "type": 10
+ }
+ ],
+ "TIndividualEvents": [
+ {
+ "fid": 1,
+ "name": "events",
+ "set": "NotificationStatus"
+ },
+ {
+ "fid": 2,
+ "name": "lastRevision",
+ "type": 10
+ }
+ ],
+ "DetermineMediaMessageFlowResponse": [
+ {
+ "fid": 1,
+ "name": "flowMap",
+ "map": "MediaMessageFlow"
+ },
+ {
+ "fid": 2,
+ "name": "cacheTtlMillis",
+ "type": 10
+ }
+ ],
+ "ChatRoomAnnouncementContentMetadata": [
+ {
+ "fid": 1,
+ "name": "replace",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "sticonOwnership",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "postNotificationMetadata",
+ "type": 11
+ }
+ ],
+ "DisasterInfo": [
+ {
+ "fid": 1,
+ "name": "disasterId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "title",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "region",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "disasterDescription",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "seeMoreUrl",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "status",
+ "type": 8
+ }
+ ],
+ "GetDisasterCasesRequest": [],
+ "GetDisasterCasesResponse": [
+ {
+ "fid": 1,
+ "name": "disasters",
+ "list": "DisasterInfo"
+ },
+ {
+ "fid": 2,
+ "name": "messageTemplate",
+ "list": 11
+ },
+ {
+ "fid": 3,
+ "name": "ttlInMillis",
+ "type": 10
+ }
+ ],
+ "SquareMessageState": {
+ "1": "SENT",
+ "2": "DELETED",
+ "3": "FORBIDDEN",
+ "4": "UNSENT"
+ },
+ "SquareMessageReaction": [
+ {
+ "fid": 1,
+ "name": "type",
+ "struct": "MessageReactionType"
+ },
+ {
+ "fid": 2,
+ "name": "reactor",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "createdAt",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "updatedAt",
+ "type": 10
+ }
+ ],
+ "SquareMessageReactionStatus": [
+ {
+ "fid": 1,
+ "name": "totalCount",
+ "type": 8
+ },
+ {
+ "fid": 2,
+ "name": "countByReactionType",
+ "map": 8
+ },
+ {
+ "fid": 3,
+ "name": "myReaction",
+ "struct": "SquareMessageReaction"
+ }
+ ],
+ "SquareEventMutateMessage": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMessage",
+ "struct": "SquareMessage"
+ },
+ {
+ "fid": 3,
+ "name": "reqSeq",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "senderDisplayName",
+ "type": 11
+ }
+ ],
+ "SquareEmblem": {
+ "1": "SUPER",
+ "2": "OFFICIAL"
+ },
+ "SquareJoinMethodType": {
+ "0": "NONE",
+ "1": "APPROVAL",
+ "2": "CODE"
+ },
+ "ApprovalValue": [
+ {
+ "fid": 1,
+ "name": "message",
+ "type": 11
+ }
+ ],
+ "CodeValue": [
+ {
+ "fid": 1,
+ "name": "code",
+ "type": 11
+ }
+ ],
+ "SquareJoinMethodValue": [
+ {
+ "fid": 1,
+ "name": "approvalValue",
+ "struct": "ApprovalValue"
+ },
+ {
+ "fid": 2,
+ "name": "codeValue",
+ "struct": "CodeValue"
+ }
+ ],
+ "SquareJoinMethod": [
+ {
+ "fid": 1,
+ "name": "type",
+ "struct": "SquareJoinMethodType"
+ },
+ {
+ "fid": 2,
+ "name": "value",
+ "struct": "SquareJoinMethodValue"
+ }
+ ],
+ "MessageVisibility": [
+ {
+ "fid": 1,
+ "name": "showJoinMessage",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "showLeaveMessage",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "showKickoutMessage",
+ "type": 2
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareChatMaxMemberCount": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "maxMemberCount",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "editor",
+ "struct": "SquareMember"
+ }
+ ],
+ "SquareEventNotifiedAddBot": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "botMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "botDisplayName",
+ "type": 11
+ }
+ ],
+ "SquareEventNotifiedRemoveBot": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 3,
+ "name": "botMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "botDisplayName",
+ "type": 11
+ }
+ ],
+ "SquareEventNotifiedUpdateReadonlyChat": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "readonly",
+ "type": 2
+ }
+ ],
+ "MessageStatusType": {},
+ "MessageStatusContents": [
+ {
+ "fid": 1,
+ "name": "messageReactionStatus",
+ "struct": "SquareMessageReactionStatus"
+ }
+ ],
+ "SquareMessageStatus": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "globalMessageId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "type",
+ "struct": "MessageStatusType"
+ },
+ {
+ "fid": 4,
+ "name": "contents",
+ "struct": "MessageStatusContents"
+ },
+ {
+ "fid": 5,
+ "name": "publishedAt",
+ "type": 10
+ }
+ ],
+ "SquareEventNotifiedUpdateMessageStatus": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "messageId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "messageStatus",
+ "struct": "SquareMessageStatus"
+ }
+ ],
+ "UrlButton": [
+ {
+ "fid": 1,
+ "name": "text",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "url",
+ "type": 11
+ }
+ ],
+ "TextButton": [
+ {
+ "fid": 1,
+ "name": "text",
+ "type": 11
+ }
+ ],
+ "OkButton": [
+ {
+ "fid": 1,
+ "name": "text",
+ "type": 11
+ }
+ ],
+ "ButtonContent": [
+ {
+ "fid": 1,
+ "name": "urlButton",
+ "struct": "UrlButton"
+ },
+ {
+ "fid": 2,
+ "name": "textButton",
+ "struct": "TextButton"
+ },
+ {
+ "fid": 3,
+ "name": "okButton",
+ "struct": "OkButton"
+ }
+ ],
+ "SquareEventChatPopup": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "popupId",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "flexJson",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "button",
+ "struct": "ButtonContent"
+ }
+ ],
+ "SquareEventNotifiedSystemMessage": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "text",
+ "type": 11
+ }
+ ],
+ "NotifiedMessageType": {
+ "1": "MENTION",
+ "2": "REPLY"
+ },
+ "SquareChatFeatureControlState": {
+ "1": "DISABLED",
+ "2": "ENABLED"
+ },
+ "SquareChatFeature": [
+ {
+ "fid": 1,
+ "name": "controlState",
+ "struct": "SquareChatFeatureControlState"
+ },
+ {
+ "fid": 2,
+ "name": "booleanValue",
+ "struct": "BooleanState"
+ }
+ ],
+ "SquareChatFeatureSet": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 11,
+ "name": "disableUpdateMaxChatMemberCount",
+ "struct": "SquareChatFeature"
+ },
+ {
+ "fid": 12,
+ "name": "disableMarkAsReadEvent",
+ "struct": "SquareChatFeature"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareChatFeatureSet": [
+ {
+ "fid": 1,
+ "name": "squareChatFeatureSet",
+ "struct": "SquareChatFeatureSet"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareNoteStatus": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "noteStatus",
+ "struct": "NoteStatus"
+ }
+ ],
+ "SquareEventNotifiedUpdateSquareChatAnnouncement": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "announcementSeq",
+ "type": 10
+ }
+ ],
+ "SquareEventNotificationPostAnnouncement": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareProfileImageObsHash",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "actionUri",
+ "type": 11
+ }
+ ],
+ "NotificationPostType": {
+ "2": "POST_MENTION",
+ "3": "POST_LIKE",
+ "4": "POST_COMMENT",
+ "5": "POST_COMMENT_MENTION",
+ "6": "POST_COMMENT_LIKE",
+ "7": "POST_RELAY_JOIN"
+ },
+ "SquareEventNotificationPost": [
+ {
+ "fid": 1,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "notificationPostType",
+ "struct": "NotificationPostType"
+ },
+ {
+ "fid": 3,
+ "name": "thumbnailObsHash",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "text",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "actionUri",
+ "type": 11
+ }
+ ],
+ "SquareEventNotificationNewChatMember": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareChatName",
+ "type": 11
+ }
+ ],
+ "SquareEventNotificationMessageReaction": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "messageId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareChatName",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "reactorName",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "thumbnailObsHash",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "messageText",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "type",
+ "struct": "MessageReactionType"
+ }
+ ],
+ "UnsendMessageResponse": [
+ {
+ "fid": 1,
+ "name": "unsentMessage",
+ "struct": "SquareMessage"
+ }
+ ],
+ "GetSquareEmidResponse": [
+ {
+ "fid": 1,
+ "name": "squareEmid",
+ "type": 11
+ }
+ ],
+ "GetSquareMembersBySquareResponse": [
+ {
+ "fid": 1,
+ "name": "members",
+ "list": "SquareMember"
+ }
+ ],
+ "ManualRepairResponse": [
+ {
+ "fid": 1,
+ "name": "events",
+ "list": "SquareEvent"
+ },
+ {
+ "fid": 2,
+ "name": "syncToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "InviteIntoSquareChatResponse": [
+ {
+ "fid": 1,
+ "name": "inviteeMids",
+ "list": 11
+ }
+ ],
+ "ReactToMessageResponse": [
+ {
+ "fid": 1,
+ "name": "reaction",
+ "struct": "SquareMessageReaction"
+ },
+ {
+ "fid": 2,
+ "name": "status",
+ "struct": "SquareMessageReactionStatus"
+ }
+ ],
+ "GetSquareChatFeatureSetResponse": [
+ {
+ "fid": 1,
+ "name": "squareChatFeatureSet",
+ "struct": "SquareChatFeatureSet"
+ }
+ ],
+ "SyncSquareMembersResponse": [
+ {
+ "fid": 1,
+ "name": "updatedSquareMembers",
+ "list": "SquareMember"
+ }
+ ],
+ "SquareChatThreadState": {
+ "1": "ACTIVE",
+ "2": "INACTIVE"
+ },
+ "SquareChatThread": [
+ {
+ "fid": 1,
+ "name": "squareChatThreadMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareMid",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "messageId",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "state",
+ "struct": "SquareChatThreadState"
+ }
+ ],
+ "GetJoinedSquareChatThreadsResponse": [
+ {
+ "fid": 1,
+ "name": "squareChatThreads",
+ "list": "SquareChatThread"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "CreateSquareChatThreadResponse": [
+ {
+ "fid": 1,
+ "name": "squareChatThread",
+ "struct": "SquareChatThread"
+ }
+ ],
+ "SquareChatThreadeMembershipState": {
+ "1": "ACTIVATED",
+ "2": "DEACTIVATED"
+ },
+ "SquareChatThreadMember": [
+ {
+ "fid": 1,
+ "name": "squareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareChatThreadMid",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "membershipState",
+ "struct": "SquareChatThreadeMembershipState"
+ }
+ ],
+ "GetSquareChatThreadResponse": [
+ {
+ "fid": 1,
+ "name": "squareChatThread",
+ "struct": "SquareChatThread"
+ },
+ {
+ "fid": 2,
+ "name": "mySquareChatThreadMember",
+ "struct": "SquareChatThreadMember"
+ }
+ ],
+ "JoinSquareChatThreadResponse": [
+ {
+ "fid": 1,
+ "name": "squareChatThread",
+ "struct": "SquareChatThread"
+ }
+ ],
+ "AcceptSpeakersResponse": [],
+ "AcceptToChangeRoleResponse": [],
+ "AcceptToListenResponse": [],
+ "AcceptToSpeakResponse": [],
+ "CancelToSpeakResponse": [],
+ "EndLiveTalkResponse": [],
+ "LiveTalkEventType": {
+ "1": "NOTIFIED_UPDATE_LIVE_TALK_TITLE",
+ "2": "NOTIFIED_UPDATE_LIVE_TALK_SPEAKER_SETTING",
+ "3": "NOTIFIED_UPDATE_LIVE_TALK_ANNOUNCEMENT",
+ "4": "NOTIFIED_UPDATE_SQUARE_MEMBER_ROLE",
+ "5": "NOTIFIED_UPDATE_LIVE_TALK_ALLOW_REQUEST_TO_SPEAK"
+ },
+ "LiveTalkEventNotifiedUpdateLiveTalkTitle": [
+ {
+ "fid": 1,
+ "name": "title",
+ "type": 11
+ }
+ ],
+ "LiveTalkSpeakerSetting": {
+ "1": "LIMITED_SPEAKERS",
+ "2": "ALL_AS_SPEAKERS"
+ },
+ "LiveTalkEventNotifiedUpdateLiveTalkSpeakerSetting": [
+ {
+ "fid": 1,
+ "name": "speakerSetting",
+ "struct": "LiveTalkSpeakerSetting"
+ }
+ ],
+ "LiveTalkEventNotifiedUpdateLiveTalkAnnouncement": [
+ {
+ "fid": 1,
+ "name": "announcement",
+ "type": 11
+ }
+ ],
+ "LiveTalkEventNotifiedUpdateSquareMemberRole": [
+ {
+ "fid": 1,
+ "name": "squareMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "role",
+ "struct": "SquareMemberRole"
+ }
+ ],
+ "LiveTalkEventNotifiedUpdateLiveTalkAllowRequestToSpeak": [
+ {
+ "fid": 1,
+ "name": "allowRequestToSpeak",
+ "type": 2
+ }
+ ],
+ "LiveTalkEventPayload": [
+ {
+ "fid": 1,
+ "name": "notifiedUpdateLiveTalkTitle",
+ "struct": "LiveTalkEventNotifiedUpdateLiveTalkTitle"
+ },
+ {
+ "fid": 2,
+ "name": "notifiedUpdateLiveTalkSpeakerSetting",
+ "struct": "LiveTalkEventNotifiedUpdateLiveTalkSpeakerSetting"
+ },
+ {
+ "fid": 3,
+ "name": "notifiedUpdateLiveTalkAnnouncement",
+ "struct": "LiveTalkEventNotifiedUpdateLiveTalkAnnouncement"
+ },
+ {
+ "fid": 4,
+ "name": "notifiedUpdateSquareMemberRole",
+ "struct": "LiveTalkEventNotifiedUpdateSquareMemberRole"
+ },
+ {
+ "fid": 5,
+ "name": "notifiedUpdateLiveTalkAllowRequestToSpeak",
+ "struct": "LiveTalkEventNotifiedUpdateLiveTalkAllowRequestToSpeak"
+ }
+ ],
+ "LiveTalkEvent": [
+ {
+ "fid": 1,
+ "name": "type",
+ "struct": "LiveTalkEventType"
+ },
+ {
+ "fid": 2,
+ "name": "payload",
+ "struct": "LiveTalkEventPayload"
+ },
+ {
+ "fid": 3,
+ "name": "syncToken",
+ "type": 11
+ }
+ ],
+ "FetchLiveTalkEventsResponse": [
+ {
+ "fid": 1,
+ "name": "events",
+ "list": "LiveTalkEvent"
+ },
+ {
+ "fid": 2,
+ "name": "syncToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "hasMore",
+ "type": 2
+ }
+ ],
+ "LiveTalkType": {
+ "1": "PUBLIC",
+ "2": "PRIVATE"
+ },
+ "LiveTalk": [
+ {
+ "fid": 1,
+ "name": "squareChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "sessionId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "title",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "type",
+ "struct": "LiveTalkType"
+ },
+ {
+ "fid": 5,
+ "name": "speakerSetting",
+ "struct": "LiveTalkSpeakerSetting"
+ },
+ {
+ "fid": 6,
+ "name": "allowRequestToSpeak",
+ "type": 2
+ },
+ {
+ "fid": 7,
+ "name": "announcement",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "participantCount",
+ "type": 8
+ },
+ {
+ "fid": 9,
+ "name": "revision",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "startedAt",
+ "type": 10
+ }
+ ],
+ "FindLiveTalkByInvitationTicketResponse": [
+ {
+ "fid": 1,
+ "name": "chatInvitationTicket",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "liveTalk",
+ "struct": "LiveTalk"
+ },
+ {
+ "fid": 3,
+ "name": "chat",
+ "struct": "SquareChat"
+ },
+ {
+ "fid": 4,
+ "name": "squareMember",
+ "struct": "SquareMember"
+ },
+ {
+ "fid": 5,
+ "name": "chatMembershipState",
+ "struct": "SquareChatMembershipState"
+ }
+ ],
+ "ForceEndLiveTalkResponse": [],
+ "LiveTalkSpeaker": [
+ {
+ "fid": 1,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "profileImageObsHash",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "role",
+ "struct": "SquareMemberRole"
+ }
+ ],
+ "GetLiveTalkInfoForNonMemberResponse": [
+ {
+ "fid": 1,
+ "name": "chatName",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "liveTalk",
+ "struct": "LiveTalk"
+ },
+ {
+ "fid": 3,
+ "name": "speakers",
+ "list": "LiveTalkSpeaker"
+ },
+ {
+ "fid": 4,
+ "name": "chatInvitationUrl",
+ "type": 11
+ }
+ ],
+ "GetLiveTalkInvitationUrlResponse": [
+ {
+ "fid": 1,
+ "name": "invitationUrl",
+ "type": 11
+ }
+ ],
+ "GetLiveTalkSpeakersForNonMemberResponse": [
+ {
+ "fid": 1,
+ "name": "speakers",
+ "list": "LiveTalkSpeaker"
+ }
+ ],
+ "GetSquareInfoByChatMidResponse": [
+ {
+ "fid": 1,
+ "name": "defaultChatMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "squareName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "squareDesc",
+ "type": 11
+ }
+ ],
+ "InviteToChangeRoleResponse": [],
+ "InviteToListenResponse": [],
+ "InviteToLiveTalkResponse": [],
+ "InviteToSpeakResponse": [
+ {
+ "fid": 1,
+ "name": "inviteRequestId",
+ "type": 11
+ }
+ ],
+ "JoinLiveTalkResponse": [
+ {
+ "fid": 1,
+ "name": "hostMemberMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "memberSessionId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "token",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "proto",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "voipAddress",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "voipAddress6",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "voipUdpPort",
+ "type": 8
+ },
+ {
+ "fid": 8,
+ "name": "voipTcpPort",
+ "type": 8
+ },
+ {
+ "fid": 9,
+ "name": "fromZone",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "commParam",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "orionAddress",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "polarisAddress",
+ "type": 11
+ },
+ {
+ "fid": 13,
+ "name": "polarisZone",
+ "type": 11
+ },
+ {
+ "fid": 14,
+ "name": "polarisUdpPort",
+ "type": 8
+ }
+ ],
+ "KickOutLiveTalkParticipantsResponse": [],
+ "RejectSpeakersResponse": [],
+ "RejectToSpeakResponse": [],
+ "ReportLiveTalkResponse": [],
+ "ReportLiveTalkSpeakerResponse": [],
+ "RequestToListenResponse": [],
+ "RequestToSpeakResponse": [],
+ "StartLiveTalkResponse": [
+ {
+ "fid": 1,
+ "name": "liveTalk",
+ "struct": "LiveTalk"
+ }
+ ],
+ "UpdateLiveTalkAttrsResponse": [],
+ "AcquireLiveTalkResponse": [
+ {
+ "fid": 1,
+ "name": "liveTalk",
+ "struct": "LiveTalk"
+ }
+ ],
+ "CreateQrCodeForSecureResponse": [
+ {
+ "fid": 1,
+ "name": "callbackUrl",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "longPollingMaxCount",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "longPollingIntervalSec",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "nonce",
+ "type": 11
+ }
+ ],
+ "RefreshApiRetryPolicy": [
+ {
+ "fid": 1,
+ "name": "initialDelayInMillis",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "maxDelayInMillis",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "multiplier",
+ "type": 4
+ },
+ {
+ "fid": 4,
+ "name": "jitterRate",
+ "type": 4
+ }
+ ],
+ "TokenV3IssueResult": [
+ {
+ "fid": 1,
+ "name": "accessToken",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "refreshToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "durationUntilRefreshInSec",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "refreshApiRetryPolicy",
+ "struct": "RefreshApiRetryPolicy"
+ },
+ {
+ "fid": 5,
+ "name": "loginSessionId",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "tokenIssueTimeEpochSec",
+ "type": 10
+ }
+ ],
+ "QrCodeLoginV2Response": [
+ {
+ "fid": 1,
+ "name": "certificate",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "accessTokenV2",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "tokenV3IssueResult",
+ "struct": "TokenV3IssueResult"
+ },
+ {
+ "fid": 4,
+ "name": "mid",
+ "type": 11
+ },
+ {
+ "fid": 9,
+ "name": "lastBindTimestamp",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "metaData",
+ "map": 11
+ }
+ ],
+ "UserType": {
+ "1": "USER",
+ "2": "BOT"
+ },
+ "RichString": [
+ {
+ "fid": 1,
+ "name": "content",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "meta",
+ "map": 11
+ }
+ ],
+ "TargetProfileDetail": [
+ {
+ "fid": 1,
+ "name": "snapshotTimeMillis",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "profileName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "picturePath",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "statusMessage",
+ "struct": "RichString"
+ },
+ {
+ "fid": 5,
+ "name": "musicProfile",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "videoProfile",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "avatarProfile",
+ "struct": "AvatarProfile"
+ },
+ {
+ "fid": 8,
+ "name": "pictureSource",
+ "struct": "PictureSource"
+ },
+ {
+ "fid": 9,
+ "name": "pictureStatus",
+ "type": 11
+ }
+ ],
+ "UserFriendDetail": [
+ {
+ "fid": 1,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "overriddenName",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "favoriteTime",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "hidden",
+ "type": 2
+ },
+ {
+ "fid": 7,
+ "name": "ringtone",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "ringbackTone",
+ "type": 11
+ }
+ ],
+ "BotFriendDetail": [
+ {
+ "fid": 1,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "favoriteTime",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "hidden",
+ "type": 2
+ }
+ ],
+ "NotFriend": [],
+ "FriendDetail": [
+ {
+ "fid": 1,
+ "name": "user",
+ "struct": "UserFriendDetail"
+ },
+ {
+ "fid": 2,
+ "name": "bot",
+ "struct": "BotFriendDetail"
+ },
+ {
+ "fid": 3,
+ "name": "notFriend",
+ "struct": "NotFriend"
+ }
+ ],
+ "UserBlockDetail": [
+ {
+ "fid": 3,
+ "name": "deletedFromBlockList",
+ "type": 2
+ }
+ ],
+ "BotBlockDetail": [
+ {
+ "fid": 3,
+ "name": "deletedFromBlockList",
+ "type": 2
+ }
+ ],
+ "NotBlocked": [],
+ "BlockDetail": [
+ {
+ "fid": 1,
+ "name": "user",
+ "struct": "UserBlockDetail"
+ },
+ {
+ "fid": 2,
+ "name": "bot",
+ "struct": "BotBlockDetail"
+ },
+ {
+ "fid": 3,
+ "name": "notBlocked",
+ "struct": "NotBlocked"
+ }
+ ],
+ "RecommendationReasonSharedChat": [
+ {
+ "fid": 1,
+ "name": "chatMid",
+ "type": 11
+ }
+ ],
+ "RecommendationReasonReverseFriendByUserId": [],
+ "RecommendationReasonReverseFriendByQRCode": [],
+ "RecommendationReasonReverseFriendByPhone": [],
+ "RecommendationReason": [
+ {
+ "fid": 1,
+ "name": "sharedChat",
+ "struct": "RecommendationReasonSharedChat"
+ },
+ {
+ "fid": 2,
+ "name": "reverseFriendByUserId",
+ "struct": "RecommendationReasonReverseFriendByUserId"
+ },
+ {
+ "fid": 3,
+ "name": "reverseFriendByQrCode",
+ "struct": "RecommendationReasonReverseFriendByQRCode"
+ },
+ {
+ "fid": 4,
+ "name": "reverseFriendByPhone",
+ "struct": "RecommendationReasonReverseFriendByPhone"
+ }
+ ],
+ "Recommended": [
+ {
+ "fid": 1,
+ "name": "createdTime",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "reasons",
+ "list": "RecommendationReason"
+ },
+ {
+ "fid": 4,
+ "name": "hidden",
+ "type": 2
+ }
+ ],
+ "NotRecommended": [],
+ "RecommendationDetail": [
+ {
+ "fid": 1,
+ "name": "recommendationDetail",
+ "struct": "Recommended"
+ },
+ {
+ "fid": 2,
+ "name": "notRecommended",
+ "struct": "NotRecommended"
+ }
+ ],
+ "NotificationSetting": [
+ {
+ "fid": 1,
+ "name": "mute",
+ "type": 2
+ }
+ ],
+ "NotificationSettingEntry": [
+ {
+ "fid": 1,
+ "name": "notificationSetting",
+ "struct": "NotificationSetting"
+ }
+ ],
+ "GetContactV3Response": [
+ {
+ "fid": 1,
+ "name": "targetUserMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "userType",
+ "struct": "UserType"
+ },
+ {
+ "fid": 3,
+ "name": "targetProfileDetail",
+ "struct": "TargetProfileDetail"
+ },
+ {
+ "fid": 4,
+ "name": "friendDetail",
+ "struct": "FriendDetail"
+ },
+ {
+ "fid": 5,
+ "name": "blockDetail",
+ "struct": "BlockDetail"
+ },
+ {
+ "fid": 6,
+ "name": "recommendationDetail",
+ "struct": "RecommendationDetail"
+ },
+ {
+ "fid": 7,
+ "name": "notificationSettingEntry",
+ "struct": "NotificationSettingEntry"
+ }
+ ],
+ "GetContactsV3Response": [
+ {
+ "fid": 1,
+ "name": "responses",
+ "list": "GetContactV3Response"
+ }
+ ],
+ "AddFriendByMidResponse": [],
+ "GetContactCalendarEventResponse": [
+ {
+ "fid": 1,
+ "name": "targetUserMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "userType",
+ "struct": "UserType"
+ },
+ {
+ "fid": 3,
+ "name": "contactCalendarEvents",
+ "struct": "ContactCalendarEvents"
+ },
+ {
+ "fid": 4,
+ "name": "snapshotTimeMillis",
+ "type": 10
+ }
+ ],
+ "GetContactCalendarEventsResponse": [
+ {
+ "fid": 1,
+ "name": "responses",
+ "list": "GetContactCalendarEventResponse"
+ }
+ ],
+ "ProductType": {
+ "1": "STICKER",
+ "2": "THEME",
+ "3": "STICON"
+ },
+ "ThemeResourceType": {
+ "1": "STATIC",
+ "2": "ANIMATION"
+ },
+ "SticonResourceType": {
+ "1": "STATIC",
+ "2": "ANIMATION"
+ },
+ "ImageTextStatus": {
+ "0": "OK",
+ "1": "PRODUCT_UNSUPPORTED",
+ "2": "TEXT_NOT_SPECIFIED",
+ "3": "TEXT_STYLE_UNAVAILABLE",
+ "4": "CHARACTER_COUNT_LIMIT_EXCEEDED",
+ "5": "CONTAINS_INVALID_WORD"
+ },
+ "SubType": {
+ "0": "GENERAL",
+ "1": "CREATORS",
+ "2": "STICON"
+ },
+ "StickerSize": {
+ "0": "NORMAL",
+ "1": "BIG"
+ },
+ "PopupLayer": {
+ "0": "FOREGROUND",
+ "1": "BACKGROUND"
+ },
+ "ProductSalesState": {
+ "0": "ON_SALE",
+ "1": "OUTDATED_VERSION",
+ "2": "NOT_ON_SALE"
+ },
+ "PromotionType": {
+ "0": "NONE",
+ "1": "CARRIER",
+ "2": "BUDDY",
+ "3": "INSTALL",
+ "4": "MISSION",
+ "5": "MUSTBUY"
+ },
+ "PromotionMissionType": {
+ "1": "DEFAULT",
+ "2": "VIEW_VIDEO"
+ },
+ "BrandType": {
+ "1": "PREMIUM",
+ "2": "VERIFIED",
+ "3": "UNVERIFIED"
+ },
+ "EditorsPickShowcaseType": {
+ "0": "STATIC",
+ "1": "POPULAR",
+ "2": "NEW_RELEASE"
+ },
+ "Locale": [
+ {
+ "fid": 1,
+ "name": "language",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "country",
+ "type": 11
+ }
+ ],
+ "GetProductRequest": [
+ {
+ "fid": 1,
+ "name": "productType",
+ "struct": "ProductType"
+ },
+ {
+ "fid": 2,
+ "name": "productId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "carrierCode",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "saveBrowsingHistory",
+ "type": 2
+ }
+ ],
+ "GetProductResponse": [
+ {
+ "fid": 1,
+ "name": "productDetail",
+ "struct": "ProductDetail"
+ }
+ ],
+ "ProductDetail": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "billingItemId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "type",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "subtype",
+ "struct": "SubType"
+ },
+ {
+ "fid": 5,
+ "name": "billingCpId",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "author",
+ "type": 11
+ },
+ {
+ "fid": 13,
+ "name": "details",
+ "type": 11
+ },
+ {
+ "fid": 14,
+ "name": "copyright",
+ "type": 11
+ },
+ {
+ "fid": 15,
+ "name": "notice",
+ "type": 11
+ },
+ {
+ "fid": 16,
+ "name": "promotionInfo",
+ "struct": "PromotionInfo"
+ },
+ {
+ "fid": 21,
+ "name": "latestVersion",
+ "type": 10
+ },
+ {
+ "fid": 22,
+ "name": "latestVersionString",
+ "type": 11
+ },
+ {
+ "fid": 23,
+ "name": "version",
+ "type": 10
+ },
+ {
+ "fid": 24,
+ "name": "versionString",
+ "type": 11
+ },
+ {
+ "fid": 25,
+ "name": "applicationVersionRange",
+ "struct": "ApplicationVersionRange"
+ },
+ {
+ "fid": 31,
+ "name": "owned",
+ "type": 2
+ },
+ {
+ "fid": 32,
+ "name": "grantedByDefault",
+ "type": 2
+ },
+ {
+ "fid": 41,
+ "name": "validFor",
+ "type": 8
+ },
+ {
+ "fid": 42,
+ "name": "validUntil",
+ "type": 10
+ },
+ {
+ "fid": 51,
+ "name": "onSale",
+ "type": 2
+ },
+ {
+ "fid": 52,
+ "name": "salesFlag",
+ "set": 11
+ },
+ {
+ "fid": 53,
+ "name": "availableForPresent",
+ "type": 2
+ },
+ {
+ "fid": 54,
+ "name": "availableForMyself",
+ "type": 2
+ },
+ {
+ "fid": 61,
+ "name": "priceTier",
+ "type": 8
+ },
+ {
+ "fid": 62,
+ "name": "price",
+ "struct": "Price"
+ },
+ {
+ "fid": 63,
+ "name": "priceInLineCoin",
+ "type": 11
+ },
+ {
+ "fid": 64,
+ "name": "localizedPrice",
+ "struct": "Price"
+ },
+ {
+ "fid": 91,
+ "name": "images"
+ },
+ {
+ "fid": 92,
+ "name": "attributes",
+ "map": 11
+ },
+ {
+ "fid": 93,
+ "name": "authorId",
+ "type": 11
+ },
+ {
+ "fid": 94,
+ "name": "stickerResourceType",
+ "struct": "StickerResourceType"
+ },
+ {
+ "fid": 95,
+ "name": "productProperty",
+ "struct": "ProductProperty"
+ },
+ {
+ "fid": 96,
+ "name": "productSalesState",
+ "struct": "ProductSalesState"
+ },
+ {
+ "fid": 97,
+ "name": "installedTime",
+ "type": 10
+ },
+ {
+ "fid": 101,
+ "name": "wishProperty",
+ "struct": "ProductWishProperty"
+ },
+ {
+ "fid": 102,
+ "name": "subscriptionProperty",
+ "struct": "ProductSubscriptionProperty"
+ },
+ {
+ "fid": 103,
+ "name": "productPromotionProperty",
+ "struct": "ProductPromotionProperty"
+ },
+ {
+ "fid": 104,
+ "name": "availableInCountry",
+ "type": 2
+ },
+ {
+ "fid": 105,
+ "name": "editorsPickBanners",
+ "list": "EditorsPickBannerForClient"
+ },
+ {
+ "fid": 106,
+ "name": "ableToBeGivenAsPresent",
+ "type": 2
+ },
+ {
+ "fid": 107,
+ "name": "madeWithStickerMaker",
+ "type": 2
+ },
+ {
+ "fid": 108,
+ "name": "customDownloadButtonLabel",
+ "type": 11
+ }
+ ],
+ "ApplicationVersionRange": [
+ {
+ "fid": 1,
+ "name": "lowerBound",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "lowerBoundInclusive",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "upperBound",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "upperBoundInclusive",
+ "type": 2
+ }
+ ],
+ "EditorsPickBannerForClient": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "endPageBannerImageUrl",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "defaulteditorsPickShowcaseType",
+ "struct": "EditorsPickShowcaseType"
+ },
+ {
+ "fid": 4,
+ "name": "showNewBadge",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "description",
+ "type": 11
+ }
+ ],
+ "Price": [
+ {
+ "fid": 1,
+ "name": "currency",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "amount",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "priceString",
+ "type": 11
+ }
+ ],
+ "ProductProperty": [
+ {
+ "fid": 1,
+ "name": "stickerProperty",
+ "struct": "StickerProperty"
+ },
+ {
+ "fid": 2,
+ "name": "themeProperty",
+ "struct": "ThemeProperty"
+ },
+ {
+ "fid": 3,
+ "name": "sticonProperty",
+ "struct": "SticonProperty"
+ }
+ ],
+ "StickerProperty": [
+ {
+ "fid": 1,
+ "name": "hasAnimation",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "hasSound",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "hasPopup",
+ "type": 2
+ },
+ {
+ "fid": 4,
+ "name": "stickerResourceType",
+ "struct": "StickerResourceType"
+ },
+ {
+ "fid": 5,
+ "name": "stickerOptions",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "compactStickerOptions",
+ "type": 8
+ },
+ {
+ "fid": 7,
+ "name": "stickerHash",
+ "type": 11
+ },
+ {
+ "fid": 9,
+ "name": "stickerIds",
+ "list": 11
+ },
+ {
+ "fid": 10,
+ "name": "nameTextProperty",
+ "struct": "ImageTextProperty"
+ },
+ {
+ "fid": 11,
+ "name": "availableForPhotoEdit",
+ "type": 2
+ },
+ {
+ "fid": 12,
+ "name": "stickerDefaultTexts",
+ "map": 11
+ },
+ {
+ "fid": 13,
+ "name": "stickerSize",
+ "struct": "StickerSize"
+ },
+ {
+ "fid": 14,
+ "name": "popupLayer",
+ "struct": "PopupLayer"
+ },
+ {
+ "fid": 15,
+ "name": "cpdProduct",
+ "type": 2
+ },
+ {
+ "fid": 16,
+ "name": "availableForCombinationSticker",
+ "type": 2
+ }
+ ],
+ "ThemeProperty": [
+ {
+ "fid": 1,
+ "name": "thumbnail",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "themeResourceType",
+ "struct": "ThemeResourceType"
+ }
+ ],
+ "SticonProperty": [
+ {
+ "fid": 2,
+ "name": "sticonIds",
+ "list": 11
+ },
+ {
+ "fid": 3,
+ "name": "availableForPhotoEdit",
+ "type": 2
+ },
+ {
+ "fid": 4,
+ "name": "sticonResourceType",
+ "struct": "SticonResourceType"
+ },
+ {
+ "fid": 5,
+ "name": "endPageMainImages"
+ }
+ ],
+ "ImageTextProperty": [
+ {
+ "fid": 1,
+ "name": "status",
+ "struct": "ImageTextStatus"
+ },
+ {
+ "fid": 2,
+ "name": "plaintext",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "nameTextMaxCharacterCount",
+ "type": 8
+ },
+ {
+ "fid": 4,
+ "name": "encryptedText",
+ "type": 11
+ }
+ ],
+ "LpPromotionProperty": [
+ {
+ "fid": 1,
+ "name": "landingPageUrl",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "label",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "buttonLabel",
+ "type": 11
+ }
+ ],
+ "ProductWishProperty": [
+ {
+ "fid": 1,
+ "name": "totalCount",
+ "type": 10
+ }
+ ],
+ "ProductSubscriptionProperty": [
+ {
+ "fid": 1,
+ "name": "availableForSubscribe",
+ "type": 2
+ },
+ {
+ "fid": 2,
+ "name": "subscriptionAvailability",
+ "type": 8
+ }
+ ],
+ "ProductPromotionProperty": [
+ {
+ "fid": 1,
+ "name": "lpPromotionProperty",
+ "struct": "LpPromotionProperty"
+ }
+ ],
+ "PromotionDetail": [
+ {
+ "fid": 1,
+ "name": "promotionBuddyInfo",
+ "struct": "PromotionBuddyInfo"
+ },
+ {
+ "fid": 2,
+ "name": "promotionInstallInfo",
+ "struct": "PromotionInstallInfo"
+ },
+ {
+ "fid": 3,
+ "name": "promotionMissionInfo",
+ "struct": "PromotionMissionInfo"
+ }
+ ],
+ "PromotionInfo": [
+ {
+ "fid": 1,
+ "name": "promotionType",
+ "struct": "PromotionType"
+ },
+ {
+ "fid": 2,
+ "name": "promotionDetail",
+ "struct": "PromotionDetail"
+ },
+ {
+ "fid": 51,
+ "name": "buddyInfo",
+ "struct": "PromotionBuddyInfo"
+ }
+ ],
+ "PromotionBuddyInfo": [
+ {
+ "fid": 1,
+ "name": "buddyMid",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "promotionBuddyDetail",
+ "struct": "PromotionBuddyDetail"
+ },
+ {
+ "fid": 3,
+ "name": "showBanner",
+ "type": 2
+ }
+ ],
+ "PromotionInstallInfo": [
+ {
+ "fid": 1,
+ "name": "downloadUrl",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "customUrlSchema",
+ "type": 11
+ }
+ ],
+ "PromotionMissionInfo": [
+ {
+ "fid": 1,
+ "name": "promotionMissionType",
+ "struct": "PromotionMissionType"
+ },
+ {
+ "fid": 2,
+ "name": "missionCompleted",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "downloadUrl",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "customUrlSchema",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "oaMid",
+ "type": 11
+ }
+ ],
+ "PromotionBuddyDetail": [
+ {
+ "fid": 1,
+ "name": "searchId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "contactStatus",
+ "struct": "ContactStatus"
+ },
+ {
+ "fid": 3,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "pictureUrl",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "statusMessage",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "brandType",
+ "struct": "BrandType"
+ }
+ ],
+ "PurchaseOrder": [
+ {
+ "fid": 1,
+ "name": "shopId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "productId",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "recipientMid",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "price",
+ "struct": "Price"
+ },
+ {
+ "fid": 12,
+ "name": "enableLinePointAutoExchange",
+ "type": 2
+ },
+ {
+ "fid": 21,
+ "name": "locale",
+ "struct": "Locale"
+ },
+ {
+ "fid": 31,
+ "name": "presentAttributes",
+ "map": 11
+ }
+ ],
+ "PurchaseOrderResponse": [
+ {
+ "fid": 1,
+ "name": "orderId",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "attributes",
+ "map": 11
+ },
+ {
+ "fid": 12,
+ "name": "billingConfirmUrl",
+ "type": 11
+ }
+ ],
+ "PurchaseRecordList": [
+ {
+ "fid": 1,
+ "name": "purchaseRecords",
+ "list": "PurchaseRecord"
+ },
+ {
+ "fid": 2,
+ "name": "offset",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 8
+ }
+ ],
+ "PurchaseRecord": [
+ {
+ "fid": 1,
+ "name": "productDetail",
+ "struct": "ProductDetail"
+ },
+ {
+ "fid": 11,
+ "name": "purchasedTime",
+ "type": 10
+ },
+ {
+ "fid": 21,
+ "name": "giver",
+ "type": 11
+ },
+ {
+ "fid": 22,
+ "name": "recipient",
+ "type": 11
+ },
+ {
+ "fid": 31,
+ "name": "purchasedPrice",
+ "struct": "Price"
+ }
+ ],
+ "DetailedProductList": [
+ {
+ "fid": 1,
+ "name": "productList",
+ "list": "ProductDetail"
+ },
+ {
+ "fid": 2,
+ "name": "offset",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 8
+ }
+ ],
+ "CreateCombinationStickerResponse": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ }
+ ],
+ "ProductAvailability": {
+ "0": "PURCHASE_ONLY",
+ "1": "PURCHASE_OR_SUBSCRIPTION",
+ "2": "SUBSCRIPTION_ONLY"
+ },
+ "ProductSearchSummary": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "type",
+ "struct": "ProductType"
+ },
+ {
+ "fid": 3,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "author",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "promotionInfo",
+ "struct": "PromotionInfo"
+ },
+ {
+ "fid": 6,
+ "name": "version",
+ "type": 10
+ },
+ {
+ "fid": 7,
+ "name": "newFlag",
+ "type": 2
+ },
+ {
+ "fid": 8,
+ "name": "priceTier",
+ "type": 8
+ },
+ {
+ "fid": 9,
+ "name": "priceInLineCoin",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "property",
+ "struct": "ProductProperty"
+ },
+ {
+ "fid": 11,
+ "name": "subType",
+ "struct": "SubType"
+ },
+ {
+ "fid": 12,
+ "name": "onSale",
+ "type": 2
+ },
+ {
+ "fid": 13,
+ "name": "availableForPresent",
+ "type": 2
+ },
+ {
+ "fid": 14,
+ "name": "availableForPurchase",
+ "type": 2
+ },
+ {
+ "fid": 15,
+ "name": "validDays",
+ "type": 8
+ },
+ {
+ "fid": 16,
+ "name": "authorId",
+ "type": 11
+ },
+ {
+ "fid": 17,
+ "name": "bargainFlag",
+ "type": 2
+ },
+ {
+ "fid": 18,
+ "name": "copyright",
+ "type": 11
+ },
+ {
+ "fid": 19,
+ "name": "availability",
+ "struct": "ProductAvailability"
+ },
+ {
+ "fid": 20,
+ "name": "interactionEventParameter",
+ "type": 11
+ },
+ {
+ "fid": 21,
+ "name": "editorsPickIds",
+ "set": 10
+ }
+ ],
+ "DemographicGenderType": {
+ "0": "ALL",
+ "1": "MALE",
+ "2": "FEMALE"
+ },
+ "DemographicAgeType": {
+ "0": "ALL",
+ "1": "AGE_0_19",
+ "2": "AGE_20_29",
+ "3": "AGE_30_39",
+ "4": "AGE_40_INF",
+ "5": "AGE_40_49",
+ "6": "AGE_50_INF"
+ },
+ "ShowcaseType": {
+ "0": "POPULAR",
+ "1": "NEW_RELEASE",
+ "2": "EVENT",
+ "3": "RECOMMENDED",
+ "4": "POPULAR_WEEKLY",
+ "5": "POPULAR_MONTHLY",
+ "6": "POPULAR_RECENTLY_PUBLISHED",
+ "7": "BUDDY",
+ "8": "EXTRA_EVENT",
+ "9": "BROWSING_HISTORY",
+ "10": "POPULAR_TOTAL_SALES",
+ "11": "NEW_SUBSCRIPTION",
+ "12": "POPULAR_SUBSCRIPTION_30D",
+ "13": "CPD_STICKER",
+ "14": "POPULAR_WITH_FREE"
+ },
+ "DemographicType": [
+ {
+ "fid": 1,
+ "name": "demographicGenderType",
+ "struct": "DemographicGenderType"
+ },
+ {
+ "fid": 2,
+ "name": "demographicAgeType",
+ "struct": "DemographicAgeType"
+ },
+ {
+ "fid": 3,
+ "name": "defaultOrder",
+ "type": 2
+ }
+ ],
+ "ShowcaseV3": [
+ {
+ "fid": 1,
+ "name": "productList",
+ "list": "ProductSearchSummary"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "showcaseType",
+ "struct": "ShowcaseType"
+ },
+ {
+ "fid": 5,
+ "name": "productType",
+ "struct": "ProductType"
+ },
+ {
+ "fid": 6,
+ "name": "subType",
+ "struct": "SubType"
+ },
+ {
+ "fid": 7,
+ "name": "demographicType",
+ "struct": "DemographicType"
+ }
+ ],
+ "StickerSummary": [
+ {
+ "fid": 1,
+ "name": "stickerIdRanges",
+ "list": "StickerIdRange"
+ },
+ {
+ "fid": 2,
+ "name": "suggestVersion",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "stickerHash",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "defaultDisplayOnKeyboard",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "stickerResourceType",
+ "struct": "StickerResourceType"
+ },
+ {
+ "fid": 6,
+ "name": "nameTextProperty",
+ "struct": "ImageTextProperty"
+ },
+ {
+ "fid": 7,
+ "name": "availableForPhotoEdit",
+ "type": 2
+ },
+ {
+ "fid": 8,
+ "name": "popupLayer",
+ "struct": "PopupLayer"
+ },
+ {
+ "fid": 9,
+ "name": "stickerSize",
+ "struct": "StickerSize"
+ },
+ {
+ "fid": 10,
+ "name": "availableForCombinationSticker",
+ "type": 2
+ }
+ ],
+ "ThemeSummary": [
+ {
+ "fid": 1,
+ "name": "imagePath",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "version",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "versionString",
+ "type": 11
+ }
+ ],
+ "SticonSummary": [
+ {
+ "fid": 1,
+ "name": "suggestVersion",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "availableForPhotoEdit",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "sticonResourceType",
+ "struct": "SticonResourceType"
+ }
+ ],
+ "ProductTypeSummary": [
+ {
+ "fid": 1,
+ "name": "stickerSummary",
+ "struct": "StickerSummary"
+ },
+ {
+ "fid": 2,
+ "name": "themeSummary",
+ "struct": "ThemeSummary"
+ },
+ {
+ "fid": 3,
+ "name": "sticonSummary",
+ "struct": "SticonSummary"
+ }
+ ],
+ "ProductSummary": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 21,
+ "name": "latestVersion",
+ "type": 10
+ },
+ {
+ "fid": 25,
+ "name": "applicationVersionRange",
+ "struct": "ApplicationVersionRange"
+ },
+ {
+ "fid": 32,
+ "name": "grantedByDefault",
+ "type": 2
+ },
+ {
+ "fid": 92,
+ "name": "attributes",
+ "map": 11
+ },
+ {
+ "fid": 93,
+ "name": "productTypeSummary",
+ "struct": "ProductTypeSummary"
+ },
+ {
+ "fid": 94,
+ "name": "validUntil",
+ "type": 10
+ },
+ {
+ "fid": 95,
+ "name": "validFor",
+ "type": 8
+ },
+ {
+ "fid": 96,
+ "name": "installedTime",
+ "type": 10
+ },
+ {
+ "fid": 97,
+ "name": "availability",
+ "struct": "ProductAvailability"
+ },
+ {
+ "fid": 98,
+ "name": "authorId",
+ "type": 11
+ },
+ {
+ "fid": 99,
+ "name": "canAutoDownload",
+ "type": 2
+ },
+ {
+ "fid": 100,
+ "name": "promotionInfo",
+ "struct": "PromotionInfo"
+ }
+ ],
+ "ProductSummaryList": [
+ {
+ "fid": 1,
+ "name": "productList",
+ "list": "ProductSummary"
+ },
+ {
+ "fid": 2,
+ "name": "offset",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 8
+ }
+ ],
+ "ProductValidationScheme": [
+ {
+ "fid": 10,
+ "name": "key",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "offset",
+ "type": 10
+ },
+ {
+ "fid": 12,
+ "name": "size",
+ "type": 10
+ }
+ ],
+ "ProductValidationResult": [
+ {
+ "fid": 1,
+ "name": "validated",
+ "type": 2
+ }
+ ],
+ "ShopUpdates": [
+ {
+ "fid": 1,
+ "name": "shopId",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "latestUpdateTime",
+ "type": 10
+ }
+ ],
+ "SearchProductsV2Response": [
+ {
+ "fid": 1,
+ "name": "results",
+ "list": "ProductSearchSummary"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 10
+ }
+ ],
+ "EditorsPickBanner": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "imageUrl",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "homeBannerImageUrl",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "showcaseBannerImageUrl",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "enableEditorsPickShowcaseTypes",
+ "list": "EditorsPickShowcaseType"
+ },
+ {
+ "fid": 6,
+ "name": "defaulteditorsPickShowcaseType",
+ "struct": "EditorsPickShowcaseType"
+ },
+ {
+ "fid": 7,
+ "name": "homeBannerV2ImageUrl",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 9,
+ "name": "containsProducts",
+ "type": 2
+ },
+ {
+ "fid": 10,
+ "name": "displayPeriodBegin",
+ "type": 10
+ },
+ {
+ "fid": 11,
+ "name": "description",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "showNewBadge",
+ "type": 2
+ }
+ ],
+ "AuthorForShowcase": [
+ {
+ "fid": 1,
+ "name": "authorId",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "productList",
+ "list": "ProductSearchSummary"
+ },
+ {
+ "fid": 3,
+ "name": "productTotalSize",
+ "type": 10
+ }
+ ],
+ "ImageSearchSummary": [
+ {
+ "fid": 1,
+ "name": "imageId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "product",
+ "struct": "ProductSearchSummary"
+ }
+ ],
+ "KeywordImageList": [
+ {
+ "fid": 1,
+ "name": "tagId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "keyword",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "imageList",
+ "list": "ImageSearchSummary"
+ }
+ ],
+ "URLItem": [
+ {
+ "fid": 1,
+ "name": "title",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "imageUrl",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "url",
+ "type": 11
+ }
+ ],
+ "EditorsPickContent": [
+ {
+ "fid": 1,
+ "name": "urlItem",
+ "struct": "URLItem"
+ },
+ {
+ "fid": 2,
+ "name": "productDetail",
+ "struct": "ProductDetail"
+ }
+ ],
+ "EditorsPickContentType": {
+ "1": "STICKER",
+ "2": "URL",
+ "3": "THEME",
+ "4": "EMOJI"
+ },
+ "EditorsPick": [
+ {
+ "fid": 1,
+ "name": "contentType",
+ "struct": "EditorsPickContentType"
+ },
+ {
+ "fid": 2,
+ "name": "editorsPickContent",
+ "struct": "EditorsPickContent"
+ }
+ ],
+ "EditorsPickTab": [
+ {
+ "fid": 1,
+ "name": "editorsPickId",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "showcaseType",
+ "struct": "ShowcaseType"
+ }
+ ],
+ "EditorsPickShowcase": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "banner",
+ "struct": "EditorsPickBanner"
+ },
+ {
+ "fid": 4,
+ "name": "editorsPicks",
+ "list": "EditorsPick"
+ },
+ {
+ "fid": 5,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "totalSize",
+ "type": 8
+ },
+ {
+ "fid": 7,
+ "name": "description",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "type",
+ "struct": "EditorsPickShowcaseType"
+ },
+ {
+ "fid": 9,
+ "name": "tabs",
+ "list": "EditorsPickTab"
+ }
+ ],
+ "TagType": {
+ "0": "UNKNOWN",
+ "1": "CHARACTER",
+ "2": "TASTE"
+ },
+ "Tag": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 10
+ },
+ {
+ "fid": 11,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "tagType",
+ "struct": "TagType"
+ },
+ {
+ "fid": 13,
+ "name": "productCount",
+ "type": 8
+ },
+ {
+ "fid": 14,
+ "name": "thumbnailUrl",
+ "type": 11
+ }
+ ],
+ "CategoryProductList": [
+ {
+ "fid": 1,
+ "name": "category",
+ "struct": "Category"
+ },
+ {
+ "fid": 2,
+ "name": "productList",
+ "struct": "ProductList"
+ }
+ ],
+ "AggregatedHomeV2Response": [
+ {
+ "fid": 1,
+ "name": "showcases",
+ "list": "ShowcaseV3"
+ },
+ {
+ "fid": 2,
+ "name": "editorsPickBanners",
+ "list": "EditorsPickBanner"
+ },
+ {
+ "fid": 3,
+ "name": "authorList",
+ "list": "AuthorForShowcase"
+ },
+ {
+ "fid": 4,
+ "name": "keywordStickerList",
+ "list": "KeywordImageList"
+ },
+ {
+ "fid": 5,
+ "name": "detailedEditorsPick",
+ "struct": "EditorsPickShowcase"
+ },
+ {
+ "fid": 6,
+ "name": "detailedCategoryList",
+ "list": "CategoryProductList"
+ },
+ {
+ "fid": 7,
+ "name": "categoryList",
+ "list": "Category"
+ },
+ {
+ "fid": 8,
+ "name": "tagList",
+ "list": "Tag"
+ }
+ ],
+ "CategoryType": {
+ "1": "GENERAL_CATEGORY",
+ "2": "CREATORS_TAG"
+ },
+ "AggregatedCategory": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "categoryType",
+ "struct": "CategoryType"
+ },
+ {
+ "fid": 3,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "productCount",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "thumbnailUrl",
+ "type": 11
+ }
+ ],
+ "ListContentData": [
+ {
+ "fid": 1,
+ "name": "showcase",
+ "struct": "ShowcaseV3"
+ },
+ {
+ "fid": 2,
+ "name": "editorsPickBanners",
+ "list": "EditorsPickBanner"
+ },
+ {
+ "fid": 3,
+ "name": "categories",
+ "list": "AggregatedCategory"
+ }
+ ],
+ "ListContent": [
+ {
+ "fid": 1,
+ "name": "contentData",
+ "struct": "ListContentData"
+ },
+ {
+ "fid": 2,
+ "name": "localizedTitle",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "tsKey",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "moreLinkFragment",
+ "type": 11
+ }
+ ],
+ "AggregatedHomeNativeResponse": [
+ {
+ "fid": 1,
+ "name": "listContents",
+ "list": "ListContent"
+ }
+ ],
+ "DynamicHomeNativeResponse": [
+ {
+ "fid": 1,
+ "name": "listContents",
+ "list": "ListContent"
+ }
+ ],
+ "TagsProductList": [
+ {
+ "fid": 1,
+ "name": "tasteTag",
+ "struct": "Tag"
+ },
+ {
+ "fid": 2,
+ "name": "characterTag",
+ "struct": "Tag"
+ },
+ {
+ "fid": 3,
+ "name": "products",
+ "list": "ProductSearchSummary"
+ }
+ ],
+ "AggregatedPremiumHomeResponse": [
+ {
+ "fid": 1,
+ "name": "showcases",
+ "list": "ShowcaseV3"
+ },
+ {
+ "fid": 2,
+ "name": "editorsPickBanners",
+ "list": "EditorsPickBanner"
+ },
+ {
+ "fid": 3,
+ "name": "popularCreator",
+ "struct": "AuthorForShowcase"
+ },
+ {
+ "fid": 4,
+ "name": "featuredCategory",
+ "struct": "TagsProductList"
+ },
+ {
+ "fid": 5,
+ "name": "categoryList",
+ "list": "TagsProductList"
+ },
+ {
+ "fid": 6,
+ "name": "browsingHistory",
+ "struct": "ShowcaseV3"
+ },
+ {
+ "fid": 7,
+ "name": "subscriptionSlotHistory",
+ "struct": "ShowcaseV3"
+ }
+ ],
+ "AggregatedShowcaseV4": [
+ {
+ "fid": 1,
+ "name": "showcases",
+ "list": "ShowcaseV3"
+ }
+ ],
+ "GetRecommendationResponse": [
+ {
+ "fid": 1,
+ "name": "results",
+ "list": "ProductSearchSummary"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 10
+ }
+ ],
+ "AuthorListResponse": [
+ {
+ "fid": 1,
+ "name": "authorList",
+ "list": "AuthorForShowcase"
+ },
+ {
+ "fid": 2,
+ "name": "totalSize",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "ProductResourceType": [
+ {
+ "fid": 1,
+ "name": "stickerResourceType",
+ "struct": "StickerResourceType"
+ },
+ {
+ "fid": 2,
+ "name": "themeResourceType",
+ "struct": "ThemeResourceType"
+ },
+ {
+ "fid": 3,
+ "name": "sticonResourceType",
+ "struct": "SticonResourceType"
+ }
+ ],
+ "LatestProductByAuthorItem": [
+ {
+ "fid": 1,
+ "name": "productId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "displayName",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "version",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "newFlag",
+ "type": 2
+ },
+ {
+ "fid": 5,
+ "name": "productResourceType",
+ "struct": "ProductResourceType"
+ },
+ {
+ "fid": 6,
+ "name": "popupLayer",
+ "struct": "PopupLayer"
+ }
+ ],
+ "LatestProductsByAuthorResponse": [
+ {
+ "fid": 1,
+ "name": "authorId",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "author",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "items",
+ "list": "LatestProductByAuthorItem"
+ }
+ ],
+ "GetExperimentsResponse": [
+ {
+ "fid": 1,
+ "name": "variables",
+ "map": 11
+ }
+ ],
+ "ProductSummaryForAutoSuggest": [
+ {
+ "fid": 1,
+ "name": "id",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "version",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "stickerResourceType",
+ "struct": "StickerResourceType"
+ },
+ {
+ "fid": 5,
+ "name": "suggestVersion",
+ "type": 10
+ },
+ {
+ "fid": 6,
+ "name": "popupLayer",
+ "struct": "PopupLayer"
+ },
+ {
+ "fid": 7,
+ "name": "type",
+ "struct": "ProductType"
+ },
+ {
+ "fid": 8,
+ "name": "resourceType",
+ "struct": "ProductResourceType"
+ },
+ {
+ "fid": 9,
+ "name": "stickerSize",
+ "struct": "StickerSize"
+ }
+ ],
+ "AutoSuggestionShowcaseResponse": [
+ {
+ "fid": 1,
+ "name": "productList",
+ "list": "ProductSummaryForAutoSuggest"
+ },
+ {
+ "fid": 2,
+ "name": "totalSize",
+ "type": 10
+ }
+ ],
+ "SuggestResource": [
+ {
+ "fid": 1,
+ "name": "dataUrl",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "version",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "updatedTime",
+ "type": 10
+ }
+ ],
+ "SuggestDictionarySetting": [
+ {
+ "fid": 1,
+ "name": "language",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "name",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "preload",
+ "type": 2
+ },
+ {
+ "fid": 4,
+ "name": "suggestResource",
+ "struct": "SuggestResource"
+ },
+ {
+ "fid": 5,
+ "name": "patch",
+ "map": 11
+ },
+ {
+ "fid": 6,
+ "name": "suggestTagResource",
+ "struct": "SuggestResource"
+ },
+ {
+ "fid": 7,
+ "name": "tagPatch",
+ "map": 11
+ },
+ {
+ "fid": 8,
+ "name": "corpusResource",
+ "struct": "SuggestResource"
+ }
+ ],
+ "GetSuggestDictionarySettingResponse": [
+ {
+ "fid": 1,
+ "name": "results",
+ "list": "SuggestDictionarySetting"
+ }
+ ],
+ "GetRecommendOaResponse": [
+ {
+ "fid": 1,
+ "name": "buddyMids",
+ "list": 11
+ }
+ ],
+ "GetSuggestResourcesResponse": [
+ {
+ "fid": 1,
+ "name": "suggestResources",
+ "map": "SuggestResource"
+ }
+ ],
+ "GetSuggestResourcesV2Response": [
+ {
+ "fid": 1,
+ "name": "suggestResources",
+ "map": "SuggestResource"
+ }
+ ],
+ "GetTagClusterFileResponse": [
+ {
+ "fid": 1,
+ "name": "path",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "updatedTimeMillis",
+ "type": 10
+ }
+ ],
+ "GetResourceFileReponse": [
+ {
+ "fid": 1,
+ "name": "tagClusterFileResponse",
+ "struct": "GetTagClusterFileResponse"
+ }
+ ],
+ "BrowsingHistory": [
+ {
+ "fid": 1,
+ "name": "productSearchSummary",
+ "struct": "ProductSearchSummary"
+ },
+ {
+ "fid": 2,
+ "name": "browsingTime",
+ "type": 10
+ }
+ ],
+ "GetBrowsingHistoryResponse": [
+ {
+ "fid": 1,
+ "name": "browsingHistory",
+ "list": "BrowsingHistory"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 8
+ }
+ ],
+ "DeleteAllBrowsingHistoryResponse": [],
+ "SticonProductMapping": [
+ {
+ "fid": 1,
+ "name": "productId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "oldProductId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "newToOldSticonIdMapping",
+ "map": 11
+ },
+ {
+ "fid": 4,
+ "name": "oldPackageVersion",
+ "type": 8
+ },
+ {
+ "fid": 5,
+ "name": "oldMetaVersion",
+ "type": 8
+ },
+ {
+ "fid": 6,
+ "name": "stickerPackageId",
+ "type": 10
+ },
+ {
+ "fid": 7,
+ "name": "stickerPackageVersion",
+ "type": 8
+ },
+ {
+ "fid": 8,
+ "name": "stickerIds",
+ "map": 11
+ }
+ ],
+ "GetOldSticonMappingResponse": [
+ {
+ "fid": 1,
+ "name": "sticonProductMappings",
+ "list": "SticonProductMapping"
+ },
+ {
+ "fid": 2,
+ "name": "updatedTimeMillis",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "updated",
+ "type": 2
+ }
+ ],
+ "SimilarImageShowcase": [
+ {
+ "fid": 1,
+ "name": "chosenImage",
+ "struct": "ImageSearchSummary"
+ },
+ {
+ "fid": 2,
+ "name": "similarImageList",
+ "list": "ImageSearchSummary"
+ },
+ {
+ "fid": 3,
+ "name": "continuationToken",
+ "type": 11
+ }
+ ],
+ "CustomizeImageTextResponse": [
+ {
+ "fid": 1,
+ "name": "nameTextProperty",
+ "struct": "ImageTextProperty"
+ }
+ ],
+ "SubscriptionPlanAvailability": {
+ "0": "AVAILABLE",
+ "1": "DIFFERENT_STORE",
+ "2": "NOT_STUDENT",
+ "3": "ALREADY_PURCHASED"
+ },
+ "SubscriptionServiceType": {
+ "1": "STICKERS_PREMIUM"
+ },
+ "SubscriptionPlanTarget": {
+ "1": "GENERAL",
+ "2": "STUDENT"
+ },
+ "SubscriptionPlanType": {
+ "1": "MONTHLY",
+ "2": "YEARLY"
+ },
+ "SubscriptionPlanTier": {
+ "1": "BASIC",
+ "2": "DELUXE"
+ },
+ "SubscriptionSlotModificationResult": {
+ "0": "OK",
+ "1": "UNKNOWN",
+ "2": "NO_SUBSCRIPTION",
+ "3": "EXISTS",
+ "4": "NOT_FOUND",
+ "5": "EXCEEDS_LIMIT",
+ "6": "NOT_AVAILABLE"
+ },
+ "SubscriptionBillingResult": {
+ "0": "OK",
+ "1": "UNKNOWN",
+ "2": "NOT_SUPPORTED",
+ "3": "NO_SUBSCRIPTION",
+ "4": "SUBSCRIPTION_EXISTS",
+ "5": "NOT_AVAILABLE",
+ "6": "CONFLICT",
+ "7": "OUTDATED_VERSION",
+ "8": "NO_STUDENT_INFORMATION",
+ "9": "ACCOUNT_HOLD",
+ "10": "RETRY_STATE"
+ },
+ "SubscriptionCampaignType": {
+ "1": "MISSION",
+ "2": "FREE_TRIAL"
+ },
+ "SubscriptionSortType": {
+ "1": "DATE_ASC",
+ "2": "DATE_DESC"
+ },
+ "StartBundleSubscriptionResult": {
+ "0": "OK",
+ "1": "UNKNOWN",
+ "2": "INVALID_PARAMETER",
+ "3": "NOT_ELIGIBLE",
+ "4": "CONFLICT",
+ "5": "ACCOUNT_HOLD",
+ "6": "RETRY_STATE"
+ },
+ "StopBundleSubscriptionResult": {
+ "0": "OK",
+ "1": "INVALID_PARAMETER",
+ "2": "NOT_FOUND",
+ "3": "NOT_SUPPORTED",
+ "4": "CONFLICT",
+ "5": "NOT_ELIGIBLE"
+ },
+ "GetSubscriptionCouponCodeResult": {
+ "0": "OK",
+ "1": "UNKNOWN",
+ "2": "NOT_SUPPORTED",
+ "3": "NOT_AVAILABLE",
+ "4": "NOT_APPLICABLE"
+ },
+ "GetFriendStatusWithPremiumOaResult": {
+ "0": "FRIEND",
+ "1": "BLOCKED",
+ "2": "NOT_FRIEND",
+ "3": "ERROR"
+ },
+ "SubscriptionCouponCampaignStatus": {
+ "0": "OK",
+ "1": "UNKNOWN",
+ "2": "NOT_SUPPORTED",
+ "3": "NOT_ACTIVE",
+ "4": "NOT_APPLICABLE"
+ },
+ "AcceptSubscriptionAgreementResult": {
+ "0": "OK",
+ "1": "UNKNOWN",
+ "2": "NOT_SUPPORTED",
+ "3": "NO_SUBSCRIPTION"
+ },
+ "StoreCode": {
+ "0": "GOOGLE",
+ "1": "APPLE",
+ "2": "WEBSTORE",
+ "3": "LINEMO",
+ "4": "LINE_MUSIC",
+ "5": "LYP",
+ "6": "TW_CHT",
+ "7": "FREEMIUM"
+ },
+ "SubscriptionPlan": [
+ {
+ "fid": 1,
+ "name": "billingItemId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "subscriptionService",
+ "struct": "SubscriptionServiceType"
+ },
+ {
+ "fid": 3,
+ "name": "target",
+ "struct": "SubscriptionPlanTarget"
+ },
+ {
+ "fid": 4,
+ "name": "type",
+ "struct": "SubscriptionPlanType"
+ },
+ {
+ "fid": 5,
+ "name": "period",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "freeTrial",
+ "type": 11
+ },
+ {
+ "fid": 7,
+ "name": "localizedName",
+ "type": 11
+ },
+ {
+ "fid": 8,
+ "name": "price",
+ "struct": "Price"
+ },
+ {
+ "fid": 9,
+ "name": "availability",
+ "struct": "SubscriptionPlanAvailability"
+ },
+ {
+ "fid": 10,
+ "name": "cpId",
+ "type": 11
+ },
+ {
+ "fid": 11,
+ "name": "nameKey",
+ "type": 11
+ },
+ {
+ "fid": 12,
+ "name": "tier",
+ "struct": "SubscriptionPlanTier"
+ }
+ ],
+ "GetSubscriptionPlansResponse": [
+ {
+ "fid": 1,
+ "name": "plans",
+ "list": "SubscriptionPlan"
+ }
+ ],
+ "SubscriptionStatus": [
+ {
+ "fid": 1,
+ "name": "billingItemId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "subscriptionService",
+ "struct": "SubscriptionServiceType"
+ },
+ {
+ "fid": 3,
+ "name": "period",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "localizedName",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "freeTrial",
+ "type": 2
+ },
+ {
+ "fid": 6,
+ "name": "expired",
+ "type": 2
+ },
+ {
+ "fid": 7,
+ "name": "validUntil",
+ "type": 10
+ },
+ {
+ "fid": 8,
+ "name": "maxSlotCount",
+ "type": 8
+ },
+ {
+ "fid": 9,
+ "name": "target",
+ "struct": "SubscriptionPlanTarget"
+ },
+ {
+ "fid": 10,
+ "name": "type",
+ "struct": "SubscriptionPlanType"
+ },
+ {
+ "fid": 11,
+ "name": "storeCode",
+ "struct": "StoreCode"
+ },
+ {
+ "fid": 12,
+ "name": "nameKey",
+ "type": 11
+ },
+ {
+ "fid": 13,
+ "name": "tier",
+ "struct": "SubscriptionPlanTier"
+ },
+ {
+ "fid": 14,
+ "name": "accountHold",
+ "type": 2
+ },
+ {
+ "fid": 15,
+ "name": "maxSlotCountsByProductType",
+ "map": 8
+ },
+ {
+ "fid": 16,
+ "name": "agreementAccepted",
+ "type": 2
+ }
+ ],
+ "GetSubscriptionStatusResponse": [
+ {
+ "fid": 1,
+ "name": "subscriptions",
+ "map": "SubscriptionStatus"
+ },
+ {
+ "fid": 2,
+ "name": "hasValidStudentInformation",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "otherOwnedSubscriptions"
+ }
+ ],
+ "GetProductSummariesInSubscriptionSlotsResponse": [
+ {
+ "fid": 1,
+ "name": "products",
+ "list": "ProductSummary"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "maxSlotCount",
+ "type": 8
+ }
+ ],
+ "AddProductToSubscriptionSlotResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "SubscriptionSlotModificationResult"
+ }
+ ],
+ "AddThemeToSubscriptionSlotResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "SubscriptionSlotModificationResult"
+ }
+ ],
+ "RemoveProductFromSubscriptionSlotResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "SubscriptionSlotModificationResult"
+ }
+ ],
+ "PurchaseSubscriptionResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "SubscriptionBillingResult"
+ },
+ {
+ "fid": 2,
+ "name": "orderId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "confirmUrl",
+ "type": 11
+ }
+ ],
+ "ChangeSubscriptionResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "SubscriptionBillingResult"
+ },
+ {
+ "fid": 2,
+ "name": "orderId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "confirmUrl",
+ "type": 11
+ }
+ ],
+ "RestoreSubscriptionResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "SubscriptionBillingResult"
+ },
+ {
+ "fid": 2,
+ "name": "orderId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "confirmUrl",
+ "type": 11
+ }
+ ],
+ "GetProductsByTagsV2Response": [
+ {
+ "fid": 1,
+ "name": "results",
+ "list": "ProductSearchSummary"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 10
+ }
+ ],
+ "StudentInformation": [
+ {
+ "fid": 1,
+ "name": "schoolName",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "graduationDate",
+ "type": 11
+ }
+ ],
+ "GetStudentInformationResponse": [
+ {
+ "fid": 1,
+ "name": "studentInformation",
+ "struct": "StudentInformation"
+ },
+ {
+ "fid": 2,
+ "name": "isValid",
+ "type": 2
+ }
+ ],
+ "SaveStudentInformationResponse": [],
+ "PurchasedSubscription": [
+ {
+ "fid": 1,
+ "name": "orderId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "subscriptionService",
+ "struct": "SubscriptionServiceType"
+ },
+ {
+ "fid": 3,
+ "name": "billingItemId",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "type",
+ "struct": "SubscriptionPlanType"
+ },
+ {
+ "fid": 5,
+ "name": "localizedName",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "purchasedTime",
+ "type": 10
+ },
+ {
+ "fid": 7,
+ "name": "validUntil",
+ "type": 10
+ },
+ {
+ "fid": 8,
+ "name": "price",
+ "struct": "Price"
+ },
+ {
+ "fid": 9,
+ "name": "nameKey",
+ "type": 11
+ },
+ {
+ "fid": 10,
+ "name": "tier",
+ "struct": "SubscriptionPlanTier"
+ }
+ ],
+ "GetPurchasedSubscriptionsResponse": [
+ {
+ "fid": 1,
+ "name": "subscriptions",
+ "list": "PurchasedSubscription"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 10
+ }
+ ],
+ "FindRestorablePlanResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "SubscriptionBillingResult"
+ },
+ {
+ "fid": 2,
+ "name": "billingItemId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "storeOrderId",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "originalStoreOrderId",
+ "type": 11
+ },
+ {
+ "fid": 5,
+ "name": "orderId",
+ "type": 11
+ },
+ {
+ "fid": 6,
+ "name": "mid",
+ "type": 11
+ }
+ ],
+ "SubscriptionMissionCampaign": [
+ {
+ "fid": 1,
+ "name": "productType",
+ "struct": "ProductType"
+ },
+ {
+ "fid": 2,
+ "name": "productId",
+ "type": 11
+ }
+ ],
+ "SubscriptionCampaignPayload": [
+ {
+ "fid": 1,
+ "name": "mission",
+ "struct": "SubscriptionMissionCampaign"
+ }
+ ],
+ "SubscriptionCampaign": [
+ {
+ "fid": 1,
+ "name": "campaignId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "fromInclusive",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "toExclusive",
+ "type": 10
+ },
+ {
+ "fid": 4,
+ "name": "type",
+ "struct": "SubscriptionCampaignType"
+ },
+ {
+ "fid": 5,
+ "name": "payload",
+ "struct": "SubscriptionCampaignPayload"
+ }
+ ],
+ "GetSubscriptionCampaignsResponse": [
+ {
+ "fid": 1,
+ "name": "campaigns",
+ "list": "SubscriptionCampaign"
+ }
+ ],
+ "GetSubscriptionRecommendationsResponse": [
+ {
+ "fid": 1,
+ "name": "products",
+ "list": "ProductSearchSummary"
+ }
+ ],
+ "InteractionEventResponse": [
+ {
+ "fid": 1,
+ "name": "responseStatus",
+ "type": 8
+ }
+ ],
+ "LibraExperiment": [
+ {
+ "fid": 1,
+ "name": "experimentId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "groupId",
+ "type": 11
+ }
+ ],
+ "GetExperimentsV2Response": [
+ {
+ "fid": 1,
+ "name": "experiments",
+ "map": "LibraExperiment"
+ }
+ ],
+ "BirthdayGiftAssociationVerifyTokenStatus": {
+ "0": "VALID",
+ "1": "INVALID"
+ },
+ "BirthdayGiftAssociationVerifyResponse": [
+ {
+ "fid": 1,
+ "name": "tokenStatus",
+ "struct": "BirthdayGiftAssociationVerifyTokenStatus"
+ },
+ {
+ "fid": 2,
+ "name": "recipientUserMid",
+ "type": 11
+ }
+ ],
+ "SubscriptionSlotHistory": [
+ {
+ "fid": 1,
+ "name": "product",
+ "struct": "ProductSearchSummary"
+ },
+ {
+ "fid": 2,
+ "name": "addedTime",
+ "type": 10
+ },
+ {
+ "fid": 3,
+ "name": "removedTime",
+ "type": 10
+ }
+ ],
+ "GetSubscriptionSlotHistoryResponse": [
+ {
+ "fid": 1,
+ "name": "history",
+ "list": "SubscriptionSlotHistory"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 10
+ }
+ ],
+ "PopupDisplaySettings": [
+ {
+ "fid": 1,
+ "name": "pages",
+ "set": 8
+ },
+ {
+ "fid": 2,
+ "name": "editorsPickIds",
+ "set": 11
+ }
+ ],
+ "PopupPage": [
+ {
+ "fid": 1,
+ "name": "imageUrl",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "title",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "body",
+ "type": 11
+ }
+ ],
+ "PopupActionButton": [
+ {
+ "fid": 1,
+ "name": "label",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "actionUrl",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "textColorCode",
+ "type": 11
+ },
+ {
+ "fid": 4,
+ "name": "backgroundColorCode",
+ "type": 11
+ }
+ ],
+ "PopupDismissButton": [
+ {
+ "fid": 1,
+ "name": "label",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "textColorCode",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "backgroundColorCode",
+ "type": 11
+ }
+ ],
+ "PopupContent": [
+ {
+ "fid": 1,
+ "name": "pages",
+ "list": "PopupPage"
+ },
+ {
+ "fid": 2,
+ "name": "actionButton",
+ "struct": "PopupActionButton"
+ },
+ {
+ "fid": 3,
+ "name": "dismissButton",
+ "struct": "PopupDismissButton"
+ }
+ ],
+ "PopupDesignTemplate": {
+ "0": "FIXED"
+ },
+ "PopupDisplayCount": {
+ "0": "ONCE"
+ },
+ "PopupVisualType": {
+ "0": "BASIC",
+ "1": "FULLSCREEN"
+ },
+ "ShopPopup": [
+ {
+ "fid": 1,
+ "name": "popupId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "displaySettings",
+ "struct": "PopupDisplaySettings"
+ },
+ {
+ "fid": 3,
+ "name": "displayCount",
+ "struct": "PopupDisplayCount"
+ },
+ {
+ "fid": 4,
+ "name": "content",
+ "struct": "PopupContent"
+ },
+ {
+ "fid": 5,
+ "name": "displayPriority",
+ "type": 8
+ },
+ {
+ "fid": 6,
+ "name": "visualType",
+ "struct": "PopupVisualType"
+ },
+ {
+ "fid": 7,
+ "name": "displayIntervalInDays",
+ "type": 8
+ }
+ ],
+ "GetPopupsResponse": [
+ {
+ "fid": 1,
+ "name": "popups",
+ "list": "ShopPopup"
+ }
+ ],
+ "GetSubscriptionSlotStatusResponse": [
+ {
+ "fid": 1,
+ "name": "productIdsInSlots",
+ "set": 11
+ },
+ {
+ "fid": 2,
+ "name": "usedSlotCount",
+ "type": 8
+ },
+ {
+ "fid": 3,
+ "name": "maxSlotCount",
+ "type": 8
+ }
+ ],
+ "GetProductKeyboardListResponse": [
+ {
+ "fid": 1,
+ "name": "productType",
+ "struct": "ProductType"
+ },
+ {
+ "fid": 2,
+ "name": "keyboardProductIds",
+ "list": 11
+ }
+ ],
+ "GetMusicSubscriptionStatusResponse": [
+ {
+ "fid": 1,
+ "name": "validUntil",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "expired",
+ "type": 2
+ },
+ {
+ "fid": 3,
+ "name": "isStickersPremiumEnabled",
+ "type": 2
+ }
+ ],
+ "StartBundleSubscriptionResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "StartBundleSubscriptionResult"
+ }
+ ],
+ "StopBundleSubscriptionResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "StopBundleSubscriptionResult"
+ }
+ ],
+ "GetSubscriptionCouponCodeResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "GetSubscriptionCouponCodeResult"
+ },
+ {
+ "fid": 2,
+ "name": "couponCode",
+ "type": 11
+ }
+ ],
+ "GetSubscriptionCouponCampaignResponse": [
+ {
+ "fid": 1,
+ "name": "status",
+ "struct": "SubscriptionCouponCampaignStatus"
+ }
+ ],
+ "PopupModel": [
+ {
+ "fid": 1,
+ "name": "popupId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "active",
+ "type": 2
+ }
+ ],
+ "GetPopupDisplayStatusResponse": [
+ {
+ "fid": 1,
+ "name": "popups",
+ "map": "PopupModel"
+ }
+ ],
+ "GetFilteredProductsResponse": [
+ {
+ "fid": 1,
+ "name": "results",
+ "list": "ProductSearchSummary"
+ },
+ {
+ "fid": 2,
+ "name": "continuationToken",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "totalSize",
+ "type": 10
+ }
+ ],
+ "GetProductLatestVersionForUserResponse": [
+ {
+ "fid": 1,
+ "name": "latestVersion",
+ "type": 10
+ },
+ {
+ "fid": 2,
+ "name": "latestVersionString",
+ "type": 11
+ }
+ ],
+ "GetSubscriptionAgreementStatusResponse": [
+ {
+ "fid": 1,
+ "name": "accepted",
+ "type": 2
+ }
+ ],
+ "AcceptSubscriptionAgreementResponse": [
+ {
+ "fid": 1,
+ "name": "result",
+ "struct": "AcceptSubscriptionAgreementResult"
+ }
+ ],
+ "ShouldShowWelcomeStickerBannerResponse": [
+ {
+ "fid": 1,
+ "name": "shouldShowBanner",
+ "type": 2
+ }
+ ],
+ "StickerDisplayData": [
+ {
+ "fid": 1,
+ "name": "stickerHash",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "stickerResourceType",
+ "struct": "StickerResourceType"
+ },
+ {
+ "fid": 3,
+ "name": "nameTextProperty",
+ "struct": "ImageTextProperty"
+ },
+ {
+ "fid": 4,
+ "name": "popupLayer",
+ "struct": "PopupLayer"
+ },
+ {
+ "fid": 5,
+ "name": "stickerSize",
+ "struct": "StickerSize"
+ },
+ {
+ "fid": 6,
+ "name": "productAvailability",
+ "struct": "ProductAvailability"
+ },
+ {
+ "fid": 7,
+ "name": "height",
+ "type": 8
+ },
+ {
+ "fid": 8,
+ "name": "width",
+ "type": 8
+ },
+ {
+ "fid": 9,
+ "name": "version",
+ "type": 10
+ },
+ {
+ "fid": 10,
+ "name": "availableForCombinationSticker",
+ "type": 2
+ }
+ ],
+ "DisplayData": [
+ {
+ "fid": 1,
+ "name": "stickerSummary",
+ "struct": "StickerDisplayData"
+ }
+ ],
+ "CollectionItem": [
+ {
+ "fid": 1,
+ "name": "itemId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "productId",
+ "type": 11
+ },
+ {
+ "fid": 3,
+ "name": "displayData",
+ "struct": "DisplayData"
+ },
+ {
+ "fid": 4,
+ "name": "sortId",
+ "type": 8
+ }
+ ],
+ "Collection": [
+ {
+ "fid": 1,
+ "name": "collectionId",
+ "type": 11
+ },
+ {
+ "fid": 2,
+ "name": "items",
+ "list": "CollectionItem"
+ },
+ {
+ "fid": 3,
+ "name": "productType",
+ "struct": "ProductType"
+ },
+ {
+ "fid": 4,
+ "name": "createdTimeMillis",
+ "type": 10
+ },
+ {
+ "fid": 5,
+ "name": "updatedTimeMillis",
+ "type": 10
+ }
+ ],
+ "GetUserCollectionsResponse": [
+ {
+ "fid": 1,
+ "name": "collections",
+ "list": "Collection"
+ },
+ {
+ "fid": 2,
+ "name": "updated",
+ "type": 2
+ }
+ ],
+ "CreateCollectionForUserResponse": [
+ {
+ "fid": 1,
+ "name": "collection",
+ "struct": "Collection"
+ }
+ ],
+ "AddItemToCollectionResponse": [],
+ "RemoveItemFromCollectionResponse": [],
+ "IsProductForCollectionsResponse": [
+ {
+ "fid": 1,
+ "name": "isAvailable",
+ "type": 2
+ }
+ ]
+}
\ No newline at end of file
diff --git a/site/tmp/voom.css b/site/res/voom.css
similarity index 100%
rename from site/tmp/voom.css
rename to site/res/voom.css
diff --git a/site/script.js b/site/script.js
deleted file mode 100644
index 23fb38f..0000000
--- a/site/script.js
+++ /dev/null
@@ -1,287 +0,0 @@
-class LineTCompactSocket {
- constructor(gwPath, authToken, device, resolve, extraH) {
- this.socket = {};
- this.socketInfo = {};
- let appVer, sysName, sysVer, UA, appName;
- sysVer = "12.1.4";
- switch (device) {
- case "DESKTOPWIN":
- appVer = "7.16.1.3000";
- sysName = "WINDOWS";
- sysVer = "10.0.0-NT-x64";
- break;
- case "DESKTOPMAC":
- appVer = "7.16.1.3000";
- sysName = "MAC";
- break;
- case "CHROMEOS":
- appVer = "3.0.3";
- sysName = "Chrome_OS";
- sysVer = "1";
- break;
- case "ANDROID":
- appVer = "13.4.1";
- sysName = "Android OS";
- break;
- case "IOS":
- appVer = "13.3.0";
- sysName = "iOS";
- break;
- case "IOSIPAD":
- appVer = "13.3.0";
- sysName = "iOS";
- break;
- case "WATCHOS":
- appVer = "13.3.0";
- sysName = "Watch OS";
- break;
- case "WEAROS":
- appVer = "13.4.1";
- sysName = "Wear OS";
- break;
- default:
- return new Error("device name is wrong");
- break;
- }
- appName = device + "\t" + appVer + "\t" + sysName + "\t" + sysVer;
- UA = "Line/" + appVer;
- let account = { path: gwPath, auth: authToken, ua: UA, type: appName };
- if (extraH) {
- account["ex"] = JSON.stringify(extraH);
- }
- //this.socket.post = new WebSocket("wss://line-selfbot.deno.dev/post?" + new URLSearchParams(account).toString())
- this.socket.post = new WebSocket("ws://localhost:8000/post?" + new URLSearchParams(account).toString());
- this.socket.post.onopen = (e) => {
- try {
- resolve(this);
- } catch (e) {
- }
- this.socketInfo.post = { status: "open", waitFunc: {} };
- };
- this.socket.post.onclose = (e) => {
- this.socketInfo.post.status = false;
- };
- this.socket.post.onmessage = null;
- this.socket.post.onclose = (e) => {
- this.socketInfo.post = { status: false };
- };
- }
- closeSocket() {
- try {
- this.socket.post.close();
- } catch (e) {
- }
- }
- post(data) {
- return new Promise((resolve, reject) => {
- data.id = Date.now();
- this.send(this.socket.post, this.socketInfo.post.waitFunc, data, resolve);
- });
- }
- postr(data) {
- return new Promise((resolve, reject) => {
- data.id = Date.now();
- this.sendr(this.socket.post, this.socketInfo.post.waitFunc, data, resolve);
- });
- }
- postAndCheckResponse(data) {
- return new Promise((resolve, reject) => {
- this.post(data).then((r) => {
- if (r.err) {
- throw new Error(r.err);
- } else {
- resolve(r);
- }
- });
- });
- }
- sendr(socket, FuncMap, data, returnFunc) {
- if (socket.readyState === socket.OPEN) {
- socket.send(JSON.stringify(data));
- FuncMap[data.id] = (e) => {
- returnFunc(e.data);
- };
- socket.onmessage = (e) => {
- try {
- let j = new Uint8Array(e.data);
- let id = 0;
- for (let index = 0; index < j[2]; index++) {
- const element = j[3 + index];
- id += element * (0xff ** index);
- }
- FuncMap[id](j.slice(3 + j[2]));
- delete FuncMap[id];
- } catch (error) {
- try {
- let j = JSON.parse(e.data);
- FuncMap[j.id](e);
- delete FuncMap[j.id];
- } catch (e) {}
- }
- };
- } else throw new Error("socket not open");
- }
-
- async postParseThrift(data) {
- let reqJson, resJson;
- reqJson = data;
- resJson = JSON.parse(await this.postAndCheckResponse(reqJson));
- return resJson;
- }
- async postRRequestAndGetRResponse(data, isBuf = false) {
- let request = { value: data, type: 5 };
- if (isBuf) {
- request.name = "b64";
- request.value = btoa([...data].map((n) => String.fromCharCode(n)).join(""));
- }
- let response = await this.postr(request);
- return response;
- }
- async postCHRRequestAndGetResponse(data, methodName) {
- let request = { value: data, name: methodName, type: 3 };
- let response = await this.postParseThrift(request);
- return response.value;
- }
- async postRequestAndGetResponse(data, methodName) {
- let request = { value: data, name: methodName, type: 1 };
- let response = await this.postParseThrift(request);
- return response.value;
- }
- async postRequestAndGetContinueResponse(data, methodName) {
- let responseList = [];
- let addKeys = [];
- let noAddKeys = [];
- let request = { value: data, name: methodName, type: 1 };
- let response = await this.postParseThrift(request);
- responseList.push(response.value);
- while (response.value.continuationToken) {
- request.value.continuationToken = response.value.continuationToken;
- request.value.syncToken = response.value.syncToken;
- response = await this.postParseThrift(request);
- responseList.push(response.value);
- }
- Object.keys(responseList[0]).forEach((e) => {
- if ((typeof responseList[0][e]) == "object") {
- addKeys.push(e);
- } else {
- noAddKeys.push(e);
- }
- });
- let returnjson = {};
- responseList.forEach((e) => {
- noAddKeys.forEach((f) => {
- returnjson[f] = e[f];
- });
- addKeys.forEach((g) => {
- if (e[g].forEach) {
- if (returnjson[g]) {
- returnjson[g] = [...returnjson[g], ...e[g]];
- } else {
- returnjson[g] = e[g];
- }
- } else {
- if (returnjson[g]) {
- returnjson[g] = { ...returnjson[g], ...e[g] };
- } else {
- returnjson[g] = e[g];
- }
- }
- });
- });
- return returnjson;
- }
- send(socket, FuncMap, data, returnFunc) {
- if (socket.readyState === socket.OPEN) {
- socket.send(JSON.stringify(data));
- FuncMap[data.id] = (e) => {
- returnFunc(e.data);
- };
- socket.onmessage = (e) => {
- try {
- let j = JSON.parse(e.data);
- FuncMap[j.id](e);
- delete FuncMap[j.id];
- } catch (error) {
- try {
- let j = new Uint8Array(e.data);
- let id = 0;
- for (let index = 0; index < j[2]; index++) {
- const element = j[3 + index];
- id += element * (0xff ** index);
- }
- FuncMap[id](j.slice(3 + j[2]));
- delete FuncMap[id];
- } catch (error) {
- }
- }
- };
- } else throw new Error("socket not open");
- }
-}
-
-class LineSquareClient {
- constructor(authToken, device, resolve) {
- this.SQ1 = new LineTCompactSocket("/SQ1", authToken, device, resolve);
- }
- async findSquareByInvitationTicket(ticket) {
- let v = { invitationTicket: ticket };
- let n = "findSquareByInvitationTicket";
- return await this.SQ1.postRequestAndGetResponse(v, n);
- }
- async getJoinedSquares() {
- let v = { limit: 100 };
- let n = "getJoinedSquares";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async searchSquareMembers(squareMid, searchOption = {}) {
- let v = {
- squareMid: squareMid,
- searchOption: searchOption,
- limit: 200,
- };
- let n = "searchSquareMembers";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async getBannedMembers(squareMid) {
- return await this.searchSquareMembers(squareMid, { "membershipState": 6 });
- }
- async sendTxtMessage(squareChatMid, text, contentMetadata = {}, reqSeq = 1) {
- let v = {
- reqSeq: reqSeq,
- squareChatMid: squareChatMid,
- squareMessage: {
- message: {
- to: squareChatMid,
- contentType: 0,
- text: text,
- contentMetadata: contentMetadata,
- },
- },
- };
- let n = "sendMessage";
- return await this.SQ1.postRequestAndGetResponse(v, n);
- }
- async fetchMyEvents(syncToken) {
- let v = {
- syncToken: syncToken,
- limit: 200,
- };
- if (!v.syncToken) {
- delete v.syncToken;
- }
- let n = "fetchMyEvents";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async fetchSquareChatEvents(squareChatMid, syncToken) {
- let v = {
- squareChatMid: squareChatMid,
- limit: 200,
- };
- if (syncToken) {
- v.syncToken = syncToken;
- }
- let n = "fetchSquareChatEvents";
- return await Account.postRequestAndGetResponse(v, n);
- }
-}
-//export {LineSquareClient,LineTCompactSocket}
diff --git a/site/scripti.js b/site/scripti.js
deleted file mode 100644
index 1ad7896..0000000
--- a/site/scripti.js
+++ /dev/null
@@ -1,418 +0,0 @@
-var DEVICE;
-
-async function LoginMP(mail, pw, dev, cert) {
- DEVICE = dev;
- let rsaKey = await getRSAKeyInfo();
- let keynm = rsaKey[1];
- let nvalue = rsaKey[2];
- let evalue = rsaKey[3];
- let sessionKey = rsaKey[4];
- let certificate = cert;
- let _req = await genReq(
- sessionKey,
- mail,
- pw,
- nvalue,
- evalue,
- );
- let secret = _req.other.secret;
- let pincode = _req.other.pincode;
- let res = await loginV2(
- keynm,
- _req.encData,
- _req.secret,
- "Remote1919",
- certificate,
- null,
- "LoginZ",
- );
- if (!res[1]) {
- let verifier = res[3];
- console.log("Enter Pincode: " + pincode);
- let e2eeInfo = await checkLoginV2PinCode(verifier)["metadata"];
- let blablabao = await genEncDevSec(e2eeInfo, secret);
- let e2eeLogin = await confirmE2EELogin(verifier, blablabao);
- res = await loginV2(
- keynm,
- _req.encData,
- _req.secret,
- "Remote1919",
- certificate,
- e2eeLogin,
- "LoginZ",
- );
- return [res[1], res[2]];
- }
- return [res[1]];
-}
-
-const mkSoc = (path, tok, dev, ex) => {
- return new Promise((resolve, reject) => {
- new LineTCompactSocket(path, tok, dev, resolve, ex);
- });
-};
-
-const getRSAKeyInfo = async () => {
- const params = [
- [8, 2, 1],
- ];
- var soc = await mkSoc("/api/v3/TalkService.do", 0, DEVICE);
- const res = await soc.postCHRRequestAndGetResponse(params, "getRSAKeyInfo");
- soc.closeSocket();
- return res;
-};
-
-const genReq = async (
- sessionKey,
- email,
- pw,
- nvalue,
- evalue,
-) => {
- let res = await fetch(
- "https://v-linelogin.vercel.app/genReq/?arg=" +
- enc(JSON.stringify({
- sessionKey: sessionKey,
- email: email,
- pw: pw,
- nvalue: nvalue,
- evalue: evalue,
- })),
- );
- return await res.json();
-};
-
-const genEncDevSec = async (e2eeInfo, secret) => {
- e2eeInfo["secret"] = secret;
- let res = await fetch(
- "https://v-linelogin.vercel.app/genEncDevSec/?" +
- new URLSearchParams({ arg: (JSON.stringify(e2eeInfo)) }).toString(),
- );
- return await res.text();
-};
-
-const loginV2 = async (
- keynm,
- encData,
- secret,
- deviceName = "Chrome",
- cert = null,
- verifier = null,
- calledName = "loginV2",
-) => {
- let loginType = 2;
- if (!secret) loginType = 0;
- if (verifier) loginType = 1;
- const params = [
- [
- 12,
- 2,
- [
- [8, 1, loginType],
- [8, 2, 1],
- [11, 3, keynm],
- [11, 4, encData],
- [2, 5, 0],
- [11, 6, ""],
- [11, 7, deviceName],
- [11, 8, cert],
- [11, 9, verifier],
- [11, 10, secret],
- [8, 11, 1],
- [11, 12, "System Product Name"],
- ],
- ],
- ];
- var soc = await mkSoc("/api/v3p/rs", 0, DEVICE);
- const res = await soc.postCHRRequestAndGetResponse(params, calledName);
- soc.closeSocket();
- return res;
-};
-
-const checkLoginV2PinCode = async (accessSession) => {
- var soc = await mkSoc("/LF1", 0, DEVICE, { "x-lhm": "GET", "x-line-access": accessSession });
- const res = await soc.postRRequestAndGetRResponse("");
- soc.closeSocket();
- return JSON.parse(new TextDecoder().decode(res))["result"];
-};
-
-const confirmE2EELogin = async (verifier, deviceSecret) => {
- const params = [
- [11, 1, verifier],
- [11, 2, deviceSecret],
- ];
- var soc = await mkSoc("/api/v3p/rs", 0, DEVICE);
- const res = await soc.postCHRRequestAndGetResponse(params, "confirmE2EELogin");
- soc.closeSocket();
- return res;
-};
-class LineTCompactSocket {
- constructor(gwPath, authToken, device, resolve, extraH) {
- this.socket = {};
- this.socketInfo = {};
- let appVer, sysName, sysVer, UA, appName;
- sysVer = "12.1.4";
- switch (device) {
- case "DESKTOPWIN":
- appVer = "7.16.1.3000";
- sysName = "WINDOWS";
- sysVer = "10.0.0-NT-x64";
- break;
- case "DESKTOPMAC":
- appVer = "7.16.1.3000";
- sysName = "MAC";
- break;
- case "CHROMEOS":
- appVer = "3.0.3";
- sysName = "Chrome_OS";
- sysVer = "1";
- break;
- case "ANDROID":
- appVer = "13.4.1";
- sysName = "Android OS";
- break;
- case "IOS":
- appVer = "13.3.0";
- sysName = "iOS";
- break;
- case "IOSIPAD":
- appVer = "13.3.0";
- sysName = "iOS";
- break;
- case "WATCHOS":
- appVer = "13.3.0";
- sysName = "Watch OS";
- break;
- case "WEAROS":
- appVer = "13.4.1";
- sysName = "Wear OS";
- break;
- default:
- return new Error("device name is wrong");
- break;
- }
- appName = device + "\t" + appVer + "\t" + sysName + "\t" + sysVer;
- UA = "Line/" + appVer;
- let account = { path: gwPath, auth: authToken, ua: UA, type: appName };
- if (extraH) {
- account["ex"] = JSON.stringify(extraH);
- }
- //this.socket.post = new WebSocket("wss://line-selfbot.deno.dev/post?" + new URLSearchParams(account).toString())
- this.socket.post = new WebSocket("ws://localhost:8000/post?" + new URLSearchParams(account).toString());
- this.socket.post.onopen = (e) => {
- try {
- resolve(this);
- } catch (e) {
- }
- this.socketInfo.post = { status: "open", waitFunc: {} };
- };
- this.socket.post.onclose = (e) => {
- this.socketInfo.post.status = false;
- };
- this.socket.post.onmessage = null;
- this.socket.post.onclose = (e) => {
- this.socketInfo.post = { status: false };
- };
- }
- closeSocket() {
- try {
- this.socket.post.close();
- } catch (e) {
- }
- }
- post(data) {
- return new Promise((resolve, reject) => {
- data.id = Date.now();
- this.send(this.socket.post, this.socketInfo.post.waitFunc, data, resolve);
- });
- }
- postr(data) {
- return new Promise((resolve, reject) => {
- data.id = Date.now();
- this.sendr(this.socket.post, this.socketInfo.post.waitFunc, data, resolve);
- });
- }
- postAndCheckResponse(data) {
- return new Promise((resolve, reject) => {
- this.post(data).then((r) => {
- if (r.err) {
- throw new Error(r.err);
- } else {
- resolve(r);
- }
- });
- });
- }
- sendr(socket, FuncMap, data, returnFunc) {
- if (socket.readyState === socket.OPEN) {
- socket.send(JSON.stringify(data));
- FuncMap[data.id] = (e) => {
- returnFunc(e.data);
- };
- socket.onmessage = (e) => {
- try {
- let j = new Uint8Array(e.data);
- let id = 0;
- for (let index = 0; index < j[2]; index++) {
- const element = j[3 + index];
- id += element * (0xff ** index);
- }
- FuncMap[id](j.slice(3 + j[2]));
- delete FuncMap[id];
- } catch (error) {
- }
- };
- } else throw new Error("socket not open");
- }
-
- async postParseThrift(data) {
- let reqJson, resJson;
- reqJson = data;
- resJson = JSON.parse(await this.postAndCheckResponse(reqJson));
- return resJson;
- }
- async postRRequestAndGetRResponse(data, isBuf = false) {
- let request = { value: data, type: 5 };
- if (isBuf) {
- request.name = "b64";
- request.value = btoa([...data].map((n) => String.fromCharCode(n)).join(""));
- }
- let response = await this.postr(request);
- return response;
- }
- async postCHRRequestAndGetResponse(data, methodName) {
- let request = { value: data, name: methodName, type: 3 };
- let response = await this.postParseThrift(request);
- return response.value;
- }
- async postRequestAndGetResponse(data, methodName) {
- let request = { value: data, name: methodName, type: 1 };
- let response = await this.postParseThrift(request);
- return response.value;
- }
- async postRequestAndGetContinueResponse(data, methodName) {
- let responseList = [];
- let addKeys = [];
- let noAddKeys = [];
- let request = { value: data, name: methodName, type: 1 };
- let response = await this.postParseThrift(request);
- responseList.push(response.value);
- while (response.value.continuationToken) {
- request.value.continuationToken = response.value.continuationToken;
- request.value.syncToken = response.value.syncToken;
- response = await this.postParseThrift(request);
- responseList.push(response.value);
- }
- Object.keys(responseList[0]).forEach((e) => {
- if ((typeof responseList[0][e]) == "object") {
- addKeys.push(e);
- } else {
- noAddKeys.push(e);
- }
- });
- let returnjson = {};
- responseList.forEach((e) => {
- noAddKeys.forEach((f) => {
- returnjson[f] = e[f];
- });
- addKeys.forEach((g) => {
- if (e[g].forEach) {
- if (returnjson[g]) {
- returnjson[g] = [...returnjson[g], ...e[g]];
- } else {
- returnjson[g] = e[g];
- }
- } else {
- if (returnjson[g]) {
- returnjson[g] = { ...returnjson[g], ...e[g] };
- } else {
- returnjson[g] = e[g];
- }
- }
- });
- });
- return returnjson;
- }
- send(socket, FuncMap, data, returnFunc) {
- if (socket.readyState === socket.OPEN) {
- socket.send(JSON.stringify(data));
- FuncMap[data.id] = (e) => {
- returnFunc(e.data);
- };
- socket.onmessage = (e) => {
- try {
- let j = JSON.parse(e.data);
- FuncMap[j.id](e);
- delete FuncMap[j.id];
- } catch (error) {
- }
- };
- } else throw new Error("socket not open");
- }
-}
-
-class LineSquareClient {
- constructor(authToken, device, resolve) {
- this.SQ1 = new LineTCompactSocket("/SQ1", authToken, device, resolve);
- }
- async findSquareByInvitationTicket(ticket) {
- let v = { invitationTicket: ticket };
- let n = "findSquareByInvitationTicket";
- return await this.SQ1.postRequestAndGetResponse(v, n);
- }
- async getJoinedSquares() {
- let v = { limit: 100 };
- let n = "getJoinedSquares";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async searchSquareMembers(squareMid, searchOption = {}) {
- let v = {
- squareMid: squareMid,
- searchOption: searchOption,
- limit: 200,
- };
- let n = "searchSquareMembers";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async getBannedMembers(squareMid) {
- return await this.searchSquareMembers(squareMid, { "membershipState": 6 });
- }
- async sendTxtMessage(squareChatMid, text, contentMetadata = {}, reqSeq = 1) {
- let v = {
- reqSeq: reqSeq,
- squareChatMid: squareChatMid,
- squareMessage: {
- message: {
- to: squareChatMid,
- contentType: 0,
- text: text,
- contentMetadata: contentMetadata,
- },
- },
- };
- let n = "sendMessage";
- return await this.SQ1.postRequestAndGetResponse(v, n);
- }
- async fetchMyEvents(syncToken) {
- let v = {
- syncToken: syncToken,
- limit: 200,
- };
- if (!v.syncToken) {
- delete v.syncToken;
- }
- let n = "fetchMyEvents";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async fetchSquareChatEvents(squareChatMid, syncToken) {
- let v = {
- squareChatMid: squareChatMid,
- limit: 200,
- };
- if (syncToken) {
- v.syncToken = syncToken;
- }
- let n = "fetchSquareChatEvents";
- return await Account.postRequestAndGetResponse(v, n);
- }
-}
diff --git a/site/site.md b/site/site.md
index 3d17b7a..da41e98 100644
--- a/site/site.md
+++ b/site/site.md
@@ -1 +1 @@
-Site HTML
+#### Site HTML
diff --git a/site/strint.js b/site/strint.js
deleted file mode 100644
index 799f09a..0000000
--- a/site/strint.js
+++ /dev/null
@@ -1,51 +0,0 @@
-(() => {
- function string_to_utf8_hex_string(text) {
- var bytes1 = string_to_utf8_bytes(text);
- var hex_str1 = bytes_to_hex_string(bytes1);
- return hex_str1;
- }
- function string_to_utf8_bytes(text) {
- var result = [];
- if (text == null) return result;
- for (var i = 0; i < text.length; i++) {
- var c = text.charCodeAt(i);
- if (c <= 0x7f) result.push(c);
- else if (c <= 0x07ff) {
- result.push(((c >> 6) & 0x1F) | 0xC0);
- result.push((c & 0x3F) | 0x80);
- } else {
- result.push(((c >> 12) & 0x0F) | 0xE0);
- result.push(((c >> 6) & 0x3F) | 0x80);
- result.push((c & 0x3F) | 0x80);
- }
- }
- return result;
- }
- function byte_to_hex(byte_num) {
- var digits = byte_num.toString(16);
- if (byte_num < 16) return "0" + digits;
- return digits;
- }
- function bytes_to_hex_string(bytes) {
- var result = "";
- for (var i = 0; i < bytes.length; i++) result += byte_to_hex(bytes[i]);
- return result;
- }
- function hex_to_byte(hex_str) {
- return parseInt(hex_str, 16);
- }
- function hex_string_to_bytes(hex_str) {
- var result = [];
- for (var i = 0; i < hex_str.length; i += 2) result.push(hex_to_byte(hex_str.substr(i, 2)));
- return result;
- }
- function enc(str) {
- let int = BigInt("0x" + string_to_utf8_hex_string(str));
- int = int * 334n;
- return base64encode(hex_string_to_bytes(int.toString(16)));
- }
- function base64encode(data) {
- return btoa([...data].map((n) => String.fromCharCode(n)).join(""));
- }
- window.enc = enc;
-})();
diff --git a/site/thriftrw-node/README.md b/site/thriftrw-node/README.md
deleted file mode 100644
index 2fd9982..0000000
--- a/site/thriftrw-node/README.md
+++ /dev/null
@@ -1 +0,0 @@
-https://github.com/thriftrw/thriftrw-node
diff --git a/site/tmp/Xquery.js b/site/tmp/Xquery.js
deleted file mode 100644
index 90ba85d..0000000
--- a/site/tmp/Xquery.js
+++ /dev/null
@@ -1,310 +0,0 @@
-/**
- * @Copyright @amex2189 | @EdamAme-x / Free
- * https://github.com/EdamAme-x/XueryJS
- */
-"use strict";
-
-const Tags = [
- "a",
- "abbr",
- "address",
- "area",
- "article",
- "aside",
- "audio",
- "b",
- "base",
- "bdi",
- "bdo",
- "blockquote",
- "body",
- "br",
- "button",
- "canvas",
- "caption",
- "cite",
- "code",
- "col",
- "colgroup",
- "data",
- "datalist",
- "dd",
- "del",
- "details",
- "dfn",
- "dialog",
- "div",
- "dl",
- "dt",
- "em",
- "embed",
- "fieldset",
- "figcaption",
- "figure",
- "footer",
- "form",
- "h1",
- "h2",
- "h3",
- "h4",
- "h5",
- "h6",
- "head",
- "header",
- "hr",
- "html",
- "i",
- "iframe",
- "img",
- "input",
- "ins",
- "kbd",
- "label",
- "legend",
- "li",
- "link",
- "main",
- "map",
- "mark",
- "meta",
- "meter",
- "nav",
- "noscript",
- "object",
- "ol",
- "optgroup",
- "option",
- "output",
- "p",
- "param",
- "picture",
- "pre",
- "progress",
- "q",
- "rp",
- "rt",
- "ruby",
- "s",
- "samp",
- "script",
- "section",
- "select",
- "small",
- "source",
- "span",
- "strong",
- "style",
- "sub",
- "summary",
- "sup",
- "table",
- "tbody",
- "td",
- "template",
- "textarea",
- "tfoot",
- "th",
- "thead",
- "time",
- "title",
- "tr",
- "track",
- "u",
- "ul",
- "var",
- "video",
- "wbr",
- "applet",
- "basefont",
- "big",
- "blink",
- "center",
- "command",
- "content",
- "dir",
- "element",
- "font",
- "frame",
- "frameset",
- "image",
- "isindex",
- "keygen",
- "listing",
- "marquee",
- "menu",
- "menuitem",
- "multicol",
- "nextid",
- "nobr",
- "noembed",
- "noframes",
- "plaintext",
- "shadow",
- "spacer",
- "strike",
- "tt",
- "xmp",
- "acronym",
- "bgsound",
- "dir",
- "frameset",
- "noframes",
- "tt",
- "video",
- "audio",
- "button",
- "details",
- "dialog",
- "summary",
- "template",
- "figcaption",
- "mark",
- "wbr",
- "svg",
- "g",
- "path",
- "defs",
- "clipPath",
- "circle",
-];
-//globalThis.X = {};
-
-for (let e = 0; e < Tags.length; e++) {
- globalThis[Tags[e]] = (t, ...i) => {
- let r = document.createElement(Tags[e]);
- if (
- Tags[e] == "g" || Tags[e] == "path" || Tags[e] == "svg" || Tags[e] == "defs" || Tags[e] == "clipPath" ||
- Tags[e] == "circle"
- ) {
- r = document.createElementNS("http://www.w3.org/2000/svg", Tags[e]);
- }
- if (t) {
- for (let n in t) {
- if ("raw" === n) {
- r.innerHTML = t[n];
- continue;
- }
- if ("style" === n && "object" == typeof t[n]) { for (let o in t[n]) r.style[o] = t[n][o]; }
- if ("$" === n.slice("")[0]) {
- let x = (...arg) => {
- t[n](r, ...arg);
- };
- r.addEventListener(n.slice(1), x);
- continue;
- }
- r.setAttribute(n, t[n]);
- }
- }
- for (let a = 0; a < i.length; a++) {
- "string" == typeof i[a] || "number" == typeof i[a] || "boolean" == typeof i[a] || void 0 === i[a] ||
- null === i[a]
- ? r.appendChild(document.createTextNode(i[a]))
- : r.appendChild(i[a]);
- }
- return r;
- };
-}
-globalThis.$ = (t) => {
- let i = document.querySelectorAll(t);
- if (0 === i.length) {
- return {
- in() {
- throw Error("Element not found");
- },
- };
- }
- let r = {};
- for (let n = 0; n < i.length; n++) {
- r[n] = {
- in(...t) {
- for (; i[n].firstChild;) i[n].removeChild(i[n].firstChild);
- if (!t) {
- i[n].innerHTML = "";
- return;
- }
- t.forEach((e) => {
- i[n].appendChild(e);
- });
- },
- out: i[n],
- outX() {
- return genX(i[n]);
- },
- },
- r.in = r[0].in,
- r.out = r[0].out,
- r.length = i.length;
- }
- return r;
-};
-
-function genX(elm) {
- function ToStr(str = "") {
- return str.replaceAll("\n", "\\n").replaceAll("\t", "\\t").replaceAll('"', '\\"');
- }
- if (!elm.localName) {
- if (!elm.data) {
- return;
- }
- let txt = elm.data.replaceAll(" ", "").replaceAll("\n", "");
- if (txt == "") {
- return;
- }
- return '"' + ToStr(elm.data) + '"';
- }
- if (elm.localName.indexOf("-") != -1) {
- let prms = "";
- elm.shadowRoot.childNodes.forEach((e) => {
- let g = genX(e);
- if (g) {
- prms += g + ",";
- }
- });
- return prms;
- }
- let ops = {};
- let prms = [];
- let innerText;
- let nochild = false;
- try {
- let opsN = elm.getAttributeNames();
- for (const i in opsN) {
- let tmp = elm.getAttribute(opsN[i]);
- if ("string" == typeof tmp || "number" == typeof tmp || "boolean" == typeof tmp) {
- ops[opsN[i]] = tmp;
- }
- }
- } catch (error) {
- console.log(elm);
- }
-
- if (elm.childNodes.length == 0) {
- innerText = elm.innerText;
- } else if (elm.innerHTML.indexOf("<") == -1) {
- innerText = elm.innerText;
- nochild = true;
- }
-
- if (innerText) {
- prms.push('"' + ToStr(innerText) + '"');
- }
- if (!nochild) {
- let child = [...elm.childNodes];
- child.forEach((e) => {
- let g = genX(e);
- if (g) {
- prms.push(g);
- }
- });
- }
-
- let prmsTxt = "";
- prms.forEach((e) => {
- prmsTxt += `${e},
-`;
- });
- return `${elm.localName}(
-${JSON.stringify(ops, null, 1)},
-${prms}
-)`;
-}
diff --git a/site/tmp/escape.js b/site/tmp/escape.js
deleted file mode 100644
index 495ecb4..0000000
--- a/site/tmp/escape.js
+++ /dev/null
@@ -1,74 +0,0 @@
-/*!
- * escape-html
- * Copyright(c) 2012-2013 TJ Holowaychuk
- * Copyright(c) 2015 Andreas Lubbe
- * Copyright(c) 2015 Tiancheng "Timothy" Gu
- * MIT Licensed
- */
-
-"use strict";
-
-/**
- * Module variables.
- * @private
- */
-
-var matchHtmlRegExp = /["'&<>]/;
-
-/**
- * Module exports.
- * @public
- */
-
-/**
- * Escape special characters in the given string of html.
- *
- * @param {string} string The string to escape for inserting into HTML
- * @return {string}
- * @public
- */
-
-function escapeHtml(string) {
- var str = "" + string;
- var match = matchHtmlRegExp.exec(str);
-
- if (!match) {
- return str;
- }
-
- var escape;
- var html = "";
- var index = 0;
- var lastIndex = 0;
-
- for (index = match.index; index < str.length; index++) {
- switch (str.charCodeAt(index)) {
- case 34: // "
- escape = """;
- break;
- case 38: // &
- escape = "&";
- break;
- case 39: // '
- escape = "'";
- break;
- case 60: // <
- escape = "<";
- break;
- case 62: // >
- escape = ">";
- break;
- default:
- continue;
- }
-
- if (lastIndex !== index) {
- html += str.substring(lastIndex, index);
- }
-
- lastIndex = index + 1;
- html += escape;
- }
-
- return lastIndex !== index ? html + str.substring(lastIndex, index) : html;
-}
diff --git a/site/tmp/index.html b/site/tmp/index.html
deleted file mode 100644
index d980d54..0000000
--- a/site/tmp/index.html
+++ /dev/null
@@ -1,207 +0,0 @@
-
-
-
-
-
-
-
-
- LINE
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
25
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/site/tmp/lineChrome.html b/site/tmp/lineChrome.html
deleted file mode 100644
index 1343fb3..0000000
--- a/site/tmp/lineChrome.html
+++ /dev/null
@@ -1,204 +0,0 @@
-
-
-
-
-
-
-
-
- LINE
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
-
25
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/site/tmp/localforage.min.js b/site/tmp/localforage.min.js
deleted file mode 100644
index 71a653e..0000000
--- a/site/tmp/localforage.min.js
+++ /dev/null
@@ -1,1657 +0,0 @@
-/*!
- localForage -- Offline Storage, Improved
- Version 1.10.0
- https://localforage.github.io/localForage
- (c) 2013-2017 Mozilla, Apache License 2.0
-*/
-!function (a) {
- if ("object" == typeof exports && "undefined" != typeof module) module.exports = a();
- else if ("function" == typeof define && define.amd) define([], a);
- else {
- var b;
- b = "undefined" != typeof window
- ? window
- : "undefined" != typeof global
- ? global
- : "undefined" != typeof self
- ? self
- : this, b.localforage = a();
- }
-}(function () {
- return function a(b, c, d) {
- function e(g, h) {
- if (!c[g]) {
- if (!b[g]) {
- var i = "function" == typeof require && require;
- if (!h && i) return i(g, !0);
- if (f) return f(g, !0);
- var j = new Error("Cannot find module '" + g + "'");
- throw j.code = "MODULE_NOT_FOUND", j;
- }
- var k = c[g] = { exports: {} };
- b[g][0].call(
- k.exports,
- function (a) {
- var c = b[g][1][a];
- return e(c || a);
- },
- k,
- k.exports,
- a,
- b,
- c,
- d,
- );
- }
- return c[g].exports;
- }
- for (var f = "function" == typeof require && require, g = 0; g < d.length; g++) e(d[g]);
- return e;
- }(
- {
- 1: [function (a, b, c) {
- (function (a) {
- "use strict";
- function c() {
- k = !0;
- for (var a, b, c = l.length; c;) {
- for (b = l, l = [], a = -1; ++a < c;) b[a]();
- c = l.length;
- }
- k = !1;
- }
- function d(a) {
- 1 !== l.push(a) || k || e();
- }
- var e, f = a.MutationObserver || a.WebKitMutationObserver;
- if (f) {
- var g = 0, h = new f(c), i = a.document.createTextNode("");
- h.observe(i, { characterData: !0 }),
- e = function () {
- i.data = g = ++g % 2;
- };
- } else if (a.setImmediate || void 0 === a.MessageChannel) {
- e = "document" in a && "onreadystatechange" in a.document.createElement("script")
- ? function () {
- var b = a.document.createElement("script");
- b.onreadystatechange = function () {
- c(), b.onreadystatechange = null, b.parentNode.removeChild(b), b = null;
- }, a.document.documentElement.appendChild(b);
- }
- : function () {
- setTimeout(c, 0);
- };
- } else {
- var j = new a.MessageChannel();
- j.port1.onmessage = c,
- e = function () {
- j.port2.postMessage(0);
- };
- }
- var k, l = [];
- b.exports = d;
- }).call(
- this,
- "undefined" != typeof global
- ? global
- : "undefined" != typeof self
- ? self
- : "undefined" != typeof window
- ? window
- : {},
- );
- }, {}],
- 2: [function (a, b, c) {
- "use strict";
- function d() {}
- function e(a) {
- if ("function" != typeof a) {
- throw new TypeError("resolver must be a function");
- }
- this.state = s, this.queue = [], this.outcome = void 0, a !== d && i(this, a);
- }
- function f(a, b, c) {
- this.promise = a,
- "function" == typeof b && (this.onFulfilled = b, this.callFulfilled = this.otherCallFulfilled),
- "function" == typeof c && (this.onRejected = c, this.callRejected = this.otherCallRejected);
- }
- function g(a, b, c) {
- o(function () {
- var d;
- try {
- d = b(c);
- } catch (b) {
- return p.reject(a, b);
- }
- d === a ? p.reject(a, new TypeError("Cannot resolve promise with itself")) : p.resolve(a, d);
- });
- }
- function h(a) {
- var b = a && a.then;
- if (a && ("object" == typeof a || "function" == typeof a) && "function" == typeof b) {
- return function () {
- b.apply(a, arguments);
- };
- }
- }
- function i(a, b) {
- function c(b) {
- f || (f = !0, p.reject(a, b));
- }
- function d(b) {
- f || (f = !0, p.resolve(a, b));
- }
- function e() {
- b(d, c);
- }
- var f = !1, g = j(e);
- "error" === g.status && c(g.value);
- }
- function j(a, b) {
- var c = {};
- try {
- c.value = a(b), c.status = "success";
- } catch (a) {
- c.status = "error", c.value = a;
- }
- return c;
- }
- function k(a) {
- return a instanceof this ? a : p.resolve(new this(d), a);
- }
- function l(a) {
- var b = new this(d);
- return p.reject(b, a);
- }
- function m(a) {
- function b(a, b) {
- function d(a) {
- g[b] = a, ++h !== e || f || (f = !0, p.resolve(j, g));
- }
- c.resolve(a).then(d, function (a) {
- f || (f = !0, p.reject(j, a));
- });
- }
- var c = this;
- if ("[object Array]" !== Object.prototype.toString.call(a)) {
- return this.reject(new TypeError("must be an array"));
- }
- var e = a.length, f = !1;
- if (!e) return this.resolve([]);
- for (var g = new Array(e), h = 0, i = -1, j = new this(d); ++i < e;) b(a[i], i);
- return j;
- }
- function n(a) {
- function b(a) {
- c.resolve(a).then(function (a) {
- f || (f = !0, p.resolve(h, a));
- }, function (a) {
- f || (f = !0, p.reject(h, a));
- });
- }
- var c = this;
- if ("[object Array]" !== Object.prototype.toString.call(a)) {
- return this.reject(new TypeError("must be an array"));
- }
- var e = a.length, f = !1;
- if (!e) return this.resolve([]);
- for (var g = -1, h = new this(d); ++g < e;) b(a[g]);
- return h;
- }
- var o = a(1), p = {}, q = ["REJECTED"], r = ["FULFILLED"], s = ["PENDING"];
- b.exports = e,
- e.prototype.catch = function (a) {
- return this.then(null, a);
- },
- e.prototype.then = function (a, b) {
- if (
- "function" != typeof a && this.state === r || "function" != typeof b && this.state === q
- ) return this;
- var c = new this.constructor(d);
- if (this.state !== s) g(c, this.state === r ? a : b, this.outcome);
- else this.queue.push(new f(c, a, b));
- return c;
- },
- f.prototype.callFulfilled = function (a) {
- p.resolve(this.promise, a);
- },
- f.prototype.otherCallFulfilled = function (a) {
- g(this.promise, this.onFulfilled, a);
- },
- f.prototype.callRejected = function (a) {
- p.reject(this.promise, a);
- },
- f.prototype.otherCallRejected = function (a) {
- g(this.promise, this.onRejected, a);
- },
- p.resolve = function (a, b) {
- var c = j(h, b);
- if ("error" === c.status) return p.reject(a, c.value);
- var d = c.value;
- if (d) i(a, d);
- else {
- a.state = r, a.outcome = b;
- for (var e = -1, f = a.queue.length; ++e < f;) a.queue[e].callFulfilled(b);
- }
- return a;
- },
- p.reject = function (a, b) {
- a.state = q, a.outcome = b;
- for (var c = -1, d = a.queue.length; ++c < d;) a.queue[c].callRejected(b);
- return a;
- },
- e.resolve = k,
- e.reject = l,
- e.all = m,
- e.race = n;
- }, { 1: 1 }],
- 3: [function (a, b, c) {
- (function (b) {
- "use strict";
- "function" != typeof b.Promise && (b.Promise = a(2));
- }).call(
- this,
- "undefined" != typeof global
- ? global
- : "undefined" != typeof self
- ? self
- : "undefined" != typeof window
- ? window
- : {},
- );
- }, { 2: 2 }],
- 4: [function (a, b, c) {
- "use strict";
- function d(a, b) {
- if (!(a instanceof b)) throw new TypeError("Cannot call a class as a function");
- }
- function e() {
- try {
- if ("undefined" != typeof indexedDB) return indexedDB;
- if ("undefined" != typeof webkitIndexedDB) return webkitIndexedDB;
- if ("undefined" != typeof mozIndexedDB) return mozIndexedDB;
- if ("undefined" != typeof OIndexedDB) return OIndexedDB;
- if ("undefined" != typeof msIndexedDB) return msIndexedDB;
- } catch (a) {
- return;
- }
- }
- function f() {
- try {
- if (!ua || !ua.open) return !1;
- var a = "undefined" != typeof openDatabase &&
- /(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent) &&
- !/Chrome/.test(navigator.userAgent) && !/BlackBerry/.test(navigator.platform),
- b = "function" == typeof fetch && -1 !== fetch.toString().indexOf("[native code");
- return (!a || b) && "undefined" != typeof indexedDB && "undefined" != typeof IDBKeyRange;
- } catch (a) {
- return !1;
- }
- }
- function g(a, b) {
- a = a || [], b = b || {};
- try {
- return new Blob(a, b);
- } catch (f) {
- if ("TypeError" !== f.name) throw f;
- for (
- var c = "undefined" != typeof BlobBuilder
- ? BlobBuilder
- : "undefined" != typeof MSBlobBuilder
- ? MSBlobBuilder
- : "undefined" != typeof MozBlobBuilder
- ? MozBlobBuilder
- : WebKitBlobBuilder,
- d = new c(),
- e = 0;
- e < a.length;
- e += 1
- ) d.append(a[e]);
- return d.getBlob(b.type);
- }
- }
- function h(a, b) {
- b && a.then(function (a) {
- b(null, a);
- }, function (a) {
- b(a);
- });
- }
- function i(a, b, c) {
- "function" == typeof b && a.then(b), "function" == typeof c && a.catch(c);
- }
- function j(a) {
- return "string" != typeof a &&
- (console.warn(a + " used as a key, but it is not a string."), a = String(a)),
- a;
- }
- function k() {
- if (arguments.length && "function" == typeof arguments[arguments.length - 1]) {
- return arguments[arguments.length - 1];
- }
- }
- function l(a) {
- for (var b = a.length, c = new ArrayBuffer(b), d = new Uint8Array(c), e = 0; e < b; e++) {
- d[e] = a.charCodeAt(e);
- }
- return c;
- }
- function m(a) {
- return new va(function (b) {
- var c = a.transaction(wa, Ba), d = g([""]);
- c.objectStore(wa).put(d, "key"),
- c.onabort = function (a) {
- a.preventDefault(), a.stopPropagation(), b(!1);
- },
- c.oncomplete = function () {
- var a = navigator.userAgent.match(/Chrome\/(\d+)/),
- c = navigator.userAgent.match(/Edge\//);
- b(c || !a || parseInt(a[1], 10) >= 43);
- };
- }).catch(function () {
- return !1;
- });
- }
- function n(a) {
- return "boolean" == typeof xa ? va.resolve(xa) : m(a).then(function (a) {
- return xa = a;
- });
- }
- function o(a) {
- var b = ya[a.name], c = {};
- c.promise = new va(function (a, b) {
- c.resolve = a, c.reject = b;
- }),
- b.deferredOperations.push(c),
- b.dbReady
- ? b.dbReady = b.dbReady.then(function () {
- return c.promise;
- })
- : b.dbReady = c.promise;
- }
- function p(a) {
- var b = ya[a.name], c = b.deferredOperations.pop();
- if (c) return c.resolve(), c.promise;
- }
- function q(a, b) {
- var c = ya[a.name], d = c.deferredOperations.pop();
- if (d) return d.reject(b), d.promise;
- }
- function r(a, b) {
- return new va(function (c, d) {
- if (ya[a.name] = ya[a.name] || B(), a.db) {
- if (!b) return c(a.db);
- o(a), a.db.close();
- }
- var e = [a.name];
- b && e.push(a.version);
- var f = ua.open.apply(ua, e);
- b && (f.onupgradeneeded = function (b) {
- var c = f.result;
- try {
- c.createObjectStore(a.storeName), b.oldVersion <= 1 && c.createObjectStore(wa);
- } catch (c) {
- if ("ConstraintError" !== c.name) throw c;
- console.warn(
- 'The database "' + a.name + '" has been upgraded from version ' + b.oldVersion +
- " to version " + b.newVersion + ', but the storage "' + a.storeName +
- '" already exists.',
- );
- }
- }),
- f.onerror = function (a) {
- a.preventDefault(), d(f.error);
- },
- f.onsuccess = function () {
- var b = f.result;
- b.onversionchange = function (a) {
- a.target.close();
- },
- c(b),
- p(a);
- };
- });
- }
- function s(a) {
- return r(a, !1);
- }
- function t(a) {
- return r(a, !0);
- }
- function u(a, b) {
- if (!a.db) return !0;
- var c = !a.db.objectStoreNames.contains(a.storeName),
- d = a.version < a.db.version,
- e = a.version > a.db.version;
- if (
- d &&
- (a.version !== b &&
- console.warn(
- 'The database "' + a.name + "\" can't be downgraded from version " + a.db.version +
- " to version " + a.version + ".",
- ),
- a.version = a.db.version), e || c
- ) {
- if (c) {
- var f = a.db.version + 1;
- f > a.version && (a.version = f);
- }
- return !0;
- }
- return !1;
- }
- function v(a) {
- return new va(function (b, c) {
- var d = new FileReader();
- d.onerror = c,
- d.onloadend = function (c) {
- var d = btoa(c.target.result || "");
- b({ __local_forage_encoded_blob: !0, data: d, type: a.type });
- },
- d.readAsBinaryString(a);
- });
- }
- function w(a) {
- return g([l(atob(a.data))], { type: a.type });
- }
- function x(a) {
- return a && a.__local_forage_encoded_blob;
- }
- function y(a) {
- var b = this,
- c = b._initReady().then(function () {
- var a = ya[b._dbInfo.name];
- if (a && a.dbReady) return a.dbReady;
- });
- return i(c, a, a), c;
- }
- function z(a) {
- o(a);
- for (var b = ya[a.name], c = b.forages, d = 0; d < c.length; d++) {
- var e = c[d];
- e._dbInfo.db && (e._dbInfo.db.close(), e._dbInfo.db = null);
- }
- return a.db = null,
- s(a).then(function (b) {
- return a.db = b, u(a) ? t(a) : b;
- }).then(function (d) {
- a.db = b.db = d;
- for (var e = 0; e < c.length; e++) c[e]._dbInfo.db = d;
- }).catch(function (b) {
- throw q(a, b), b;
- });
- }
- function A(a, b, c, d) {
- void 0 === d && (d = 1);
- try {
- var e = a.db.transaction(a.storeName, b);
- c(null, e);
- } catch (e) {
- if (d > 0 && (!a.db || "InvalidStateError" === e.name || "NotFoundError" === e.name)) {
- return va.resolve().then(function () {
- if (
- !a.db ||
- "NotFoundError" === e.name && !a.db.objectStoreNames.contains(a.storeName) &&
- a.version <= a.db.version
- ) return a.db && (a.version = a.db.version + 1), t(a);
- }).then(function () {
- return z(a).then(function () {
- A(a, b, c, d - 1);
- });
- }).catch(c);
- }
- c(e);
- }
- }
- function B() {
- return { forages: [], db: null, dbReady: null, deferredOperations: [] };
- }
- function C(a) {
- function b() {
- return va.resolve();
- }
- var c = this, d = { db: null };
- if (a) { for (var e in a) d[e] = a[e]; }
- var f = ya[d.name];
- f || (f = B(), ya[d.name] = f),
- f.forages.push(c),
- c._initReady || (c._initReady = c.ready, c.ready = y);
- for (var g = [], h = 0; h < f.forages.length; h++) {
- var i = f.forages[h];
- i !== c && g.push(i._initReady().catch(b));
- }
- var j = f.forages.slice(0);
- return va.all(g).then(function () {
- return d.db = f.db, s(d);
- }).then(function (a) {
- return d.db = a, u(d, c._defaultConfig.version) ? t(d) : a;
- }).then(function (a) {
- d.db = f.db = a, c._dbInfo = d;
- for (var b = 0; b < j.length; b++) {
- var e = j[b];
- e !== c && (e._dbInfo.db = d.db, e._dbInfo.version = d.version);
- }
- });
- }
- function D(a, b) {
- var c = this;
- a = j(a);
- var d = new va(function (b, d) {
- c.ready().then(function () {
- A(c._dbInfo, Aa, function (e, f) {
- if (e) return d(e);
- try {
- var g = f.objectStore(c._dbInfo.storeName), h = g.get(a);
- h.onsuccess = function () {
- var a = h.result;
- void 0 === a && (a = null), x(a) && (a = w(a)), b(a);
- },
- h.onerror = function () {
- d(h.error);
- };
- } catch (a) {
- d(a);
- }
- });
- }).catch(d);
- });
- return h(d, b), d;
- }
- function E(a, b) {
- var c = this,
- d = new va(function (b, d) {
- c.ready().then(function () {
- A(c._dbInfo, Aa, function (e, f) {
- if (e) return d(e);
- try {
- var g = f.objectStore(c._dbInfo.storeName), h = g.openCursor(), i = 1;
- h.onsuccess = function () {
- var c = h.result;
- if (c) {
- var d = c.value;
- x(d) && (d = w(d));
- var e = a(d, c.key, i++);
- void 0 !== e ? b(e) : c.continue();
- } else b();
- },
- h.onerror = function () {
- d(h.error);
- };
- } catch (a) {
- d(a);
- }
- });
- }).catch(d);
- });
- return h(d, b), d;
- }
- function F(a, b, c) {
- var d = this;
- a = j(a);
- var e = new va(function (c, e) {
- var f;
- d.ready().then(function () {
- return f = d._dbInfo,
- "[object Blob]" === za.call(b)
- ? n(f.db).then(function (a) {
- return a ? b : v(b);
- })
- : b;
- }).then(function (b) {
- A(d._dbInfo, Ba, function (f, g) {
- if (f) return e(f);
- try {
- var h = g.objectStore(d._dbInfo.storeName);
- null === b && (b = void 0);
- var i = h.put(b, a);
- g.oncomplete = function () {
- void 0 === b && (b = null), c(b);
- },
- g.onabort = g.onerror = function () {
- var a = i.error ? i.error : i.transaction.error;
- e(a);
- };
- } catch (a) {
- e(a);
- }
- });
- }).catch(e);
- });
- return h(e, c), e;
- }
- function G(a, b) {
- var c = this;
- a = j(a);
- var d = new va(function (b, d) {
- c.ready().then(function () {
- A(c._dbInfo, Ba, function (e, f) {
- if (e) return d(e);
- try {
- var g = f.objectStore(c._dbInfo.storeName), h = g.delete(a);
- f.oncomplete = function () {
- b();
- },
- f.onerror = function () {
- d(h.error);
- },
- f.onabort = function () {
- var a = h.error ? h.error : h.transaction.error;
- d(a);
- };
- } catch (a) {
- d(a);
- }
- });
- }).catch(d);
- });
- return h(d, b), d;
- }
- function H(a) {
- var b = this,
- c = new va(function (a, c) {
- b.ready().then(function () {
- A(b._dbInfo, Ba, function (d, e) {
- if (d) return c(d);
- try {
- var f = e.objectStore(b._dbInfo.storeName), g = f.clear();
- e.oncomplete = function () {
- a();
- },
- e.onabort = e.onerror = function () {
- var a = g.error ? g.error : g.transaction.error;
- c(a);
- };
- } catch (a) {
- c(a);
- }
- });
- }).catch(c);
- });
- return h(c, a), c;
- }
- function I(a) {
- var b = this,
- c = new va(function (a, c) {
- b.ready().then(function () {
- A(b._dbInfo, Aa, function (d, e) {
- if (d) return c(d);
- try {
- var f = e.objectStore(b._dbInfo.storeName), g = f.count();
- g.onsuccess = function () {
- a(g.result);
- },
- g.onerror = function () {
- c(g.error);
- };
- } catch (a) {
- c(a);
- }
- });
- }).catch(c);
- });
- return h(c, a), c;
- }
- function J(a, b) {
- var c = this,
- d = new va(function (b, d) {
- if (a < 0) return void b(null);
- c.ready().then(function () {
- A(c._dbInfo, Aa, function (e, f) {
- if (e) return d(e);
- try {
- var g = f.objectStore(c._dbInfo.storeName), h = !1, i = g.openKeyCursor();
- i.onsuccess = function () {
- var c = i.result;
- if (!c) return void b(null);
- 0 === a ? b(c.key) : h ? b(c.key) : (h = !0, c.advance(a));
- },
- i.onerror = function () {
- d(i.error);
- };
- } catch (a) {
- d(a);
- }
- });
- }).catch(d);
- });
- return h(d, b), d;
- }
- function K(a) {
- var b = this,
- c = new va(function (a, c) {
- b.ready().then(function () {
- A(b._dbInfo, Aa, function (d, e) {
- if (d) return c(d);
- try {
- var f = e.objectStore(b._dbInfo.storeName), g = f.openKeyCursor(), h = [];
- g.onsuccess = function () {
- var b = g.result;
- if (!b) return void a(h);
- h.push(b.key), b.continue();
- },
- g.onerror = function () {
- c(g.error);
- };
- } catch (a) {
- c(a);
- }
- });
- }).catch(c);
- });
- return h(c, a), c;
- }
- function L(a, b) {
- b = k.apply(this, arguments);
- var c = this.config();
- a = "function" != typeof a && a || {},
- a.name || (a.name = a.name || c.name, a.storeName = a.storeName || c.storeName);
- var d, e = this;
- if (a.name) {
- var f = a.name === c.name && e._dbInfo.db,
- g = f ? va.resolve(e._dbInfo.db) : s(a).then(function (b) {
- var c = ya[a.name], d = c.forages;
- c.db = b;
- for (var e = 0; e < d.length; e++) d[e]._dbInfo.db = b;
- return b;
- });
- d = a.storeName
- ? g.then(function (b) {
- if (b.objectStoreNames.contains(a.storeName)) {
- var c = b.version + 1;
- o(a);
- var d = ya[a.name], e = d.forages;
- b.close();
- for (var f = 0; f < e.length; f++) {
- var g = e[f];
- g._dbInfo.db = null, g._dbInfo.version = c;
- }
- return new va(function (b, d) {
- var e = ua.open(a.name, c);
- e.onerror = function (a) {
- e.result.close(), d(a);
- },
- e.onupgradeneeded = function () {
- e.result.deleteObjectStore(a.storeName);
- },
- e.onsuccess = function () {
- var a = e.result;
- a.close(), b(a);
- };
- }).then(function (a) {
- d.db = a;
- for (var b = 0; b < e.length; b++) {
- var c = e[b];
- c._dbInfo.db = a, p(c._dbInfo);
- }
- }).catch(function (b) {
- throw (q(a, b) || va.resolve()).catch(function () {}), b;
- });
- }
- })
- : g.then(function (b) {
- o(a);
- var c = ya[a.name], d = c.forages;
- b.close();
- for (var e = 0; e < d.length; e++) d[e]._dbInfo.db = null;
- return new va(function (b, c) {
- var d = ua.deleteDatabase(a.name);
- d.onerror = function () {
- var a = d.result;
- a && a.close(), c(d.error);
- },
- d.onblocked = function () {
- console.warn(
- 'dropInstance blocked for database "' + a.name +
- '" until all open connections are closed',
- );
- },
- d.onsuccess = function () {
- var a = d.result;
- a && a.close(), b(a);
- };
- }).then(function (a) {
- c.db = a;
- for (var b = 0; b < d.length; b++) p(d[b]._dbInfo);
- }).catch(function (b) {
- throw (q(a, b) || va.resolve()).catch(function () {}), b;
- });
- });
- } else d = va.reject("Invalid arguments");
- return h(d, b), d;
- }
- function M() {
- return "function" == typeof openDatabase;
- }
- function N(a) {
- var b, c, d, e, f, g = .75 * a.length, h = a.length, i = 0;
- "=" === a[a.length - 1] && (g--, "=" === a[a.length - 2] && g--);
- var j = new ArrayBuffer(g), k = new Uint8Array(j);
- for (b = 0; b < h; b += 4) {
- c = Da.indexOf(a[b]),
- d = Da.indexOf(a[b + 1]),
- e = Da.indexOf(a[b + 2]),
- f = Da.indexOf(a[b + 3]),
- k[i++] = c << 2 | d >> 4,
- k[i++] = (15 & d) << 4 | e >> 2,
- k[i++] = (3 & e) << 6 | 63 & f;
- }
- return j;
- }
- function O(a) {
- var b, c = new Uint8Array(a), d = "";
- for (b = 0; b < c.length; b += 3) {
- d += Da[c[b] >> 2],
- d += Da[(3 & c[b]) << 4 | c[b + 1] >> 4],
- d += Da[(15 & c[b + 1]) << 2 | c[b + 2] >> 6],
- d += Da[63 & c[b + 2]];
- }
- return c.length % 3 == 2
- ? d = d.substring(0, d.length - 1) + "="
- : c.length % 3 == 1 && (d = d.substring(0, d.length - 2) + "=="),
- d;
- }
- function P(a, b) {
- var c = "";
- if (
- a && (c = Ua.call(a)),
- a &&
- ("[object ArrayBuffer]" === c || a.buffer && "[object ArrayBuffer]" === Ua.call(a.buffer))
- ) {
- var d, e = Ga;
- a instanceof ArrayBuffer
- ? (d = a, e += Ia)
- : (d = a.buffer,
- "[object Int8Array]" === c
- ? e += Ka
- : "[object Uint8Array]" === c
- ? e += La
- : "[object Uint8ClampedArray]" === c
- ? e += Ma
- : "[object Int16Array]" === c
- ? e += Na
- : "[object Uint16Array]" === c
- ? e += Pa
- : "[object Int32Array]" === c
- ? e += Oa
- : "[object Uint32Array]" === c
- ? e += Qa
- : "[object Float32Array]" === c
- ? e += Ra
- : "[object Float64Array]" === c
- ? e += Sa
- : b(new Error("Failed to get type for BinaryArray"))), b(e + O(d));
- } else if ("[object Blob]" === c) {
- var f = new FileReader();
- f.onload = function () {
- var c = Ea + a.type + "~" + O(this.result);
- b(Ga + Ja + c);
- }, f.readAsArrayBuffer(a);
- } else {try {
- b(JSON.stringify(a));
- } catch (c) {
- console.error("Couldn't convert value into a JSON string: ", a), b(null, c);
- }}
- }
- function Q(a) {
- if (a.substring(0, Ha) !== Ga) return JSON.parse(a);
- var b, c = a.substring(Ta), d = a.substring(Ha, Ta);
- if (d === Ja && Fa.test(c)) {
- var e = c.match(Fa);
- b = e[1], c = c.substring(e[0].length);
- }
- var f = N(c);
- switch (d) {
- case Ia:
- return f;
- case Ja:
- return g([f], { type: b });
- case Ka:
- return new Int8Array(f);
- case La:
- return new Uint8Array(f);
- case Ma:
- return new Uint8ClampedArray(f);
- case Na:
- return new Int16Array(f);
- case Pa:
- return new Uint16Array(f);
- case Oa:
- return new Int32Array(f);
- case Qa:
- return new Uint32Array(f);
- case Ra:
- return new Float32Array(f);
- case Sa:
- return new Float64Array(f);
- default:
- throw new Error("Unkown type: " + d);
- }
- }
- function R(a, b, c, d) {
- a.executeSql(
- "CREATE TABLE IF NOT EXISTS " + b.storeName + " (id INTEGER PRIMARY KEY, key unique, value)",
- [],
- c,
- d,
- );
- }
- function S(a) {
- var b = this, c = { db: null };
- if (a) { for (var d in a) c[d] = "string" != typeof a[d] ? a[d].toString() : a[d]; }
- var e = new va(function (a, d) {
- try {
- c.db = openDatabase(c.name, String(c.version), c.description, c.size);
- } catch (a) {
- return d(a);
- }
- c.db.transaction(function (e) {
- R(e, c, function () {
- b._dbInfo = c, a();
- }, function (a, b) {
- d(b);
- });
- }, d);
- });
- return c.serializer = Va, e;
- }
- function T(a, b, c, d, e, f) {
- a.executeSql(c, d, e, function (a, g) {
- g.code === g.SYNTAX_ERR
- ? a.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?", [
- b.storeName,
- ], function (a, h) {
- h.rows.length ? f(a, g) : R(a, b, function () {
- a.executeSql(c, d, e, f);
- }, f);
- }, f)
- : f(a, g);
- }, f);
- }
- function U(a, b) {
- var c = this;
- a = j(a);
- var d = new va(function (b, d) {
- c.ready().then(function () {
- var e = c._dbInfo;
- e.db.transaction(function (c) {
- T(
- c,
- e,
- "SELECT * FROM " + e.storeName + " WHERE key = ? LIMIT 1",
- [a],
- function (a, c) {
- var d = c.rows.length ? c.rows.item(0).value : null;
- d && (d = e.serializer.deserialize(d)), b(d);
- },
- function (a, b) {
- d(b);
- },
- );
- });
- }).catch(d);
- });
- return h(d, b), d;
- }
- function V(a, b) {
- var c = this,
- d = new va(function (b, d) {
- c.ready().then(function () {
- var e = c._dbInfo;
- e.db.transaction(function (c) {
- T(c, e, "SELECT * FROM " + e.storeName, [], function (c, d) {
- for (var f = d.rows, g = f.length, h = 0; h < g; h++) {
- var i = f.item(h), j = i.value;
- if (
- j && (j = e.serializer.deserialize(j)),
- void 0 !== (j = a(j, i.key, h + 1))
- ) return void b(j);
- }
- b();
- }, function (a, b) {
- d(b);
- });
- });
- }).catch(d);
- });
- return h(d, b), d;
- }
- function W(a, b, c, d) {
- var e = this;
- a = j(a);
- var f = new va(function (f, g) {
- e.ready().then(function () {
- void 0 === b && (b = null);
- var h = b, i = e._dbInfo;
- i.serializer.serialize(b, function (b, j) {
- j ? g(j) : i.db.transaction(function (c) {
- T(c, i, "INSERT OR REPLACE INTO " + i.storeName + " (key, value) VALUES (?, ?)", [
- a,
- b,
- ], function () {
- f(h);
- }, function (a, b) {
- g(b);
- });
- }, function (b) {
- if (b.code === b.QUOTA_ERR) {
- if (d > 0) return void f(W.apply(e, [a, h, c, d - 1]));
- g(b);
- }
- });
- });
- }).catch(g);
- });
- return h(f, c), f;
- }
- function X(a, b, c) {
- return W.apply(this, [a, b, c, 1]);
- }
- function Y(a, b) {
- var c = this;
- a = j(a);
- var d = new va(function (b, d) {
- c.ready().then(function () {
- var e = c._dbInfo;
- e.db.transaction(function (c) {
- T(c, e, "DELETE FROM " + e.storeName + " WHERE key = ?", [a], function () {
- b();
- }, function (a, b) {
- d(b);
- });
- });
- }).catch(d);
- });
- return h(d, b), d;
- }
- function Z(a) {
- var b = this,
- c = new va(function (a, c) {
- b.ready().then(function () {
- var d = b._dbInfo;
- d.db.transaction(function (b) {
- T(b, d, "DELETE FROM " + d.storeName, [], function () {
- a();
- }, function (a, b) {
- c(b);
- });
- });
- }).catch(c);
- });
- return h(c, a), c;
- }
- function $(a) {
- var b = this,
- c = new va(function (a, c) {
- b.ready().then(function () {
- var d = b._dbInfo;
- d.db.transaction(function (b) {
- T(b, d, "SELECT COUNT(key) as c FROM " + d.storeName, [], function (b, c) {
- var d = c.rows.item(0).c;
- a(d);
- }, function (a, b) {
- c(b);
- });
- });
- }).catch(c);
- });
- return h(c, a), c;
- }
- function _(a, b) {
- var c = this,
- d = new va(function (b, d) {
- c.ready().then(function () {
- var e = c._dbInfo;
- e.db.transaction(function (c) {
- T(
- c,
- e,
- "SELECT key FROM " + e.storeName + " WHERE id = ? LIMIT 1",
- [a + 1],
- function (a, c) {
- var d = c.rows.length ? c.rows.item(0).key : null;
- b(d);
- },
- function (a, b) {
- d(b);
- },
- );
- });
- }).catch(d);
- });
- return h(d, b), d;
- }
- function aa(a) {
- var b = this,
- c = new va(function (a, c) {
- b.ready().then(function () {
- var d = b._dbInfo;
- d.db.transaction(function (b) {
- T(b, d, "SELECT key FROM " + d.storeName, [], function (b, c) {
- for (var d = [], e = 0; e < c.rows.length; e++) d.push(c.rows.item(e).key);
- a(d);
- }, function (a, b) {
- c(b);
- });
- });
- }).catch(c);
- });
- return h(c, a), c;
- }
- function ba(a) {
- return new va(function (b, c) {
- a.transaction(function (d) {
- d.executeSql(
- "SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",
- [],
- function (c, d) {
- for (var e = [], f = 0; f < d.rows.length; f++) e.push(d.rows.item(f).name);
- b({ db: a, storeNames: e });
- },
- function (a, b) {
- c(b);
- },
- );
- }, function (a) {
- c(a);
- });
- });
- }
- function ca(a, b) {
- b = k.apply(this, arguments);
- var c = this.config();
- a = "function" != typeof a && a || {},
- a.name || (a.name = a.name || c.name, a.storeName = a.storeName || c.storeName);
- var d, e = this;
- return d = a.name
- ? new va(function (b) {
- var d;
- d = a.name === c.name ? e._dbInfo.db : openDatabase(a.name, "", "", 0),
- b(a.storeName ? { db: d, storeNames: [a.storeName] } : ba(d));
- }).then(function (a) {
- return new va(function (b, c) {
- a.db.transaction(function (d) {
- function e(a) {
- return new va(function (b, c) {
- d.executeSql("DROP TABLE IF EXISTS " + a, [], function () {
- b();
- }, function (a, b) {
- c(b);
- });
- });
- }
- for (var f = [], g = 0, h = a.storeNames.length; g < h; g++) {
- f.push(e(a.storeNames[g]));
- }
- va.all(f).then(function () {
- b();
- }).catch(function (a) {
- c(a);
- });
- }, function (a) {
- c(a);
- });
- });
- })
- : va.reject("Invalid arguments"),
- h(d, b),
- d;
- }
- function da() {
- try {
- return "undefined" != typeof localStorage && "setItem" in localStorage &&
- !!localStorage.setItem;
- } catch (a) {
- return !1;
- }
- }
- function ea(a, b) {
- var c = a.name + "/";
- return a.storeName !== b.storeName && (c += a.storeName + "/"), c;
- }
- function fa() {
- var a = "_localforage_support_test";
- try {
- return localStorage.setItem(a, !0), localStorage.removeItem(a), !1;
- } catch (a) {
- return !0;
- }
- }
- function ga() {
- return !fa() || localStorage.length > 0;
- }
- function ha(a) {
- var b = this, c = {};
- if (a) { for (var d in a) c[d] = a[d]; }
- return c.keyPrefix = ea(a, b._defaultConfig),
- ga() ? (b._dbInfo = c, c.serializer = Va, va.resolve()) : va.reject();
- }
- function ia(a) {
- var b = this,
- c = b.ready().then(function () {
- for (var a = b._dbInfo.keyPrefix, c = localStorage.length - 1; c >= 0; c--) {
- var d = localStorage.key(c);
- 0 === d.indexOf(a) && localStorage.removeItem(d);
- }
- });
- return h(c, a), c;
- }
- function ja(a, b) {
- var c = this;
- a = j(a);
- var d = c.ready().then(function () {
- var b = c._dbInfo, d = localStorage.getItem(b.keyPrefix + a);
- return d && (d = b.serializer.deserialize(d)), d;
- });
- return h(d, b), d;
- }
- function ka(a, b) {
- var c = this,
- d = c.ready().then(function () {
- for (
- var b = c._dbInfo, d = b.keyPrefix, e = d.length, f = localStorage.length, g = 1, h = 0;
- h < f;
- h++
- ) {
- var i = localStorage.key(h);
- if (0 === i.indexOf(d)) {
- var j = localStorage.getItem(i);
- if (
- j && (j = b.serializer.deserialize(j)),
- void 0 !== (j = a(j, i.substring(e), g++))
- ) return j;
- }
- }
- });
- return h(d, b), d;
- }
- function la(a, b) {
- var c = this,
- d = c.ready().then(function () {
- var b, d = c._dbInfo;
- try {
- b = localStorage.key(a);
- } catch (a) {
- b = null;
- }
- return b && (b = b.substring(d.keyPrefix.length)), b;
- });
- return h(d, b), d;
- }
- function ma(a) {
- var b = this,
- c = b.ready().then(function () {
- for (var a = b._dbInfo, c = localStorage.length, d = [], e = 0; e < c; e++) {
- var f = localStorage.key(e);
- 0 === f.indexOf(a.keyPrefix) && d.push(f.substring(a.keyPrefix.length));
- }
- return d;
- });
- return h(c, a), c;
- }
- function na(a) {
- var b = this,
- c = b.keys().then(function (a) {
- return a.length;
- });
- return h(c, a), c;
- }
- function oa(a, b) {
- var c = this;
- a = j(a);
- var d = c.ready().then(function () {
- var b = c._dbInfo;
- localStorage.removeItem(b.keyPrefix + a);
- });
- return h(d, b), d;
- }
- function pa(a, b, c) {
- var d = this;
- a = j(a);
- var e = d.ready().then(function () {
- void 0 === b && (b = null);
- var c = b;
- return new va(function (e, f) {
- var g = d._dbInfo;
- g.serializer.serialize(b, function (b, d) {
- if (d) f(d);
- else {try {
- localStorage.setItem(g.keyPrefix + a, b), e(c);
- } catch (a) {
- "QuotaExceededError" !== a.name && "NS_ERROR_DOM_QUOTA_REACHED" !== a.name ||
- f(a), f(a);
- }}
- });
- });
- });
- return h(e, c), e;
- }
- function qa(a, b) {
- if (b = k.apply(this, arguments), a = "function" != typeof a && a || {}, !a.name) {
- var c = this.config();
- a.name = a.name || c.name, a.storeName = a.storeName || c.storeName;
- }
- var d, e = this;
- return d = a.name
- ? new va(function (b) {
- b(a.storeName ? ea(a, e._defaultConfig) : a.name + "/");
- }).then(function (a) {
- for (var b = localStorage.length - 1; b >= 0; b--) {
- var c = localStorage.key(b);
- 0 === c.indexOf(a) && localStorage.removeItem(c);
- }
- })
- : va.reject("Invalid arguments"),
- h(d, b),
- d;
- }
- function ra(a, b) {
- a[b] = function () {
- var c = arguments;
- return a.ready().then(function () {
- return a[b].apply(a, c);
- });
- };
- }
- function sa() {
- for (var a = 1; a < arguments.length; a++) {
- var b = arguments[a];
- if (b) {
- for (var c in b) {
- b.hasOwnProperty(c) &&
- ($a(b[c]) ? arguments[0][c] = b[c].slice() : arguments[0][c] = b[c]);
- }
- }
- }
- return arguments[0];
- }
- var ta = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
- ? function (a) {
- return typeof a;
- }
- : function (a) {
- return a && "function" == typeof Symbol && a.constructor === Symbol &&
- a !== Symbol.prototype
- ? "symbol"
- : typeof a;
- },
- ua = e();
- "undefined" == typeof Promise && a(3);
- var va = Promise,
- wa = "local-forage-detect-blob-support",
- xa = void 0,
- ya = {},
- za = Object.prototype.toString,
- Aa = "readonly",
- Ba = "readwrite",
- Ca = {
- _driver: "asyncStorage",
- _initStorage: C,
- _support: f(),
- iterate: E,
- getItem: D,
- setItem: F,
- removeItem: G,
- clear: H,
- length: I,
- key: J,
- keys: K,
- dropInstance: L,
- },
- Da = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
- Ea = "~~local_forage_type~",
- Fa = /^~~local_forage_type~([^~]+)~/,
- Ga = "__lfsc__:",
- Ha = Ga.length,
- Ia = "arbf",
- Ja = "blob",
- Ka = "si08",
- La = "ui08",
- Ma = "uic8",
- Na = "si16",
- Oa = "si32",
- Pa = "ur16",
- Qa = "ui32",
- Ra = "fl32",
- Sa = "fl64",
- Ta = Ha + Ia.length,
- Ua = Object.prototype.toString,
- Va = { serialize: P, deserialize: Q, stringToBuffer: N, bufferToString: O },
- Wa = {
- _driver: "webSQLStorage",
- _initStorage: S,
- _support: M(),
- iterate: V,
- getItem: U,
- setItem: X,
- removeItem: Y,
- clear: Z,
- length: $,
- key: _,
- keys: aa,
- dropInstance: ca,
- },
- Xa = {
- _driver: "localStorageWrapper",
- _initStorage: ha,
- _support: da(),
- iterate: ka,
- getItem: ja,
- setItem: pa,
- removeItem: oa,
- clear: ia,
- length: na,
- key: la,
- keys: ma,
- dropInstance: qa,
- },
- Ya = function (a, b) {
- return a === b || "number" == typeof a && "number" == typeof b && isNaN(a) && isNaN(b);
- },
- Za = function (a, b) {
- for (var c = a.length, d = 0; d < c;) {
- if (Ya(a[d], b)) return !0;
- d++;
- }
- return !1;
- },
- $a = Array.isArray || function (a) {
- return "[object Array]" === Object.prototype.toString.call(a);
- },
- _a = {},
- ab = {},
- bb = { INDEXEDDB: Ca, WEBSQL: Wa, LOCALSTORAGE: Xa },
- cb = [bb.INDEXEDDB._driver, bb.WEBSQL._driver, bb.LOCALSTORAGE._driver],
- db = ["dropInstance"],
- eb = ["clear", "getItem", "iterate", "key", "keys", "length", "removeItem", "setItem"].concat(db),
- fb = {
- description: "",
- driver: cb.slice(),
- name: "localforage",
- size: 4980736,
- storeName: "keyvaluepairs",
- version: 1,
- },
- gb = function () {
- function a(b) {
- d(this, a);
- for (var c in bb) {
- if (bb.hasOwnProperty(c)) {
- var e = bb[c], f = e._driver;
- this[c] = f, _a[f] || this.defineDriver(e);
- }
- }
- this._defaultConfig = sa({}, fb),
- this._config = sa({}, this._defaultConfig, b),
- this._driverSet = null,
- this._initDriver = null,
- this._ready = !1,
- this._dbInfo = null,
- this._wrapLibraryMethodsWithReady(),
- this.setDriver(this._config.driver).catch(function () {});
- }
- return a.prototype.config = function (a) {
- if ("object" === (void 0 === a ? "undefined" : ta(a))) {
- if (this._ready) {
- return new Error(
- "Can't call config() after localforage has been used.",
- );
- }
- for (var b in a) {
- if (
- "storeName" === b && (a[b] = a[b].replace(/\W/g, "_")),
- "version" === b && "number" != typeof a[b]
- ) return new Error("Database version must be a number.");
- this._config[b] = a[b];
- }
- return !("driver" in a && a.driver) || this.setDriver(this._config.driver);
- }
- return "string" == typeof a ? this._config[a] : this._config;
- },
- a.prototype.defineDriver = function (a, b, c) {
- var d = new va(function (b, c) {
- try {
- var d = a._driver,
- e = new Error(
- "Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver",
- );
- if (!a._driver) return void c(e);
- for (var f = eb.concat("_initStorage"), g = 0, i = f.length; g < i; g++) {
- var j = f[g];
- if ((!Za(db, j) || a[j]) && "function" != typeof a[j]) return void c(e);
- }
- (function () {
- for (
- var b = function (a) {
- return function () {
- var b = new Error(
- "Method " + a +
- " is not implemented by the current driver",
- ),
- c = va.reject(b);
- return h(c, arguments[arguments.length - 1]), c;
- };
- },
- c = 0,
- d = db.length;
- c < d;
- c++
- ) {
- var e = db[c];
- a[e] || (a[e] = b(e));
- }
- })();
- var k = function (c) {
- _a[d] && console.info("Redefining LocalForage driver: " + d),
- _a[d] = a,
- ab[d] = c,
- b();
- };
- "_support" in a
- ? a._support && "function" == typeof a._support
- ? a._support().then(k, c)
- : k(!!a._support)
- : k(!0);
- } catch (a) {
- c(a);
- }
- });
- return i(d, b, c), d;
- },
- a.prototype.driver = function () {
- return this._driver || null;
- },
- a.prototype.getDriver = function (a, b, c) {
- var d = _a[a] ? va.resolve(_a[a]) : va.reject(new Error("Driver not found."));
- return i(d, b, c), d;
- },
- a.prototype.getSerializer = function (a) {
- var b = va.resolve(Va);
- return i(b, a), b;
- },
- a.prototype.ready = function (a) {
- var b = this,
- c = b._driverSet.then(function () {
- return null === b._ready && (b._ready = b._initDriver()), b._ready;
- });
- return i(c, a, a), c;
- },
- a.prototype.setDriver = function (a, b, c) {
- function d() {
- g._config.driver = g.driver();
- }
- function e(a) {
- return g._extend(a), d(), g._ready = g._initStorage(g._config), g._ready;
- }
- function f(a) {
- return function () {
- function b() {
- for (; c < a.length;) {
- var f = a[c];
- return c++,
- g._dbInfo = null,
- g._ready = null,
- g.getDriver(f).then(e).catch(b);
- }
- d();
- var h = new Error("No available storage method found.");
- return g._driverSet = va.reject(h), g._driverSet;
- }
- var c = 0;
- return b();
- };
- }
- var g = this;
- $a(a) || (a = [a]);
- var h = this._getSupportedDrivers(a),
- j = null !== this._driverSet
- ? this._driverSet.catch(function () {
- return va.resolve();
- })
- : va.resolve();
- return this._driverSet = j.then(function () {
- var a = h[0];
- return g._dbInfo = null,
- g._ready = null,
- g.getDriver(a).then(function (a) {
- g._driver = a._driver,
- d(),
- g._wrapLibraryMethodsWithReady(),
- g._initDriver = f(h);
- });
- }).catch(function () {
- d();
- var a = new Error("No available storage method found.");
- return g._driverSet = va.reject(a), g._driverSet;
- }),
- i(this._driverSet, b, c),
- this._driverSet;
- },
- a.prototype.supports = function (a) {
- return !!ab[a];
- },
- a.prototype._extend = function (a) {
- sa(this, a);
- },
- a.prototype._getSupportedDrivers = function (a) {
- for (var b = [], c = 0, d = a.length; c < d; c++) {
- var e = a[c];
- this.supports(e) && b.push(e);
- }
- return b;
- },
- a.prototype._wrapLibraryMethodsWithReady = function () {
- for (var a = 0, b = eb.length; a < b; a++) ra(this, eb[a]);
- },
- a.prototype.createInstance = function (b) {
- return new a(b);
- },
- a;
- }(),
- hb = new gb();
- b.exports = hb;
- }, { 3: 3 }],
- },
- {},
- [4],
- )(4);
-});
diff --git a/site/tmp/newMsgUl.js b/site/tmp/newMsgUl.js
deleted file mode 100644
index 67a0d19..0000000
--- a/site/tmp/newMsgUl.js
+++ /dev/null
@@ -1,28 +0,0 @@
-div(
- {
- "class": "newMessage-module__new_message__7AimN ",
- },
- button(
- {
- "type": "button",
- "class": "newMessage-module__button_new_message__4lxeN",
- },
- strong(
- {
- "class": "newMessage-module__name__i7cy-",
- },
- pre(
- {},
- "user",
- ),
- ),
- p(
- {
- "class": "newMessage-module__description__Bp-zX",
- },
- span(
- {},
- ),
- ),
- ),
-);
diff --git a/site/tmp/overUI.js b/site/tmp/overUI.js
deleted file mode 100644
index ea40bfe..0000000
--- a/site/tmp/overUI.js
+++ /dev/null
@@ -1,434 +0,0 @@
-// #modal-root > div
-//profile
-div(
- {
- "class": "profileModal-module__modal__QRrnT ",
- "role": "dialog",
- "aria-labelledby": "profile modal",
- "style": "position: absolute; z-index: 28; left: 40%; top: 40%; height: fit-content; background-color: #fff;",
- },
- div(
- {
- "class": "profileModal-module__content__qKTEy",
- },
- div(
- {
- "class": "profileModal-module__info_area__VRAIt",
- },
- div(
- {
- "class": "profileImage-module__thumbnail_wrap__0bK7m ",
- "data-mid": "UWFbyqkZaWy8RbxqKUd2J_jPG-YLeoKRlwwlqlGZqnGA",
- "data-profile-image": "true",
- "style": "border-radius: 50%;cursor: default;margin: 30% 0 0 0;",
- },
- div(
- {
- "class": "profileImage-module__thumbnail_area__nqIpB",
- },
- span(
- {
- "class": "profileImage-module__thumbnail__Q6OsR",
- },
- img(
- {
- "src": "",
- "class": "",
- "loading": "lazy",
- "alt": "",
- "draggable": "false",
- },
- ),
- ),
- ),
- ),
- div(
- {
- "class": "profileModal-module__name_box__vJfbr",
- },
- button(
- {
- "class": "editButton-module__button_edit__GA02s ",
- "type": "button",
- "aria-pressed": "false",
- "data-ellipsis": "1",
- },
- span(
- {
- "class": "editButton-module__name__uQ-y5",
- },
- pre(
- {},
- span(
- {},
- "大島 聡太郎",
- ),
- ),
- ),
- i(
- {
- "class": "icon editButton-module__icon__rQo8u",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M20.0996 19.2397v1.3H3.9176v-1.3h16.182ZM14.9654 3.4603l3.133 3.134-11.063 11.065h-3.135v-3.133l11.065-11.066Z",
- },
- ),
- ),
- ),
- ),
- ),
- form(
- {
- "class": "editInput-module__edit_box__ygtSs",
- },
- label(
- {
- "class": "editInput-module__label_text__5j1Nn",
- },
- input(
- {
- "type": "text",
- "class": "editInput-module__input_text__X58rV ",
- "placeholder": "大島 聡太郎",
- "maxlength": "20",
- "value": "大島 聡太郎",
- },
- ),
- span(
- {
- "class": "editInput-module__count__GpSgr",
- },
- "(6/20)",
- ),
- ),
- button(
- {
- "type": "submit",
- "class": "editInput-module__button_confirm__r46cQ",
- "aria-label": "confirm button",
- },
- i(
- {
- "class": "icon editInput-module__icon__UT9Fu",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "m10 18.561-7.707-7.707L3.707 9.44 10 15.732 20.293 5.439l1.414 1.415z",
- },
- ),
- ),
- ),
- ),
- ),
- button(
- {
- "type": "button",
- "class": "editInput-module__button_cancel__A7CNA",
- "aria-label": "cancel button",
- },
- i(
- {
- "class": "icon editInput-module__icon__UT9Fu",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "m19.008 6.406-1.414-1.414L12 10.586 6.405 4.992 4.991 6.406 10.586 12l-5.595 5.594 1.414 1.415L12 13.414l5.594 5.595 1.414-1.415L13.414 12z",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "profileModal-module__description_box__Jb6O2",
- },
- p(
- {
- "class": "profileModal-module__description__hSNDU",
- "data-tooltip": "87f15f9f-0c36-4796-bf4e-f74d9f10fef5",
- },
- ),
- ),
- ),
- div(
- {
- "class": "profileModal-module__action_area__gN4d-",
- },
- button(
- {
- "type": "button",
- "class": "profileModal-module__button_action__SmB4T",
- "aria-label": "chat",
- "data-tooltip": "トーク",
- },
- i(
- {
- "class": "icon profileModal-module__icon__ryFCf",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M11.9997 3.257c5.156 0 9.35 3.685 9.35 8.215 0 4.53-4.194 8.216-9.35 8.216-1.289 0-2.543-.232-3.732-.69l-2.846 1.657a.6473.6473 0 0 1-.327.088.649.649 0 0 1-.64-.765l.552-3.061c-1.523-1.506-2.357-3.426-2.357-5.445 0-4.53 4.195-8.215 9.35-8.215Zm3.783 7.227c-.546 0-.989.442-.989.988s.443.989.989.989.988-.443.988-.989-.442-.988-.988-.988Zm-3.783 0c-.546 0-.988.442-.988.988s.442.989.988.989.989-.443.989-.989-.443-.988-.989-.988Zm-3.782 0c-.546 0-.989.442-.989.988s.443.989.989.989c.545 0 .988-.443.988-.989s-.443-.988-.988-.988Z",
- },
- ),
- ),
- ),
- ),
- ),
- button(
- {
- "type": "button",
- "class": "profileModal-module__button_action__SmB4T",
- "aria-label": "home",
- "data-tooltip": "ホーム",
- },
- i(
- {
- "class": "icon profileModal-module__icon__ryFCf",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "m12.3875 3.927-.001-.001-.386-.297-.387.297c0 .001 0 .001-.001.001L2 11.3194l.775 1.0084 2.4839-1.9103v8.8298c0 .6195.5033 1.1237 1.1228 1.1237h5.1302V16.437h.9772v3.9341h5.1292c.6195 0 1.1228-.5042 1.1228-1.1237v-8.8298l2.484 1.9103L22 11.3194 12.3875 3.927Z",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
-);
-//msgUI
-div(
- {
- "style": "position: absolute; z-index: 28; left: 575px; top: 335px;",
- },
- div(
- {
- "class": "actionPopoverLayout-module__popover_wrap__Eob7j ",
- "style": "left: auto; opacity: 1; right: 0px;",
- },
- ul(
- {
- "class": "actionPopoverList-module__action_list__tJDFe",
- },
- li(
- {
- "class": "actionPopoverListItem-module__action_item__sCl2u",
- },
- button(
- {
- "type": "button",
- "class": "actionPopoverListItem-module__button_action__mHl56",
- "aria-haspopup": "false",
- "aria-expanded": "true",
- },
- "リプライ",
- ),
- ),
- li(
- {
- "class": "actionPopoverListItem-module__action_item__sCl2u",
- },
- button(
- {
- "type": "button",
- "class": "actionPopoverListItem-module__button_action__mHl56",
- "aria-haspopup": "false",
- "aria-expanded": "true",
- },
- "コピー",
- ),
- ),
- li(
- {
- "class": "actionPopoverListItem-module__action_item__sCl2u",
- },
- button(
- {
- "type": "button",
- "class": "actionPopoverListItem-module__button_action__mHl56",
- "aria-haspopup": "false",
- "aria-expanded": "true",
- },
- "転送",
- ),
- ),
- ),
- ul(
- {
- "class": "actionPopoverList-module__action_list__tJDFe",
- },
- li(
- {
- "class": "actionPopoverListItem-module__action_item__sCl2u",
- },
- button(
- {
- "type": "button",
- "class": "actionPopoverListItem-module__button_action__mHl56",
- "aria-haspopup": "false",
- "aria-expanded": "true",
- },
- "通報",
- ),
- ),
- ),
- ),
-);
-
-// group :UI
-div(
- {
- "style": "position: absolute; z-index: 28; left: 766px; top: 69.4167px;",
- },
- div(
- {
- "class": "actionPopoverLayout-module__popover_wrap__Eob7j ",
- "style": "left: auto; opacity: 1; right: 27px;",
- },
- ul(
- {
- "class": "actionPopoverList-module__action_list__tJDFe",
- },
- li(
- {
- "class": "actionPopoverListItem-module__action_item__sCl2u",
- },
- button(
- {
- "type": "button",
- "class": "actionPopoverListItem-module__button_action__mHl56",
- "aria-haspopup": "false",
- "aria-expanded": "true",
- },
- "通知オフ",
- ),
- ),
- li(
- {
- "class": "actionPopoverListItem-module__action_item__sCl2u",
- },
- button(
- {
- "type": "button",
- "class": "actionPopoverListItem-module__button_action__mHl56",
- "aria-haspopup": "false",
- "aria-expanded": "true",
- },
- "招待",
- ),
- ),
- ),
- ul(
- {
- "class": "actionPopoverList-module__action_list__tJDFe",
- },
- li(
- {
- "class": "actionPopoverListItem-module__action_item__sCl2u",
- },
- button(
- {
- "type": "button",
- "class": "actionPopoverListItem-module__button_action__mHl56",
- "aria-haspopup": "false",
- "aria-expanded": "true",
- },
- "グループを編集",
- ),
- ),
- li(
- {
- "class": "actionPopoverListItem-module__action_item__sCl2u",
- },
- button(
- {
- "type": "button",
- "class": "actionPopoverListItem-module__button_action__mHl56",
- "aria-haspopup": "false",
- "aria-expanded": "true",
- },
- "通報",
- ),
- ),
- li(
- {
- "class": "actionPopoverListItem-module__action_item__sCl2u",
- },
- button(
- {
- "type": "button",
- "class": "actionPopoverListItem-module__button_action__mHl56",
- "aria-haspopup": "false",
- "aria-expanded": "true",
- },
- "グループ退会",
- ),
- ),
- ),
- ),
-);
diff --git a/site/tmp/reportUI.js b/site/tmp/reportUI.js
deleted file mode 100644
index 2cd31b2..0000000
--- a/site/tmp/reportUI.js
+++ /dev/null
@@ -1,219 +0,0 @@
-div(
- {
- "id": "root",
- "style": "min-width: 264px; min-height: 442px;",
- },
- div(
- {
- "class": "reportPopup-module__popup__gOoi- ",
- },
- div(
- {
- "class": "reportPopup-module__header__tvDLL",
- },
- strong(
- {
- "class": "reportPopup-module__title__aWBrs",
- },
- "通報",
- ),
- ),
- div(
- {
- "class": "reportPopup-module__contents__ym78g",
- },
- div(
- {
- "class": "reportPopup-module__select_box__330HE",
- },
- p(
- {
- "class": "reportPopup-module__description__SZQas",
- },
- "通報する理由を選択してください",
- ),
- ul(
- {},
- li(
- {},
- div(
- {
- "class": "radio-module__radio_wrap__AaS4a",
- },
- label(
- {
- "class": "radio-module__radio_label__sDfDn",
- },
- input(
- {
- "type": "radio",
- "class": "blind radio-module__radio_input__xqGP8 ",
- "name": "report_reason",
- "value": "スパム / 宣伝目的",
- "checked": "",
- },
- ),
- i(
- {
- "class": "radio-module__icon__17T16",
- },
- ),
- span(
- {
- "class": "radio-module__text__CEMXA",
- },
- "スパム / 宣伝目的",
- ),
- ),
- ),
- ),
- li(
- {},
- div(
- {
- "class": "radio-module__radio_wrap__AaS4a",
- },
- label(
- {
- "class": "radio-module__radio_label__sDfDn",
- },
- input(
- {
- "type": "radio",
- "class": "blind radio-module__radio_input__xqGP8 ",
- "name": "report_reason",
- "value": "性的いやがらせ / 出会い目的",
- },
- ),
- i(
- {
- "class": "radio-module__icon__17T16",
- },
- ),
- span(
- {
- "class": "radio-module__text__CEMXA",
- },
- "性的いやがらせ / 出会い目的",
- ),
- ),
- ),
- ),
- li(
- {},
- div(
- {
- "class": "radio-module__radio_wrap__AaS4a",
- },
- label(
- {
- "class": "radio-module__radio_label__sDfDn",
- },
- input(
- {
- "type": "radio",
- "class": "blind radio-module__radio_input__xqGP8 ",
- "name": "report_reason",
- "value": "迷惑行為",
- },
- ),
- i(
- {
- "class": "radio-module__icon__17T16",
- },
- ),
- span(
- {
- "class": "radio-module__text__CEMXA",
- },
- "迷惑行為",
- ),
- ),
- ),
- ),
- li(
- {},
- div(
- {
- "class": "radio-module__radio_wrap__AaS4a",
- },
- label(
- {
- "class": "radio-module__radio_label__sDfDn",
- },
- input(
- {
- "type": "radio",
- "class": "blind radio-module__radio_input__xqGP8 ",
- "name": "report_reason",
- "value": "その他",
- },
- ),
- i(
- {
- "class": "radio-module__icon__17T16",
- },
- ),
- span(
- {
- "class": "radio-module__text__CEMXA",
- },
- "その他",
- ),
- ),
- ),
- ),
- ),
- ),
- pre(
- {
- "class": "reportPopup-module__description__SZQas",
- },
- "通報するとLINEに以下の情報が送信され、通報内容の確認・対応や不正利用防止ツールの開発を含む不正利用防止のために利用されます。\nまた、上記目的の達成に必要な範囲で以下の情報を業務委託先に共有することがあります。\n\n■送信される情報:\n最近送受信した10件のトークメッセージ、グループの情報(表示名/グループの画像/あなたをグループに招待したユーザーの情報等)、通報者の情報(表示名/プロフィール画像等)",
- ),
- ),
- div(
- {
- "class": "reportPopup-module__footer__8dbYz",
- },
- div(
- {
- "class": "reportPopup-module__button_group__Aw3yL",
- },
- button(
- {
- "class": "reportPopup-module__button_cancel__-9EqR button-module__button__NBD6v ",
- "type": "button",
- "data-shape": "contained",
- },
- span(
- {
- "class": "button-module__text__sF0fb",
- },
- "キャンセル",
- ),
- ),
- button(
- {
- "class": "reportPopup-module__button_confirm__epFlj button-module__button__NBD6v ",
- "type": "button",
- "data-shape": "contained",
- "data-color": "primary",
- },
- span(
- {
- "class": "button-module__text__sF0fb",
- },
- "同意して送信",
- ),
- ),
- ),
- ),
- ),
- ul(
- {
- "class": "ToastContainer-module__toast-list__QAniw",
- "style": "z-index: 100;",
- },
- ),
-);
diff --git a/site/tmp/script.js b/site/tmp/script.js
deleted file mode 100644
index 6a7074b..0000000
--- a/site/tmp/script.js
+++ /dev/null
@@ -1,363 +0,0 @@
-class LineTCompactSocket {
- constructor(gwPath, authToken, device, resolve, extraH) {
- this.socket = {};
- this.socketInfo = {};
- let appVer, sysName, sysVer, UA, appName;
- sysVer = "12.1.4";
- switch (device) {
- case "DESKTOPWIN":
- appVer = "7.16.1.3000";
- sysName = "WINDOWS";
- sysVer = "10.0.0-NT-x64";
- break;
- case "DESKTOPMAC":
- appVer = "7.16.1.3000";
- sysName = "MAC";
- break;
- case "CHROMEOS":
- appVer = "3.0.3";
- sysName = "Chrome_OS";
- sysVer = "1";
- break;
- case "ANDROID":
- appVer = "13.4.1";
- sysName = "Android OS";
- break;
- case "IOS":
- appVer = "13.3.0";
- sysName = "iOS";
- break;
- case "IOSIPAD":
- appVer = "13.3.0";
- sysName = "iOS";
- break;
- case "WATCHOS":
- appVer = "13.3.0";
- sysName = "Watch OS";
- break;
- case "WEAROS":
- appVer = "13.4.1";
- sysName = "Wear OS";
- break;
- default:
- throw new Error("deviceName is wrong");
- break;
- }
- appName = device + "\t" + appVer + "\t" + sysName + "\t" + sysVer;
- UA = "Line/" + appVer;
- this.config = {
- ua: UA,
- appName: appName,
- };
- let account = { path: gwPath, auth: authToken, ua: UA, type: appName };
- if (extraH) {
- account["ex"] = JSON.stringify(extraH);
- }
- this.wsURL = "ws" + location.protocol.replace(":", "").replace("http", "") + "://" + location.host + "/post?" +
- new URLSearchParams(account).toString();
- this.socket.post = new WebSocket(this.wsURL);
- this.socket.post.onopen = (e) => {
- try {
- resolve(this);
- } catch (e) {
- }
- this.socketInfo.post = { status: "open", waitFunc: {} };
- };
- this.socket.post.onclose = (e) => {
- this.socketInfo.post.status = false;
- };
- this.socket.post.onmessage = null;
- this.socket.post.onclose = (e) => {
- this.socketInfo.post = { status: false };
- };
- }
- closeSocket() {
- try {
- this.socket.post.close();
- } catch (e) {
- }
- }
- reOpenSocket(resolve) {
- this.closeSocket();
- this.socket.post = new WebSocket(this.wsURL);
- this.socket.post.onopen = (e) => {
- try {
- resolve(this);
- } catch (e) {
- }
- this.socketInfo.post = { status: "open", waitFunc: {} };
- };
- this.socket.post.onclose = (e) => {
- this.socketInfo.post.status = false;
- };
- this.socket.post.onmessage = null;
- this.socket.post.onclose = (e) => {
- this.socketInfo.post = { status: false };
- };
- }
- post(data) {
- return new Promise((resolve, reject) => {
- data.id = Date.now();
- this.send(this.socket.post, this.socketInfo.post.waitFunc, data, resolve);
- });
- }
- postr(data) {
- return new Promise((resolve, reject) => {
- data.id = Date.now();
- this.sendr(this.socket.post, this.socketInfo.post.waitFunc, data, resolve);
- });
- }
- postAndCheckResponse(data) {
- return new Promise((resolve, reject) => {
- this.post(data).then((r) => {
- if (r.err) {
- throw new Error(r.err);
- } else {
- resolve(r);
- }
- });
- });
- }
-
- async postParseThrift(data) {
- let reqJson, resJson;
- reqJson = data;
- resJson = JSON.parse(await this.postAndCheckResponse(reqJson));
- if (reqJson.err) {
- throw new Error("Server Error : " + reqJson.err);
- }
- return resJson;
- }
- async postCHRRequestAndGetResponse(data, methodName) {
- let request = { value: data, name: methodName, type: 3 };
- let response = await this.postParseThrift(request);
- return response.value;
- }
- async postRequestAndGetResponse(data, methodName) {
- let request = { value: data, name: methodName, type: 1 };
- let response = await this.postParseThrift(request);
- return response.value;
- }
- async postRequestAndGetContinueResponse(data, methodName) {
- let responseList = [];
- let addKeys = [];
- let noAddKeys = [];
- let request = { value: data, name: methodName, type: 1 };
- let response = await this.postParseThrift(request);
- responseList.push(response.value);
- while (response.value.continuationToken) {
- request.value.continuationToken = response.value.continuationToken;
- request.value.syncToken = response.value.syncToken;
- response = await this.postParseThrift(request);
- responseList.push(response.value);
- }
- Object.keys(responseList[0]).forEach((e) => {
- if ((typeof responseList[0][e]) == "object") {
- addKeys.push(e);
- } else {
- noAddKeys.push(e);
- }
- });
- let returnjson = {};
- responseList.forEach((e) => {
- noAddKeys.forEach((f) => {
- returnjson[f] = e[f];
- });
- addKeys.forEach((g) => {
- if (e[g].forEach) {
- if (returnjson[g]) {
- returnjson[g] = [...returnjson[g], ...e[g]];
- } else {
- returnjson[g] = e[g];
- }
- } else {
- if (returnjson[g]) {
- returnjson[g] = { ...returnjson[g], ...e[g] };
- } else {
- returnjson[g] = e[g];
- }
- }
- });
- });
- return returnjson;
- }
- send(socket, FuncMap, data, returnFunc) {
- if (socket.readyState === socket.OPEN) {
- socket.send(JSON.stringify(data));
- FuncMap[data.id] = (e) => {
- returnFunc(e.data);
- };
- socket.onmessage = (e) => {
- try {
- let j = JSON.parse(e.data);
- FuncMap[j.id](e);
- delete FuncMap[j.id];
- } catch (error) {
- try {
- let j = new Uint8Array(e.data);
- let id = 0;
- for (let index = 0; index < j[2]; index++) {
- const element = j[3 + index];
- id += element * (0xff ** index);
- }
- FuncMap[id](j.slice(3 + j[2]));
- delete FuncMap[id];
- } catch (error) {
- }
- }
- };
- } else throw new Error("socket not open");
- }
-}
-
-class LineSquareClient {
- constructor(authToken, device, resolve) {
- this.S4 = new LineTCompactSocket("/S4", authToken, device, () => {
- setTimeout(async () => {
- const res = await this.S4.postCHRRequestAndGetResponse([], "getProfile");
- this.mid = res[1];
- this.name = res[20];
- try {
- resolve();
- } catch (error) {
- }
- }, 200);
- });
- this.SQ1 = new LineTCompactSocket("/SQ1", authToken, device);
- this.authToken = authToken;
- this.deviceName = device;
- }
- async findSquareByInvitationTicket(ticket) {
- let v = { invitationTicket: ticket };
- let n = "findSquareByInvitationTicket";
- return await this.SQ1.postRequestAndGetResponse(v, n);
- }
- async getJoinedSquares() {
- let v = { limit: 100 };
- let n = "getJoinedSquares";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async searchSquareMembers(squareMid, searchOption = {}) {
- let v = {
- squareMid: squareMid,
- searchOption: searchOption,
- limit: 200,
- };
- let n = "searchSquareMembers";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async getBannedMembers(squareMid) {
- return await this.searchSquareMembers(squareMid, { "membershipState": 6 });
- }
- async sendTxtMessage(squareChatMid, text, contentMetadata = {}, reqSeq = 1) {
- let v = {
- reqSeq: reqSeq,
- squareChatMid: squareChatMid,
- squareMessage: {
- message: {
- to: squareChatMid,
- contentType: 0,
- text: text,
- contentMetadata: contentMetadata,
- },
- },
- };
- let n = "sendMessage";
- return await this.SQ1.postRequestAndGetResponse(v, n);
- }
- async fetchMyEvents(syncToken) {
- let v = {
- syncToken: syncToken,
- limit: 200,
- };
- if (!v.syncToken) {
- delete v.syncToken;
- }
- let n = "fetchMyEvents";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async fetchSquareChatEvents(squareChatMid, syncToken) {
- let v = {
- squareChatMid: squareChatMid,
- limit: 90,
- };
- if (syncToken) {
- v.syncToken = syncToken;
- }
- let n = "fetchSquareChatEvents";
- return await this.SQ1.postRequestAndGetResponse(v, n);
- }
- async getSquareMember(mid) {
- return await this.SQ1.postCHRRequestAndGetResponse([12, 1, [11, 2, mid]], "getSquareMember");
- }
- async getSquareChatMembers(mid) {
- let v = {
- squareChatMid: mid,
- limit: 200,
- };
- let n = "getSquareChatMembers";
- return await this.SQ1.postRequestAndGetContinueResponse(v, n);
- }
- async getJoinedSquareChats() {
- let syncToken =
- (Number((await this.SQ1.postRequestAndGetResponse({ limit: 10 }, "fetchMyEvents")).syncToken) - 1000)
- .toString();
- let data = await this.SQ1.postRequestAndGetResponse({ limit: 1000, syncToken: syncToken }, "fetchMyEvents");
- let chats = new Set();
- data.events.forEach((e) => {
- if (e.type == 29) {
- chats.add(e.payload.notificationMessage.squareChatMid);
- }
- });
- let joinedChats = [];
- for (let e of chats) {
- let ch = await this.SQ1.postRequestAndGetResponse({ squareChatMid: e }, "getSquareChat");
- if (ch.squareChatMember) {
- joinedChats.push(ch);
- }
- }
- joinedChats.sort((a, b) => {
- return b.squareChatStatus.lastMessage.message.createdTime -
- a.squareChatStatus.lastMessage.message.createdTime;
- });
- return joinedChats;
- }
- async getSquareChat(mid) {
- return await this.SQ1.postRequestAndGetResponse({ squareChatMid: mid }, "getSquareChat");
- }
-
- async proxyFetch(url, headers = {}, method = "GET", body = null) {
- let requrl = new URL(url);
- let reqhost = btoa(requrl.protocol + requrl.host).replace("=", "");
- let reqpath = requrl.pathname + requrl.search;
- return await fetch(location.origin + "/proxy/" + reqhost + "/path" + reqpath, {
- headers: headers,
- method: method,
- body: body,
- });
- }
- async sleep() {
- this.S4.closeSocket();
- this.SQ1.closeSocket();
- }
- async wake() {
- this.S4.reOpenSocket();
- this.SQ1.reOpenSocket();
- }
- timeout(f, t) {
- return new Promise((resolve, reject) => {
- let time = true;
- f().then((res) => {
- resolve(res);
- time = false;
- });
- setTimeout(() => {
- reject("Time Out");
- if (time) {
- notify("リクエストがタイムアウトしました", "#fff", "red");
- }
- }, t);
- });
- }
-}
-//export {LineSquareClient,LineTCompactSocket}
diff --git a/site/tmp/tmp.html b/site/tmp/tmp.html
deleted file mode 100644
index c6282f2..0000000
--- a/site/tmp/tmp.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
-
-
-
- LINE
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/site/tmp/tmp.js b/site/tmp/tmp.js
deleted file mode 100644
index 81d75f4..0000000
--- a/site/tmp/tmp.js
+++ /dev/null
@@ -1,252 +0,0 @@
-let eventTemplate = {
- undefined: {
- "createdTime": 1712477065625,
- "payload": {
- "receiveMessage": {
- "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
- "squareMessage": {
- "message": {
- "_from": "p2a281f8efd6632add0ffa868a36eac35",
- "to": "m3df38438ef13539f38b951d58ba30929",
- "toType": 4,
- "id": "502722166333374818",
- "createdTime": 1712477065625,
- "deliveredTime": 1712477065625,
- "text": "あ",
- "contentMetadata": {
- "NOTIFICATION_DISABLED": "null",
- "app_extension_type": "null",
- "PREVIEW_URL_ENABLED": "true",
- "app_version_code": "140420286",
- },
- },
- "fromType": 5,
- "squareMessageRevision": 1,
- },
- },
- },
- "syncToken":
- "CgABAAAAAAAAACAKAAIAAAAAAAAADAoAAwAAAAAAAAAUCgAEAAAAAAAAAAUKAAUAAAAAAAAAAgoABgAAAAAAAAAACgAHAAABjreV9PcMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA=",
- },
- 1: {
- "createdTime": 1712476885873,
- "type": 1,
- "payload": {
- "sendMessage": {
- "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
- "squareMessage": {
- "message": {
- "_from": "p84edcedb2ef04bb3add55b2c0f0101e5",
- "to": "m3df38438ef13539f38b951d58ba30929",
- "toType": 4,
- "id": "502721864997798226",
- "createdTime": 1712476885873,
- "deliveredTime": 1712476885873,
- "text": "あ",
- "contentMetadata": {
- "NOTIFICATION_DISABLED": "null",
- "app_extension_type": "null",
- "PREVIEW_URL_ENABLED": "true",
- "app_version_code": "140420286",
- },
- },
- "fromType": 5,
- "squareMessageRevision": 1,
- },
- "reqSeq": -1,
- },
- },
- "syncToken":
- "CgABAAAAAAAAABwKAAIAAAAAAAAACwoAAwAAAAAAAAAFCgAEAAAAAAAAAAUKAAUAAAAAAAAAAgoABgAAAAAAAAAACgAHAAABjreTboIMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA=",
- },
- 2: {
- "createdTime": 1700778236872,
- "type": 2,
- "payload": {
- "notifiedJoinSquareChat": {
- "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
- "joinedMember": {
- "squareMemberMid": "p5a5132d6ccf8433e2264f9669a3372d1",
- "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
- "displayName": "見物",
- "profileImageObsHash":
- "0hfp6ASj3sOV8LOCpn1pJGCDRuZHF6XCJaYx1oeCpoY28kCysOZQwhMCs6ZTslC3kMYFZxPiZoZW0gCysJ",
- "ableToReceiveMessage": true,
- "membershipState": 7,
- "role": 2,
- "revision": 4,
- "preference": {
- "favoriteTimestamp": 18446744073709552000,
- "notiForNewJoinRequest": true,
- },
- },
- },
- },
- "syncToken":
- "CgABAAAAAAAAAAEKAAIAAAAAAAAAAAoAAwAAAAAAAAAACgAEAAAAAAAAAAAKAAUAAAAAAAAAAAoABgAAAAAAAAAADAAICAABAAAAAAAMAAkNAAELCgAAAAAACgAKAAAAAAAAAAAA",
- },
- 4: {
- "createdTime": 1712469113807,
- "type": 4,
- "payload": {
- "notifiedLeaveSquareChat": {
- "squareChatMid": "m877c95891929586ad3e90984db54e746",
- "squareMemberMid": "p215d008221ac8a21eab6362260949157",
- "sayGoodbye": true,
- "squareMember": {
- "squareMemberMid": "p215d008221ac8a21eab6362260949157",
- "squareMid": "sf1630c98f02cd380409ee17582d3d03d",
- "displayName": "長野マン",
- "ableToReceiveMessage": true,
- "membershipState": 4,
- "role": 10,
- "revision": 2,
- "preference": {
- "favoriteTimestamp": 18446744073709552000,
- "notiForNewJoinRequest": true,
- },
- },
- },
- },
- "syncToken":
- "CgABAAAAAAABHR0KAAIAAAAAAAAqyAoAAwAAAAAAAAAACgAEAAAAAAAAAAAKAAUAAAAAAAAAAAoABgAAAAAAABGBDAAICAABAAAAAAAMAAkNAAELCgAAAAAACgAKAAAAAAAAAAAA",
- },
- 5: {
- "createdTime": 0,
- "type": 5,
- "payload": {
- "notifiedDestroyMessage": {
- "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
- "messageId": "502717230191215097",
- },
- },
- "syncToken":
- "CgABAAAAAAAAABEKAAIAAAAAAAAAAQoAAwAAAAAAAAAFCgAEAAAAAAAAAAQKAAUAAAAAAAAAAAoABgAAAAAAAAAACgAHAAABjrdyUkUMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA=",
- },
- 19: {
- "createdTime": 1712477801027,
- "type": 19,
- "payload": {
- "notifiedKickoutFromSquare": {
- "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
- "kickees": [
- {
- "squareMemberMid": "pc26e137584b426f862957ecc28df6eac",
- "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
- "displayName": "あ",
- "ableToReceiveMessage": true,
- "membershipState": 6,
- "role": 10,
- "revision": 2,
- },
- ],
- "by": {
- "squareMemberMid": "p84edcedb2ef04bb3add55b2c0f0101e5",
- "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
- "displayName": "test",
- "profileImageObsHash":
- "0hkT4bVyeTNHsJGydD1DtLLDZNaVV4fy9-YT5lXCUePh52fyZ-NiksHClIOUl0fiYpMS54Ty1Ma0slKycp",
- "ableToReceiveMessage": true,
- "membershipState": 2,
- "role": 1,
- "revision": 3,
- },
- },
- },
- "syncToken":
- "CgABAAAAAAAAACoKAAIAAAAAAAAADAoAAwAAAAAAAAAfCgAEAAAAAAAAAAcKAAUAAAAAAAAAAgoABgAAAAAAAAAACgAHAAABjrehkwAMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA=",
- },
- 30: {
- "createdTime": 1712474206555,
- "type": 30,
- "payload": {
- "notifiedUpdateSquareChatProfileName": {
- "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
- "editor": {
- "squareMemberMid": "p84edcedb2ef04bb3add55b2c0f0101e5",
- "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
- "displayName": "ででででで",
- "profileImageObsHash":
- "0hkT4bVyeTNHsJGydD1DtLLDZNaVV4fy9-YT5lXCUePh52fyZ-NiksHClIOUl0fiYpMS54Ty1Ma0slKycp",
- "ableToReceiveMessage": true,
- "membershipState": 2,
- "role": 1,
- "revision": 2,
- "preference": {
- "favoriteTimestamp": 18446744073709552000,
- "notiForNewJoinRequest": true,
- },
- },
- "updatedChatName": "あい",
- },
- },
- "syncToken":
- "CgABAAAAAAAAAAsKAAIAAAAAAAAAAAoAAwAAAAAAAAAACgAEAAAAAAAAAAAKAAUAAAAAAAAAAAoABgAAAAAAAAAADAAICAABAAAAAAAMAAkNAAELCgAAAAAACgAKAAAAAAAAAAAA",
- },
- 31: {
- "createdTime": 1712474465001,
- "type": 31,
- "payload": {
- "notifiedUpdateSquareChatProfileImage": {
- "squareChatMid": "m3df38438ef13539f38b951d58ba30929",
- "editor": {
- "squareMemberMid": "p84edcedb2ef04bb3add55b2c0f0101e5",
- "squareMid": "s38d1f33723b7a7c04b30408bed4a7211",
- "displayName": "ででででで",
- "profileImageObsHash":
- "0hkT4bVyeTNHsJGydD1DtLLDZNaVV4fy9-YT5lXCUePh52fyZ-NiksHClIOUl0fiYpMS54Ty1Ma0slKycp",
- "ableToReceiveMessage": true,
- "membershipState": 2,
- "role": 1,
- "revision": 2,
- "preference": {
- "favoriteTimestamp": 18446744073709552000,
- "notiForNewJoinRequest": true,
- },
- },
- },
- },
- "syncToken":
- "CgABAAAAAAAAAAwKAAIAAAAAAAAAAAoAAwAAAAAAAAAFCgAEAAAAAAAAAAQKAAUAAAAAAAAAAAoABgAAAAAAAAAACgAHAAABjrduWW0MAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA=",
- },
- 41: { //torikeshi
- "createdTime": 1712476065446,
- "type": 41,
- "payload": {
- "41": {
- "1": "m3df38438ef13539f38b951d58ba30929",
- "2": {
- "1": {
- "1": "p84edcedb2ef04bb3add55b2c0f0101e5",
- "2": "m3df38438ef13539f38b951d58ba30929",
- "3": 4,
- "4": "502720483964223505",
- "5": 1712476062685,
- "6": 1712476062685,
- "18": {
- "NOTIFICATION_DISABLED": "null",
- "app_extension_type": "null",
- "PREVIEW_URL_ENABLED": "true",
- "app_version_code": "140420286",
- "UNSENT": "true",
- },
- },
- },
- "9": [],
- },
- },
- },
- 49: { //other
- "createdTime": 1712476483151,
- "type": 49,
- "payload": {
- "47": {
- "1": "m3df38438ef13539f38b951d58ba30929",
- "2": "設定が変更されたため、オープンチャットのプロフィールと検索結果に最新メッセージが表示されなくなります。なお、設定が反映されるまで時間がかかる場合があります。",
- },
- },
- "syncToken":
- "CgABAAAAAAAAABsKAAIAAAAAAAAACwoAAwAAAAAAAAAFCgAEAAAAAAAAAAUKAAUAAAAAAAAAAgoABgAAAAAAAAAACgAHAAABjreKrWQMAAgIAAEAAAAAAAwACQ0AAQsKAAAAAAAKAAoAAAAAAAAAAAA=",
- },
-};
-eventTemplate[1].payload.sendMessage.squareMessage.message;
diff --git a/site/tmp/type.js b/site/tmp/type.js
deleted file mode 100644
index 3d24b1e..0000000
--- a/site/tmp/type.js
+++ /dev/null
@@ -1,7798 +0,0 @@
-//
-// Autogenerated by Thrift Compiler (0.19.0)
-//
-// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
-//
-"use strict";
-window.lineType = {};
-lineType.ApplicationType = {
- "IOS": 16,
- "IOS_RC": 17,
- "IOS_BETA": 18,
- "IOS_ALPHA": 19,
- "ANDROID": 32,
- "ANDROID_RC": 33,
- "ANDROID_BETA": 34,
- "ANDROID_ALPHA": 35,
- "WAP": 48,
- "WAP_RC": 49,
- "WAP_BETA": 50,
- "WAP_ALPHA": 51,
- "BOT": 64,
- "BOT_RC": 65,
- "BOT_BETA": 66,
- "BOT_ALPHA": 67,
- "WEB": 80,
- "WEB_RC": 81,
- "WEB_BETA": 82,
- "WEB_ALPHA": 83,
- "DESKTOPWIN": 96,
- "DESKTOPWIN_RC": 97,
- "DESKTOPWIN_BETA": 98,
- "DESKTOPWIN_ALPHA": 99,
- "DESKTOPMAC": 112,
- "DESKTOPMAC_RC": 113,
- "DESKTOPMAC_BETA": 114,
- "DESKTOPMAC_ALPHA": 115,
- "CHANNELGW": 128,
- "CHANNELGW_RC": 129,
- "CHANNELGW_BETA": 130,
- "CHANNELGW_ALPHA": 131,
- "CHANNELCP": 144,
- "CHANNELCP_RC": 145,
- "CHANNELCP_BETA": 146,
- "CHANNELCP_ALPHA": 147,
- "WINPHONE": 160,
- "WINPHONE_RC": 161,
- "WINPHONE_BETA": 162,
- "WINPHONE_ALPHA": 163,
- "BLACKBERRY": 176,
- "BLACKBERRY_RC": 177,
- "BLACKBERRY_BETA": 178,
- "BLACKBERRY_ALPHA": 179,
- "WINMETRO": 192,
- "WINMETRO_RC": 193,
- "WINMETRO_BETA": 194,
- "WINMETRO_ALPHA": 195,
- "S40": 208,
- "S40_RC": 209,
- "S40_BETA": 210,
- "S40_ALPHA": 211,
- "CHRONO": 224,
- "CHRONO_RC": 225,
- "CHRONO_BETA": 226,
- "CHRONO_ALPHA": 227,
- "TIZEN": 256,
- "TIZEN_RC": 257,
- "TIZEN_BETA": 258,
- "TIZEN_ALPHA": 259,
- "VIRTUAL": 272,
- "FIREFOXOS": 288,
- "FIREFOXOS_RC": 289,
- "FIREFOXOS_BETA": 290,
- "FIREFOXOS_ALPHA": 291,
- "IOSIPAD": 304,
- "IOSIPAD_RC": 305,
- "IOSIPAD_BETA": 306,
- "IOSIPAD_ALPHA": 307,
- "BIZIOS": 320,
- "BIZIOS_RC": 321,
- "BIZIOS_BETA": 322,
- "BIZIOS_ALPHA": 323,
- "BIZANDROID": 336,
- "BIZANDROID_RC": 337,
- "BIZANDROID_BETA": 338,
- "BIZANDROID_ALPHA": 339,
- "BIZBOT": 352,
- "BIZBOT_RC": 353,
- "BIZBOT_BETA": 354,
- "BIZBOT_ALPHA": 355,
- "CHROMEOS": 368,
- "CHROMEOS_RC": 369,
- "CHROMEOS_BETA": 370,
- "CHROMEOS_ALPHA": 371,
- "ANDROIDLITE": 384,
- "ANDROIDLITE_RC": 385,
- "ANDROIDLITE_BETA": 386,
- "ANDROIDLITE_ALPHA": 387,
- "WIN10": 400,
- "WIN10_RC": 401,
- "WIN10_BETA": 402,
- "WIN10_ALPHA": 403,
- "BIZWEB": 416,
- "BIZWEB_RC": 417,
- "BIZWEB_BETA": 418,
- "BIZWEB_ALPHA": 419,
- "DUMMYPRIMARY": 432,
- "DUMMYPRIMARY_RC": 433,
- "DUMMYPRIMARY_BETA": 434,
- "DUMMYPRIMARY_ALPHA": 435,
- "SQUARE": 448,
- "SQUARE_RC": 449,
- "SQUARE_BETA": 450,
- "SQUARE_ALPHA": 451,
- "INTERNAL": 464,
- "INTERNAL_RC": 465,
- "INTERNAL_BETA": 466,
- "INTERNAL_ALPHA": 467,
- "CLOVAFRIENDS": 480,
- "CLOVAFRIENDS_RC": 481,
- "CLOVAFRIENDS_BETA": 482,
- "CLOVAFRIENDS_ALPHA": 483,
-};
-lineType.ExtendedProfileAttribute = {};
-lineType.PrivacyLevelType = { "PUBLIC": 0, "PRIVATE": 1 };
-lineType.PaidCallerIdStatus = {
- "NOT_SPECIFIED": 0,
- "VALID": 1,
- "VERIFICATION_REQUIRED": 2,
- "NOT_PERMITTED": 3,
- "LIMIT_EXCEEDED": 4,
- "LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED": 5,
-};
-lineType.PaidCallProductType = { "COIN": 0, "CREDIT": 1, "MONTHLY": 2 };
-lineType.PaidCallType = { "OUT": 0, "IN": 1, "TOLLFREE": 2, "RECORD": 3, "AD": 4, "CS": 5 };
-lineType.BotType = { "RESERVED": 0, "OFFICIAL": 1, "LINE_AT_0": 2, "LINE_AT": 3 };
-lineType.BuddyOnAirLabel = { "ON_AIR": 0, "LIVE": 1 };
-lineType.BuddyBannerLinkType = {
- "BUDDY_BANNER_LINK_HIDDEN": 0,
- "BUDDY_BANNER_LINK_MID": 1,
- "BUDDY_BANNER_LINK_URL": 2,
-};
-lineType.BuddyOnAirType = { "NORMAL": 0, "LIVE": 1, "VOIP": 2 };
-lineType.Diff = { "ADDED": 0, "UPDATED": 1, "REMOVED": 2 };
-lineType.ReportType = { "ADVERTISING": 1, "GENDER_HARASSMENT": 2, "HARASSMENT": 3, "OTHER": 4 };
-lineType.SyncTriggerReason = { "OTHER": 0, "REVISION_GAP_TOO_LARGE": 1, "OPERATION_EXPIRED": 2 };
-lineType.ReportCategory = { "PUSH_NORMAL_PLAIN": 0, "PUSH_NORMAL_E2EE": 1, "PUSH_VOIP_PLAIN": 2, "PUSH_VOIP_E2EE": 3 };
-lineType.BuddyResultState = {
- "ACCEPTED": 1,
- "SUCCEEDED": 2,
- "FAILED": 3,
- "CANCELLED": 4,
- "NOTIFY_FAILED": 5,
- "STORING": 11,
- "UPLOADING": 21,
- "NOTIFYING": 31,
- "REMOVING_SUBSCRIPTION": 41,
- "UNREGISTERING_ACCOUNT": 42,
- "NOTIFYING_LEAVE_CHAT": 43,
-};
-lineType.BuddySearchRequestSource = { "NA": 0, "FRIEND_VIEW": 1, "OFFICIAL_ACCOUNT_VIEW": 2 };
-lineType.CarrierCode = {
- "NOT_SPECIFIED": 0,
- "JP_DOCOMO": 1,
- "JP_AU": 2,
- "JP_SOFTBANK": 3,
- "JP_DOCOMO_LINE": 4,
- "KR_SKT": 17,
- "KR_KT": 18,
- "KR_LGT": 19,
-};
-lineType.ChannelConfiguration = { "MESSAGE": 0, "MESSAGE_NOTIFICATION": 1, "NOTIFICATION_CENTER": 2 };
-lineType.ChannelPermission = { "PROFILE": 0, "FRIENDS": 1, "GROUP": 2 };
-lineType.ChannelFeatureLicense = {
- "BLE_LCS_API_USABLE": 26,
- "PROHIBIT_MINIMIZE_CHANNEL_BROWSER": 27,
- "ALLOW_IOS_WEBKIT": 28,
-};
-lineType.ChannelErrorCode = {
- "ILLEGAL_ARGUMENT": 0,
- "INTERNAL_ERROR": 1,
- "CONNECTION_ERROR": 2,
- "AUTHENTICATIONI_FAILED": 3,
- "NEED_PERMISSION_APPROVAL": 4,
- "COIN_NOT_USABLE": 5,
- "WEBVIEW_NOT_ALLOWED": 6,
-};
-lineType.ChannelSyncType = { "SYNC": 0, "REMOVE": 1, "REMOVE_ALL": 2 };
-lineType.LoginType = { "ID_CREDENTIAL": 0, "QRCODE": 1, "ID_CREDENTIAL_WITH_E2EE": 2 };
-lineType.ContactAttribute = {
- "CONTACT_ATTRIBUTE_CAPABLE_VOICE_CALL": 1,
- "CONTACT_ATTRIBUTE_CAPABLE_VIDEO_CALL": 2,
- "CONTACT_ATTRIBUTE_CAPABLE_MY_HOME": 16,
- "CONTACT_ATTRIBUTE_CAPABLE_BUDDY": 32,
-};
-lineType.ContactCategory = { "NORMAL": 0, "RECOMMEND": 1 };
-lineType.ContactRelation = { "ONEWAY": 0, "BOTH": 1, "NOT_REGISTERED": 2 };
-lineType.AsymmetricKeyAlgorithm = { "ASYMMETRIC_KEY_ALGORITHM_RSA": 1, "ASYMMETRIC_KEY_ALGORITHM_ECDH": 2 };
-lineType.ContactSetting = {
- "CONTACT_SETTING_NOTIFICATION_DISABLE": 1,
- "CONTACT_SETTING_DISPLAY_NAME_OVERRIDE": 2,
- "CONTACT_SETTING_CONTACT_HIDE": 4,
- "CONTACT_SETTING_FAVORITE": 8,
- "CONTACT_SETTING_DELETE": 16,
-};
-lineType.ContactStatus = {
- "UNSPECIFIED": 0,
- "FRIEND": 1,
- "FRIEND_BLOCKED": 2,
- "RECOMMEND": 3,
- "RECOMMEND_BLOCKED": 4,
- "DELETED": 5,
- "DELETED_BLOCKED": 6,
-};
-lineType.ContactType = {
- "MID": 0,
- "PHONE": 1,
- "EMAIL": 2,
- "USERID": 3,
- "PROXIMITY": 4,
- "GROUP": 5,
- "USER": 6,
- "QRCODE": 7,
- "PROMOTION_BOT": 8,
- "CONTACT_MESSAGE": 9,
- "FRIEND_REQUEST": 10,
- "REPAIR": 128,
- "FACEBOOK": 2305,
- "SINA": 2306,
- "RENREN": 2307,
- "FEIXIN": 2308,
- "BBM": 2309,
- "BEACON": 11,
-};
-lineType.GroupPreferenceAttribute = { "INVITATION_TICKET": 1, "FAVORITE_TIMESTAMP": 2 };
-lineType.ContentType = {
- "NONE": 0,
- "IMAGE": 1,
- "VIDEO": 2,
- "AUDIO": 3,
- "HTML": 4,
- "PDF": 5,
- "CALL": 6,
- "STICKER": 7,
- "PRESENCE": 8,
- "GIFT": 9,
- "GROUPBOARD": 10,
- "APPLINK": 11,
- "LINK": 12,
- "CONTACT": 13,
- "FILE": 14,
- "LOCATION": 15,
- "POSTNOTIFICATION": 16,
- "RICH": 17,
- "CHATEVENT": 18,
- "MUSIC": 19,
- "PAYMENT": 20,
- "EXTIMAGE": 21,
-};
-lineType.MessageRelationType = { "FORWARD": 0, "AUTO_REPLY": 1, "SUBORDINATE": 2 };
-lineType.CustomMode = {
- "PROMOTION_FRIENDS_INVITE": 1,
- "CAPABILITY_SERVER_SIDE_SMS": 2,
- "LINE_CLIENT_ANALYTICS_CONFIGURATION": 3,
-};
-lineType.RoomAttribute = { "ALL": 255, "NOTIFICATION_SETTING": 1 };
-lineType.UserStatus = { "NORMAL": 0, "UNBOUND": 1, "UNREGISTERED": 2 };
-lineType.EmailConfirmationStatus = { "NOT_SPECIFIED": 0, "NOT_YET": 1, "DONE": 3, "NEED_ENFORCED_INPUT": 4 };
-lineType.AccountMigrationPincodeType = { "NOT_APPLICABLE": 0, "NOT_SET": 1, "SET": 2, "NEED_ENFORCED_INPUT": 3 };
-lineType.AccountMigrationCheckType = { "SKIP": 0, "PINCODE": 1, "SECURITY_CENTER": 2 };
-lineType.SecurityCenterSettingsType = { "NOT_APPLICABLE": 0, "NOT_SET": 1, "SET": 2, "NEED_ENFORCED_INPUT": 3 };
-lineType.EmailConfirmationType = { "SERVER_SIDE_EMAIL": 0, "CLIENT_SIDE_EMAIL": 1 };
-lineType.SquareChatAnnouncementType = { "TEXT_MESSAGE": 0 };
-lineType.SquareChatAttribute = { "NAME": 2, "SQUARE_CHAT_IMAGE": 3, "STATE": 4 };
-lineType.SquareMemberAttribute = {
- "DISPLAY_NAME": 1,
- "PROFILE_IMAGE": 2,
- "ABLE_TO_RECEIVE_MESSAGE": 3,
- "MEMBERSHIP_STATE": 5,
- "ROLE": 6,
- "PREFERENCE": 7,
-};
-lineType.SquareMemberRelationAttribute = { "BLOCKED": 1 };
-lineType.SquarePreferenceAttribute = { "FAVORITE": 1, "NOTI_FOR_NEW_JOIN_REQUEST": 2 };
-lineType.SquareState = { "ALIVE": 0, "DELETED": 1, "SUSPENDED": 2 };
-lineType.CommitMessageResultCode = { "DELIVERED": 0, "DELIVERY_SKIPPED": 1, "DELIVERY_RESTRICTED": 2 };
-lineType.ErrorCode = {
- "ILLEGAL_ARGUMENT": 0,
- "AUTHENTICATION_FAILED": 1,
- "DB_FAILED": 2,
- "INVALID_STATE": 3,
- "EXCESSIVE_ACCESS": 4,
- "NOT_FOUND": 5,
- "INVALID_MID": 9,
- "NOT_A_MEMBER": 10,
- "INVALID_LENGTH": 6,
- "NOT_AVAILABLE_USER": 7,
- "NOT_AUTHORIZED_DEVICE": 8,
- "NOT_AUTHORIZED_SESSION": 14,
- "INCOMPATIBLE_APP_VERSION": 11,
- "NOT_READY": 12,
- "NOT_AVAILABLE_SESSION": 13,
- "SYSTEM_ERROR": 15,
- "NO_AVAILABLE_VERIFICATION_METHOD": 16,
- "NOT_AUTHENTICATED": 17,
- "INVALID_IDENTITY_CREDENTIAL": 18,
- "NOT_AVAILABLE_IDENTITY_IDENTIFIER": 19,
- "INTERNAL_ERROR": 20,
- "NO_SUCH_IDENTITY_IDENFIER": 21,
- "DEACTIVATED_ACCOUNT_BOUND_TO_THIS_IDENTITY": 22,
- "ILLEGAL_IDENTITY_CREDENTIAL": 23,
- "UNKNOWN_CHANNEL": 24,
- "NO_SUCH_MESSAGE_BOX": 25,
- "NOT_AVAILABLE_MESSAGE_BOX": 26,
- "CHANNEL_DOES_NOT_MATCH": 27,
- "NOT_YOUR_MESSAGE": 28,
- "MESSAGE_DEFINED_ERROR": 29,
- "USER_CANNOT_ACCEPT_PRESENTS": 30,
- "USER_NOT_STICKER_OWNER": 32,
- "MAINTENANCE_ERROR": 33,
- "ACCOUNT_NOT_MATCHED": 34,
- "ABUSE_BLOCK": 35,
- "NOT_FRIEND": 36,
- "NOT_ALLOWED_CALL": 37,
- "BLOCK_FRIEND": 38,
- "INCOMPATIBLE_VOIP_VERSION": 39,
- "INVALID_SNS_ACCESS_TOKEN": 40,
- "EXTERNAL_SERVICE_NOT_AVAILABLE": 41,
- "NOT_ALLOWED_ADD_CONTACT": 42,
- "NOT_CERTIFICATED": 43,
- "NOT_ALLOWED_SECONDARY_DEVICE": 44,
- "INVALID_PIN_CODE": 45,
- "NOT_FOUND_IDENTITY_CREDENTIAL": 46,
- "EXCEED_FILE_MAX_SIZE": 47,
- "EXCEED_DAILY_QUOTA": 48,
- "NOT_SUPPORT_SEND_FILE": 49,
- "MUST_UPGRADE": 50,
- "NOT_AVAILABLE_PIN_CODE_SESSION": 51,
- "EXPIRED_REVISION": 52,
- "NOT_YET_PHONE_NUMBER": 54,
- "BAD_CALL_NUMBER": 55,
- "UNAVAILABLE_CALL_NUMBER": 56,
- "NOT_SUPPORT_CALL_SERVICE": 57,
- "CONGESTION_CONTROL": 58,
- "NO_BALANCE": 59,
- "NOT_PERMITTED_CALLER_ID": 60,
- "NO_CALLER_ID_LIMIT_EXCEEDED": 61,
- "CALLER_ID_VERIFICATION_REQUIRED": 62,
- "NO_CALLER_ID_LIMIT_EXCEEDED_AND_VERIFICATION_REQUIRED": 63,
- "MESSAGE_NOT_FOUND": 64,
- "INVALID_ACCOUNT_MIGRATION_PINCODE_FORMAT": 65,
- "ACCOUNT_MIGRATION_PINCODE_NOT_MATCHED": 66,
- "ACCOUNT_MIGRATION_PINCODE_BLOCKED": 67,
- "INVALID_PASSWORD_FORMAT": 69,
- "FEATURE_RESTRICTED": 70,
- "MESSAGE_NOT_DESTRUCTIBLE": 71,
- "PAID_CALL_REDEEM_FAILED": 72,
- "PREVENTED_JOIN_BY_TICKET": 73,
- "SEND_MESSAGE_NOT_PERMITTED_FROM_LINE_AT": 75,
- "SEND_MESSAGE_NOT_PERMITTED_WHILE_AUTO_REPLY": 76,
- "SECURITY_CENTER_NOT_VERIFIED": 77,
- "SECURITY_CENTER_BLOCKED_BY_SETTING": 78,
- "SECURITY_CENTER_BLOCKED": 79,
- "TALK_PROXY_EXCEPTION": 80,
- "E2EE_INVALID_PROTOCOL": 81,
- "E2EE_RETRY_ENCRYPT": 82,
- "E2EE_UPDATE_SENDER_KEY": 83,
- "E2EE_UPDATE_RECEIVER_KEY": 84,
- "E2EE_INVALID_ARGUMENT": 85,
- "E2EE_INVALID_VERSION": 86,
- "E2EE_SENDER_DISABLED": 87,
- "E2EE_RECEIVER_DISABLED": 88,
- "E2EE_SENDER_NOT_ALLOWED": 89,
- "E2EE_RECEIVER_NOT_ALLOWED": 90,
- "E2EE_RESEND_FAIL": 91,
- "E2EE_RESEND_OK": 92,
- "HITOKOTO_BACKUP_NO_AVAILABLE_DATA": 93,
- "E2EE_UPDATE_PRIMARY_DEVICE": 94,
- "SUCCESS": 95,
- "CANCEL": 96,
- "E2EE_PRIMARY_NOT_SUPPORT": 97,
- "E2EE_RETRY_PLAIN": 98,
- "E2EE_RECREATE_GROUP_KEY": 99,
- "E2EE_GROUP_TOO_MANY_MEMBERS": 100,
- "SERVER_BUSY": 101,
- "NOT_ALLOWED_ADD_FOLLOW": 102,
- "INCOMING_FRIEND_REQUEST_LIMIT": 103,
- "OUTGOING_FRIEND_REQUEST_LIMIT": 104,
- "OUTGOING_FRIEND_REQUEST_QUOTA": 105,
- "DUPLICATED": 106,
- "BANNED": 107,
-};
-lineType.FeatureType = { "OBS_VIDEO": 1, "OBS_GENERAL": 2 };
-lineType.GroupAttribute = {
- "NAME": 1,
- "PICTURE_STATUS": 2,
- "ALL": 255,
- "PREVENTED_JOIN_BY_TICKET": 4,
- "NOTIFICATION_SETTING": 8,
-};
-lineType.IdentityProvider = { "UNKNOWN": 0, "LINE": 1, "NAVER_KR": 2, "LINE_PHONE": 3 };
-lineType.LoginResultType = { "SUCCESS": 1, "REQUIRE_QRCODE": 2, "REQUIRE_DEVICE_CONFIRM": 3, "REQUIRE_SMS_CONFIRM": 4 };
-lineType.MessageOperationType = {
- "SEND_MESSAGE": 1,
- "RECEIVE_MESSAGE": 2,
- "READ_MESSAGE": 3,
- "NOTIFIED_READ_MESSAGE": 4,
- "NOTIFIED_JOIN_CHAT": 5,
- "FAILED_SEND_MESSAGE": 6,
- "SEND_CONTENT": 7,
- "SEND_CONTENT_RECEIPT": 8,
- "SEND_CHAT_REMOVED": 9,
- "REMOVE_ALL_MESSAGES": 10,
-};
-lineType.MIDType = { "USER": 0, "ROOM": 1, "GROUP": 2, "SQUARE": 3, "SQUARE_CHAT": 4, "SQUARE_MEMBER": 5, "BOT": 6 };
-lineType.ServiceCode = { "UNKNOWN": 0, "TALK": 1, "SQUARE": 2 };
-lineType.FriendRequestDirection = { "INCOMING": 1, "OUTGOING": 2 };
-lineType.FriendRequestMethod = { "TIMELINE": 1, "NEARBY": 2, "SQUARE": 3 };
-lineType.FriendRequestStatus = { "NONE": 0, "AVAILABLE": 1, "ALREADY_REQUESTED": 2, "UNAVAILABLE": 3 };
-lineType.ModificationType = { "ADD": 0, "REMOVE": 1, "MODIFY": 2 };
-lineType.NotificationItemFetchMode = { "ALL": 0, "APPEND": 1 };
-lineType.NotificationQueueType = { "GLOBAL": 1, "MESSAGE": 2, "PRIMARY": 3 };
-lineType.GroupCallMediaType = { "AUDIO": 1, "VIDEO": 2 };
-lineType.PersonalInfo = { "EMAIL": 0, "PHONE": 1, "BIRTHDAY": 2, "RAW_BIRTHDAY": 3 };
-lineType.NotificationStatus = {
- "NOTIFICATION_ITEM_EXIST": 1,
- "TIMELINE_ITEM_EXIST": 2,
- "NOTE_GROUP_NEW_ITEM_EXIST": 4,
- "TIMELINE_BUDDYGROUP_CHANGED": 8,
- "NOTE_ONE_TO_ONE_NEW_ITEM_EXIST": 16,
- "ALBUM_ITEM_EXIST": 32,
- "TIMELINE_ITEM_DELETED": 64,
- "OTOGROUP_ITEM_EXIST": 128,
- "GROUPHOME_NEW_ITEM_EXIST": 256,
- "GROUPHOME_HIDDEN_ITEM_CHANGED": 512,
- "NOTIFICATION_ITEM_CHANGED": 1024,
- "BEAD_ITEM_HIDE": 2048,
- "BEAD_ITEM_SHOW": 4096,
-};
-lineType.NotificationType = {
- "APPLE_APNS": 1,
- "GOOGLE_C2DM": 2,
- "NHN_NNI": 3,
- "SKT_AOM": 4,
- "MS_MPNS": 5,
- "RIM_BIS": 6,
- "GOOGLE_GCM": 7,
- "NOKIA_NNAPI": 8,
- "TIZEN": 9,
- "LINE_BOT": 17,
- "LINE_WAP": 18,
- "APPLE_APNS_VOIP": 19,
- "MS_WNS": 20,
- "GOOGLE_FCM": 21,
-};
-lineType.OpStatus = { "NORMAL": 0, "ALERT_DISABLED": 1, "ALWAYS": 2 };
-lineType.OpType = {
- "END_OF_OPERATION": 0,
- "UPDATE_PROFILE": 1,
- "UPDATE_SETTINGS": 36,
- "NOTIFIED_UPDATE_PROFILE": 2,
- "REGISTER_USERID": 3,
- "ADD_CONTACT": 4,
- "NOTIFIED_ADD_CONTACT": 5,
- "BLOCK_CONTACT": 6,
- "UNBLOCK_CONTACT": 7,
- "NOTIFIED_RECOMMEND_CONTACT": 8,
- "CREATE_GROUP": 9,
- "UPDATE_GROUP": 10,
- "NOTIFIED_UPDATE_GROUP": 11,
- "INVITE_INTO_GROUP": 12,
- "NOTIFIED_INVITE_INTO_GROUP": 13,
- "CANCEL_INVITATION_GROUP": 31,
- "NOTIFIED_CANCEL_INVITATION_GROUP": 32,
- "LEAVE_GROUP": 14,
- "NOTIFIED_LEAVE_GROUP": 15,
- "ACCEPT_GROUP_INVITATION": 16,
- "NOTIFIED_ACCEPT_GROUP_INVITATION": 17,
- "REJECT_GROUP_INVITATION": 34,
- "NOTIFIED_REJECT_GROUP_INVITATION": 35,
- "KICKOUT_FROM_GROUP": 18,
- "NOTIFIED_KICKOUT_FROM_GROUP": 19,
- "CREATE_ROOM": 20,
- "INVITE_INTO_ROOM": 21,
- "NOTIFIED_INVITE_INTO_ROOM": 22,
- "LEAVE_ROOM": 23,
- "NOTIFIED_LEAVE_ROOM": 24,
- "SEND_MESSAGE": 25,
- "RECEIVE_MESSAGE": 26,
- "SEND_MESSAGE_RECEIPT": 27,
- "RECEIVE_MESSAGE_RECEIPT": 28,
- "SEND_CONTENT_RECEIPT": 29,
- "RECEIVE_ANNOUNCEMENT": 30,
- "NOTIFIED_UNREGISTER_USER": 33,
- "INVITE_VIA_EMAIL": 38,
- "NOTIFIED_REGISTER_USER": 37,
- "NOTIFIED_REQUEST_RECOVERY": 39,
- "SEND_CHAT_CHECKED": 40,
- "SEND_CHAT_REMOVED": 41,
- "NOTIFIED_FORCE_SYNC": 42,
- "SEND_CONTENT": 43,
- "SEND_MESSAGE_MYHOME": 44,
- "NOTIFIED_UPDATE_CONTENT_PREVIEW": 45,
- "REMOVE_ALL_MESSAGES": 46,
- "NOTIFIED_UPDATE_PURCHASES": 47,
- "DUMMY": 48,
- "UPDATE_CONTACT": 49,
- "NOTIFIED_RECEIVED_CALL": 50,
- "CANCEL_CALL": 51,
- "NOTIFIED_REDIRECT": 52,
- "NOTIFIED_CHANNEL_SYNC": 53,
- "FAILED_SEND_MESSAGE": 54,
- "NOTIFIED_READ_MESSAGE": 55,
- "FAILED_EMAIL_CONFIRMATION": 56,
- "NOTIFIED_CHAT_CONTENT": 58,
- "NOTIFIED_PUSH_NOTICENTER_ITEM": 59,
- "NOTIFIED_JOIN_CHAT": 60,
- "NOTIFIED_LEAVE_CHAT": 61,
- "NOTIFIED_TYPING": 62,
- "FRIEND_REQUEST_ACCEPTED": 63,
- "DESTROY_MESSAGE": 64,
- "NOTIFIED_DESTROY_MESSAGE": 65,
- "UPDATE_PUBLICKEYCHAIN": 66,
- "NOTIFIED_UPDATE_PUBLICKEYCHAIN": 67,
- "NOTIFIED_BLOCK_CONTACT": 68,
- "NOTIFIED_UNBLOCK_CONTACT": 69,
- "UPDATE_GROUPPREFERENCE": 70,
- "NOTIFIED_PAYMENT_EVENT": 71,
- "REGISTER_E2EE_PUBLICKEY": 72,
- "NOTIFIED_E2EE_KEY_EXCHANGE_REQ": 73,
- "NOTIFIED_E2EE_KEY_EXCHANGE_RESP": 74,
- "NOTIFIED_E2EE_MESSAGE_RESEND_REQ": 75,
- "NOTIFIED_E2EE_MESSAGE_RESEND_RESP": 76,
- "NOTIFIED_E2EE_KEY_UPDATE": 77,
- "NOTIFIED_BUDDY_UPDATE_PROFILE": 78,
- "NOTIFIED_UPDATE_LINEAT_TABS": 79,
- "UPDATE_ROOM": 80,
- "NOTIFIED_BEACON_DETECTED": 81,
- "UPDATE_EXTENDED_PROFILE": 82,
- "ADD_FOLLOW": 83,
- "NOTIFIED_ADD_FOLLOW": 84,
- "DELETE_FOLLOW": 85,
- "NOTIFIED_DELETE_FOLLOW": 86,
- "UPDATE_TIMELINE_SETTINGS": 87,
- "NOTIFIED_FRIEND_REQUEST": 88,
- "UPDATE_RINGBACK_TONE": 89,
- "NOTIFIED_POSTBACK": 90,
- "RECEIVE_READ_WATERMARK": 91,
- "NOTIFIED_MESSAGE_DELIVERED": 92,
- "NOTIFIED_UPDATE_CHAT_BAR": 93,
- "NOTIFIED_CHATAPP_INSTALLED": 94,
- "NOTIFIED_CHATAPP_UPDATED": 95,
- "NOTIFIED_CHATAPP_NEW_MARK": 96,
- "NOTIFIED_CHATAPP_DELETED": 97,
- "NOTIFIED_CHATAPP_SYNC": 98,
- "NOTIFIED_UPDATE_MESSAGE": 99,
-};
-lineType.PayloadType = { "PAYLOAD_BUY": 101, "PAYLOAD_CS": 111, "PAYLOAD_BONUS": 121, "PAYLOAD_EVENT": 131 };
-lineType.PaymentPgType = { "PAYMENT_PG_NONE": 0, "PAYMENT_PG_AU": 1, "PAYMENT_PG_AL": 2 };
-lineType.PaymentType = { "PAYMENT_APPLE": 1, "PAYMENT_GOOGLE": 2 };
-lineType.ProductBannerLinkType = {
- "BANNER_LINK_NONE": 0,
- "BANNER_LINK_ITEM": 1,
- "BANNER_LINK_URL": 2,
- "BANNER_LINK_CATEGORY": 3,
-};
-lineType.ProductEventType = {
- "NO_EVENT": 0,
- "CARRIER_ANY": 65537,
- "BUDDY_ANY": 131073,
- "INSTALL_IOS": 196609,
- "INSTALL_ANDROID": 196610,
- "MISSION_ANY": 262145,
- "MUSTBUY_ANY": 327681,
-};
-lineType.StickerResourceType = {
- "STATIC": 1,
- "ANIMATION": 2,
- "SOUND": 3,
- "ANIMATION_SOUND": 4,
- "POPUP": 5,
- "POPUP_SOUND": 6,
-};
-lineType.PlaceSearchProvider = { "GOOGLE": 0, "BAIDU": 1 };
-lineType.PointErrorCode = {
- "REQUEST_DUPLICATION": 3001,
- "INVALID_PARAMETER": 3002,
- "NOT_ENOUGH_BALANCE": 3003,
- "AUTHENTICATION_FAIL": 3004,
- "API_ACCESS_FORBIDDEN": 3005,
- "MEMBER_ACCOUNT_NOT_FOUND": 3006,
- "SERVICE_ACCOUNT_NOT_FOUND": 3007,
- "TRANSACTION_NOT_FOUND": 3008,
- "ALREADY_REVERSED_TRANSACTION": 3009,
- "MESSAGE_NOT_READABLE": 3010,
- "HTTP_REQUEST_METHOD_NOT_SUPPORTED": 3011,
- "HTTP_MEDIA_TYPE_NOT_SUPPORTED": 3012,
- "NOT_ALLOWED_TO_DEPOSIT": 3013,
- "NOT_ALLOWED_TO_PAY": 3014,
- "TRANSACTION_ACCESS_FORBIDDEN": 3015,
- "INVALID_SERVICE_CONFIGURATION": 4001,
- "DCS_COMMUNICATION_FAIL": 5004,
- "UPDATE_BALANCE_FAIL": 5007,
- "SYSTEM_ERROR": 5999,
- "SYSTEM_MAINTENANCE": 5888,
-};
-lineType.ProfileAttribute = {
- "ALL": 511,
- "EMAIL": 1,
- "DISPLAY_NAME": 2,
- "PHONETIC_NAME": 4,
- "PICTURE": 8,
- "STATUS_MESSAGE": 16,
- "ALLOW_SEARCH_BY_USERID": 32,
- "ALLOW_SEARCH_BY_EMAIL": 64,
- "BUDDY_STATUS": 128,
- "MUSIC_PROFILE": 256,
-};
-lineType.PublicType = { "HIDDEN": 0, "PUBLIC": 1000 };
-lineType.RedirectType = { "NONE": 0, "EXPIRE_SECOND": 1 };
-lineType.RegistrationType = {
- "PHONE": 0,
- "EMAIL_WAP": 1,
- "FACEBOOK": 2305,
- "SINA": 2306,
- "RENREN": 2307,
- "FEIXIN": 2308,
-};
-lineType.ChatRoomAnnouncementType = { "MESSAGE": 0, "NOTE": 1 };
-lineType.SettingsAttribute = {
- "ALL": 2147483647,
- "NOTIFICATION_ENABLE": 1,
- "NOTIFICATION_MUTE_EXPIRATION": 2,
- "NOTIFICATION_NEW_MESSAGE": 4,
- "NOTIFICATION_GROUP_INVITATION": 8,
- "NOTIFICATION_SHOW_MESSAGE": 16,
- "NOTIFICATION_INCOMING_CALL": 32,
- "NOTIFICATION_SOUND_MESSAGE": 256,
- "NOTIFICATION_SOUND_GROUP": 512,
- "NOTIFICATION_DISABLED_WITH_SUB": 65536,
- "NOTIFICATION_PAYMENT": 131072,
- "PRIVACY_SYNC_CONTACTS": 64,
- "PRIVACY_SEARCH_BY_PHONE_NUMBER": 128,
- "PRIVACY_SEARCH_BY_USERID": 8192,
- "PRIVACY_SEARCH_BY_EMAIL": 16384,
- "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN": 2097152,
- "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME": 8388608,
- "PRIVACY_ALLOW_FRIEND_REQUEST": 1073741824,
- "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND": 33554432,
- "PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL": 67108864,
- "PRIVACY_AGREE_USE_PAIDCALL": 134217728,
- "CONTACT_MY_TICKET": 1024,
- "IDENTITY_PROVIDER": 2048,
- "IDENTITY_IDENTIFIER": 4096,
- "SNS_ACCOUNT": 524288,
- "PHONE_REGISTRATION": 1048576,
- "PREFERENCE_LOCALE": 32768,
- "CUSTOM_MODE": 4194304,
- "EMAIL_CONFIRMATION_STATUS": 16777216,
- "ACCOUNT_MIGRATION_PINCODE": 268435456,
- "ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE": 536870912,
- "SECURITY_CENTER_SETTINGS": 262144,
-};
-lineType.SettingsAttributeEx = {
- "NOTIFICATION_ENABLE": 0,
- "NOTIFICATION_MUTE_EXPIRATION": 1,
- "NOTIFICATION_NEW_MESSAGE": 2,
- "NOTIFICATION_GROUP_INVITATION": 3,
- "NOTIFICATION_SHOW_MESSAGE": 4,
- "NOTIFICATION_INCOMING_CALL": 5,
- "NOTIFICATION_SOUND_MESSAGE": 8,
- "NOTIFICATION_SOUND_GROUP": 9,
- "NOTIFICATION_DISABLED_WITH_SUB": 16,
- "NOTIFICATION_PAYMENT": 17,
- "NOTIFICATION_MENTION": 40,
- "NOTIFICATION_THUMBNAIL": 45,
- "PRIVACY_SYNC_CONTACTS": 6,
- "PRIVACY_SEARCH_BY_PHONE_NUMBER": 7,
- "PRIVACY_SEARCH_BY_USERID": 13,
- "PRIVACY_SEARCH_BY_EMAIL": 14,
- "PRIVACY_ALLOW_SECONDARY_DEVICE_LOGIN": 21,
- "PRIVACY_PROFILE_IMAGE_POST_TO_MYHOME": 23,
- "PRIVACY_PROFILE_MUSIC_POST_TO_MYHOME": 35,
- "PRIVACY_ALLOW_FRIEND_REQUEST": 30,
- "PRIVACY_RECV_MESSAGES_FROM_NOT_FRIEND": 25,
- "PRIVACY_AGREE_USE_LINECOIN_TO_PAIDCALL": 26,
- "PRIVACY_AGREE_USE_PAIDCALL": 27,
- "CONTACT_MY_TICKET": 10,
- "IDENTITY_PROVIDER": 11,
- "IDENTITY_IDENTIFIER": 12,
- "SNS_ACCOUNT": 19,
- "PHONE_REGISTRATION": 20,
- "PREFERENCE_LOCALE": 15,
- "CUSTOM_MODE": 22,
- "EMAIL_CONFIRMATION_STATUS": 24,
- "ACCOUNT_MIGRATION_PINCODE": 28,
- "ENFORCED_INPUT_ACCOUNT_MIGRATION_PINCODE": 29,
- "SECURITY_CENTER_SETTINGS": 18,
- "E2EE_ENABLE": 33,
- "ENABLE_SOUND_TO_TEXT": 47,
- "HITOKOTO_BACKUP_REQUESTED": 34,
- "CONTACT_ALLOW_FOLLOWING": 36,
- "PRIVACY_ALLOW_NEARBY": 37,
- "AGREEMENT_NEARBY": 38,
- "AGREEMENT_SQUARE": 39,
- "ALLOW_UNREGISTRATION_SECONDARY_DEVICE": 41,
- "AGREEMENT_BOT_USE": 42,
- "AGREEMENT_SHAKE_FUNCTION": 43,
- "AGREEMENT_MOBILE_CONTACT_NAME": 44,
- "AGREEMENT_SOUND_TO_TEXT": 46,
-};
-lineType.SnsIdType = { "FACEBOOK": 1, "SINA": 2, "RENREN": 3, "FEIXIN": 4, "BBM": 5 };
-lineType.SpammerReason = { "OTHER": 0, "ADVERTISING": 1, "GENDER_HARASSMENT": 2, "HARASSMENT": 3 };
-lineType.SyncActionType = { "SYNC": 0, "REPORT": 1 };
-lineType.SpotCategory = {
- "UNKNOWN": 0,
- "GOURMET": 1,
- "BEAUTY": 2,
- "TRAVEL": 3,
- "SHOPPING": 4,
- "ENTERTAINMENT": 5,
- "SPORTS": 6,
- "TRANSPORT": 7,
- "LIFE": 8,
- "HOSPITAL": 9,
- "FINANCE": 10,
- "EDUCATION": 11,
- "OTHER": 12,
- "ALL": 10000,
-};
-lineType.SyncCategory = {
- "PROFILE": 0,
- "SETTINGS": 1,
- "OPS": 2,
- "CONTACT": 3,
- "RECOMMEND": 4,
- "BLOCK": 5,
- "GROUP": 6,
- "ROOM": 7,
- "NOTIFICATION": 8,
- "ADDRESS_BOOK": 9,
-};
-lineType.TMessageBoxStatus = { "ACTIVATED": 1, "UNREAD": 2 };
-lineType.UniversalNotificationServiceErrorCode = {
- "INTERNAL_ERROR": 0,
- "INVALID_KEY": 1,
- "ILLEGAL_ARGUMENT": 2,
- "TOO_MANY_REQUEST": 3,
- "AUTHENTICATION_FAILED": 4,
- "NO_WRITE_PERMISSION": 5,
-};
-lineType.UnregistrationReason = {
- "UNREGISTRATION_REASON_UNREGISTER_USER": 1,
- "UNREGISTRATION_REASON_UNBIND_DEVICE": 2,
-};
-lineType.UserAgeType = { "OVER": 1, "UNDER": 2, "UNDEFINED": 3 };
-lineType.VerificationMethod = {
- "NO_AVAILABLE": 0,
- "PIN_VIA_SMS": 1,
- "CALLERID_INDIGO": 2,
- "PIN_VIA_TTS": 4,
- "SKIP": 10,
-};
-lineType.VerificationResult = {
- "FAILED": 0,
- "OK_NOT_REGISTERED_YET": 1,
- "OK_REGISTERED_WITH_SAME_DEVICE": 2,
- "OK_REGISTERED_WITH_ANOTHER_DEVICE": 3,
-};
-lineType.WapInvitationType = { "REGISTRATION": 1, "CHAT": 2 };
-lineType.MediaType = { "AUDIO": 1, "VIDEO": 2 };
-lineType.SQErrorCode = {
- "UNKNOWN": 0,
- "ILLEGAL_ARGUMENT": 400,
- "AUTHENTICATION_FAILURE": 401,
- "FORBIDDEN": 403,
- "NOT_FOUND": 404,
- "REVISION_MISMATCH": 409,
- "PRECONDITION_FAILED": 410,
- "INTERNAL_ERROR": 500,
- "NOT_IMPLEMENTED": 501,
- "TRY_AGAIN_LATER": 505,
-};
-lineType.SquareEventType = {
- "RECEIVE_MESSAGE": 0,
- "SEND_MESSAGE": 1,
- "NOTIFIED_JOIN_SQUARE_CHAT": 2,
- "NOTIFIED_INVITE_INTO_SQUARE_CHAT": 3,
- "NOTIFIED_LEAVE_SQUARE_CHAT": 4,
- "NOTIFIED_DESTROY_MESSAGE": 5,
- "NOTIFIED_MARK_AS_READ": 6,
- "NOTIFIED_UPDATE_SQUARE_MEMBER_PROFILE": 7,
- "NOTIFIED_KICKOUT_FROM_SQUARE": 19,
- "NOTIFIED_SHUTDOWN_SQUARE": 18,
- "NOTIFIED_DELETE_SQUARE_CHAT": 20,
- "NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_NAME": 30,
- "NOTIFIED_UPDATE_SQUARE_CHAT_PROFILE_IMAGE": 31,
- "NOTIFIED_UPDATE_SQUARE_CHAT_ANNOUNCEMENT": 37,
- "NOTIFIED_ADD_BOT": 33,
- "NOTIFIED_REMOVE_BOT": 34,
- "NOTIFIED_UPDATE_SQUARE": 8,
- "NOTIFIED_UPDATE_SQUARE_STATUS": 9,
- "NOTIFIED_UPDATE_SQUARE_AUTHORITY": 10,
- "NOTIFIED_UPDATE_SQUARE_MEMBER": 11,
- "NOTIFIED_UPDATE_SQUARE_CHAT": 12,
- "NOTIFIED_UPDATE_SQUARE_CHAT_STATUS": 13,
- "NOTIFIED_UPDATE_SQUARE_CHAT_MEMBER": 14,
- "NOTIFIED_CREATE_SQUARE_MEMBER": 15,
- "NOTIFIED_CREATE_SQUARE_CHAT_MEMBER": 16,
- "NOTIFIED_UPDATE_SQUARE_MEMBER_RELATION": 17,
- "NOTIFIED_UPDATE_SQUARE_FEATURE_SET": 32,
- "NOTIFIED_UPDATE_SQUARE_NOTE_STATUS": 36,
- "NOTIFICATION_JOIN_REQUEST": 21,
- "NOTIFICATION_JOINED": 22,
- "NOTIFICATION_PROMOTED_COADMIN": 23,
- "NOTIFICATION_PROMOTED_ADMIN": 24,
- "NOTIFICATION_DEMOTED_MEMBER": 25,
- "NOTIFICATION_KICKED_OUT": 26,
- "NOTIFICATION_SQUARE_DELETE": 27,
- "NOTIFICATION_SQUARE_CHAT_DELETE": 28,
- "NOTIFICATION_MESSAGE": 29,
-};
-lineType.SquareMemberRelationState = { "NONE": 1, "BLOCKED": 2 };
-lineType.SquareFeatureControlState = { "DISABLED": 1, "ENABLED": 2 };
-lineType.BooleanState = { "NONE": 0, "OFF": 1, "ON": 2 };
-lineType.SquareType = { "CLOSED": 0, "OPEN": 1 };
-lineType.SquareChatType = { "OPEN": 1, "SECRET": 2, "ONE_ON_ONE": 3, "SQUARE_DEFAULT": 4 };
-lineType.SquareErrorCode = {
- "UNKNOWN": 0,
- "INTERNAL_ERROR": 500,
- "NOT_IMPLEMENTED": 501,
- "TRY_AGAIN_LATER": 503,
- "MAINTENANCE": 505,
- "ILLEGAL_ARGUMENT": 400,
- "AUTHENTICATION_FAILURE": 401,
- "FORBIDDEN": 403,
- "NOT_FOUND": 404,
- "REVISION_MISMATCH": 409,
- "PRECONDITION_FAILED": 410,
-};
-lineType.SquareChatState = { "ALIVE": 0, "DELETED": 1, "SUSPENDED": 2 };
-lineType.SquareFeatureSetAttribute = { "CREATING_SECRET_SQUARE_CHAT": 1, "INVITING_INTO_OPEN_SQUARE_CHAT": 2 };
-lineType.SquareMembershipState = {
- "JOIN_REQUESTED": 1,
- "JOINED": 2,
- "REJECTED": 3,
- "LEFT": 4,
- "KICK_OUT": 5,
- "BANNED": 6,
- "DELETED": 7,
-};
-lineType.SquareChatMemberAttribute = { "MEMBERSHIP_STATE": 4, "NOTIFICATION_MESSAGE": 6 };
-lineType.SquareMemberRole = { "ADMIN": 1, "CO_ADMIN": 2, "MEMBER": 10 };
-lineType.PreconditionFailedExtraInfo = { "DUPLICATED_DISPLAY_NAME": 0 };
-lineType.SquareChatMembershipState = { "JOINED": 1, "LEFT": 2 };
-lineType.FetchDirection = { "FORWARD": 1, "BACKWARD": 2 };
-lineType.SquareAttribute = {
- "NAME": 1,
- "WELCOME_MESSAGE": 2,
- "PROFILE_IMAGE": 3,
- "DESCRIPTION": 4,
- "SEARCHABLE": 6,
- "CATEGORY": 7,
- "INVITATION_URL": 8,
- "ABLE_TO_USE_INVITATION_URL": 9,
- "STATE": 10,
-};
-lineType.SquareAuthorityAttribute = {
- "UPDATE_SQUARE_PROFILE": 1,
- "INVITE_NEW_MEMBER": 2,
- "APPROVE_JOIN_REQUEST": 3,
- "CREATE_POST": 4,
- "CREATE_OPEN_SQUARE_CHAT": 5,
- "DELETE_SQUARE_CHAT_OR_POST": 6,
- "REMOVE_SQUARE_MEMBER": 7,
- "GRANT_ROLE": 8,
- "ENABLE_INVITATION_TICKET": 9,
- "CREATE_CHAT_ANNOUNCEMENT": 10,
-};
-lineType.SquareEventStatus = { "NORMAL": 1, "ALERT_DISABLED": 2 };
-lineType.SuggestDictionaryIncrementStatus = {
- "SUCCESS": 0,
- "INVALID_REVISION": 1,
- "TOO_LARGE_DATA": 2,
- "SCHEME_CHANGED": 3,
- "RETRY": 4,
- "FAIL": 5,
- "TOO_OLD_DATA": 6,
-};
-
-var Thrift = {};
-Thrift.copyList = (args = [], clas) => {
- let rt = [];
- args.forEach((e, i) => {
- if (clas[0]) {
- rt[i] = new clas(e);
- } else {
- rt[i] = e;
- }
- });
- return rt;
-};
-Thrift.copyMap = (args = {}, clas) => {
- let rt = {};
- for (const k in args) {
- if (clas[0]) {
- rt[k] = new clas(args[k]);
- } else {
- rt[k] = args[k];
- }
- }
- return rt;
-};
-
-Thrift.bin2int = (args = []) => {
- let rt = 0;
- args.forEach((e, i) => {
- rt = rt * (0xff);
- rt += e;
- });
- return rt;
-};
-Thrift.getValue = (name, k) => {
- for (const key in lineType[name]) {
- const element = lineType[name][key];
- if (element == k) {
- return key;
- }
- }
-};
-
-lineType.Location = class {
- constructor(args) {
- this.title = null;
- this.address = null;
- this.latitude = null;
- this.longitude = null;
- this.phone = null;
- if (args) {
- if (args.title !== undefined && args.title !== null) {
- this.title = args.title;
- }
- if (args.address !== undefined && args.address !== null) {
- this.address = args.address;
- }
- if (args.latitude !== undefined && args.latitude !== null) {
- this.latitude = args.latitude;
- }
- if (args.longitude !== undefined && args.longitude !== null) {
- this.longitude = args.longitude;
- }
- if (args.phone !== undefined && args.phone !== null) {
- this.phone = args.phone;
- }
- }
- }
-};
-lineType.MessageBoxV2MessageId = class {
- constructor(args) {
- this.deliveredTime = null;
- this.messageId = null;
- if (args) {
- if (args.deliveredTime !== undefined && args.deliveredTime !== null) {
- this.deliveredTime = args.deliveredTime;
- }
- if (args.messageId !== undefined && args.messageId !== null) {
- this.messageId = args.messageId;
- }
- }
- }
-};
-lineType.MessageCommitResult = class {
- constructor(args) {
- this.requestId = null;
- this.state = null;
- this.messageStoreRequestId = null;
- this.messageIds = null;
- this.receiverCount = null;
- this.successCount = null;
- this.failCount = null;
- this.blockCount = null;
- this.unregisteredCount = null;
- this.unrelatedCount = null;
- this.errorDescription = null;
- if (args) {
- if (args.requestId !== undefined && args.requestId !== null) {
- this.requestId = args.requestId;
- }
- if (args.state !== undefined && args.state !== null) {
- this.state = args.state;
- }
- if (args.messageStoreRequestId !== undefined && args.messageStoreRequestId !== null) {
- this.messageStoreRequestId = args.messageStoreRequestId;
- }
- if (args.messageIds !== undefined && args.messageIds !== null) {
- this.messageIds = Thrift.copyList(args.messageIds, [null]);
- }
- if (args.receiverCount !== undefined && args.receiverCount !== null) {
- this.receiverCount = args.receiverCount;
- }
- if (args.successCount !== undefined && args.successCount !== null) {
- this.successCount = args.successCount;
- }
- if (args.failCount !== undefined && args.failCount !== null) {
- this.failCount = args.failCount;
- }
- if (args.blockCount !== undefined && args.blockCount !== null) {
- this.blockCount = args.blockCount;
- }
- if (args.unregisteredCount !== undefined && args.unregisteredCount !== null) {
- this.unregisteredCount = args.unregisteredCount;
- }
- if (args.unrelatedCount !== undefined && args.unrelatedCount !== null) {
- this.unrelatedCount = args.unrelatedCount;
- }
- if (args.errorDescription !== undefined && args.errorDescription !== null) {
- this.errorDescription = args.errorDescription;
- }
- }
- }
-};
-lineType.CallHost = class {
- constructor(args) {
- this.host = null;
- this.port = null;
- this.zone = null;
- if (args) {
- if (args.host !== undefined && args.host !== null) {
- this.host = args.host;
- }
- if (args.port !== undefined && args.port !== null) {
- this.port = args.port;
- }
- if (args.zone !== undefined && args.zone !== null) {
- this.zone = args.zone;
- }
- }
- }
-};
-lineType.AgeCheckDocomoResult = class {
- constructor(args) {
- this.authUrl = null;
- this.userAgeType = null;
- if (args) {
- if (args.authUrl !== undefined && args.authUrl !== null) {
- this.authUrl = args.authUrl;
- }
- if (args.userAgeType !== undefined && args.userAgeType !== null) {
- this.userAgeType = args.userAgeType;
- }
- }
- }
-};
-lineType.AgeCheckRequestResult = class {
- constructor(args) {
- this.authUrl = null;
- this.sessionId = null;
- if (args) {
- if (args.authUrl !== undefined && args.authUrl !== null) {
- this.authUrl = args.authUrl;
- }
- if (args.sessionId !== undefined && args.sessionId !== null) {
- this.sessionId = args.sessionId;
- }
- }
- }
-};
-lineType.TextMessageAnnouncementContents = class {
- constructor(args) {
- this.messageId = null;
- this.text = null;
- this.senderSquareMemberMid = null;
- this.createdAt = null;
- if (args) {
- if (args.messageId !== undefined && args.messageId !== null) {
- this.messageId = args.messageId;
- }
- if (args.text !== undefined && args.text !== null) {
- this.text = args.text;
- }
- if (args.senderSquareMemberMid !== undefined && args.senderSquareMemberMid !== null) {
- this.senderSquareMemberMid = args.senderSquareMemberMid;
- }
- if (args.createdAt !== undefined && args.createdAt !== null) {
- this.createdAt = args.createdAt;
- }
- }
- }
-};
-lineType.SquareChatAnnouncementContents = class {
- constructor(args) {
- this.textMessageAnnouncementContents = null;
- if (args) {
- if (args.textMessageAnnouncementContents !== undefined && args.textMessageAnnouncementContents !== null) {
- this.textMessageAnnouncementContents = new lineType.TextMessageAnnouncementContents(
- args.textMessageAnnouncementContents,
- );
- }
- }
- }
-};
-lineType.SquareChatAnnouncement = class {
- constructor(args) {
- this.announcementSeq = null;
- this.type = null;
- this.contents = null;
- if (args) {
- if (args.announcementSeq !== undefined && args.announcementSeq !== null) {
- this.announcementSeq = args.announcementSeq;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.contents !== undefined && args.contents !== null) {
- this.contents = new lineType.SquareChatAnnouncementContents(args.contents);
- }
- }
- }
-};
-lineType.Announcement = class {
- constructor(args) {
- this.index = null;
- this.forceUpdate = null;
- this.title = null;
- this.text = null;
- this.createdTime = null;
- this.pictureUrl = null;
- this.thumbnailUrl = null;
- if (args) {
- if (args.index !== undefined && args.index !== null) {
- this.index = args.index;
- }
- if (args.forceUpdate !== undefined && args.forceUpdate !== null) {
- this.forceUpdate = args.forceUpdate;
- }
- if (args.title !== undefined && args.title !== null) {
- this.title = args.title;
- }
- if (args.text !== undefined && args.text !== null) {
- this.text = args.text;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.pictureUrl !== undefined && args.pictureUrl !== null) {
- this.pictureUrl = args.pictureUrl;
- }
- if (args.thumbnailUrl !== undefined && args.thumbnailUrl !== null) {
- this.thumbnailUrl = args.thumbnailUrl;
- }
- }
- }
-};
-lineType.ChannelProvider = class {
- constructor(args) {
- this.name = null;
- if (args) {
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- }
- }
-};
-lineType.E2EEPublicKey = class {
- constructor(args) {
- this.version = null;
- this.keyId = null;
- this.keyData = null;
- this.createdTime = null;
- if (args) {
- if (args.version !== undefined && args.version !== null) {
- this.version = args.version;
- }
- if (args.keyId !== undefined && args.keyId !== null) {
- this.keyId = args.keyId;
- }
- if (args.keyData !== undefined && args.keyData !== null) {
- this.keyData = args.keyData;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- }
- }
-};
-lineType.ChannelDomain = class {
- constructor(args) {
- this.host = null;
- this.removed = null;
- if (args) {
- if (args.host !== undefined && args.host !== null) {
- this.host = args.host;
- }
- if (args.removed !== undefined && args.removed !== null) {
- this.removed = args.removed;
- }
- }
- }
-};
-lineType.E2EENegotiationResult = class {
- constructor(args) {
- this.allowedTypes = null;
- this.publicKey = null;
- if (args) {
- if (args.allowedTypes !== undefined && args.allowedTypes !== null) {
- this.allowedTypes = Thrift.copyList(args.allowedTypes, [null]);
- }
- if (args.publicKey !== undefined && args.publicKey !== null) {
- this.publicKey = new lineType.E2EEPublicKey(args.publicKey);
- }
- }
- }
-};
-lineType.OTPResult = class {
- constructor(args) {
- this.otpId = null;
- this.otp = null;
- if (args) {
- if (args.otpId !== undefined && args.otpId !== null) {
- this.otpId = args.otpId;
- }
- if (args.otp !== undefined && args.otp !== null) {
- this.otp = args.otp;
- }
- }
- }
-};
-lineType.Square = class {
- constructor(args) {
- this.mid = null;
- this.name = null;
- this.welcomeMessage = null;
- this.profileImageObsHash = null;
- this.desc = null;
- this.searchable = null;
- this.type = null;
- this.categoryID = null;
- this.invitationURL = null;
- this.revision = null;
- this.ableToUseInvitationTicket = null;
- this.state = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- if (args.welcomeMessage !== undefined && args.welcomeMessage !== null) {
- this.welcomeMessage = args.welcomeMessage;
- }
- if (args.profileImageObsHash !== undefined && args.profileImageObsHash !== null) {
- this.profileImageObsHash = args.profileImageObsHash;
- }
- if (args.desc !== undefined && args.desc !== null) {
- this.desc = args.desc;
- }
- if (args.searchable !== undefined && args.searchable !== null) {
- this.searchable = args.searchable;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.categoryID !== undefined && args.categoryID !== null) {
- this.categoryID = args.categoryID;
- }
- if (args.invitationURL !== undefined && args.invitationURL !== null) {
- this.invitationURL = args.invitationURL;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.ableToUseInvitationTicket !== undefined && args.ableToUseInvitationTicket !== null) {
- this.ableToUseInvitationTicket = args.ableToUseInvitationTicket;
- }
- if (args.state !== undefined && args.state !== null) {
- this.state = args.state;
- }
- }
- }
-};
-lineType.SquareAuthority = class {
- constructor(args) {
- this.squareMid = null;
- this.updateSquareProfile = null;
- this.inviteNewMember = null;
- this.approveJoinRequest = null;
- this.createPost = null;
- this.createOpenSquareChat = null;
- this.deleteSquareChatOrPost = null;
- this.removeSquareMember = null;
- this.grantRole = null;
- this.enableInvitationTicket = null;
- this.revision = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.updateSquareProfile !== undefined && args.updateSquareProfile !== null) {
- this.updateSquareProfile = args.updateSquareProfile;
- }
- if (args.inviteNewMember !== undefined && args.inviteNewMember !== null) {
- this.inviteNewMember = args.inviteNewMember;
- }
- if (args.approveJoinRequest !== undefined && args.approveJoinRequest !== null) {
- this.approveJoinRequest = args.approveJoinRequest;
- }
- if (args.createPost !== undefined && args.createPost !== null) {
- this.createPost = args.createPost;
- }
- if (args.createOpenSquareChat !== undefined && args.createOpenSquareChat !== null) {
- this.createOpenSquareChat = args.createOpenSquareChat;
- }
- if (args.deleteSquareChatOrPost !== undefined && args.deleteSquareChatOrPost !== null) {
- this.deleteSquareChatOrPost = args.deleteSquareChatOrPost;
- }
- if (args.removeSquareMember !== undefined && args.removeSquareMember !== null) {
- this.removeSquareMember = args.removeSquareMember;
- }
- if (args.grantRole !== undefined && args.grantRole !== null) {
- this.grantRole = args.grantRole;
- }
- if (args.enableInvitationTicket !== undefined && args.enableInvitationTicket !== null) {
- this.enableInvitationTicket = args.enableInvitationTicket;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- }
- }
-};
-lineType.SquarePreference = class {
- constructor(args) {
- this.favoriteTimestamp = null;
- this.notiForNewJoinRequest = null;
- if (args) {
- if (args.favoriteTimestamp !== undefined && args.favoriteTimestamp !== null) {
- this.favoriteTimestamp = args.favoriteTimestamp;
- }
- if (args.notiForNewJoinRequest !== undefined && args.notiForNewJoinRequest !== null) {
- this.notiForNewJoinRequest = args.notiForNewJoinRequest;
- }
- }
- }
-};
-lineType.SquareMember = class {
- constructor(args) {
- this.squareMemberMid = null;
- this.squareMid = null;
- this.displayName = null;
- this.profileImageObsHash = null;
- this.ableToReceiveMessage = null;
- this.membershipState = null;
- this.role = null;
- this.revision = null;
- this.preference = null;
- this.joinMessage = null;
- if (args) {
- if (args.squareMemberMid !== undefined && args.squareMemberMid !== null) {
- this.squareMemberMid = args.squareMemberMid;
- }
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.displayName !== undefined && args.displayName !== null) {
- this.displayName = args.displayName;
- }
- if (args.profileImageObsHash !== undefined && args.profileImageObsHash !== null) {
- this.profileImageObsHash = args.profileImageObsHash;
- }
- if (args.ableToReceiveMessage !== undefined && args.ableToReceiveMessage !== null) {
- this.ableToReceiveMessage = args.ableToReceiveMessage;
- }
- if (args.membershipState !== undefined && args.membershipState !== null) {
- this.membershipState = Thrift.getValue("SquareMembershipState", args.membershipState);
- }
- if (args.role !== undefined && args.role !== null) {
- this.role = Thrift.getValue("SquareMemberRole", args.role);
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.preference !== undefined && args.preference !== null) {
- this.preference = new lineType.SquarePreference(args.preference);
- }
- if (args.joinMessage !== undefined && args.joinMessage !== null) {
- this.joinMessage = args.joinMessage;
- }
- }
- }
-};
-lineType.SquareMemberRelation = class {
- constructor(args) {
- this.state = null;
- this.revision = null;
- if (args) {
- if (args.state !== undefined && args.state !== null) {
- this.state = args.state;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- }
- }
-};
-lineType.SquareFeature = class {
- constructor(args) {
- this.controlState = null;
- this.booleanValue = null;
- if (args) {
- if (args.controlState !== undefined && args.controlState !== null) {
- this.controlState = args.controlState;
- }
- if (args.booleanValue !== undefined && args.booleanValue !== null) {
- this.booleanValue = args.booleanValue;
- }
- }
- }
-};
-lineType.SquareFeatureSet = class {
- constructor(args) {
- this.squareMid = null;
- this.revision = null;
- this.creatingSecretSquareChat = null;
- this.invitingIntoOpenSquareChat = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.creatingSecretSquareChat !== undefined && args.creatingSecretSquareChat !== null) {
- this.creatingSecretSquareChat = new lineType.SquareFeature(args.creatingSecretSquareChat);
- }
- if (args.invitingIntoOpenSquareChat !== undefined && args.invitingIntoOpenSquareChat !== null) {
- this.invitingIntoOpenSquareChat = new lineType.SquareFeature(args.invitingIntoOpenSquareChat);
- }
- }
- }
-};
-lineType.SquareStatus = class {
- constructor(args) {
- this.memberCount = null;
- this.joinRequestCount = null;
- this.lastJoinRequestAt = null;
- this.openChatCount = null;
- if (args) {
- if (args.memberCount !== undefined && args.memberCount !== null) {
- this.memberCount = args.memberCount;
- }
- if (args.joinRequestCount !== undefined && args.joinRequestCount !== null) {
- this.joinRequestCount = args.joinRequestCount;
- }
- if (args.lastJoinRequestAt !== undefined && args.lastJoinRequestAt !== null) {
- this.lastJoinRequestAt = args.lastJoinRequestAt;
- }
- if (args.openChatCount !== undefined && args.openChatCount !== null) {
- this.openChatCount = args.openChatCount;
- }
- }
- }
-};
-lineType.SquareChat = class {
- constructor(args) {
- this.squareChatMid = null;
- this.squareMid = null;
- this.type = null;
- this.name = null;
- this.chatImageObsHash = null;
- this.squareChatRevision = null;
- this.maxMemberCount = null;
- this.state = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- if (args.chatImageObsHash !== undefined && args.chatImageObsHash !== null) {
- this.chatImageObsHash = args.chatImageObsHash;
- }
- if (args.squareChatRevision !== undefined && args.squareChatRevision !== null) {
- this.squareChatRevision = args.squareChatRevision;
- }
- if (args.maxMemberCount !== undefined && args.maxMemberCount !== null) {
- this.maxMemberCount = args.maxMemberCount;
- }
- if (args.state !== undefined && args.state !== null) {
- this.state = args.state;
- }
- }
- }
-};
-lineType.NoteStatus = class {
- constructor(args) {
- this.noteCount = null;
- this.latestCreatedAt = null;
- if (args) {
- if (args.noteCount !== undefined && args.noteCount !== null) {
- this.noteCount = args.noteCount;
- }
- if (args.latestCreatedAt !== undefined && args.latestCreatedAt !== null) {
- this.latestCreatedAt = args.latestCreatedAt;
- }
- }
- }
-};
-lineType.SquareInfo = class {
- constructor(args) {
- this.square = null;
- this.squareStatus = null;
- this.squareNoteStatus = null;
- if (args) {
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- if (args.squareStatus !== undefined && args.squareStatus !== null) {
- this.squareStatus = new lineType.SquareStatus(args.squareStatus);
- }
- if (args.squareNoteStatus !== undefined && args.squareNoteStatus !== null) {
- this.squareNoteStatus = new lineType.NoteStatus(args.squareNoteStatus);
- }
- }
- }
-};
-lineType.BotUseInfo = class {
- constructor(args) {
- this.botUseAgreementAccepted = null;
- this.botInFriends = null;
- this.primaryApplication = null;
- this.locale = null;
- if (args) {
- if (args.botUseAgreementAccepted !== undefined && args.botUseAgreementAccepted !== null) {
- this.botUseAgreementAccepted = args.botUseAgreementAccepted;
- }
- if (args.botInFriends !== undefined && args.botInFriends !== null) {
- this.botInFriends = args.botInFriends;
- }
- if (args.primaryApplication !== undefined && args.primaryApplication !== null) {
- this.primaryApplication = args.primaryApplication;
- }
- if (args.locale !== undefined && args.locale !== null) {
- this.locale = args.locale;
- }
- }
- }
-};
-lineType.PaidCallAdCountry = class {
- constructor(args) {
- this.countryCode = null;
- this.rateDivision = null;
- if (args) {
- if (args.countryCode !== undefined && args.countryCode !== null) {
- this.countryCode = args.countryCode;
- }
- if (args.rateDivision !== undefined && args.rateDivision !== null) {
- this.rateDivision = args.rateDivision;
- }
- }
- }
-};
-lineType.PaidCallAdResult = class {
- constructor(args) {
- this.adRemains = null;
- if (args) {
- if (args.adRemains !== undefined && args.adRemains !== null) {
- this.adRemains = args.adRemains;
- }
- }
- }
-};
-lineType.PaidCallBalance = class {
- constructor(args) {
- this.productType = null;
- this.productName = null;
- this.unit = null;
- this.limitedPaidBalance = null;
- this.limitedFreeBalance = null;
- this.unlimitedPaidBalance = null;
- this.unlimitedFreeBalance = null;
- this.startTime = null;
- this.endTime = null;
- this.autopayEnabled = null;
- if (args) {
- if (args.productType !== undefined && args.productType !== null) {
- this.productType = args.productType;
- }
- if (args.productName !== undefined && args.productName !== null) {
- this.productName = args.productName;
- }
- if (args.unit !== undefined && args.unit !== null) {
- this.unit = args.unit;
- }
- if (args.limitedPaidBalance !== undefined && args.limitedPaidBalance !== null) {
- this.limitedPaidBalance = args.limitedPaidBalance;
- }
- if (args.limitedFreeBalance !== undefined && args.limitedFreeBalance !== null) {
- this.limitedFreeBalance = args.limitedFreeBalance;
- }
- if (args.unlimitedPaidBalance !== undefined && args.unlimitedPaidBalance !== null) {
- this.unlimitedPaidBalance = args.unlimitedPaidBalance;
- }
- if (args.unlimitedFreeBalance !== undefined && args.unlimitedFreeBalance !== null) {
- this.unlimitedFreeBalance = args.unlimitedFreeBalance;
- }
- if (args.startTime !== undefined && args.startTime !== null) {
- this.startTime = args.startTime;
- }
- if (args.endTime !== undefined && args.endTime !== null) {
- this.endTime = args.endTime;
- }
- if (args.autopayEnabled !== undefined && args.autopayEnabled !== null) {
- this.autopayEnabled = args.autopayEnabled;
- }
- }
- }
-};
-lineType.PaidCallCurrencyExchangeRate = class {
- constructor(args) {
- this.currencyCode = null;
- this.currencyName = null;
- this.currencySign = null;
- this.preferred = null;
- this.coinRate = null;
- this.creditRate = null;
- if (args) {
- if (args.currencyCode !== undefined && args.currencyCode !== null) {
- this.currencyCode = args.currencyCode;
- }
- if (args.currencyName !== undefined && args.currencyName !== null) {
- this.currencyName = args.currencyName;
- }
- if (args.currencySign !== undefined && args.currencySign !== null) {
- this.currencySign = args.currencySign;
- }
- if (args.preferred !== undefined && args.preferred !== null) {
- this.preferred = args.preferred;
- }
- if (args.coinRate !== undefined && args.coinRate !== null) {
- this.coinRate = args.coinRate;
- }
- if (args.creditRate !== undefined && args.creditRate !== null) {
- this.creditRate = args.creditRate;
- }
- }
- }
-};
-lineType.ExtendedProfileBirthday = class {
- constructor(args) {
- this.year = null;
- this.yearPrivacyLevelType = null;
- this.yearEnabled = null;
- this.day = null;
- this.dayPrivacyLevelType = null;
- this.dayEnabled = null;
- if (args) {
- if (args.year !== undefined && args.year !== null) {
- this.year = args.year;
- }
- if (args.yearPrivacyLevelType !== undefined && args.yearPrivacyLevelType !== null) {
- this.yearPrivacyLevelType = args.yearPrivacyLevelType;
- }
- if (args.yearEnabled !== undefined && args.yearEnabled !== null) {
- this.yearEnabled = args.yearEnabled;
- }
- if (args.day !== undefined && args.day !== null) {
- this.day = args.day;
- }
- if (args.dayPrivacyLevelType !== undefined && args.dayPrivacyLevelType !== null) {
- this.dayPrivacyLevelType = args.dayPrivacyLevelType;
- }
- if (args.dayEnabled !== undefined && args.dayEnabled !== null) {
- this.dayEnabled = args.dayEnabled;
- }
- }
- }
-};
-lineType.ExtendedProfile = class {
- constructor(args) {
- this.birthday = null;
- if (args) {
- if (args.birthday !== undefined && args.birthday !== null) {
- this.birthday = new lineType.ExtendedProfileBirthday(args.birthday);
- }
- }
- }
-};
-lineType.PaidCallDialing = class {
- constructor(args) {
- this.type = null;
- this.dialedNumber = null;
- this.serviceDomain = null;
- this.productType = null;
- this.productName = null;
- this.multipleProduct = null;
- this.callerIdStatus = null;
- this.balance = null;
- this.unit = null;
- this.rate = null;
- this.displayCode = null;
- this.calledNumber = null;
- this.calleeNationalNumber = null;
- this.calleeCallingCode = null;
- this.rateDivision = null;
- this.adMaxMin = null;
- this.adRemains = null;
- this.adSessionId = null;
- if (args) {
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.dialedNumber !== undefined && args.dialedNumber !== null) {
- this.dialedNumber = args.dialedNumber;
- }
- if (args.serviceDomain !== undefined && args.serviceDomain !== null) {
- this.serviceDomain = args.serviceDomain;
- }
- if (args.productType !== undefined && args.productType !== null) {
- this.productType = args.productType;
- }
- if (args.productName !== undefined && args.productName !== null) {
- this.productName = args.productName;
- }
- if (args.multipleProduct !== undefined && args.multipleProduct !== null) {
- this.multipleProduct = args.multipleProduct;
- }
- if (args.callerIdStatus !== undefined && args.callerIdStatus !== null) {
- this.callerIdStatus = args.callerIdStatus;
- }
- if (args.balance !== undefined && args.balance !== null) {
- this.balance = args.balance;
- }
- if (args.unit !== undefined && args.unit !== null) {
- this.unit = args.unit;
- }
- if (args.rate !== undefined && args.rate !== null) {
- this.rate = args.rate;
- }
- if (args.displayCode !== undefined && args.displayCode !== null) {
- this.displayCode = args.displayCode;
- }
- if (args.calledNumber !== undefined && args.calledNumber !== null) {
- this.calledNumber = args.calledNumber;
- }
- if (args.calleeNationalNumber !== undefined && args.calleeNationalNumber !== null) {
- this.calleeNationalNumber = args.calleeNationalNumber;
- }
- if (args.calleeCallingCode !== undefined && args.calleeCallingCode !== null) {
- this.calleeCallingCode = args.calleeCallingCode;
- }
- if (args.rateDivision !== undefined && args.rateDivision !== null) {
- this.rateDivision = args.rateDivision;
- }
- if (args.adMaxMin !== undefined && args.adMaxMin !== null) {
- this.adMaxMin = args.adMaxMin;
- }
- if (args.adRemains !== undefined && args.adRemains !== null) {
- this.adRemains = args.adRemains;
- }
- if (args.adSessionId !== undefined && args.adSessionId !== null) {
- this.adSessionId = args.adSessionId;
- }
- }
- }
-};
-lineType.SpotItem = class {
- constructor(args) {
- this.name = null;
- this.phone = null;
- this.category = null;
- this.mid = null;
- this.countryAreaCode = null;
- this.freePhoneCallable = null;
- if (args) {
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- if (args.phone !== undefined && args.phone !== null) {
- this.phone = args.phone;
- }
- if (args.category !== undefined && args.category !== null) {
- this.category = args.category;
- }
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.countryAreaCode !== undefined && args.countryAreaCode !== null) {
- this.countryAreaCode = args.countryAreaCode;
- }
- if (args.freePhoneCallable !== undefined && args.freePhoneCallable !== null) {
- this.freePhoneCallable = args.freePhoneCallable;
- }
- }
- }
-};
-lineType.SpotNearbyItem = class {
- constructor(args) {
- this.spotItem = null;
- this.location = null;
- if (args) {
- if (args.spotItem !== undefined && args.spotItem !== null) {
- this.spotItem = new lineType.SpotItem(args.spotItem);
- }
- if (args.location !== undefined && args.location !== null) {
- this.location = new lineType.Location(args.location);
- }
- }
- }
-};
-lineType.SpotNearbyResponse = class {
- constructor(args) {
- this.spotNearbyItems = null;
- if (args) {
- if (args.spotNearbyItems !== undefined && args.spotNearbyItems !== null) {
- this.spotNearbyItems = Thrift.copyList(args.spotNearbyItems, [lineType.SpotNearbyItem]);
- }
- }
- }
-};
-lineType.SpotPhoneNumberResponse = class {
- constructor(args) {
- this.spotItems = null;
- if (args) {
- if (args.spotItems !== undefined && args.spotItems !== null) {
- this.spotItems = Thrift.copyList(args.spotItems, [lineType.SpotItem]);
- }
- }
- }
-};
-lineType.PaidCallHistory = class {
- constructor(args) {
- this.seq = null;
- this.type = null;
- this.dialedNumber = null;
- this.calledNumber = null;
- this.toMid = null;
- this.toName = null;
- this.setupTime = null;
- this.startTime = null;
- this.endTime = null;
- this.duration = null;
- this.terminate = null;
- this.productType = null;
- this.charge = null;
- this.unit = null;
- this.result = null;
- if (args) {
- if (args.seq !== undefined && args.seq !== null) {
- this.seq = args.seq;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.dialedNumber !== undefined && args.dialedNumber !== null) {
- this.dialedNumber = args.dialedNumber;
- }
- if (args.calledNumber !== undefined && args.calledNumber !== null) {
- this.calledNumber = args.calledNumber;
- }
- if (args.toMid !== undefined && args.toMid !== null) {
- this.toMid = args.toMid;
- }
- if (args.toName !== undefined && args.toName !== null) {
- this.toName = args.toName;
- }
- if (args.setupTime !== undefined && args.setupTime !== null) {
- this.setupTime = args.setupTime;
- }
- if (args.startTime !== undefined && args.startTime !== null) {
- this.startTime = args.startTime;
- }
- if (args.endTime !== undefined && args.endTime !== null) {
- this.endTime = args.endTime;
- }
- if (args.duration !== undefined && args.duration !== null) {
- this.duration = args.duration;
- }
- if (args.terminate !== undefined && args.terminate !== null) {
- this.terminate = args.terminate;
- }
- if (args.productType !== undefined && args.productType !== null) {
- this.productType = args.productType;
- }
- if (args.charge !== undefined && args.charge !== null) {
- this.charge = args.charge;
- }
- if (args.unit !== undefined && args.unit !== null) {
- this.unit = args.unit;
- }
- if (args.result !== undefined && args.result !== null) {
- this.result = args.result;
- }
- }
- }
-};
-lineType.PaidCallHistoryResult = class {
- constructor(args) {
- this.historys = null;
- this.hasNext = null;
- if (args) {
- if (args.historys !== undefined && args.historys !== null) {
- this.historys = Thrift.copyList(args.historys, [lineType.PaidCallHistory]);
- }
- if (args.hasNext !== undefined && args.hasNext !== null) {
- this.hasNext = args.hasNext;
- }
- }
- }
-};
-lineType.PaidCallMetadataResult = class {
- constructor(args) {
- this.currencyExchangeRates = null;
- this.recommendedCountryCodes = null;
- this.adCountries = null;
- if (args) {
- if (args.currencyExchangeRates !== undefined && args.currencyExchangeRates !== null) {
- this.currencyExchangeRates = Thrift.copyList(args.currencyExchangeRates, [
- lineType.PaidCallCurrencyExchangeRate,
- ]);
- }
- if (args.recommendedCountryCodes !== undefined && args.recommendedCountryCodes !== null) {
- this.recommendedCountryCodes = Thrift.copyList(args.recommendedCountryCodes, [null]);
- }
- if (args.adCountries !== undefined && args.adCountries !== null) {
- this.adCountries = Thrift.copyList(args.adCountries, [lineType.PaidCallAdCountry]);
- }
- }
- }
-};
-lineType.PaidCallRedeemResult = class {
- constructor(args) {
- this.eventName = null;
- this.eventAmount = null;
- if (args) {
- if (args.eventName !== undefined && args.eventName !== null) {
- this.eventName = args.eventName;
- }
- if (args.eventAmount !== undefined && args.eventAmount !== null) {
- this.eventAmount = args.eventAmount;
- }
- }
- }
-};
-lineType.PaidCallResponse = class {
- constructor(args) {
- this.host = null;
- this.dialing = null;
- this.token = null;
- this.spotItems = null;
- if (args) {
- if (args.host !== undefined && args.host !== null) {
- this.host = new lineType.CallHost(args.host);
- }
- if (args.dialing !== undefined && args.dialing !== null) {
- this.dialing = new lineType.PaidCallDialing(args.dialing);
- }
- if (args.token !== undefined && args.token !== null) {
- this.token = args.token;
- }
- if (args.spotItems !== undefined && args.spotItems !== null) {
- this.spotItems = Thrift.copyList(args.spotItems, [lineType.SpotItem]);
- }
- }
- }
-};
-lineType.PaidCallUserRate = class {
- constructor(args) {
- this.countryCode = null;
- this.rate = null;
- this.rateDivision = null;
- this.rateName = null;
- if (args) {
- if (args.countryCode !== undefined && args.countryCode !== null) {
- this.countryCode = args.countryCode;
- }
- if (args.rate !== undefined && args.rate !== null) {
- this.rate = args.rate;
- }
- if (args.rateDivision !== undefined && args.rateDivision !== null) {
- this.rateDivision = args.rateDivision;
- }
- if (args.rateName !== undefined && args.rateName !== null) {
- this.rateName = args.rateName;
- }
- }
- }
-};
-lineType.ChannelInfo = class {
- constructor(args) {
- this.channelId = null;
- this.name = null;
- this.entryPageUrl = null;
- this.descriptionText = null;
- this.provider = null;
- this.publicType = null;
- this.iconImage = null;
- this.permissions = null;
- this.iconThumbnailImage = null;
- this.channelConfigurations = null;
- this.lcsAllApiUsable = null;
- this.allowedPermissions = null;
- this.channelDomains = null;
- this.updatedTimestamp = null;
- if (args) {
- if (args.channelId !== undefined && args.channelId !== null) {
- this.channelId = args.channelId;
- }
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- if (args.entryPageUrl !== undefined && args.entryPageUrl !== null) {
- this.entryPageUrl = args.entryPageUrl;
- }
- if (args.descriptionText !== undefined && args.descriptionText !== null) {
- this.descriptionText = args.descriptionText;
- }
- if (args.provider !== undefined && args.provider !== null) {
- this.provider = new lineType.ChannelProvider(args.provider);
- }
- if (args.publicType !== undefined && args.publicType !== null) {
- this.publicType = args.publicType;
- }
- if (args.iconImage !== undefined && args.iconImage !== null) {
- this.iconImage = args.iconImage;
- }
- if (args.permissions !== undefined && args.permissions !== null) {
- this.permissions = Thrift.copyList(args.permissions, [null]);
- }
- if (args.iconThumbnailImage !== undefined && args.iconThumbnailImage !== null) {
- this.iconThumbnailImage = args.iconThumbnailImage;
- }
- if (args.channelConfigurations !== undefined && args.channelConfigurations !== null) {
- this.channelConfigurations = Thrift.copyList(args.channelConfigurations, [null]);
- }
- if (args.lcsAllApiUsable !== undefined && args.lcsAllApiUsable !== null) {
- this.lcsAllApiUsable = args.lcsAllApiUsable;
- }
- if (args.allowedPermissions !== undefined && args.allowedPermissions !== null) {
- this.allowedPermissions = Thrift.copyList(args.allowedPermissions, [null]);
- }
- if (args.channelDomains !== undefined && args.channelDomains !== null) {
- this.channelDomains = Thrift.copyList(args.channelDomains, [lineType.ChannelDomain]);
- }
- if (args.updatedTimestamp !== undefined && args.updatedTimestamp !== null) {
- this.updatedTimestamp = args.updatedTimestamp;
- }
- }
- }
-};
-lineType.ApprovedChannelInfo = class {
- constructor(args) {
- this.channelInfo = null;
- this.approvedAt = null;
- if (args) {
- if (args.channelInfo !== undefined && args.channelInfo !== null) {
- this.channelInfo = new lineType.ChannelInfo(args.channelInfo);
- }
- if (args.approvedAt !== undefined && args.approvedAt !== null) {
- this.approvedAt = args.approvedAt;
- }
- }
- }
-};
-lineType.ApprovedChannelInfos = class {
- constructor(args) {
- this.approvedChannelInfos = null;
- this.revision = null;
- if (args) {
- if (args.approvedChannelInfos !== undefined && args.approvedChannelInfos !== null) {
- this.approvedChannelInfos = Thrift.copyList(args.approvedChannelInfos, [lineType.ApprovedChannelInfo]);
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- }
- }
-};
-lineType.AuthQrcode = class {
- constructor(args) {
- this.qrcode = null;
- this.verifier = null;
- this.callbackUrl = null;
- if (args) {
- if (args.qrcode !== undefined && args.qrcode !== null) {
- this.qrcode = args.qrcode;
- }
- if (args.verifier !== undefined && args.verifier !== null) {
- this.verifier = args.verifier;
- }
- if (args.callbackUrl !== undefined && args.callbackUrl !== null) {
- this.callbackUrl = args.callbackUrl;
- }
- }
- }
-};
-lineType.AnalyticsInfo = class {
- constructor(args) {
- this.gaSamplingRate = null;
- this.tmid = null;
- if (args) {
- if (args.gaSamplingRate !== undefined && args.gaSamplingRate !== null) {
- this.gaSamplingRate = args.gaSamplingRate;
- }
- if (args.tmid !== undefined && args.tmid !== null) {
- this.tmid = args.tmid;
- }
- }
- }
-};
-lineType.ContactTransition = class {
- constructor(args) {
- this.ownerMid = null;
- this.targetMid = null;
- this.previousStatus = null;
- this.resultStatus = null;
- if (args) {
- if (args.ownerMid !== undefined && args.ownerMid !== null) {
- this.ownerMid = args.ownerMid;
- }
- if (args.targetMid !== undefined && args.targetMid !== null) {
- this.targetMid = args.targetMid;
- }
- if (args.previousStatus !== undefined && args.previousStatus !== null) {
- this.previousStatus = args.previousStatus;
- }
- if (args.resultStatus !== undefined && args.resultStatus !== null) {
- this.resultStatus = args.resultStatus;
- }
- }
- }
-};
-lineType.UserTicketResponse = class {
- constructor(args) {
- this.mid = null;
- this.userTicket = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.userTicket !== undefined && args.userTicket !== null) {
- this.userTicket = args.userTicket;
- }
- }
- }
-};
-lineType.BuddyBanner = class {
- constructor(args) {
- this.buddyBannerLinkType = null;
- this.buddyBannerLink = null;
- this.buddyBannerImageUrl = null;
- if (args) {
- if (args.buddyBannerLinkType !== undefined && args.buddyBannerLinkType !== null) {
- this.buddyBannerLinkType = args.buddyBannerLinkType;
- }
- if (args.buddyBannerLink !== undefined && args.buddyBannerLink !== null) {
- this.buddyBannerLink = args.buddyBannerLink;
- }
- if (args.buddyBannerImageUrl !== undefined && args.buddyBannerImageUrl !== null) {
- this.buddyBannerImageUrl = args.buddyBannerImageUrl;
- }
- }
- }
-};
-lineType.BuddyDetail = class {
- constructor(args) {
- this.mid = null;
- this.memberCount = null;
- this.onAir = null;
- this.businessAccount = null;
- this.addable = null;
- this.acceptableContenlineType = null;
- this.capableMyhome = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.memberCount !== undefined && args.memberCount !== null) {
- this.memberCount = args.memberCount;
- }
- if (args.onAir !== undefined && args.onAir !== null) {
- this.onAir = args.onAir;
- }
- if (args.businessAccount !== undefined && args.businessAccount !== null) {
- this.businessAccount = args.businessAccount;
- }
- if (args.addable !== undefined && args.addable !== null) {
- this.addable = args.addable;
- }
- if (args.acceptableContenlineType !== undefined && args.acceptableContenlineType !== null) {
- this.acceptableContenlineType = Thrift.copyList(args.acceptableContenlineType, [null]);
- }
- if (args.capableMyhome !== undefined && args.capableMyhome !== null) {
- this.capableMyhome = args.capableMyhome;
- }
- }
- }
-};
-lineType.Contact = class {
- constructor(args) {
- this.mid = null;
- this.createdTime = null;
- this.type = null;
- this.status = null;
- this.relation = null;
- this.displayName = null;
- this.phoneticName = null;
- this.pictureStatus = null;
- this.thumbnailUrl = null;
- this.statusMessage = null;
- this.displayNameOverridden = null;
- this.favoriteTime = null;
- this.capableVoiceCall = null;
- this.capableVideoCall = null;
- this.capableMyhome = null;
- this.capableBuddy = null;
- this.attributes = null;
- this.settings = null;
- this.picturePath = null;
- this.recommendParams = null;
- this.friendRequestStatus = null;
- this.musicProfile = null;
- this.videoProfile = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.status !== undefined && args.status !== null) {
- this.status = args.status;
- }
- if (args.relation !== undefined && args.relation !== null) {
- this.relation = args.relation;
- }
- if (args.displayName !== undefined && args.displayName !== null) {
- this.displayName = args.displayName;
- }
- if (args.phoneticName !== undefined && args.phoneticName !== null) {
- this.phoneticName = args.phoneticName;
- }
- if (args.pictureStatus !== undefined && args.pictureStatus !== null) {
- this.pictureStatus = args.pictureStatus;
- }
- if (args.thumbnailUrl !== undefined && args.thumbnailUrl !== null) {
- this.thumbnailUrl = args.thumbnailUrl;
- }
- if (args.statusMessage !== undefined && args.statusMessage !== null) {
- this.statusMessage = args.statusMessage;
- }
- if (args.displayNameOverridden !== undefined && args.displayNameOverridden !== null) {
- this.displayNameOverridden = args.displayNameOverridden;
- }
- if (args.favoriteTime !== undefined && args.favoriteTime !== null) {
- this.favoriteTime = args.favoriteTime;
- }
- if (args.capableVoiceCall !== undefined && args.capableVoiceCall !== null) {
- this.capableVoiceCall = args.capableVoiceCall;
- }
- if (args.capableVideoCall !== undefined && args.capableVideoCall !== null) {
- this.capableVideoCall = args.capableVideoCall;
- }
- if (args.capableMyhome !== undefined && args.capableMyhome !== null) {
- this.capableMyhome = args.capableMyhome;
- }
- if (args.capableBuddy !== undefined && args.capableBuddy !== null) {
- this.capableBuddy = args.capableBuddy;
- }
- if (args.attributes !== undefined && args.attributes !== null) {
- this.attributes = args.attributes;
- }
- if (args.settings !== undefined && args.settings !== null) {
- this.settings = args.settings;
- }
- if (args.picturePath !== undefined && args.picturePath !== null) {
- this.picturePath = args.picturePath;
- }
- if (args.recommendParams !== undefined && args.recommendParams !== null) {
- this.recommendParams = args.recommendParams;
- }
- if (args.friendRequestStatus !== undefined && args.friendRequestStatus !== null) {
- this.friendRequestStatus = args.friendRequestStatus;
- }
- if (args.musicProfile !== undefined && args.musicProfile !== null) {
- this.musicProfile = args.musicProfile;
- }
- if (args.videoProfile !== undefined && args.videoProfile !== null) {
- this.videoProfile = args.videoProfile;
- }
- }
- }
-};
-lineType.BuddyList = class {
- constructor(args) {
- this.classification = null;
- this.displayName = null;
- this.totalBuddyCount = null;
- this.popularContacts = null;
- if (args) {
- if (args.classification !== undefined && args.classification !== null) {
- this.classification = args.classification;
- }
- if (args.displayName !== undefined && args.displayName !== null) {
- this.displayName = args.displayName;
- }
- if (args.totalBuddyCount !== undefined && args.totalBuddyCount !== null) {
- this.totalBuddyCount = args.totalBuddyCount;
- }
- if (args.popularContacts !== undefined && args.popularContacts !== null) {
- this.popularContacts = Thrift.copyList(args.popularContacts, [lineType.Contact]);
- }
- }
- }
-};
-lineType.RegisterWithPhoneNumberResult = class {
- constructor(args) {
- this.authToken = null;
- this.recommendEmailRegistration = null;
- this.certificate = null;
- if (args) {
- if (args.authToken !== undefined && args.authToken !== null) {
- this.authToken = args.authToken;
- }
- if (args.recommendEmailRegistration !== undefined && args.recommendEmailRegistration !== null) {
- this.recommendEmailRegistration = args.recommendEmailRegistration;
- }
- if (args.certificate !== undefined && args.certificate !== null) {
- this.certificate = args.certificate;
- }
- }
- }
-};
-lineType.BuddyMessageRequest = class {
- constructor(args) {
- this.contentType = null;
- this.text = null;
- this.location = null;
- this.content = null;
- this.contentMetadata = null;
- if (args) {
- if (args.contentType !== undefined && args.contentType !== null) {
- this.contentType = args.contentType;
- }
- if (args.text !== undefined && args.text !== null) {
- this.text = args.text;
- }
- if (args.location !== undefined && args.location !== null) {
- this.location = new lineType.Location(args.location);
- }
- if (args.content !== undefined && args.content !== null) {
- this.content = args.content;
- }
- if (args.contentMetadata !== undefined && args.contentMetadata !== null) {
- this.contentMetadata = Thrift.copyMap(args.contentMetadata, [null]);
- }
- }
- }
-};
-lineType.BuddyOnAirUrls = class {
- constructor(args) {
- this.hls = null;
- this.smoothStreaming = null;
- if (args) {
- if (args.hls !== undefined && args.hls !== null) {
- this.hls = Thrift.copyMap(args.hls, [null]);
- }
- if (args.smoothStreaming !== undefined && args.smoothStreaming !== null) {
- this.smoothStreaming = Thrift.copyMap(args.smoothStreaming, [null]);
- }
- }
- }
-};
-lineType.BuddyOnAir = class {
- constructor(args) {
- this.mid = null;
- this.freshnessLifetime = null;
- this.onAirId = null;
- this.onAir = null;
- this.text = null;
- this.viewerCount = null;
- this.targetCount = null;
- this.onAirType = null;
- this.onAirUrls = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.freshnessLifetime !== undefined && args.freshnessLifetime !== null) {
- this.freshnessLifetime = args.freshnessLifetime;
- }
- if (args.onAirId !== undefined && args.onAirId !== null) {
- this.onAirId = args.onAirId;
- }
- if (args.onAir !== undefined && args.onAir !== null) {
- this.onAir = args.onAir;
- }
- if (args.text !== undefined && args.text !== null) {
- this.text = args.text;
- }
- if (args.viewerCount !== undefined && args.viewerCount !== null) {
- this.viewerCount = args.viewerCount;
- }
- if (args.targetCount !== undefined && args.targetCount !== null) {
- this.targetCount = args.targetCount;
- }
- if (args.onAirType !== undefined && args.onAirType !== null) {
- this.onAirType = args.onAirType;
- }
- if (args.onAirUrls !== undefined && args.onAirUrls !== null) {
- this.onAirUrls = new lineType.BuddyOnAirUrls(args.onAirUrls);
- }
- }
- }
-};
-lineType.BuddyProfile = class {
- constructor(args) {
- this.buddyId = null;
- this.mid = null;
- this.searchId = null;
- this.displayName = null;
- this.statusMessage = null;
- this.contactCount = null;
- if (args) {
- if (args.buddyId !== undefined && args.buddyId !== null) {
- this.buddyId = args.buddyId;
- }
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.searchId !== undefined && args.searchId !== null) {
- this.searchId = args.searchId;
- }
- if (args.displayName !== undefined && args.displayName !== null) {
- this.displayName = args.displayName;
- }
- if (args.statusMessage !== undefined && args.statusMessage !== null) {
- this.statusMessage = args.statusMessage;
- }
- if (args.contactCount !== undefined && args.contactCount !== null) {
- this.contactCount = args.contactCount;
- }
- }
- }
-};
-lineType.CommitMessageResult = class {
- constructor(args) {
- this.message = null;
- this.code = null;
- this.reason = null;
- this.successCount = null;
- this.failCount = null;
- this.unregisterCount = null;
- this.blockCount = null;
- if (args) {
- if (args.message !== undefined && args.message !== null) {
- this.message = new lineType.Message(args.message);
- }
- if (args.code !== undefined && args.code !== null) {
- this.code = args.code;
- }
- if (args.reason !== undefined && args.reason !== null) {
- this.reason = args.reason;
- }
- if (args.successCount !== undefined && args.successCount !== null) {
- this.successCount = args.successCount;
- }
- if (args.failCount !== undefined && args.failCount !== null) {
- this.failCount = args.failCount;
- }
- if (args.unregisterCount !== undefined && args.unregisterCount !== null) {
- this.unregisterCount = args.unregisterCount;
- }
- if (args.blockCount !== undefined && args.blockCount !== null) {
- this.blockCount = args.blockCount;
- }
- }
- }
-};
-lineType.BuddySearchResult = class {
- constructor(args) {
- this.mid = null;
- this.displayName = null;
- this.pictureStatus = null;
- this.picturePath = null;
- this.statusMessage = null;
- this.businessAccount = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.displayName !== undefined && args.displayName !== null) {
- this.displayName = args.displayName;
- }
- if (args.pictureStatus !== undefined && args.pictureStatus !== null) {
- this.pictureStatus = args.pictureStatus;
- }
- if (args.picturePath !== undefined && args.picturePath !== null) {
- this.picturePath = args.picturePath;
- }
- if (args.statusMessage !== undefined && args.statusMessage !== null) {
- this.statusMessage = args.statusMessage;
- }
- if (args.businessAccount !== undefined && args.businessAccount !== null) {
- this.businessAccount = args.businessAccount;
- }
- }
- }
-};
-lineType.SyncParamMid = class {
- constructor(args) {
- this.mid = null;
- this.diff = null;
- this.revision = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.diff !== undefined && args.diff !== null) {
- this.diff = args.diff;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- }
- }
-};
-lineType.SIMInfo = class {
- constructor(args) {
- this.phoneNumber = null;
- this.countryCode = null;
- if (args) {
- if (args.phoneNumber !== undefined && args.phoneNumber !== null) {
- this.phoneNumber = args.phoneNumber;
- }
- if (args.countryCode !== undefined && args.countryCode !== null) {
- this.countryCode = args.countryCode;
- }
- }
- }
-};
-lineType.SyncParamContact = class {
- constructor(args) {
- this.syncParamMid = null;
- this.contactStatus = null;
- if (args) {
- if (args.syncParamMid !== undefined && args.syncParamMid !== null) {
- this.syncParamMid = new lineType.SyncParamMid(args.syncParamMid);
- }
- if (args.contactStatus !== undefined && args.contactStatus !== null) {
- this.contactStatus = args.contactStatus;
- }
- }
- }
-};
-lineType.ChannelDomains = class {
- constructor(args) {
- this.channelDomains = null;
- this.revision = null;
- if (args) {
- if (args.channelDomains !== undefined && args.channelDomains !== null) {
- this.channelDomains = Thrift.copyList(args.channelDomains, [lineType.ChannelDomain]);
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- }
- }
-};
-lineType.ProductCategory = class {
- constructor(args) {
- this.productCategoryId = null;
- this.title = null;
- this.productCount = null;
- this.newFlag = null;
- if (args) {
- if (args.productCategoryId !== undefined && args.productCategoryId !== null) {
- this.productCategoryId = args.productCategoryId;
- }
- if (args.title !== undefined && args.title !== null) {
- this.title = args.title;
- }
- if (args.productCount !== undefined && args.productCount !== null) {
- this.productCount = args.productCount;
- }
- if (args.newFlag !== undefined && args.newFlag !== null) {
- this.newFlag = args.newFlag;
- }
- }
- }
-};
-lineType.ChannelInfos = class {
- constructor(args) {
- this.channelInfos = null;
- this.revision = null;
- if (args) {
- if (args.channelInfos !== undefined && args.channelInfos !== null) {
- this.channelInfos = Thrift.copyList(args.channelInfos, [lineType.ChannelInfo]);
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- }
- }
-};
-lineType.ChannelNotificationSetting = class {
- constructor(args) {
- this.channelId = null;
- this.name = null;
- this.notificationReceivable = null;
- this.messageReceivable = null;
- this.showDefault = null;
- if (args) {
- if (args.channelId !== undefined && args.channelId !== null) {
- this.channelId = args.channelId;
- }
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- if (args.notificationReceivable !== undefined && args.notificationReceivable !== null) {
- this.notificationReceivable = args.notificationReceivable;
- }
- if (args.messageReceivable !== undefined && args.messageReceivable !== null) {
- this.messageReceivable = args.messageReceivable;
- }
- if (args.showDefault !== undefined && args.showDefault !== null) {
- this.showDefault = args.showDefault;
- }
- }
- }
-};
-lineType.ChannelSyncDatas = class {
- constructor(args) {
- this.channelInfos = null;
- this.channelDomains = null;
- this.revision = null;
- this.expires = null;
- if (args) {
- if (args.channelInfos !== undefined && args.channelInfos !== null) {
- this.channelInfos = Thrift.copyList(args.channelInfos, [lineType.ChannelInfo]);
- }
- if (args.channelDomains !== undefined && args.channelDomains !== null) {
- this.channelDomains = Thrift.copyList(args.channelDomains, [lineType.ChannelDomain]);
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.expires !== undefined && args.expires !== null) {
- this.expires = args.expires;
- }
- }
- }
-};
-lineType.NotiCenterEventData = class {
- constructor(args) {
- this.id = null;
- this.to = null;
- this.from_ = null;
- this.toChannel = null;
- this.fromChannel = null;
- this.eventType = null;
- this.createdTime = null;
- this.operationRevision = null;
- this.content = null;
- this.push = null;
- if (args) {
- if (args.id !== undefined && args.id !== null) {
- this.id = args.id;
- }
- if (args.to !== undefined && args.to !== null) {
- this.to = args.to;
- }
- if (args.from_ !== undefined && args.from_ !== null) {
- this.from_ = args.from_;
- }
- if (args.toChannel !== undefined && args.toChannel !== null) {
- this.toChannel = args.toChannel;
- }
- if (args.fromChannel !== undefined && args.fromChannel !== null) {
- this.fromChannel = args.fromChannel;
- }
- if (args.eventType !== undefined && args.eventType !== null) {
- this.eventType = args.eventType;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.operationRevision !== undefined && args.operationRevision !== null) {
- this.operationRevision = args.operationRevision;
- }
- if (args.content !== undefined && args.content !== null) {
- this.content = Thrift.copyMap(args.content, [null]);
- }
- if (args.push !== undefined && args.push !== null) {
- this.push = Thrift.copyMap(args.push, [null]);
- }
- }
- }
-};
-lineType.ChannelToken = class {
- constructor(args) {
- this.token = null;
- this.obsToken = null;
- this.expiration = null;
- this.refreshToken = null;
- this.channelAccessToken = null;
- if (args) {
- if (args.token !== undefined && args.token !== null) {
- this.token = args.token;
- }
- if (args.obsToken !== undefined && args.obsToken !== null) {
- this.obsToken = args.obsToken;
- }
- if (args.expiration !== undefined && args.expiration !== null) {
- this.expiration = args.expiration;
- }
- if (args.refreshToken !== undefined && args.refreshToken !== null) {
- this.refreshToken = args.refreshToken;
- }
- if (args.channelAccessToken !== undefined && args.channelAccessToken !== null) {
- this.channelAccessToken = args.channelAccessToken;
- }
- }
- }
-};
-lineType.ChannelSettings = class {
- constructor(args) {
- this.unapprovedMessageReceivable = null;
- if (args) {
- if (args.unapprovedMessageReceivable !== undefined && args.unapprovedMessageReceivable !== null) {
- this.unapprovedMessageReceivable = args.unapprovedMessageReceivable;
- }
- }
- }
-};
-lineType.ChannelIdWithLastUpdated = class {
- constructor(args) {
- this.channelId = null;
- this.lastUpdated = null;
- if (args) {
- if (args.channelId !== undefined && args.channelId !== null) {
- this.channelId = args.channelId;
- }
- if (args.lastUpdated !== undefined && args.lastUpdated !== null) {
- this.lastUpdated = args.lastUpdated;
- }
- }
- }
-};
-lineType.Coin = class {
- constructor(args) {
- this.freeCoinBalance = null;
- this.payedCoinBalance = null;
- this.totalCoinBalance = null;
- this.rewardCoinBalance = null;
- if (args) {
- if (args.freeCoinBalance !== undefined && args.freeCoinBalance !== null) {
- this.freeCoinBalance = args.freeCoinBalance;
- }
- if (args.payedCoinBalance !== undefined && args.payedCoinBalance !== null) {
- this.payedCoinBalance = args.payedCoinBalance;
- }
- if (args.totalCoinBalance !== undefined && args.totalCoinBalance !== null) {
- this.totalCoinBalance = args.totalCoinBalance;
- }
- if (args.rewardCoinBalance !== undefined && args.rewardCoinBalance !== null) {
- this.rewardCoinBalance = args.rewardCoinBalance;
- }
- }
- }
-};
-lineType.CoinPayLoad = class {
- constructor(args) {
- this.payCoin = null;
- this.freeCoin = null;
- this.type = null;
- this.rewardCoin = null;
- if (args) {
- if (args.payCoin !== undefined && args.payCoin !== null) {
- this.payCoin = args.payCoin;
- }
- if (args.freeCoin !== undefined && args.freeCoin !== null) {
- this.freeCoin = args.freeCoin;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.rewardCoin !== undefined && args.rewardCoin !== null) {
- this.rewardCoin = args.rewardCoin;
- }
- }
- }
-};
-lineType.CoinHistory = class {
- constructor(args) {
- this.payDate = null;
- this.coinBalance = null;
- this.coin = null;
- this.price = null;
- this.title = null;
- this.refund = null;
- this.paySeq = null;
- this.currency = null;
- this.currencySign = null;
- this.displayPrice = null;
- this.payload = null;
- this.channelId = null;
- if (args) {
- if (args.payDate !== undefined && args.payDate !== null) {
- this.payDate = args.payDate;
- }
- if (args.coinBalance !== undefined && args.coinBalance !== null) {
- this.coinBalance = args.coinBalance;
- }
- if (args.coin !== undefined && args.coin !== null) {
- this.coin = args.coin;
- }
- if (args.price !== undefined && args.price !== null) {
- this.price = args.price;
- }
- if (args.title !== undefined && args.title !== null) {
- this.title = args.title;
- }
- if (args.refund !== undefined && args.refund !== null) {
- this.refund = args.refund;
- }
- if (args.paySeq !== undefined && args.paySeq !== null) {
- this.paySeq = args.paySeq;
- }
- if (args.currency !== undefined && args.currency !== null) {
- this.currency = args.currency;
- }
- if (args.currencySign !== undefined && args.currencySign !== null) {
- this.currencySign = args.currencySign;
- }
- if (args.displayPrice !== undefined && args.displayPrice !== null) {
- this.displayPrice = args.displayPrice;
- }
- if (args.payload !== undefined && args.payload !== null) {
- this.payload = new lineType.CoinPayLoad(args.payload);
- }
- if (args.channelId !== undefined && args.channelId !== null) {
- this.channelId = args.channelId;
- }
- }
- }
-};
-lineType.CoinHistoryCondition = class {
- constructor(args) {
- this.start = null;
- this.size = null;
- this.language = null;
- this.eddt = null;
- this.appStoreCode = null;
- if (args) {
- if (args.start !== undefined && args.start !== null) {
- this.start = args.start;
- }
- if (args.size !== undefined && args.size !== null) {
- this.size = args.size;
- }
- if (args.language !== undefined && args.language !== null) {
- this.language = args.language;
- }
- if (args.eddt !== undefined && args.eddt !== null) {
- this.eddt = args.eddt;
- }
- if (args.appStoreCode !== undefined && args.appStoreCode !== null) {
- this.appStoreCode = args.appStoreCode;
- }
- }
- }
-};
-lineType.CoinHistoryResult = class {
- constructor(args) {
- this.historys = null;
- this.balance = null;
- this.hasNext = null;
- if (args) {
- if (args.historys !== undefined && args.historys !== null) {
- this.historys = Thrift.copyList(args.historys, [lineType.CoinHistory]);
- }
- if (args.balance !== undefined && args.balance !== null) {
- this.balance = new lineType.Coin(args.balance);
- }
- if (args.hasNext !== undefined && args.hasNext !== null) {
- this.hasNext = args.hasNext;
- }
- }
- }
-};
-lineType.CoinProductItem = class {
- constructor(args) {
- this.itemId = null;
- this.coin = null;
- this.freeCoin = null;
- this.currency = null;
- this.price = null;
- this.displayPrice = null;
- this.name = null;
- this.desc = null;
- if (args) {
- if (args.itemId !== undefined && args.itemId !== null) {
- this.itemId = args.itemId;
- }
- if (args.coin !== undefined && args.coin !== null) {
- this.coin = args.coin;
- }
- if (args.freeCoin !== undefined && args.freeCoin !== null) {
- this.freeCoin = args.freeCoin;
- }
- if (args.currency !== undefined && args.currency !== null) {
- this.currency = args.currency;
- }
- if (args.price !== undefined && args.price !== null) {
- this.price = args.price;
- }
- if (args.displayPrice !== undefined && args.displayPrice !== null) {
- this.displayPrice = args.displayPrice;
- }
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- if (args.desc !== undefined && args.desc !== null) {
- this.desc = args.desc;
- }
- }
- }
-};
-lineType.CoinPurchaseConfirm = class {
- constructor(args) {
- this.orderId = null;
- this.appStoreCode = null;
- this.receipt = null;
- this.signature = null;
- this.seller = null;
- this.requestType = null;
- this.ignoreReceipt = null;
- if (args) {
- if (args.orderId !== undefined && args.orderId !== null) {
- this.orderId = args.orderId;
- }
- if (args.appStoreCode !== undefined && args.appStoreCode !== null) {
- this.appStoreCode = args.appStoreCode;
- }
- if (args.receipt !== undefined && args.receipt !== null) {
- this.receipt = args.receipt;
- }
- if (args.signature !== undefined && args.signature !== null) {
- this.signature = args.signature;
- }
- if (args.seller !== undefined && args.seller !== null) {
- this.seller = args.seller;
- }
- if (args.requestType !== undefined && args.requestType !== null) {
- this.requestType = args.requestType;
- }
- if (args.ignoreReceipt !== undefined && args.ignoreReceipt !== null) {
- this.ignoreReceipt = args.ignoreReceipt;
- }
- }
- }
-};
-lineType.CoinPurchaseReservation = class {
- constructor(args) {
- this.productId = null;
- this.country = null;
- this.currency = null;
- this.price = null;
- this.appStoreCode = null;
- this.language = null;
- this.pgCode = null;
- this.redirectUrl = null;
- if (args) {
- if (args.productId !== undefined && args.productId !== null) {
- this.productId = args.productId;
- }
- if (args.country !== undefined && args.country !== null) {
- this.country = args.country;
- }
- if (args.currency !== undefined && args.currency !== null) {
- this.currency = args.currency;
- }
- if (args.price !== undefined && args.price !== null) {
- this.price = args.price;
- }
- if (args.appStoreCode !== undefined && args.appStoreCode !== null) {
- this.appStoreCode = args.appStoreCode;
- }
- if (args.language !== undefined && args.language !== null) {
- this.language = args.language;
- }
- if (args.pgCode !== undefined && args.pgCode !== null) {
- this.pgCode = args.pgCode;
- }
- if (args.redirectUrl !== undefined && args.redirectUrl !== null) {
- this.redirectUrl = args.redirectUrl;
- }
- }
- }
-};
-lineType.CoinUseReservationItem = class {
- constructor(args) {
- this.itemId = null;
- this.itemName = null;
- this.amount = null;
- if (args) {
- if (args.itemId !== undefined && args.itemId !== null) {
- this.itemId = args.itemId;
- }
- if (args.itemName !== undefined && args.itemName !== null) {
- this.itemName = args.itemName;
- }
- if (args.amount !== undefined && args.amount !== null) {
- this.amount = args.amount;
- }
- }
- }
-};
-lineType.CoinUseReservation = class {
- constructor(args) {
- this.channelId = null;
- this.shopOrderId = null;
- this.appStoreCode = null;
- this.items = null;
- this.country = null;
- if (args) {
- if (args.channelId !== undefined && args.channelId !== null) {
- this.channelId = args.channelId;
- }
- if (args.shopOrderId !== undefined && args.shopOrderId !== null) {
- this.shopOrderId = args.shopOrderId;
- }
- if (args.appStoreCode !== undefined && args.appStoreCode !== null) {
- this.appStoreCode = args.appStoreCode;
- }
- if (args.items !== undefined && args.items !== null) {
- this.items = Thrift.copyList(args.items, [lineType.CoinUseReservationItem]);
- }
- if (args.country !== undefined && args.country !== null) {
- this.country = args.country;
- }
- }
- }
-};
-lineType.CompactContact = class {
- constructor(args) {
- this.mid = null;
- this.createdTime = null;
- this.modifiedTime = null;
- this.status = null;
- this.settings = null;
- this.displayNameOverridden = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.modifiedTime !== undefined && args.modifiedTime !== null) {
- this.modifiedTime = args.modifiedTime;
- }
- if (args.status !== undefined && args.status !== null) {
- this.status = args.status;
- }
- if (args.settings !== undefined && args.settings !== null) {
- this.settings = args.settings;
- }
- if (args.displayNameOverridden !== undefined && args.displayNameOverridden !== null) {
- this.displayNameOverridden = args.displayNameOverridden;
- }
- }
- }
-};
-lineType.ContactModification = class {
- constructor(args) {
- this.type = null;
- this.luid = null;
- this.phones = null;
- this.emails = null;
- this.userids = null;
- if (args) {
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.luid !== undefined && args.luid !== null) {
- this.luid = args.luid;
- }
- if (args.phones !== undefined && args.phones !== null) {
- this.phones = Thrift.copyList(args.phones, [null]);
- }
- if (args.emails !== undefined && args.emails !== null) {
- this.emails = Thrift.copyList(args.emails, [null]);
- }
- if (args.userids !== undefined && args.userids !== null) {
- this.userids = Thrift.copyList(args.userids, [null]);
- }
- }
- }
-};
-lineType.ContactRegistration = class {
- constructor(args) {
- this.contact = null;
- this.luid = null;
- this.contactType = null;
- this.contactKey = null;
- if (args) {
- if (args.contact !== undefined && args.contact !== null) {
- this.contact = new lineType.Contact(args.contact);
- }
- if (args.luid !== undefined && args.luid !== null) {
- this.luid = args.luid;
- }
- if (args.contactType !== undefined && args.contactType !== null) {
- this.contactType = args.contactType;
- }
- if (args.contactKey !== undefined && args.contactKey !== null) {
- this.contactKey = args.contactKey;
- }
- }
- }
-};
-lineType.ContactReport = class {
- constructor(args) {
- this.mid = null;
- this.exists = null;
- this.contact = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.exists !== undefined && args.exists !== null) {
- this.exists = args.exists;
- }
- if (args.contact !== undefined && args.contact !== null) {
- this.contact = new lineType.Contact(args.contact);
- }
- }
- }
-};
-lineType.ContactReportResult = class {
- constructor(args) {
- this.mid = null;
- this.exists = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.exists !== undefined && args.exists !== null) {
- this.exists = args.exists;
- }
- }
- }
-};
-lineType.DeviceInfo = class {
- constructor(args) {
- this.deviceName = null;
- this.systemName = null;
- this.systemVersion = null;
- this.model = null;
- this.carrierCode = null;
- this.carrierName = null;
- this.applicationType = null;
- if (args) {
- if (args.deviceName !== undefined && args.deviceName !== null) {
- this.deviceName = args.deviceName;
- }
- if (args.systemName !== undefined && args.systemName !== null) {
- this.systemName = args.systemName;
- }
- if (args.systemVersion !== undefined && args.systemVersion !== null) {
- this.systemVersion = args.systemVersion;
- }
- if (args.model !== undefined && args.model !== null) {
- this.model = args.model;
- }
- if (args.carrierCode !== undefined && args.carrierCode !== null) {
- this.carrierCode = args.carrierCode;
- }
- if (args.carrierName !== undefined && args.carrierName !== null) {
- this.carrierName = args.carrierName;
- }
- if (args.applicationType !== undefined && args.applicationType !== null) {
- this.applicationType = args.applicationType;
- }
- }
- }
-};
-lineType.EmailConfirmation = class {
- constructor(args) {
- this.usePasswordSet = null;
- this.email = null;
- this.password = null;
- this.ignoreDuplication = null;
- if (args) {
- if (args.usePasswordSet !== undefined && args.usePasswordSet !== null) {
- this.usePasswordSet = args.usePasswordSet;
- }
- if (args.email !== undefined && args.email !== null) {
- this.email = args.email;
- }
- if (args.password !== undefined && args.password !== null) {
- this.password = args.password;
- }
- if (args.ignoreDuplication !== undefined && args.ignoreDuplication !== null) {
- this.ignoreDuplication = args.ignoreDuplication;
- }
- }
- }
-};
-lineType.EmailConfirmationSession = class {
- constructor(args) {
- this.emailConfirmationType = null;
- this.verifier = null;
- this.targetEmail = null;
- if (args) {
- if (args.emailConfirmationType !== undefined && args.emailConfirmationType !== null) {
- this.emailConfirmationType = args.emailConfirmationType;
- }
- if (args.verifier !== undefined && args.verifier !== null) {
- this.verifier = args.verifier;
- }
- if (args.targetEmail !== undefined && args.targetEmail !== null) {
- this.targetEmail = args.targetEmail;
- }
- }
- }
-};
-lineType.FriendChannelMatrix = class {
- constructor(args) {
- this.channelId = null;
- this.representMid = null;
- this.count = null;
- this.point = null;
- if (args) {
- if (args.channelId !== undefined && args.channelId !== null) {
- this.channelId = args.channelId;
- }
- if (args.representMid !== undefined && args.representMid !== null) {
- this.representMid = args.representMid;
- }
- if (args.count !== undefined && args.count !== null) {
- this.count = args.count;
- }
- if (args.point !== undefined && args.point !== null) {
- this.point = args.point;
- }
- }
- }
-};
-lineType.FriendChannelMatricesResponse = class {
- constructor(args) {
- this.expires = null;
- this.matrices = null;
- if (args) {
- if (args.expires !== undefined && args.expires !== null) {
- this.expires = args.expires;
- }
- if (args.matrices !== undefined && args.matrices !== null) {
- this.matrices = Thrift.copyList(args.matrices, [lineType.FriendChannelMatrix]);
- }
- }
- }
-};
-lineType.FriendRequest = class {
- constructor(args) {
- this.eMid = null;
- this.mid = null;
- this.direction = null;
- this.method = null;
- this.param = null;
- this.timestamp = null;
- this.seqId = null;
- this.displayName = null;
- this.picturePath = null;
- this.pictureStatus = null;
- if (args) {
- if (args.eMid !== undefined && args.eMid !== null) {
- this.eMid = args.eMid;
- }
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.direction !== undefined && args.direction !== null) {
- this.direction = args.direction;
- }
- if (args.method !== undefined && args.method !== null) {
- this.method = args.method;
- }
- if (args.param !== undefined && args.param !== null) {
- this.param = args.param;
- }
- if (args.timestamp !== undefined && args.timestamp !== null) {
- this.timestamp = args.timestamp;
- }
- if (args.seqId !== undefined && args.seqId !== null) {
- this.seqId = args.seqId;
- }
- if (args.displayName !== undefined && args.displayName !== null) {
- this.displayName = args.displayName;
- }
- if (args.picturePath !== undefined && args.picturePath !== null) {
- this.picturePath = args.picturePath;
- }
- if (args.pictureStatus !== undefined && args.pictureStatus !== null) {
- this.pictureStatus = args.pictureStatus;
- }
- }
- }
-};
-lineType.FriendRequestsInfo = class {
- constructor(args) {
- this.totalIncomingCount = null;
- this.totalOutgoingCount = null;
- this.recentIncomings = null;
- this.recentOutgoings = null;
- this.totalIncomingLimit = null;
- this.totalOutgoingLimit = null;
- if (args) {
- if (args.totalIncomingCount !== undefined && args.totalIncomingCount !== null) {
- this.totalIncomingCount = args.totalIncomingCount;
- }
- if (args.totalOutgoingCount !== undefined && args.totalOutgoingCount !== null) {
- this.totalOutgoingCount = args.totalOutgoingCount;
- }
- if (args.recentIncomings !== undefined && args.recentIncomings !== null) {
- this.recentIncomings = Thrift.copyList(args.recentIncomings, [lineType.FriendRequest]);
- }
- if (args.recentOutgoings !== undefined && args.recentOutgoings !== null) {
- this.recentOutgoings = Thrift.copyList(args.recentOutgoings, [lineType.FriendRequest]);
- }
- if (args.totalIncomingLimit !== undefined && args.totalIncomingLimit !== null) {
- this.totalIncomingLimit = args.totalIncomingLimit;
- }
- if (args.totalOutgoingLimit !== undefined && args.totalOutgoingLimit !== null) {
- this.totalOutgoingLimit = args.totalOutgoingLimit;
- }
- }
- }
-};
-lineType.Geolocation = class {
- constructor(args) {
- this.longitude = null;
- this.latitude = null;
- if (args) {
- if (args.longitude !== undefined && args.longitude !== null) {
- this.longitude = args.longitude;
- }
- if (args.latitude !== undefined && args.latitude !== null) {
- this.latitude = args.latitude;
- }
- }
- }
-};
-lineType.NotificationTarget = class {
- constructor(args) {
- this.applicationType = null;
- this.applicationVersion = null;
- this.region = null;
- if (args) {
- if (args.applicationType !== undefined && args.applicationType !== null) {
- this.applicationType = args.applicationType;
- }
- if (args.applicationVersion !== undefined && args.applicationVersion !== null) {
- this.applicationVersion = args.applicationVersion;
- }
- if (args.region !== undefined && args.region !== null) {
- this.region = args.region;
- }
- }
- }
-};
-lineType.GlobalEvent = class {
- constructor(args) {
- this.key = null;
- this.targets = null;
- this.createdTime = null;
- this.data = null;
- this.maxDelay = null;
- if (args) {
- if (args.key !== undefined && args.key !== null) {
- this.key = args.key;
- }
- if (args.targets !== undefined && args.targets !== null) {
- this.targets = Thrift.copyList(args.targets, [lineType.NotificationTarget]);
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.data !== undefined && args.data !== null) {
- this.data = args.data;
- }
- if (args.maxDelay !== undefined && args.maxDelay !== null) {
- this.maxDelay = args.maxDelay;
- }
- }
- }
-};
-lineType.GroupPreference = class {
- constructor(args) {
- this.invitationTicket = null;
- this.favoriteTimestamp = null;
- if (args) {
- if (args.invitationTicket !== undefined && args.invitationTicket !== null) {
- this.invitationTicket = args.invitationTicket;
- }
- if (args.favoriteTimestamp !== undefined && args.favoriteTimestamp !== null) {
- this.favoriteTimestamp = args.favoriteTimestamp;
- }
- }
- }
-};
-lineType.Group = class {
- constructor(args) {
- this.id = null;
- this.createdTime = null;
- this.name = null;
- this.pictureStatus = null;
- this.preventedJoinByTicket = null;
- this.groupPreference = null;
- this.members = null;
- this.creator = null;
- this.invitee = null;
- this.notificationDisabled = null;
- if (args) {
- if (args.id !== undefined && args.id !== null) {
- this.id = args.id;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- if (args.pictureStatus !== undefined && args.pictureStatus !== null) {
- this.pictureStatus = args.pictureStatus;
- }
- if (args.preventedJoinByTicket !== undefined && args.preventedJoinByTicket !== null) {
- this.preventedJoinByTicket = args.preventedJoinByTicket;
- }
- if (args.groupPreference !== undefined && args.groupPreference !== null) {
- this.groupPreference = new lineType.GroupPreference(args.groupPreference);
- }
- if (args.members !== undefined && args.members !== null) {
- this.members = Thrift.copyList(args.members, [lineType.Contact]);
- }
- if (args.creator !== undefined && args.creator !== null) {
- this.creator = new lineType.Contact(args.creator);
- }
- if (args.invitee !== undefined && args.invitee !== null) {
- this.invitee = Thrift.copyList(args.invitee, [lineType.Contact]);
- }
- if (args.notificationDisabled !== undefined && args.notificationDisabled !== null) {
- this.notificationDisabled = args.notificationDisabled;
- }
- }
- }
-};
-lineType.IdentityCredential = class {
- constructor(args) {
- this.provider = null;
- this.identifier = null;
- this.password = null;
- if (args) {
- if (args.provider !== undefined && args.provider !== null) {
- this.provider = args.provider;
- }
- if (args.identifier !== undefined && args.identifier !== null) {
- this.identifier = args.identifier;
- }
- if (args.password !== undefined && args.password !== null) {
- this.password = args.password;
- }
- }
- }
-};
-lineType.LastReadMessageId = class {
- constructor(args) {
- this.mid = null;
- this.lastReadMessageId = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.lastReadMessageId !== undefined && args.lastReadMessageId !== null) {
- this.lastReadMessageId = args.lastReadMessageId;
- }
- }
- }
-};
-lineType.LastReadMessageIds = class {
- constructor(args) {
- this.chatId = null;
- this.lastReadMessageIds = null;
- if (args) {
- if (args.chatId !== undefined && args.chatId !== null) {
- this.chatId = args.chatId;
- }
- if (args.lastReadMessageIds !== undefined && args.lastReadMessageIds !== null) {
- this.lastReadMessageIds = Thrift.copyList(args.lastReadMessageIds, [lineType.LastReadMessageId]);
- }
- }
- }
-};
-lineType.VerificationSessionData = class {
- constructor(args) {
- this.sessionId = null;
- this.method = null;
- this.callback = null;
- this.normalizedPhone = null;
- this.countryCode = null;
- this.nationalSignificantNumber = null;
- this.availableVerificationMethods = null;
- if (args) {
- if (args.sessionId !== undefined && args.sessionId !== null) {
- this.sessionId = args.sessionId;
- }
- if (args.method !== undefined && args.method !== null) {
- this.method = args.method;
- }
- if (args.callback !== undefined && args.callback !== null) {
- this.callback = args.callback;
- }
- if (args.normalizedPhone !== undefined && args.normalizedPhone !== null) {
- this.normalizedPhone = args.normalizedPhone;
- }
- if (args.countryCode !== undefined && args.countryCode !== null) {
- this.countryCode = args.countryCode;
- }
- if (args.nationalSignificantNumber !== undefined && args.nationalSignificantNumber !== null) {
- this.nationalSignificantNumber = args.nationalSignificantNumber;
- }
- if (args.availableVerificationMethods !== undefined && args.availableVerificationMethods !== null) {
- this.availableVerificationMethods = Thrift.copyList(args.availableVerificationMethods, [null]);
- }
- }
- }
-};
-lineType.LoginResult = class {
- constructor(args) {
- this.authToken = null;
- this.certificate = null;
- this.verifier = null;
- this.pinCode = null;
- this.type = null;
- this.lastPrimaryBindTime = null;
- this.displayMessage = null;
- this.sessionForSMSConfirm = null;
- if (args) {
- if (args.authToken !== undefined && args.authToken !== null) {
- this.authToken = args.authToken;
- }
- if (args.certificate !== undefined && args.certificate !== null) {
- this.certificate = args.certificate;
- }
- if (args.verifier !== undefined && args.verifier !== null) {
- this.verifier = args.verifier;
- }
- if (args.pinCode !== undefined && args.pinCode !== null) {
- this.pinCode = args.pinCode;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.lastPrimaryBindTime !== undefined && args.lastPrimaryBindTime !== null) {
- this.lastPrimaryBindTime = args.lastPrimaryBindTime;
- }
- if (args.displayMessage !== undefined && args.displayMessage !== null) {
- this.displayMessage = args.displayMessage;
- }
- if (args.sessionForSMSConfirm !== undefined && args.sessionForSMSConfirm !== null) {
- this.sessionForSMSConfirm = new lineType.VerificationSessionData(args.sessionForSMSConfirm);
- }
- }
- }
-};
-lineType.LoginRequest = class {
- constructor(args) {
- this.type = null;
- this.identityProvider = null;
- this.identifier = null;
- this.password = null;
- this.keepLoggedIn = null;
- this.accessLocation = null;
- this.systemName = null;
- this.certificate = null;
- this.verifier = null;
- this.secret = null;
- this.e2eeVersion = null;
- if (args) {
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.identityProvider !== undefined && args.identityProvider !== null) {
- this.identityProvider = args.identityProvider;
- }
- if (args.identifier !== undefined && args.identifier !== null) {
- this.identifier = args.identifier;
- }
- if (args.password !== undefined && args.password !== null) {
- this.password = args.password;
- }
- if (args.keepLoggedIn !== undefined && args.keepLoggedIn !== null) {
- this.keepLoggedIn = args.keepLoggedIn;
- }
- if (args.accessLocation !== undefined && args.accessLocation !== null) {
- this.accessLocation = args.accessLocation;
- }
- if (args.systemName !== undefined && args.systemName !== null) {
- this.systemName = args.systemName;
- }
- if (args.certificate !== undefined && args.certificate !== null) {
- this.certificate = args.certificate;
- }
- if (args.verifier !== undefined && args.verifier !== null) {
- this.verifier = args.verifier;
- }
- if (args.secret !== undefined && args.secret !== null) {
- this.secret = args.secret;
- }
- if (args.e2eeVersion !== undefined && args.e2eeVersion !== null) {
- this.e2eeVersion = args.e2eeVersion;
- }
- }
- }
-};
-lineType.LoginSession = class {
- constructor(args) {
- this.tokenKey = null;
- this.expirationTime = null;
- this.applicationType = null;
- this.systemName = null;
- this.accessLocation = null;
- if (args) {
- if (args.tokenKey !== undefined && args.tokenKey !== null) {
- this.tokenKey = args.tokenKey;
- }
- if (args.expirationTime !== undefined && args.expirationTime !== null) {
- this.expirationTime = args.expirationTime;
- }
- if (args.applicationType !== undefined && args.applicationType !== null) {
- this.applicationType = args.applicationType;
- }
- if (args.systemName !== undefined && args.systemName !== null) {
- this.systemName = args.systemName;
- }
- if (args.accessLocation !== undefined && args.accessLocation !== null) {
- this.accessLocation = args.accessLocation;
- }
- }
- }
-};
-lineType.Message = class {
- constructor(args) {
- this._from = null;
- this.to = null;
- this.toType = null;
- this.id = null;
- this.createdTime = null;
- this.deliveredTime = null;
- this.text = null;
- this.location = null;
- this.hasContent = null;
- this.contentType = null;
- this.contentPreview = null;
- this.contentMetadata = {};
- this.sessionId = null;
- this.chunks = null;
- this.relatedMessageId = null;
- this.messageRelationType = null;
- this.readCount = null;
- this.relatedMessageServiceCode = null;
- if (args) {
- if (args._from !== undefined && args._from !== null) {
- this._from = args._from;
- }
- if (args.to !== undefined && args.to !== null) {
- this.to = args.to;
- }
- if (args.toType !== undefined && args.toType !== null) {
- this.toType = args.toType;
- }
- if (args.id !== undefined && args.id !== null) {
- this.id = args.id;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- if (typeof args.createdTime == "object") {
- this.createdTime = Thrift.bin2int(args.createdTime.buffer);
- } else {
- this.createdTime = args.createdTime;
- }
- }
- if (args.deliveredTime !== undefined && args.deliveredTime !== null) {
- if (typeof args.deliveredTime == "object") {
- this.deliveredTime = Thrift.bin2int(args.deliveredTime.buffer);
- } else {
- this.deliveredTime = args.deliveredTime;
- }
- }
- if (args.text !== undefined && args.text !== null) {
- this.text = args.text;
- }
- if (args.location !== undefined && args.location !== null) {
- this.location = new lineType.Location(args.location);
- }
- if (args.hasContent !== undefined && args.hasContent !== null) {
- this.hasContent = args.hasContent;
- }
- if (args.contentType !== undefined && args.contentType !== null) {
- this.contentType = args.contentType;
- } else {
- this.contentType = 0;
- }
- if (args.contentPreview !== undefined && args.contentPreview !== null) {
- this.contentPreview = args.contentPreview;
- }
- if (args.contentMetadata !== undefined && args.contentMetadata !== null) {
- this.contentMetadata = Thrift.copyMap(args.contentMetadata, [null]);
- }
- if (args.sessionId !== undefined && args.sessionId !== null) {
- this.sessionId = args.sessionId;
- }
- if (args.chunks !== undefined && args.chunks !== null) {
- this.chunks = Thrift.copyList(args.chunks, [null]);
- }
- if (args.relatedMessageId !== undefined && args.relatedMessageId !== null) {
- this.relatedMessageId = args.relatedMessageId;
- }
- if (args.messageRelationType !== undefined && args.messageRelationType !== null) {
- this.messageRelationType = args.messageRelationType;
- }
- if (args.readCount !== undefined && args.readCount !== null) {
- this.readCount = args.readCount;
- }
- if (args.relatedMessageServiceCode !== undefined && args.relatedMessageServiceCode !== null) {
- this.relatedMessageServiceCode = args.relatedMessageServiceCode;
- }
- }
- }
-};
-lineType.SquareMessage = class {
- constructor(args) {
- this.message = null;
- this.fromType = null;
- this.squareMessageRevision = null;
- if (args) {
- if (args.message !== undefined && args.message !== null) {
- this.message = new lineType.Message(args.message);
- }
- if (args.fromType !== undefined && args.fromType !== null) {
- this.fromType = args.fromType;
- }
- if (args.squareMessageRevision !== undefined && args.squareMessageRevision !== null) {
- this.squareMessageRevision = args.squareMessageRevision;
- }
- }
- }
-};
-lineType.SquareChatStatusWithoutMessage = class {
- constructor(args) {
- this.memberCount = null;
- this.unreadMessageCount = null;
- if (args) {
- if (args.memberCount !== undefined && args.memberCount !== null) {
- this.memberCount = args.memberCount;
- }
- if (args.unreadMessageCount !== undefined && args.unreadMessageCount !== null) {
- this.unreadMessageCount = args.unreadMessageCount;
- }
- }
- }
-};
-lineType.SquareChatStatus = class {
- constructor(args) {
- this.lastMessage = null;
- this.senderDisplayName = null;
- this.otherStatus = null;
- if (args) {
- if (args.lastMessage !== undefined && args.lastMessage !== null) {
- this.lastMessage = new lineType.SquareMessage(args.lastMessage);
- }
- if (args.senderDisplayName !== undefined && args.senderDisplayName !== null) {
- this.senderDisplayName = args.senderDisplayName;
- }
- if (args.otherStatus !== undefined && args.otherStatus !== null) {
- this.otherStatus = new lineType.SquareChatStatusWithoutMessage(args.otherStatus);
- }
- }
- }
-};
-lineType.SquareChatMember = class {
- constructor(args) {
- this.squareMemberMid = null;
- this.squareChatMid = null;
- this.revision = null;
- this.membershipState = null;
- this.notificationForMessage = null;
- if (args) {
- if (args.squareMemberMid !== undefined && args.squareMemberMid !== null) {
- this.squareMemberMid = args.squareMemberMid;
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.membershipState !== undefined && args.membershipState !== null) {
- this.membershipState = args.membershipState;
- }
- if (args.notificationForMessage !== undefined && args.notificationForMessage !== null) {
- this.notificationForMessage = args.notificationForMessage;
- }
- }
- }
-};
-lineType.MessageOperation = class {
- constructor(args) {
- this.revision = null;
- this.createdTime = null;
- this.type = null;
- this.reqSeq = null;
- this.status = null;
- this.param1 = null;
- this.param2 = null;
- this.param3 = null;
- this.message = null;
- if (args) {
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.reqSeq !== undefined && args.reqSeq !== null) {
- this.reqSeq = args.reqSeq;
- }
- if (args.status !== undefined && args.status !== null) {
- this.status = args.status;
- }
- if (args.param1 !== undefined && args.param1 !== null) {
- this.param1 = args.param1;
- }
- if (args.param2 !== undefined && args.param2 !== null) {
- this.param2 = args.param2;
- }
- if (args.param3 !== undefined && args.param3 !== null) {
- this.param3 = args.param3;
- }
- if (args.message !== undefined && args.message !== null) {
- this.message = new lineType.Message(args.message);
- }
- }
- }
-};
-lineType.MessageOperations = class {
- constructor(args) {
- this.operations = null;
- this.endFlag = null;
- if (args) {
- if (args.operations !== undefined && args.operations !== null) {
- this.operations = Thrift.copyList(args.operations, [lineType.MessageOperation]);
- }
- if (args.endFlag !== undefined && args.endFlag !== null) {
- this.endFlag = args.endFlag;
- }
- }
- }
-};
-lineType.MessageStoreResult = class {
- constructor(args) {
- this.requestId = null;
- this.messageIds = null;
- if (args) {
- if (args.requestId !== undefined && args.requestId !== null) {
- this.requestId = args.requestId;
- }
- if (args.messageIds !== undefined && args.messageIds !== null) {
- this.messageIds = Thrift.copyList(args.messageIds, [null]);
- }
- }
- }
-};
-lineType.MetaProfile = class {
- constructor(args) {
- this.createTime = null;
- this.regionCode = null;
- this.identities = null;
- if (args) {
- if (args.createTime !== undefined && args.createTime !== null) {
- this.createTime = args.createTime;
- }
- if (args.regionCode !== undefined && args.regionCode !== null) {
- this.regionCode = args.regionCode;
- }
- if (args.identities !== undefined && args.identities !== null) {
- this.identities = Thrift.copyMap(args.identities, [null]);
- }
- }
- }
-};
-lineType.NotificationItem = class {
- constructor(args) {
- this.id = null;
- this._from = null;
- this.to = null;
- this.fromChannel = null;
- this.toChannel = null;
- this.revision = null;
- this.createdTime = null;
- this.content = null;
- if (args) {
- if (args.id !== undefined && args.id !== null) {
- this.id = args.id;
- }
- if (args._from !== undefined && args._from !== null) {
- this._from = args._from;
- }
- if (args.to !== undefined && args.to !== null) {
- this.to = args.to;
- }
- if (args.fromChannel !== undefined && args.fromChannel !== null) {
- this.fromChannel = args.fromChannel;
- }
- if (args.toChannel !== undefined && args.toChannel !== null) {
- this.toChannel = args.toChannel;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.content !== undefined && args.content !== null) {
- this.content = Thrift.copyMap(args.content, [null]);
- }
- }
- }
-};
-lineType.NotificationFetchResult = class {
- constructor(args) {
- this.fetchMode = null;
- this.itemList = null;
- if (args) {
- if (args.fetchMode !== undefined && args.fetchMode !== null) {
- this.fetchMode = args.fetchMode;
- }
- if (args.itemList !== undefined && args.itemList !== null) {
- this.itemList = Thrift.copyList(args.itemList, [lineType.NotificationItem]);
- }
- }
- }
-};
-lineType.Operation = class {
- constructor(args) {
- this.revision = null;
- this.createdTime = null;
- this.type = null;
- this.reqSeq = null;
- this.checksum = null;
- this.status = null;
- this.param1 = null;
- this.param2 = null;
- this.param3 = null;
- this.message = null;
- if (args) {
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.reqSeq !== undefined && args.reqSeq !== null) {
- this.reqSeq = args.reqSeq;
- }
- if (args.checksum !== undefined && args.checksum !== null) {
- this.checksum = args.checksum;
- }
- if (args.status !== undefined && args.status !== null) {
- this.status = args.status;
- }
- if (args.param1 !== undefined && args.param1 !== null) {
- this.param1 = args.param1;
- }
- if (args.param2 !== undefined && args.param2 !== null) {
- this.param2 = args.param2;
- }
- if (args.param3 !== undefined && args.param3 !== null) {
- this.param3 = args.param3;
- }
- if (args.message !== undefined && args.message !== null) {
- this.message = new lineType.Message(args.message);
- }
- }
- }
-};
-lineType.PaymentReservation = class {
- constructor(args) {
- this.receiverMid = null;
- this.productId = null;
- this.language = null;
- this.location = null;
- this.currency = null;
- this.price = null;
- this.appStoreCode = null;
- this.messageText = null;
- this.messageTemplate = null;
- this.packageId = null;
- if (args) {
- if (args.receiverMid !== undefined && args.receiverMid !== null) {
- this.receiverMid = args.receiverMid;
- }
- if (args.productId !== undefined && args.productId !== null) {
- this.productId = args.productId;
- }
- if (args.language !== undefined && args.language !== null) {
- this.language = args.language;
- }
- if (args.location !== undefined && args.location !== null) {
- this.location = args.location;
- }
- if (args.currency !== undefined && args.currency !== null) {
- this.currency = args.currency;
- }
- if (args.price !== undefined && args.price !== null) {
- this.price = args.price;
- }
- if (args.appStoreCode !== undefined && args.appStoreCode !== null) {
- this.appStoreCode = args.appStoreCode;
- }
- if (args.messageText !== undefined && args.messageText !== null) {
- this.messageText = args.messageText;
- }
- if (args.messageTemplate !== undefined && args.messageTemplate !== null) {
- this.messageTemplate = args.messageTemplate;
- }
- if (args.packageId !== undefined && args.packageId !== null) {
- this.packageId = args.packageId;
- }
- }
- }
-};
-lineType.PaymentReservationResult = class {
- constructor(args) {
- this.orderId = null;
- this.confirmUrl = null;
- this.extras = null;
- if (args) {
- if (args.orderId !== undefined && args.orderId !== null) {
- this.orderId = args.orderId;
- }
- if (args.confirmUrl !== undefined && args.confirmUrl !== null) {
- this.confirmUrl = args.confirmUrl;
- }
- if (args.extras !== undefined && args.extras !== null) {
- this.extras = Thrift.copyMap(args.extras, [null]);
- }
- }
- }
-};
-lineType.Product = class {
- constructor(args) {
- this.productId = null;
- this.packageId = null;
- this.version = null;
- this.authorName = null;
- this.onSale = null;
- this.validDays = null;
- this.saleType = null;
- this.copyright = null;
- this.title = null;
- this.descriptionText = null;
- this.shopOrderId = null;
- this.fromMid = null;
- this.toMid = null;
- this.validUntil = null;
- this.priceTier = null;
- this.price = null;
- this.currency = null;
- this.currencySymbol = null;
- this.paymentType = null;
- this.createDate = null;
- this.ownFlag = null;
- this.eventType = null;
- this.urlSchema = null;
- this.downloadUrl = null;
- this.buddyMid = null;
- this.publishSince = null;
- this.newFlag = null;
- this.missionFlag = null;
- this.categories = null;
- this.missionButtonText = null;
- this.missionShortDescription = null;
- this.authorId = null;
- this.grantedByDefault = null;
- this.displayOrder = null;
- this.availableForPresent = null;
- this.availableForMyself = null;
- this.hasAnimation = null;
- this.hasSound = null;
- this.recommendationsEnabled = null;
- this.stickerResourceType = null;
- if (args) {
- if (args.productId !== undefined && args.productId !== null) {
- this.productId = args.productId;
- }
- if (args.packageId !== undefined && args.packageId !== null) {
- this.packageId = args.packageId;
- }
- if (args.version !== undefined && args.version !== null) {
- this.version = args.version;
- }
- if (args.authorName !== undefined && args.authorName !== null) {
- this.authorName = args.authorName;
- }
- if (args.onSale !== undefined && args.onSale !== null) {
- this.onSale = args.onSale;
- }
- if (args.validDays !== undefined && args.validDays !== null) {
- this.validDays = args.validDays;
- }
- if (args.saleType !== undefined && args.saleType !== null) {
- this.saleType = args.saleType;
- }
- if (args.copyright !== undefined && args.copyright !== null) {
- this.copyright = args.copyright;
- }
- if (args.title !== undefined && args.title !== null) {
- this.title = args.title;
- }
- if (args.descriptionText !== undefined && args.descriptionText !== null) {
- this.descriptionText = args.descriptionText;
- }
- if (args.shopOrderId !== undefined && args.shopOrderId !== null) {
- this.shopOrderId = args.shopOrderId;
- }
- if (args.fromMid !== undefined && args.fromMid !== null) {
- this.fromMid = args.fromMid;
- }
- if (args.toMid !== undefined && args.toMid !== null) {
- this.toMid = args.toMid;
- }
- if (args.validUntil !== undefined && args.validUntil !== null) {
- this.validUntil = args.validUntil;
- }
- if (args.priceTier !== undefined && args.priceTier !== null) {
- this.priceTier = args.priceTier;
- }
- if (args.price !== undefined && args.price !== null) {
- this.price = args.price;
- }
- if (args.currency !== undefined && args.currency !== null) {
- this.currency = args.currency;
- }
- if (args.currencySymbol !== undefined && args.currencySymbol !== null) {
- this.currencySymbol = args.currencySymbol;
- }
- if (args.paymentType !== undefined && args.paymentType !== null) {
- this.paymentType = args.paymentType;
- }
- if (args.createDate !== undefined && args.createDate !== null) {
- this.createDate = args.createDate;
- }
- if (args.ownFlag !== undefined && args.ownFlag !== null) {
- this.ownFlag = args.ownFlag;
- }
- if (args.eventType !== undefined && args.eventType !== null) {
- this.eventType = args.eventType;
- }
- if (args.urlSchema !== undefined && args.urlSchema !== null) {
- this.urlSchema = args.urlSchema;
- }
- if (args.downloadUrl !== undefined && args.downloadUrl !== null) {
- this.downloadUrl = args.downloadUrl;
- }
- if (args.buddyMid !== undefined && args.buddyMid !== null) {
- this.buddyMid = args.buddyMid;
- }
- if (args.publishSince !== undefined && args.publishSince !== null) {
- this.publishSince = args.publishSince;
- }
- if (args.newFlag !== undefined && args.newFlag !== null) {
- this.newFlag = args.newFlag;
- }
- if (args.missionFlag !== undefined && args.missionFlag !== null) {
- this.missionFlag = args.missionFlag;
- }
- if (args.categories !== undefined && args.categories !== null) {
- this.categories = Thrift.copyList(args.categories, [lineType.ProductCategory]);
- }
- if (args.missionButtonText !== undefined && args.missionButtonText !== null) {
- this.missionButtonText = args.missionButtonText;
- }
- if (args.missionShortDescription !== undefined && args.missionShortDescription !== null) {
- this.missionShortDescription = args.missionShortDescription;
- }
- if (args.authorId !== undefined && args.authorId !== null) {
- this.authorId = args.authorId;
- }
- if (args.grantedByDefault !== undefined && args.grantedByDefault !== null) {
- this.grantedByDefault = args.grantedByDefault;
- }
- if (args.displayOrder !== undefined && args.displayOrder !== null) {
- this.displayOrder = args.displayOrder;
- }
- if (args.availableForPresent !== undefined && args.availableForPresent !== null) {
- this.availableForPresent = args.availableForPresent;
- }
- if (args.availableForMyself !== undefined && args.availableForMyself !== null) {
- this.availableForMyself = args.availableForMyself;
- }
- if (args.hasAnimation !== undefined && args.hasAnimation !== null) {
- this.hasAnimation = args.hasAnimation;
- }
- if (args.hasSound !== undefined && args.hasSound !== null) {
- this.hasSound = args.hasSound;
- }
- if (args.recommendationsEnabled !== undefined && args.recommendationsEnabled !== null) {
- this.recommendationsEnabled = args.recommendationsEnabled;
- }
- if (args.stickerResourceType !== undefined && args.stickerResourceType !== null) {
- this.stickerResourceType = args.stickerResourceType;
- }
- }
- }
-};
-lineType.ProductList = class {
- constructor(args) {
- this.hasNext = null;
- this.bannerSequence = null;
- this.bannerTargetType = null;
- this.bannerTargetPath = null;
- this.productList = null;
- this.bannerLang = null;
- if (args) {
- if (args.hasNext !== undefined && args.hasNext !== null) {
- this.hasNext = args.hasNext;
- }
- if (args.bannerSequence !== undefined && args.bannerSequence !== null) {
- this.bannerSequence = args.bannerSequence;
- }
- if (args.bannerTargetType !== undefined && args.bannerTargetType !== null) {
- this.bannerTargetType = args.bannerTargetType;
- }
- if (args.bannerTargetPath !== undefined && args.bannerTargetPath !== null) {
- this.bannerTargetPath = args.bannerTargetPath;
- }
- if (args.productList !== undefined && args.productList !== null) {
- this.productList = Thrift.copyList(args.productList, [lineType.Product]);
- }
- if (args.bannerLang !== undefined && args.bannerLang !== null) {
- this.bannerLang = args.bannerLang;
- }
- }
- }
-};
-lineType.StickerIdRange = class {
- constructor(args) {
- this.start = null;
- this.size = null;
- if (args) {
- if (args.start !== undefined && args.start !== null) {
- this.start = args.start;
- }
- if (args.size !== undefined && args.size !== null) {
- this.size = args.size;
- }
- }
- }
-};
-lineType.ProductSimple = class {
- constructor(args) {
- this.productId = null;
- this.packageId = null;
- this.version = null;
- this.onSale = null;
- this.validUntil = null;
- this.stickerIdRanges = null;
- this.grantedByDefault = null;
- this.displayOrder = null;
- if (args) {
- if (args.productId !== undefined && args.productId !== null) {
- this.productId = args.productId;
- }
- if (args.packageId !== undefined && args.packageId !== null) {
- this.packageId = args.packageId;
- }
- if (args.version !== undefined && args.version !== null) {
- this.version = args.version;
- }
- if (args.onSale !== undefined && args.onSale !== null) {
- this.onSale = args.onSale;
- }
- if (args.validUntil !== undefined && args.validUntil !== null) {
- this.validUntil = args.validUntil;
- }
- if (args.stickerIdRanges !== undefined && args.stickerIdRanges !== null) {
- this.stickerIdRanges = Thrift.copyList(args.stickerIdRanges, [lineType.StickerIdRange]);
- }
- if (args.grantedByDefault !== undefined && args.grantedByDefault !== null) {
- this.grantedByDefault = args.grantedByDefault;
- }
- if (args.displayOrder !== undefined && args.displayOrder !== null) {
- this.displayOrder = args.displayOrder;
- }
- }
- }
-};
-lineType.ProductSimpleList = class {
- constructor(args) {
- this.hasNext = null;
- this.reinvokeHour = null;
- this.lastVersionSeq = null;
- this.productList = null;
- this.recentNewReleaseDate = null;
- this.recentEventReleaseDate = null;
- if (args) {
- if (args.hasNext !== undefined && args.hasNext !== null) {
- this.hasNext = args.hasNext;
- }
- if (args.reinvokeHour !== undefined && args.reinvokeHour !== null) {
- this.reinvokeHour = args.reinvokeHour;
- }
- if (args.lastVersionSeq !== undefined && args.lastVersionSeq !== null) {
- this.lastVersionSeq = args.lastVersionSeq;
- }
- if (args.productList !== undefined && args.productList !== null) {
- this.productList = Thrift.copyList(args.productList, [lineType.ProductSimple]);
- }
- if (args.recentNewReleaseDate !== undefined && args.recentNewReleaseDate !== null) {
- this.recentNewReleaseDate = args.recentNewReleaseDate;
- }
- if (args.recentEventReleaseDate !== undefined && args.recentEventReleaseDate !== null) {
- this.recentEventReleaseDate = args.recentEventReleaseDate;
- }
- }
- }
-};
-lineType.Profile = class {
- constructor(args) {
- this.mid = null;
- this.userid = null;
- this.phone = null;
- this.email = null;
- this.regionCode = null;
- this.displayName = null;
- this.phoneticName = null;
- this.pictureStatus = null;
- this.thumbnailUrl = null;
- this.statusMessage = null;
- this.allowSearchByUserid = null;
- this.allowSearchByEmail = null;
- this.picturePath = null;
- this.musicProfile = null;
- this.videoProfile = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.userid !== undefined && args.userid !== null) {
- this.userid = args.userid;
- }
- if (args.phone !== undefined && args.phone !== null) {
- this.phone = args.phone;
- }
- if (args.email !== undefined && args.email !== null) {
- this.email = args.email;
- }
- if (args.regionCode !== undefined && args.regionCode !== null) {
- this.regionCode = args.regionCode;
- }
- if (args.displayName !== undefined && args.displayName !== null) {
- this.displayName = args.displayName;
- }
- if (args.phoneticName !== undefined && args.phoneticName !== null) {
- this.phoneticName = args.phoneticName;
- }
- if (args.pictureStatus !== undefined && args.pictureStatus !== null) {
- this.pictureStatus = args.pictureStatus;
- }
- if (args.thumbnailUrl !== undefined && args.thumbnailUrl !== null) {
- this.thumbnailUrl = args.thumbnailUrl;
- }
- if (args.statusMessage !== undefined && args.statusMessage !== null) {
- this.statusMessage = args.statusMessage;
- }
- if (args.allowSearchByUserid !== undefined && args.allowSearchByUserid !== null) {
- this.allowSearchByUserid = args.allowSearchByUserid;
- }
- if (args.allowSearchByEmail !== undefined && args.allowSearchByEmail !== null) {
- this.allowSearchByEmail = args.allowSearchByEmail;
- }
- if (args.picturePath !== undefined && args.picturePath !== null) {
- this.picturePath = args.picturePath;
- }
- if (args.musicProfile !== undefined && args.musicProfile !== null) {
- this.musicProfile = args.musicProfile;
- }
- if (args.videoProfile !== undefined && args.videoProfile !== null) {
- this.videoProfile = args.videoProfile;
- }
- }
- }
-};
-lineType.ProximityMatchCandidateResult = class {
- constructor(args) {
- this.users = null;
- this.buddies = null;
- if (args) {
- if (args.users !== undefined && args.users !== null) {
- this.users = Thrift.copyList(args.users, [lineType.Contact]);
- }
- if (args.buddies !== undefined && args.buddies !== null) {
- this.buddies = Thrift.copyList(args.buddies, [lineType.Contact]);
- }
- }
- }
-};
-lineType.RegisterWithSnsIdResult = class {
- constructor(args) {
- this.authToken = null;
- this.userCreated = null;
- if (args) {
- if (args.authToken !== undefined && args.authToken !== null) {
- this.authToken = args.authToken;
- }
- if (args.userCreated !== undefined && args.userCreated !== null) {
- this.userCreated = args.userCreated;
- }
- }
- }
-};
-lineType.RequestTokenResponse = class {
- constructor(args) {
- this.requestToken = null;
- this.returnUrl = null;
- if (args) {
- if (args.requestToken !== undefined && args.requestToken !== null) {
- this.requestToken = args.requestToken;
- }
- if (args.returnUrl !== undefined && args.returnUrl !== null) {
- this.returnUrl = args.returnUrl;
- }
- }
- }
-};
-lineType.Room = class {
- constructor(args) {
- this.mid = null;
- this.createdTime = null;
- this.contacts = null;
- this.notificationDisabled = null;
- this.memberMids = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.contacts !== undefined && args.contacts !== null) {
- this.contacts = Thrift.copyList(args.contacts, [lineType.Contact]);
- }
- if (args.notificationDisabled !== undefined && args.notificationDisabled !== null) {
- this.notificationDisabled = args.notificationDisabled;
- }
- if (args.memberMids !== undefined && args.memberMids !== null) {
- this.memberMids = Thrift.copyList(args.memberMids, [null]);
- }
- }
- }
-};
-lineType.SuggestDictionary = class {
- constructor(args) {
- this.language = null;
- this.name = null;
- if (args) {
- if (args.language !== undefined && args.language !== null) {
- this.language = args.language;
- }
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- }
- }
-};
-lineType.SuggestItemDictionaryIncrement = class {
- constructor(args) {
- this.status = null;
- this.revision = null;
- this.scheme = null;
- this.data = null;
- if (args) {
- if (args.status !== undefined && args.status !== null) {
- this.status = args.status;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.scheme !== undefined && args.scheme !== null) {
- this.scheme = args.scheme;
- }
- if (args.data !== undefined && args.data !== null) {
- this.data = args.data;
- }
- }
- }
-};
-lineType.SuggestTagDictionaryIncrement = class {
- constructor(args) {
- this.status = null;
- this.language = null;
- this.revision = null;
- this.scheme = null;
- this.data = null;
- if (args) {
- if (args.status !== undefined && args.status !== null) {
- this.status = args.status;
- }
- if (args.language !== undefined && args.language !== null) {
- this.language = args.language;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.scheme !== undefined && args.scheme !== null) {
- this.scheme = args.scheme;
- }
- if (args.data !== undefined && args.data !== null) {
- this.data = args.data;
- }
- }
- }
-};
-lineType.SuggestDictionaryIncrements = class {
- constructor(args) {
- this.itemIncrement = null;
- this.tagIncrements = null;
- if (args) {
- if (args.itemIncrement !== undefined && args.itemIncrement !== null) {
- this.itemIncrement = new lineType.SuggestItemDictionaryIncrement(args.itemIncrement);
- }
- if (args.tagIncrements !== undefined && args.tagIncrements !== null) {
- this.tagIncrements = Thrift.copyList(args.tagIncrements, [lineType.SuggestTagDictionaryIncrement]);
- }
- }
- }
-};
-lineType.SuggestItemDictionaryRevision = class {
- constructor(args) {
- this.revision = null;
- this.scheme = null;
- if (args) {
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.scheme !== undefined && args.scheme !== null) {
- this.scheme = args.scheme;
- }
- }
- }
-};
-lineType.SuggestTagDictionaryRevision = class {
- constructor(args) {
- this.language = null;
- this.revision = null;
- this.scheme = null;
- if (args) {
- if (args.language !== undefined && args.language !== null) {
- this.language = args.language;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.scheme !== undefined && args.scheme !== null) {
- this.scheme = args.scheme;
- }
- }
- }
-};
-lineType.SuggestDictionaryRevisions = class {
- constructor(args) {
- this.itemRevision = null;
- this.tagRevisions = null;
- if (args) {
- if (args.itemRevision !== undefined && args.itemRevision !== null) {
- this.itemRevision = new lineType.SuggestItemDictionaryRevision(args.itemRevision);
- }
- if (args.tagRevisions !== undefined && args.tagRevisions !== null) {
- this.tagRevisions = Thrift.copyList(args.tagRevisions, [lineType.SuggestTagDictionaryRevision]);
- }
- }
- }
-};
-lineType.SuggestDictionarySettings = class {
- constructor(args) {
- this.revision = null;
- this.newRevision = null;
- this.dictionaries = null;
- this.preloadedDictionaries = null;
- if (args) {
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.newRevision !== undefined && args.newRevision !== null) {
- this.newRevision = args.newRevision;
- }
- if (args.dictionaries !== undefined && args.dictionaries !== null) {
- this.dictionaries = Thrift.copyList(args.dictionaries, [lineType.SuggestDictionary]);
- }
- if (args.preloadedDictionaries !== undefined && args.preloadedDictionaries !== null) {
- this.preloadedDictionaries = Thrift.copyList(args.preloadedDictionaries, [null]);
- }
- }
- }
-};
-lineType.PhoneInfoForChannel = class {
- constructor(args) {
- this.mid = null;
- this.normalizedPhoneNumber = null;
- this.allowedToSearchByPhoneNumber = null;
- this.allowedToReceiveMessageFromNonFriend = null;
- this.region = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.normalizedPhoneNumber !== undefined && args.normalizedPhoneNumber !== null) {
- this.normalizedPhoneNumber = args.normalizedPhoneNumber;
- }
- if (args.allowedToSearchByPhoneNumber !== undefined && args.allowedToSearchByPhoneNumber !== null) {
- this.allowedToSearchByPhoneNumber = args.allowedToSearchByPhoneNumber;
- }
- if (
- args.allowedToReceiveMessageFromNonFriend !== undefined &&
- args.allowedToReceiveMessageFromNonFriend !== null
- ) {
- this.allowedToReceiveMessageFromNonFriend = args.allowedToReceiveMessageFromNonFriend;
- }
- if (args.region !== undefined && args.region !== null) {
- this.region = args.region;
- }
- }
- }
-};
-lineType.PhoneVerificationResult = class {
- constructor(args) {
- this.verificationResult = null;
- this.accountMigrationCheckType = null;
- this.recommendAddFriends = null;
- if (args) {
- if (args.verificationResult !== undefined && args.verificationResult !== null) {
- this.verificationResult = args.verificationResult;
- }
- if (args.accountMigrationCheckType !== undefined && args.accountMigrationCheckType !== null) {
- this.accountMigrationCheckType = args.accountMigrationCheckType;
- }
- if (args.recommendAddFriends !== undefined && args.recommendAddFriends !== null) {
- this.recommendAddFriends = args.recommendAddFriends;
- }
- }
- }
-};
-lineType.PlaceSearchInfo = class {
- constructor(args) {
- this.name = null;
- this.address = null;
- this.latitude = null;
- this.longitude = null;
- if (args) {
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- if (args.address !== undefined && args.address !== null) {
- this.address = args.address;
- }
- if (args.latitude !== undefined && args.latitude !== null) {
- this.latitude = args.latitude;
- }
- if (args.longitude !== undefined && args.longitude !== null) {
- this.longitude = args.longitude;
- }
- }
- }
-};
-lineType.RSAKey = class {
- constructor(args) {
- this.keynm = null;
- this.nvalue = null;
- this.evalue = null;
- this.sessionKey = null;
- if (args) {
- if (args.keynm !== undefined && args.keynm !== null) {
- this.keynm = args.keynm;
- }
- if (args.nvalue !== undefined && args.nvalue !== null) {
- this.nvalue = args.nvalue;
- }
- if (args.evalue !== undefined && args.evalue !== null) {
- this.evalue = args.evalue;
- }
- if (args.sessionKey !== undefined && args.sessionKey !== null) {
- this.sessionKey = args.sessionKey;
- }
- }
- }
-};
-lineType.SecurityCenterResult = class {
- constructor(args) {
- this.uri = null;
- this.token = null;
- this.cookiePath = null;
- this.skip = null;
- if (args) {
- if (args.uri !== undefined && args.uri !== null) {
- this.uri = args.uri;
- }
- if (args.token !== undefined && args.token !== null) {
- this.token = args.token;
- }
- if (args.cookiePath !== undefined && args.cookiePath !== null) {
- this.cookiePath = args.cookiePath;
- }
- if (args.skip !== undefined && args.skip !== null) {
- this.skip = args.skip;
- }
- }
- }
-};
-lineType.SendBuddyMessageResult = class {
- constructor(args) {
- this.requestId = null;
- this.state = null;
- this.messageId = null;
- this.eventNo = null;
- this.receiverCount = null;
- this.successCount = null;
- this.failCount = null;
- this.cancelCount = null;
- this.blockCount = null;
- this.unregisterCount = null;
- this.timestamp = null;
- this.message = null;
- if (args) {
- if (args.requestId !== undefined && args.requestId !== null) {
- this.requestId = args.requestId;
- }
- if (args.state !== undefined && args.state !== null) {
- this.state = args.state;
- }
- if (args.messageId !== undefined && args.messageId !== null) {
- this.messageId = args.messageId;
- }
- if (args.eventNo !== undefined && args.eventNo !== null) {
- this.eventNo = args.eventNo;
- }
- if (args.receiverCount !== undefined && args.receiverCount !== null) {
- this.receiverCount = args.receiverCount;
- }
- if (args.successCount !== undefined && args.successCount !== null) {
- this.successCount = args.successCount;
- }
- if (args.failCount !== undefined && args.failCount !== null) {
- this.failCount = args.failCount;
- }
- if (args.cancelCount !== undefined && args.cancelCount !== null) {
- this.cancelCount = args.cancelCount;
- }
- if (args.blockCount !== undefined && args.blockCount !== null) {
- this.blockCount = args.blockCount;
- }
- if (args.unregisterCount !== undefined && args.unregisterCount !== null) {
- this.unregisterCount = args.unregisterCount;
- }
- if (args.timestamp !== undefined && args.timestamp !== null) {
- this.timestamp = args.timestamp;
- }
- if (args.message !== undefined && args.message !== null) {
- this.message = args.message;
- }
- }
- }
-};
-lineType.SetBuddyOnAirResult = class {
- constructor(args) {
- this.requestId = null;
- this.state = null;
- this.eventNo = null;
- this.receiverCount = null;
- this.successCount = null;
- this.failCount = null;
- this.cancelCount = null;
- this.unregisterCount = null;
- this.timestamp = null;
- this.message = null;
- if (args) {
- if (args.requestId !== undefined && args.requestId !== null) {
- this.requestId = args.requestId;
- }
- if (args.state !== undefined && args.state !== null) {
- this.state = args.state;
- }
- if (args.eventNo !== undefined && args.eventNo !== null) {
- this.eventNo = args.eventNo;
- }
- if (args.receiverCount !== undefined && args.receiverCount !== null) {
- this.receiverCount = args.receiverCount;
- }
- if (args.successCount !== undefined && args.successCount !== null) {
- this.successCount = args.successCount;
- }
- if (args.failCount !== undefined && args.failCount !== null) {
- this.failCount = args.failCount;
- }
- if (args.cancelCount !== undefined && args.cancelCount !== null) {
- this.cancelCount = args.cancelCount;
- }
- if (args.unregisterCount !== undefined && args.unregisterCount !== null) {
- this.unregisterCount = args.unregisterCount;
- }
- if (args.timestamp !== undefined && args.timestamp !== null) {
- this.timestamp = args.timestamp;
- }
- if (args.message !== undefined && args.message !== null) {
- this.message = args.message;
- }
- }
- }
-};
-lineType.Settings = class {
- constructor(args) {
- this.notificationEnable = null;
- this.notificationMuteExpiration = null;
- this.notificationNewMessage = null;
- this.notificationGroupInvitation = null;
- this.notificationShowMessage = null;
- this.notificationIncomingCall = null;
- this.notificationSoundMessage = null;
- this.notificationSoundGroup = null;
- this.notificationDisabledWithSub = null;
- this.privacySyncContacts = null;
- this.privacySearchByPhoneNumber = null;
- this.privacySearchByUserid = null;
- this.privacySearchByEmail = null;
- this.privacyAllowSecondaryDeviceLogin = null;
- this.privacyProfileImagePostToMyhome = null;
- this.privacyReceiveMessagesFromNotFriend = null;
- this.contactMyTicket = null;
- this.identityProvider = null;
- this.identityIdentifier = null;
- this.snsAccounts = null;
- this.phoneRegistration = null;
- this.emailConfirmationStatus = null;
- this.preferenceLocale = null;
- this.customModes = null;
- this.e2eeEnable = null;
- this.hitokotoBackupRequested = null;
- this.privacyProfileMusicPostToMyhome = null;
- this.privacyAllowNearby = null;
- this.agreementNearbyTime = null;
- this.agreementSquareTime = null;
- this.notificationMention = null;
- this.botUseAgreementAcceptedAt = null;
- if (args) {
- if (args.notificationEnable !== undefined && args.notificationEnable !== null) {
- this.notificationEnable = args.notificationEnable;
- }
- if (args.notificationMuteExpiration !== undefined && args.notificationMuteExpiration !== null) {
- this.notificationMuteExpiration = args.notificationMuteExpiration;
- }
- if (args.notificationNewMessage !== undefined && args.notificationNewMessage !== null) {
- this.notificationNewMessage = args.notificationNewMessage;
- }
- if (args.notificationGroupInvitation !== undefined && args.notificationGroupInvitation !== null) {
- this.notificationGroupInvitation = args.notificationGroupInvitation;
- }
- if (args.notificationShowMessage !== undefined && args.notificationShowMessage !== null) {
- this.notificationShowMessage = args.notificationShowMessage;
- }
- if (args.notificationIncomingCall !== undefined && args.notificationIncomingCall !== null) {
- this.notificationIncomingCall = args.notificationIncomingCall;
- }
- if (args.notificationSoundMessage !== undefined && args.notificationSoundMessage !== null) {
- this.notificationSoundMessage = args.notificationSoundMessage;
- }
- if (args.notificationSoundGroup !== undefined && args.notificationSoundGroup !== null) {
- this.notificationSoundGroup = args.notificationSoundGroup;
- }
- if (args.notificationDisabledWithSub !== undefined && args.notificationDisabledWithSub !== null) {
- this.notificationDisabledWithSub = args.notificationDisabledWithSub;
- }
- if (args.privacySyncContacts !== undefined && args.privacySyncContacts !== null) {
- this.privacySyncContacts = args.privacySyncContacts;
- }
- if (args.privacySearchByPhoneNumber !== undefined && args.privacySearchByPhoneNumber !== null) {
- this.privacySearchByPhoneNumber = args.privacySearchByPhoneNumber;
- }
- if (args.privacySearchByUserid !== undefined && args.privacySearchByUserid !== null) {
- this.privacySearchByUserid = args.privacySearchByUserid;
- }
- if (args.privacySearchByEmail !== undefined && args.privacySearchByEmail !== null) {
- this.privacySearchByEmail = args.privacySearchByEmail;
- }
- if (args.privacyAllowSecondaryDeviceLogin !== undefined && args.privacyAllowSecondaryDeviceLogin !== null) {
- this.privacyAllowSecondaryDeviceLogin = args.privacyAllowSecondaryDeviceLogin;
- }
- if (args.privacyProfileImagePostToMyhome !== undefined && args.privacyProfileImagePostToMyhome !== null) {
- this.privacyProfileImagePostToMyhome = args.privacyProfileImagePostToMyhome;
- }
- if (
- args.privacyReceiveMessagesFromNotFriend !== undefined &&
- args.privacyReceiveMessagesFromNotFriend !== null
- ) {
- this.privacyReceiveMessagesFromNotFriend = args.privacyReceiveMessagesFromNotFriend;
- }
- if (args.contactMyTicket !== undefined && args.contactMyTicket !== null) {
- this.contactMyTicket = args.contactMyTicket;
- }
- if (args.identityProvider !== undefined && args.identityProvider !== null) {
- this.identityProvider = args.identityProvider;
- }
- if (args.identityIdentifier !== undefined && args.identityIdentifier !== null) {
- this.identityIdentifier = args.identityIdentifier;
- }
- if (args.snsAccounts !== undefined && args.snsAccounts !== null) {
- this.snsAccounts = Thrift.copyMap(args.snsAccounts, [null]);
- }
- if (args.phoneRegistration !== undefined && args.phoneRegistration !== null) {
- this.phoneRegistration = args.phoneRegistration;
- }
- if (args.emailConfirmationStatus !== undefined && args.emailConfirmationStatus !== null) {
- this.emailConfirmationStatus = args.emailConfirmationStatus;
- }
- if (args.preferenceLocale !== undefined && args.preferenceLocale !== null) {
- this.preferenceLocale = args.preferenceLocale;
- }
- if (args.customModes !== undefined && args.customModes !== null) {
- this.customModes = Thrift.copyMap(args.customModes, [null]);
- }
- if (args.e2eeEnable !== undefined && args.e2eeEnable !== null) {
- this.e2eeEnable = args.e2eeEnable;
- }
- if (args.hitokotoBackupRequested !== undefined && args.hitokotoBackupRequested !== null) {
- this.hitokotoBackupRequested = args.hitokotoBackupRequested;
- }
- if (args.privacyProfileMusicPostToMyhome !== undefined && args.privacyProfileMusicPostToMyhome !== null) {
- this.privacyProfileMusicPostToMyhome = args.privacyProfileMusicPostToMyhome;
- }
- if (args.privacyAllowNearby !== undefined && args.privacyAllowNearby !== null) {
- this.privacyAllowNearby = args.privacyAllowNearby;
- }
- if (args.agreementNearbyTime !== undefined && args.agreementNearbyTime !== null) {
- this.agreementNearbyTime = args.agreementNearbyTime;
- }
- if (args.agreementSquareTime !== undefined && args.agreementSquareTime !== null) {
- this.agreementSquareTime = args.agreementSquareTime;
- }
- if (args.notificationMention !== undefined && args.notificationMention !== null) {
- this.notificationMention = args.notificationMention;
- }
- if (args.botUseAgreementAcceptedAt !== undefined && args.botUseAgreementAcceptedAt !== null) {
- this.botUseAgreementAcceptedAt = args.botUseAgreementAcceptedAt;
- }
- }
- }
-};
-lineType.SimpleChannelClient = class {
- constructor(args) {
- this.applicationType = null;
- this.applicationVersion = null;
- this.locale = null;
- if (args) {
- if (args.applicationType !== undefined && args.applicationType !== null) {
- this.applicationType = args.applicationType;
- }
- if (args.applicationVersion !== undefined && args.applicationVersion !== null) {
- this.applicationVersion = args.applicationVersion;
- }
- if (args.locale !== undefined && args.locale !== null) {
- this.locale = args.locale;
- }
- }
- }
-};
-lineType.SimpleChannelContact = class {
- constructor(args) {
- this.mid = null;
- this.displayName = null;
- this.pictureStatus = null;
- this.picturePath = null;
- this.statusMessage = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.displayName !== undefined && args.displayName !== null) {
- this.displayName = args.displayName;
- }
- if (args.pictureStatus !== undefined && args.pictureStatus !== null) {
- this.pictureStatus = args.pictureStatus;
- }
- if (args.picturePath !== undefined && args.picturePath !== null) {
- this.picturePath = args.picturePath;
- }
- if (args.statusMessage !== undefined && args.statusMessage !== null) {
- this.statusMessage = args.statusMessage;
- }
- }
- }
-};
-lineType.SnsFriend = class {
- constructor(args) {
- this.snsUserId = null;
- this.snsUserName = null;
- this.snsIdType = null;
- if (args) {
- if (args.snsUserId !== undefined && args.snsUserId !== null) {
- this.snsUserId = args.snsUserId;
- }
- if (args.snsUserName !== undefined && args.snsUserName !== null) {
- this.snsUserName = args.snsUserName;
- }
- if (args.snsIdType !== undefined && args.snsIdType !== null) {
- this.snsIdType = args.snsIdType;
- }
- }
- }
-};
-lineType.SnsFriendContactRegistration = class {
- constructor(args) {
- this.contact = null;
- this.snsIdType = null;
- this.snsUserId = null;
- if (args) {
- if (args.contact !== undefined && args.contact !== null) {
- this.contact = new lineType.Contact(args.contact);
- }
- if (args.snsIdType !== undefined && args.snsIdType !== null) {
- this.snsIdType = args.snsIdType;
- }
- if (args.snsUserId !== undefined && args.snsUserId !== null) {
- this.snsUserId = args.snsUserId;
- }
- }
- }
-};
-lineType.SnsFriendModification = class {
- constructor(args) {
- this.type = null;
- this.snsFriend = null;
- if (args) {
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.snsFriend !== undefined && args.snsFriend !== null) {
- this.snsFriend = new lineType.SnsFriend(args.snsFriend);
- }
- }
- }
-};
-lineType.SnsFriends = class {
- constructor(args) {
- this.snsFriends = null;
- this.hasMore = null;
- if (args) {
- if (args.snsFriends !== undefined && args.snsFriends !== null) {
- this.snsFriends = Thrift.copyList(args.snsFriends, [lineType.SnsFriend]);
- }
- if (args.hasMore !== undefined && args.hasMore !== null) {
- this.hasMore = args.hasMore;
- }
- }
- }
-};
-lineType.SnsIdUserStatus = class {
- constructor(args) {
- this.userExisting = null;
- this.phoneNumberRegistered = null;
- this.sameDevice = null;
- if (args) {
- if (args.userExisting !== undefined && args.userExisting !== null) {
- this.userExisting = args.userExisting;
- }
- if (args.phoneNumberRegistered !== undefined && args.phoneNumberRegistered !== null) {
- this.phoneNumberRegistered = args.phoneNumberRegistered;
- }
- if (args.sameDevice !== undefined && args.sameDevice !== null) {
- this.sameDevice = args.sameDevice;
- }
- }
- }
-};
-lineType.SnsProfile = class {
- constructor(args) {
- this.snsUserId = null;
- this.snsUserName = null;
- this.email = null;
- this.thumbnailUrl = null;
- if (args) {
- if (args.snsUserId !== undefined && args.snsUserId !== null) {
- this.snsUserId = args.snsUserId;
- }
- if (args.snsUserName !== undefined && args.snsUserName !== null) {
- this.snsUserName = args.snsUserName;
- }
- if (args.email !== undefined && args.email !== null) {
- this.email = args.email;
- }
- if (args.thumbnailUrl !== undefined && args.thumbnailUrl !== null) {
- this.thumbnailUrl = args.thumbnailUrl;
- }
- }
- }
-};
-lineType.SystemConfiguration = class {
- constructor(args) {
- this.endpoint = null;
- this.endpointSsl = null;
- this.updateUrl = null;
- this.c2dmAccount = null;
- this.nniServer = null;
- if (args) {
- if (args.endpoint !== undefined && args.endpoint !== null) {
- this.endpoint = args.endpoint;
- }
- if (args.endpointSsl !== undefined && args.endpointSsl !== null) {
- this.endpointSsl = args.endpointSsl;
- }
- if (args.updateUrl !== undefined && args.updateUrl !== null) {
- this.updateUrl = args.updateUrl;
- }
- if (args.c2dmAccount !== undefined && args.c2dmAccount !== null) {
- this.c2dmAccount = args.c2dmAccount;
- }
- if (args.nniServer !== undefined && args.nniServer !== null) {
- this.nniServer = args.nniServer;
- }
- }
- }
-};
-lineType.Ticket = class {
- constructor(args) {
- this.id = null;
- this.expirationTime = null;
- this.maxUseCount = null;
- if (args) {
- if (args.id !== undefined && args.id !== null) {
- this.id = args.id;
- }
- if (args.expirationTime !== undefined && args.expirationTime !== null) {
- this.expirationTime = args.expirationTime;
- }
- if (args.maxUseCount !== undefined && args.maxUseCount !== null) {
- this.maxUseCount = args.maxUseCount;
- }
- }
- }
-};
-lineType.TMessageBox = class {
- constructor(args) {
- this.id = null;
- this.channelId = null;
- this.lastSeq = null;
- this.unreadCount = null;
- this.lastModifiedTime = null;
- this.status = null;
- this.midType = null;
- this.lastMessages = null;
- if (args) {
- if (args.id !== undefined && args.id !== null) {
- this.id = args.id;
- }
- if (args.channelId !== undefined && args.channelId !== null) {
- this.channelId = args.channelId;
- }
- if (args.lastSeq !== undefined && args.lastSeq !== null) {
- this.lastSeq = args.lastSeq;
- }
- if (args.unreadCount !== undefined && args.unreadCount !== null) {
- this.unreadCount = args.unreadCount;
- }
- if (args.lastModifiedTime !== undefined && args.lastModifiedTime !== null) {
- this.lastModifiedTime = args.lastModifiedTime;
- }
- if (args.status !== undefined && args.status !== null) {
- this.status = args.status;
- }
- if (args.midType !== undefined && args.midType !== null) {
- this.midType = args.midType;
- }
- if (args.lastMessages !== undefined && args.lastMessages !== null) {
- this.lastMessages = Thrift.copyList(args.lastMessages, [lineType.Message]);
- }
- }
- }
-};
-lineType.TMessageBoxWrapUp = class {
- constructor(args) {
- this.messageBox = null;
- this.name = null;
- this.contacts = null;
- this.pictureRevision = null;
- if (args) {
- if (args.messageBox !== undefined && args.messageBox !== null) {
- this.messageBox = new lineType.TMessageBox(args.messageBox);
- }
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- if (args.contacts !== undefined && args.contacts !== null) {
- this.contacts = Thrift.copyList(args.contacts, [lineType.Contact]);
- }
- if (args.pictureRevision !== undefined && args.pictureRevision !== null) {
- this.pictureRevision = args.pictureRevision;
- }
- }
- }
-};
-lineType.TMessageBoxWrapUpResponse = class {
- constructor(args) {
- this.messageBoxWrapUpList = null;
- this.totalSize = null;
- if (args) {
- if (args.messageBoxWrapUpList !== undefined && args.messageBoxWrapUpList !== null) {
- this.messageBoxWrapUpList = Thrift.copyList(args.messageBoxWrapUpList, [lineType.TMessageBoxWrapUp]);
- }
- if (args.totalSize !== undefined && args.totalSize !== null) {
- this.totalSize = args.totalSize;
- }
- }
- }
-};
-lineType.TMessageReadRangeEntry = class {
- constructor(args) {
- this.startMessageId = null;
- this.endMessageId = null;
- this.startTime = null;
- this.endTime = null;
- if (args) {
- if (args.startMessageId !== undefined && args.startMessageId !== null) {
- this.startMessageId = args.startMessageId;
- }
- if (args.endMessageId !== undefined && args.endMessageId !== null) {
- this.endMessageId = args.endMessageId;
- }
- if (args.startTime !== undefined && args.startTime !== null) {
- this.startTime = args.startTime;
- }
- if (args.endTime !== undefined && args.endTime !== null) {
- this.endTime = args.endTime;
- }
- }
- }
-};
-lineType.TMessageReadRange = class {
- constructor(args) {
- this.chatId = null;
- this.ranges = null;
- if (args) {
- if (args.chatId !== undefined && args.chatId !== null) {
- this.chatId = args.chatId;
- }
- if (args.ranges !== undefined && args.ranges !== null) {
- this.ranges = Thrift.copyMap(args.ranges, [Thrift.copyList, lineType.TMessageReadRangeEntry]);
- }
- }
- }
-};
-lineType.ChatRoomAnnouncementContents = class {
- constructor(args) {
- this.displayFields = null;
- this.text = null;
- this.link = null;
- this.thumbnail = null;
- if (args) {
- if (args.displayFields !== undefined && args.displayFields !== null) {
- this.displayFields = args.displayFields;
- }
- if (args.text !== undefined && args.text !== null) {
- this.text = args.text;
- }
- if (args.link !== undefined && args.link !== null) {
- this.link = args.link;
- }
- if (args.thumbnail !== undefined && args.thumbnail !== null) {
- this.thumbnail = args.thumbnail;
- }
- }
- }
-};
-lineType.ChatRoomAnnouncement = class {
- constructor(args) {
- this.announcementSeq = null;
- this.type = null;
- this.contents = null;
- this.creatorMid = null;
- this.createdTime = null;
- if (args) {
- if (args.announcementSeq !== undefined && args.announcementSeq !== null) {
- this.announcementSeq = args.announcementSeq;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.contents !== undefined && args.contents !== null) {
- this.contents = new lineType.ChatRoomAnnouncementContents(args.contents);
- }
- if (args.creatorMid !== undefined && args.creatorMid !== null) {
- this.creatorMid = args.creatorMid;
- }
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- }
- }
-};
-lineType.ErrorExtraInfo = class {
- constructor(args) {
- this.preconditionFailedExtraInfo = null;
- if (args) {
- if (args.preconditionFailedExtraInfo !== undefined && args.preconditionFailedExtraInfo !== null) {
- this.preconditionFailedExtraInfo = args.preconditionFailedExtraInfo;
- }
- }
- }
-};
-lineType.SyncRelations = class {
- constructor(args) {
- this.syncAll = null;
- this.syncParamContact = null;
- this.syncParamMid = null;
- if (args) {
- if (args.syncAll !== undefined && args.syncAll !== null) {
- this.syncAll = args.syncAll;
- }
- if (args.syncParamContact !== undefined && args.syncParamContact !== null) {
- this.syncParamContact = Thrift.copyList(args.syncParamContact, [lineType.SyncParamContact]);
- }
- if (args.syncParamMid !== undefined && args.syncParamMid !== null) {
- this.syncParamMid = Thrift.copyList(args.syncParamMid, [lineType.SyncParamMid]);
- }
- }
- }
-};
-lineType.SyncScope = class {
- constructor(args) {
- this.syncProfile = null;
- this.syncSettings = null;
- this.syncSticker = null;
- this.syncThemeShop = null;
- this.contact = null;
- this.group = null;
- this.room = null;
- this.chat = null;
- if (args) {
- if (args.syncProfile !== undefined && args.syncProfile !== null) {
- this.syncProfile = args.syncProfile;
- }
- if (args.syncSettings !== undefined && args.syncSettings !== null) {
- this.syncSettings = args.syncSettings;
- }
- if (args.syncSticker !== undefined && args.syncSticker !== null) {
- this.syncSticker = args.syncSticker;
- }
- if (args.syncThemeShop !== undefined && args.syncThemeShop !== null) {
- this.syncThemeShop = args.syncThemeShop;
- }
- if (args.contact !== undefined && args.contact !== null) {
- this.contact = new lineType.SyncRelations(args.contact);
- }
- if (args.group !== undefined && args.group !== null) {
- this.group = new lineType.SyncRelations(args.group);
- }
- if (args.room !== undefined && args.room !== null) {
- this.room = new lineType.SyncRelations(args.room);
- }
- if (args.chat !== undefined && args.chat !== null) {
- this.chat = new lineType.SyncRelations(args.chat);
- }
- }
- }
-};
-lineType.JoinSquareResponse = class {
- constructor(args) {
- this.square = null;
- this.squareAuthority = null;
- this.squareStatus = null;
- this.squareMember = null;
- this.squareFeatureSet = null;
- this.noteStatus = null;
- if (args) {
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- if (args.squareAuthority !== undefined && args.squareAuthority !== null) {
- this.squareAuthority = new lineType.SquareAuthority(args.squareAuthority);
- }
- if (args.squareStatus !== undefined && args.squareStatus !== null) {
- this.squareStatus = new lineType.SquareStatus(args.squareStatus);
- }
- if (args.squareMember !== undefined && args.squareMember !== null) {
- this.squareMember = new lineType.SquareMember(args.squareMember);
- }
- if (args.squareFeatureSet !== undefined && args.squareFeatureSet !== null) {
- this.squareFeatureSet = new lineType.SquareFeatureSet(args.squareFeatureSet);
- }
- if (args.noteStatus !== undefined && args.noteStatus !== null) {
- this.noteStatus = new lineType.NoteStatus(args.noteStatus);
- }
- }
- }
-};
-lineType.JoinSquareRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.member = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.member !== undefined && args.member !== null) {
- this.member = new lineType.SquareMember(args.member);
- }
- }
- }
-};
-lineType.JoinSquareChatResponse = class {
- constructor(args) {
- this.squareChat = null;
- this.squareChatStatus = null;
- this.squareChatMember = null;
- if (args) {
- if (args.squareChat !== undefined && args.squareChat !== null) {
- this.squareChat = new lineType.SquareChat(args.squareChat);
- }
- if (args.squareChatStatus !== undefined && args.squareChatStatus !== null) {
- this.squareChatStatus = new lineType.SquareChatStatus(args.squareChatStatus);
- }
- if (args.squareChatMember !== undefined && args.squareChatMember !== null) {
- this.squareChatMember = new lineType.SquareChatMember(args.squareChatMember);
- }
- }
- }
-};
-lineType.JoinSquareChatRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- }
- }
-};
-lineType.SendMessageResponse = class {
- constructor(args) {
- this.createdSquareMessage = null;
- if (args) {
- if (args.createdSquareMessage !== undefined && args.createdSquareMessage !== null) {
- this.createdSquareMessage = new lineType.SquareMessage(args.createdSquareMessage);
- }
- }
- }
-};
-lineType.SendMessageRequest = class {
- constructor(args) {
- this.reqSeq = null;
- this.squareChatMid = null;
- this.squareMessage = null;
- if (args) {
- if (args.reqSeq !== undefined && args.reqSeq !== null) {
- this.reqSeq = args.reqSeq;
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMessage !== undefined && args.squareMessage !== null) {
- this.squareMessage = new lineType.SquareMessage(args.squareMessage);
- }
- }
- }
-};
-lineType.MarkAsReadRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- this.messageId = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.messageId !== undefined && args.messageId !== null) {
- this.messageId = args.messageId;
- }
- }
- }
-};
-lineType.MarkAsReadResponse = class {
- constructor(args) {}
-};
-lineType.SubscriptionState = class {
- constructor(args) {
- this.subscriptionId = null;
- this.ttlMillis = null;
- if (args) {
- if (args.subscriptionId !== undefined && args.subscriptionId !== null) {
- this.subscriptionId = args.subscriptionId;
- }
- if (args.ttlMillis !== undefined && args.ttlMillis !== null) {
- this.ttlMillis = args.ttlMillis;
- }
- }
- }
-};
-lineType.ApproveSquareMembersResponse = class {
- constructor(args) {
- this.approvedMembers = null;
- this.status = null;
- if (args) {
- if (args.approvedMembers !== undefined && args.approvedMembers !== null) {
- this.approvedMembers = Thrift.copyList(args.approvedMembers, [lineType.SquareMember]);
- }
- if (args.status !== undefined && args.status !== null) {
- this.status = new lineType.SquareStatus(args.status);
- }
- }
- }
-};
-lineType.ApproveSquareMembersRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.requestedMemberMids = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.requestedMemberMids !== undefined && args.requestedMemberMids !== null) {
- this.requestedMemberMids = Thrift.copyList(args.requestedMemberMids, [null]);
- }
- }
- }
-};
-lineType.CreateSquareChatResponse = class {
- constructor(args) {
- this.squareChat = null;
- this.squareChatStatus = null;
- this.squareChatMember = null;
- if (args) {
- if (args.squareChat !== undefined && args.squareChat !== null) {
- this.squareChat = new lineType.SquareChat(args.squareChat);
- }
- if (args.squareChatStatus !== undefined && args.squareChatStatus !== null) {
- this.squareChatStatus = new lineType.SquareChatStatus(args.squareChatStatus);
- }
- if (args.squareChatMember !== undefined && args.squareChatMember !== null) {
- this.squareChatMember = new lineType.SquareChatMember(args.squareChatMember);
- }
- }
- }
-};
-lineType.CreateSquareChatRequest = class {
- constructor(args) {
- this.reqSeq = null;
- this.squareChat = null;
- this.squareMemberMids = null;
- if (args) {
- if (args.reqSeq !== undefined && args.reqSeq !== null) {
- this.reqSeq = args.reqSeq;
- }
- if (args.squareChat !== undefined && args.squareChat !== null) {
- this.squareChat = new lineType.SquareChat(args.squareChat);
- }
- if (args.squareMemberMids !== undefined && args.squareMemberMids !== null) {
- this.squareMemberMids = Thrift.copyList(args.squareMemberMids, [null]);
- }
- }
- }
-};
-lineType.CreateSquareResponse = class {
- constructor(args) {
- this.square = null;
- this.creator = null;
- this.authority = null;
- this.status = null;
- if (args) {
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- if (args.creator !== undefined && args.creator !== null) {
- this.creator = new lineType.SquareMember(args.creator);
- }
- if (args.authority !== undefined && args.authority !== null) {
- this.authority = new lineType.SquareAuthority(args.authority);
- }
- if (args.status !== undefined && args.status !== null) {
- this.status = new lineType.SquareStatus(args.status);
- }
- }
- }
-};
-lineType.CreateSquareRequest = class {
- constructor(args) {
- this.reqSeq = null;
- this.square = null;
- this.creator = null;
- if (args) {
- if (args.reqSeq !== undefined && args.reqSeq !== null) {
- this.reqSeq = args.reqSeq;
- }
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- if (args.creator !== undefined && args.creator !== null) {
- this.creator = new lineType.SquareMember(args.creator);
- }
- }
- }
-};
-lineType.DeleteSquareResponse = class {
- constructor(args) {}
-};
-lineType.DeleteSquareRequest = class {
- constructor(args) {
- this.mid = null;
- this.revision = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- }
- }
-};
-lineType.DestroyMessageResponse = class {
- constructor(args) {}
-};
-lineType.DestroyMessageRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- this.messageId = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.messageId !== undefined && args.messageId !== null) {
- this.messageId = args.messageId;
- }
- }
- }
-};
-lineType.GetSquareChatMembersRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- this.continuationToken = null;
- this.limit = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.limit !== undefined && args.limit !== null) {
- this.limit = args.limit;
- }
- }
- }
-};
-lineType.GetSquareChatMembersResponse = class {
- constructor(args) {
- this.squareChatMembers = null;
- this.continuationToken = null;
- if (args) {
- if (args.squareChatMembers !== undefined && args.squareChatMembers !== null) {
- this.squareChatMembers = Thrift.copyList(args.squareChatMembers, [lineType.SquareMember]);
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- }
- }
-};
-lineType.GetSquareChatStatusRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- }
- }
-};
-lineType.GetSquareChatStatusResponse = class {
- constructor(args) {
- this.chatStatus = null;
- if (args) {
- if (args.chatStatus !== undefined && args.chatStatus !== null) {
- this.chatStatus = new lineType.SquareChatStatus(args.chatStatus);
- }
- }
- }
-};
-lineType.GetSquareChatRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- }
- }
-};
-lineType.GetSquareChatResponse = class {
- constructor(args) {
- this.squareChat = null;
- this.squareChatMember = null;
- this.squareChatStatus = null;
- if (args) {
- if (args.squareChat !== undefined && args.squareChat !== null) {
- this.squareChat = new lineType.SquareChat(args.squareChat);
- }
- if (args.squareChatMember !== undefined && args.squareChatMember !== null) {
- this.squareChatMember = new lineType.SquareChatMember(args.squareChatMember);
- }
- if (args.squareChatStatus !== undefined && args.squareChatStatus !== null) {
- this.squareChatStatus = new lineType.SquareChatStatus(args.squareChatStatus);
- }
- }
- }
-};
-lineType.GetSquareAuthorityRequest = class {
- constructor(args) {
- this.squareMid = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- }
- }
-};
-lineType.GetSquareAuthorityResponse = class {
- constructor(args) {
- this.authority = null;
- if (args) {
- if (args.authority !== undefined && args.authority !== null) {
- this.authority = new lineType.SquareAuthority(args.authority);
- }
- }
- }
-};
-lineType.GetJoinedSquaresRequest = class {
- constructor(args) {
- this.continuationToken = null;
- this.limit = null;
- if (args) {
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.limit !== undefined && args.limit !== null) {
- this.limit = args.limit;
- }
- }
- }
-};
-lineType.GetJoinedSquaresResponse = class {
- constructor(args) {
- this.squares = null;
- this.members = null;
- this.authorities = null;
- this.statuses = null;
- this.continuationToken = null;
- this.noteStatuses = null;
- if (args) {
- if (args.squares !== undefined && args.squares !== null) {
- this.squares = Thrift.copyList(args.squares, [lineType.Square]);
- }
- if (args.members !== undefined && args.members !== null) {
- this.members = Thrift.copyMap(args.members, [lineType.SquareMember]);
- }
- if (args.authorities !== undefined && args.authorities !== null) {
- this.authorities = Thrift.copyMap(args.authorities, [lineType.SquareAuthority]);
- }
- if (args.statuses !== undefined && args.statuses !== null) {
- this.statuses = Thrift.copyMap(args.statuses, [lineType.SquareStatus]);
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.noteStatuses !== undefined && args.noteStatuses !== null) {
- this.noteStatuses = Thrift.copyMap(args.noteStatuses, [lineType.NoteStatus]);
- }
- }
- }
-};
-lineType.GetJoinableSquareChatsRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.continuationToken = null;
- this.limit = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.limit !== undefined && args.limit !== null) {
- this.limit = args.limit;
- }
- }
- }
-};
-lineType.GetJoinableSquareChatsResponse = class {
- constructor(args) {
- this.squareChats = null;
- this.continuationToken = null;
- this.totalSquareChatCount = null;
- this.squareChatStatuses = null;
- if (args) {
- if (args.squareChats !== undefined && args.squareChats !== null) {
- this.squareChats = Thrift.copyList(args.squareChats, [lineType.SquareChat]);
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.totalSquareChatCount !== undefined && args.totalSquareChatCount !== null) {
- this.totalSquareChatCount = args.totalSquareChatCount;
- }
- if (args.squareChatStatuses !== undefined && args.squareChatStatuses !== null) {
- this.squareChatStatuses = Thrift.copyMap(args.squareChatStatuses, [lineType.SquareChatStatus]);
- }
- }
- }
-};
-lineType.GetInvitationTicketUrlRequest = class {
- constructor(args) {
- this.mid = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- }
- }
-};
-lineType.GetInvitationTicketUrlResponse = class {
- constructor(args) {
- this.invitationURL = null;
- if (args) {
- if (args.invitationURL !== undefined && args.invitationURL !== null) {
- this.invitationURL = args.invitationURL;
- }
- }
- }
-};
-lineType.LeaveSquareRequest = class {
- constructor(args) {
- this.squareMid = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- }
- }
-};
-lineType.LeaveSquareResponse = class {
- constructor(args) {}
-};
-lineType.LeaveSquareChatRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- this.sayGoodbye = null;
- this.squareChatMemberRevision = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.sayGoodbye !== undefined && args.sayGoodbye !== null) {
- this.sayGoodbye = args.sayGoodbye;
- }
- if (args.squareChatMemberRevision !== undefined && args.squareChatMemberRevision !== null) {
- this.squareChatMemberRevision = args.squareChatMemberRevision;
- }
- }
- }
-};
-lineType.LeaveSquareChatResponse = class {
- constructor(args) {}
-};
-lineType.SquareMemberSearchOption = class {
- constructor(args) {
- this.membershipState = null;
- this.memberRoles = null;
- this.displayName = null;
- this.ableToReceiveMessage = null;
- this.ableToReceiveFriendRequest = null;
- this.chatMidToExcludeMembers = null;
- this.includingMe = null;
- if (args) {
- if (args.membershipState !== undefined && args.membershipState !== null) {
- this.membershipState = args.membershipState;
- }
- if (args.memberRoles !== undefined && args.memberRoles !== null) {
- this.memberRoles = Thrift.copyList(args.memberRoles, [null]);
- }
- if (args.displayName !== undefined && args.displayName !== null) {
- this.displayName = args.displayName;
- }
- if (args.ableToReceiveMessage !== undefined && args.ableToReceiveMessage !== null) {
- this.ableToReceiveMessage = args.ableToReceiveMessage;
- }
- if (args.ableToReceiveFriendRequest !== undefined && args.ableToReceiveFriendRequest !== null) {
- this.ableToReceiveFriendRequest = args.ableToReceiveFriendRequest;
- }
- if (args.chatMidToExcludeMembers !== undefined && args.chatMidToExcludeMembers !== null) {
- this.chatMidToExcludeMembers = args.chatMidToExcludeMembers;
- }
- if (args.includingMe !== undefined && args.includingMe !== null) {
- this.includingMe = args.includingMe;
- }
- }
- }
-};
-lineType.SearchSquareMembersRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.searchOption = null;
- this.continuationToken = null;
- this.limit = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.searchOption !== undefined && args.searchOption !== null) {
- this.searchOption = new lineType.SquareMemberSearchOption(args.searchOption);
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.limit !== undefined && args.limit !== null) {
- this.limit = args.limit;
- }
- }
- }
-};
-lineType.SearchSquareMembersResponse = class {
- constructor(args) {
- this.members = null;
- this.revision = null;
- this.continuationToken = null;
- this.totalCount = null;
- if (args) {
- if (args.members !== undefined && args.members !== null) {
- this.members = Thrift.copyList(args.members, [lineType.SquareMember]);
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.totalCount !== undefined && args.totalCount !== null) {
- this.totalCount = args.totalCount;
- }
- }
- }
-};
-lineType.FindSquareByInvitationTicketRequest = class {
- constructor(args) {
- this.invitationTicket = null;
- if (args) {
- if (args.invitationTicket !== undefined && args.invitationTicket !== null) {
- this.invitationTicket = args.invitationTicket;
- }
- }
- }
-};
-lineType.FindSquareByInvitationTicketResponse = class {
- constructor(args) {
- this.square = null;
- this.myMembership = null;
- this.squareAuthority = null;
- this.squareStatus = null;
- if (args) {
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- if (args.myMembership !== undefined && args.myMembership !== null) {
- this.myMembership = new lineType.SquareMember(args.myMembership);
- }
- if (args.squareAuthority !== undefined && args.squareAuthority !== null) {
- this.squareAuthority = new lineType.SquareAuthority(args.squareAuthority);
- }
- if (args.squareStatus !== undefined && args.squareStatus !== null) {
- this.squareStatus = new lineType.SquareStatus(args.squareStatus);
- }
- }
- }
-};
-lineType.SquareEventReceiveMessage = class {
- constructor(args) {
- this.squareChatMid = null;
- this.squareMessage = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMessage !== undefined && args.squareMessage !== null) {
- this.squareMessage = new lineType.SquareMessage(args.squareMessage);
- }
- }
- }
-};
-lineType.SquareEventSendMessage = class {
- constructor(args) {
- this.squareChatMid = null;
- this.squareMessage = null;
- this.reqSeq = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMessage !== undefined && args.squareMessage !== null) {
- this.squareMessage = new lineType.SquareMessage(args.squareMessage);
- }
- if (args.reqSeq !== undefined && args.reqSeq !== null) {
- this.reqSeq = args.reqSeq;
- }
- }
- }
-};
-lineType.SquareEventNotifiedJoinSquareChat = class {
- constructor(args) {
- this.squareChatMid = null;
- this.joinedMember = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.joinedMember !== undefined && args.joinedMember !== null) {
- this.joinedMember = new lineType.SquareMember(args.joinedMember);
- }
- }
- }
-};
-lineType.SquareEventNotifiedInviteIntoSquareChat = class {
- constructor(args) {
- this.squareChatMid = null;
- this.invitees = null;
- this.invitor = null;
- this.invitorRelation = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.invitees !== undefined && args.invitees !== null) {
- this.invitees = Thrift.copyList(args.invitees, [lineType.SquareMember]);
- }
- if (args.invitor !== undefined && args.invitor !== null) {
- this.invitor = new lineType.SquareMember(args.invitor);
- }
- if (args.invitorRelation !== undefined && args.invitorRelation !== null) {
- this.invitorRelation = new lineType.SquareMemberRelation(args.invitorRelation);
- }
- }
- }
-};
-lineType.SquareEventNotifiedLeaveSquareChat = class {
- constructor(args) {
- this.squareChatMid = null;
- this.squareMemberMid = null;
- this.sayGoodbye = null;
- this.squareMember = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMemberMid !== undefined && args.squareMemberMid !== null) {
- this.squareMemberMid = args.squareMemberMid;
- }
- if (args.sayGoodbye !== undefined && args.sayGoodbye !== null) {
- this.sayGoodbye = args.sayGoodbye;
- }
- if (args.squareMember !== undefined && args.squareMember !== null) {
- this.squareMember = new lineType.SquareMember(args.squareMember);
- }
- }
- }
-};
-lineType.SquareEventNotifiedDestroyMessage = class {
- constructor(args) {
- this.squareChatMid = null;
- this.messageId = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.messageId !== undefined && args.messageId !== null) {
- this.messageId = args.messageId;
- }
- }
- }
-};
-lineType.SquareEventNotifiedMarkAsRead = class {
- constructor(args) {
- this.squareChatMid = null;
- this.sMemberMid = null;
- this.messageId = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.sMemberMid !== undefined && args.sMemberMid !== null) {
- this.sMemberMid = args.sMemberMid;
- }
- if (args.messageId !== undefined && args.messageId !== null) {
- this.messageId = args.messageId;
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareMemberProfile = class {
- constructor(args) {
- this.squareChatMid = null;
- this.squareMember = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMember !== undefined && args.squareMember !== null) {
- this.squareMember = new lineType.SquareMember(args.squareMember);
- }
- }
- }
-};
-lineType.SquareEventNotifiedKickoutFromSquare = class {
- constructor(args) {
- this.squareChatMid = null;
- this.kickees = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.kickees !== undefined && args.kickees !== null) {
- this.kickees = Thrift.copyList(args.kickees, [lineType.SquareMember]);
- }
- }
- }
-};
-lineType.SquareEventNotifiedShutdownSquare = class {
- constructor(args) {
- this.squareChatMid = null;
- this.square = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- }
- }
-};
-lineType.SquareEventNotifiedDeleteSquareChat = class {
- constructor(args) {
- this.squareChat = null;
- if (args) {
- if (args.squareChat !== undefined && args.squareChat !== null) {
- this.squareChat = new lineType.SquareChat(args.squareChat);
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareChatProfileName = class {
- constructor(args) {
- this.squareChatMid = null;
- this.editor = null;
- this.updatedChatName = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.editor !== undefined && args.editor !== null) {
- this.editor = new lineType.SquareMember(args.editor);
- }
- if (args.updatedChatName !== undefined && args.updatedChatName !== null) {
- this.updatedChatName = args.updatedChatName;
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareChatProfileImage = class {
- constructor(args) {
- this.squareChatMid = null;
- this.editor = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.editor !== undefined && args.editor !== null) {
- this.editor = new lineType.SquareMember(args.editor);
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareChatStatus = class {
- constructor(args) {
- this.squareChatMid = null;
- this.statusWithoutMessage = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.statusWithoutMessage !== undefined && args.statusWithoutMessage !== null) {
- this.statusWithoutMessage = new lineType.SquareChatStatusWithoutMessage(args.statusWithoutMessage);
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareStatus = class {
- constructor(args) {
- this.squareMid = null;
- this.squareStatus = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.squareStatus !== undefined && args.squareStatus !== null) {
- this.squareStatus = new lineType.SquareStatus(args.squareStatus);
- }
- }
- }
-};
-lineType.SquareEventNotifiedCreateSquareMember = class {
- constructor(args) {
- this.square = null;
- this.squareAuthority = null;
- this.squareStatus = null;
- this.squareMember = null;
- this.squareFeatureSet = null;
- if (args) {
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- if (args.squareAuthority !== undefined && args.squareAuthority !== null) {
- this.squareAuthority = new lineType.SquareAuthority(args.squareAuthority);
- }
- if (args.squareStatus !== undefined && args.squareStatus !== null) {
- this.squareStatus = new lineType.SquareStatus(args.squareStatus);
- }
- if (args.squareMember !== undefined && args.squareMember !== null) {
- this.squareMember = new lineType.SquareMember(args.squareMember);
- }
- if (args.squareFeatureSet !== undefined && args.squareFeatureSet !== null) {
- this.squareFeatureSet = new lineType.SquareFeatureSet(args.squareFeatureSet);
- }
- }
- }
-};
-lineType.SquareEventNotifiedCreateSquareChatMember = class {
- constructor(args) {
- this.squareChatMid = null;
- this.squareMemberMid = null;
- this.squareChatMember = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMemberMid !== undefined && args.squareMemberMid !== null) {
- this.squareMemberMid = args.squareMemberMid;
- }
- if (args.squareChatMember !== undefined && args.squareChatMember !== null) {
- this.squareChatMember = new lineType.SquareChatMember(args.squareChatMember);
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareMemberRelation = class {
- constructor(args) {
- this.squareMid = null;
- this.myMemberMid = null;
- this.targetSquareMemberMid = null;
- this.squareMemberRelation = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.myMemberMid !== undefined && args.myMemberMid !== null) {
- this.myMemberMid = args.myMemberMid;
- }
- if (args.targetSquareMemberMid !== undefined && args.targetSquareMemberMid !== null) {
- this.targetSquareMemberMid = args.targetSquareMemberMid;
- }
- if (args.squareMemberRelation !== undefined && args.squareMemberRelation !== null) {
- this.squareMemberRelation = new lineType.SquareMemberRelation(args.squareMemberRelation);
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquare = class {
- constructor(args) {
- this.squareMid = null;
- this.square = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareMember = class {
- constructor(args) {
- this.squareMid = null;
- this.squareMemberMid = null;
- this.squareMember = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.squareMemberMid !== undefined && args.squareMemberMid !== null) {
- this.squareMemberMid = args.squareMemberMid;
- }
- if (args.squareMember !== undefined && args.squareMember !== null) {
- this.squareMember = new lineType.SquareMember(args.squareMember);
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareChat = class {
- constructor(args) {
- this.squareMid = null;
- this.squareChatMid = null;
- this.squareChat = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareChat !== undefined && args.squareChat !== null) {
- this.squareChat = new lineType.SquareChat(args.squareChat);
- }
- }
- }
-};
-lineType.SquareEventNotificationJoinRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.squareName = null;
- this.requestMemberName = null;
- this.profileImageObsHash = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.squareName !== undefined && args.squareName !== null) {
- this.squareName = args.squareName;
- }
- if (args.requestMemberName !== undefined && args.requestMemberName !== null) {
- this.requestMemberName = args.requestMemberName;
- }
- if (args.profileImageObsHash !== undefined && args.profileImageObsHash !== null) {
- this.profileImageObsHash = args.profileImageObsHash;
- }
- }
- }
-};
-lineType.SquareEventNotificationMemberUpdate = class {
- constructor(args) {
- this.squareMid = null;
- this.squareName = null;
- this.profileImageObsHash = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.squareName !== undefined && args.squareName !== null) {
- this.squareName = args.squareName;
- }
- if (args.profileImageObsHash !== undefined && args.profileImageObsHash !== null) {
- this.profileImageObsHash = args.profileImageObsHash;
- }
- }
- }
-};
-lineType.SquareEventNotificationSquareDelete = class {
- constructor(args) {
- this.squareMid = null;
- this.squareName = null;
- this.profileImageObsHash = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.squareName !== undefined && args.squareName !== null) {
- this.squareName = args.squareName;
- }
- if (args.profileImageObsHash !== undefined && args.profileImageObsHash !== null) {
- this.profileImageObsHash = args.profileImageObsHash;
- }
- }
- }
-};
-lineType.SquareEventNotificationSquareChatDelete = class {
- constructor(args) {
- this.squareChatMid = null;
- this.squareChatName = null;
- this.profileImageObsHash = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareChatName !== undefined && args.squareChatName !== null) {
- this.squareChatName = args.squareChatName;
- }
- if (args.profileImageObsHash !== undefined && args.profileImageObsHash !== null) {
- this.profileImageObsHash = args.profileImageObsHash;
- }
- }
- }
-};
-lineType.SquareEventNotificationMessage = class {
- constructor(args) {
- this.squareChatMid = null;
- this.squareMessage = null;
- this.senderDisplayName = null;
- this.unreadCount = null;
- this.requiredToFetchChatEvents = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMessage !== undefined && args.squareMessage !== null) {
- this.squareMessage = new lineType.SquareMessage(args.squareMessage);
- }
- if (args.senderDisplayName !== undefined && args.senderDisplayName !== null) {
- this.senderDisplayName = args.senderDisplayName;
- }
- if (args.unreadCount !== undefined && args.unreadCount !== null) {
- this.unreadCount = args.unreadCount;
- }
- if (args.requiredToFetchChatEvents !== undefined && args.requiredToFetchChatEvents !== null) {
- this.requiredToFetchChatEvents = args.requiredToFetchChatEvents;
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareChatMember = class {
- constructor(args) {
- this.squareChatMid = null;
- this.squareMemberMid = null;
- this.squareChatMember = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMemberMid !== undefined && args.squareMemberMid !== null) {
- this.squareMemberMid = args.squareMemberMid;
- }
- if (args.squareChatMember !== undefined && args.squareChatMember !== null) {
- this.squareChatMember = new lineType.SquareChatMember(args.squareChatMember);
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareAuthority = class {
- constructor(args) {
- this.squareMid = null;
- this.squareAuthority = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.squareAuthority !== undefined && args.squareAuthority !== null) {
- this.squareAuthority = new lineType.SquareAuthority(args.squareAuthority);
- }
- }
- }
-};
-lineType.SquareEventNotifiedUpdateSquareFeatureSet = class {
- constructor(args) {
- this.squareFeatureSet = null;
- if (args) {
- if (args.squareFeatureSet !== undefined && args.squareFeatureSet !== null) {
- this.squareFeatureSet = new lineType.SquareFeatureSet(args.squareFeatureSet);
- }
- }
- }
-};
-lineType.SquareEventPayload = class {
- constructor(args) {
- this.receiveMessage = null;
- this.sendMessage = null;
- this.notifiedJoinSquareChat = null;
- this.notifiedInviteIntoSquareChat = null;
- this.notifiedLeaveSquareChat = null;
- this.notifiedDestroyMessage = null;
- this.notifiedMarkAsRead = null;
- this.notifiedUpdateSquareMemberProfile = null;
- this.notifiedKickoutFromSquare = null;
- this.notifiedShutdownSquare = null;
- this.notifiedDeleteSquareChat = null;
- this.notifiedUpdateSquareChatProfileName = null;
- this.notifiedUpdateSquareChatProfileImage = null;
- this.notifiedUpdateSquareStatus = null;
- this.notifiedUpdateSquareChatStatus = null;
- this.notifiedCreateSquareMember = null;
- this.notifiedCreateSquareChatMember = null;
- this.notifiedUpdateSquareMemberRelation = null;
- this.notifiedUpdateSquare = null;
- this.notifiedUpdateSquareMember = null;
- this.notifiedUpdateSquareChat = null;
- this.notificationJoinRequest = null;
- this.notificationJoined = null;
- this.notificationPromoteCoadmin = null;
- this.notificationPromoteAdmin = null;
- this.notificationDemoteMember = null;
- this.notificationKickedOut = null;
- this.notificationSquareDelete = null;
- this.notificationSquareChatDelete = null;
- this.notificationMessage = null;
- this.notifiedUpdateSquareChatMember = null;
- this.notifiedUpdateSquareAuthority = null;
- this.notifiedUpdateSquareFeatureSet = null;
- if (args) {
- if (args.receiveMessage !== undefined && args.receiveMessage !== null) {
- this.receiveMessage = new lineType.SquareEventReceiveMessage(args.receiveMessage);
- }
- if (args.sendMessage !== undefined && args.sendMessage !== null) {
- this.sendMessage = new lineType.SquareEventSendMessage(args.sendMessage);
- }
- if (args.notifiedJoinSquareChat !== undefined && args.notifiedJoinSquareChat !== null) {
- this.notifiedJoinSquareChat = new lineType.SquareEventNotifiedJoinSquareChat(
- args.notifiedJoinSquareChat,
- );
- }
- if (args.notifiedInviteIntoSquareChat !== undefined && args.notifiedInviteIntoSquareChat !== null) {
- this.notifiedInviteIntoSquareChat = new lineType.SquareEventNotifiedInviteIntoSquareChat(
- args.notifiedInviteIntoSquareChat,
- );
- }
- if (args.notifiedLeaveSquareChat !== undefined && args.notifiedLeaveSquareChat !== null) {
- this.notifiedLeaveSquareChat = new lineType.SquareEventNotifiedLeaveSquareChat(
- args.notifiedLeaveSquareChat,
- );
- }
- if (args.notifiedDestroyMessage !== undefined && args.notifiedDestroyMessage !== null) {
- this.notifiedDestroyMessage = new lineType.SquareEventNotifiedDestroyMessage(
- args.notifiedDestroyMessage,
- );
- }
- if (args.notifiedMarkAsRead !== undefined && args.notifiedMarkAsRead !== null) {
- this.notifiedMarkAsRead = new lineType.SquareEventNotifiedMarkAsRead(args.notifiedMarkAsRead);
- }
- if (
- args.notifiedUpdateSquareMemberProfile !== undefined && args.notifiedUpdateSquareMemberProfile !== null
- ) {
- this.notifiedUpdateSquareMemberProfile = new lineType.SquareEventNotifiedUpdateSquareMemberProfile(
- args.notifiedUpdateSquareMemberProfile,
- );
- }
- if (args.notifiedKickoutFromSquare !== undefined && args.notifiedKickoutFromSquare !== null) {
- this.notifiedKickoutFromSquare = new lineType.SquareEventNotifiedKickoutFromSquare(
- args.notifiedKickoutFromSquare,
- );
- }
- if (args.notifiedShutdownSquare !== undefined && args.notifiedShutdownSquare !== null) {
- this.notifiedShutdownSquare = new lineType.SquareEventNotifiedShutdownSquare(
- args.notifiedShutdownSquare,
- );
- }
- if (args.notifiedDeleteSquareChat !== undefined && args.notifiedDeleteSquareChat !== null) {
- this.notifiedDeleteSquareChat = new lineType.SquareEventNotifiedDeleteSquareChat(
- args.notifiedDeleteSquareChat,
- );
- }
- if (
- args.notifiedUpdateSquareChatProfileName !== undefined &&
- args.notifiedUpdateSquareChatProfileName !== null
- ) {
- this.notifiedUpdateSquareChatProfileName = new lineType.SquareEventNotifiedUpdateSquareChatProfileName(
- args.notifiedUpdateSquareChatProfileName,
- );
- }
- if (
- args.notifiedUpdateSquareChatProfileImage !== undefined &&
- args.notifiedUpdateSquareChatProfileImage !== null
- ) {
- this.notifiedUpdateSquareChatProfileImage = new lineType
- .SquareEventNotifiedUpdateSquareChatProfileImage(args.notifiedUpdateSquareChatProfileImage);
- }
- if (args.notifiedUpdateSquareStatus !== undefined && args.notifiedUpdateSquareStatus !== null) {
- this.notifiedUpdateSquareStatus = new lineType.SquareEventNotifiedUpdateSquareStatus(
- args.notifiedUpdateSquareStatus,
- );
- }
- if (args.notifiedUpdateSquareChatStatus !== undefined && args.notifiedUpdateSquareChatStatus !== null) {
- this.notifiedUpdateSquareChatStatus = new lineType.SquareEventNotifiedUpdateSquareChatStatus(
- args.notifiedUpdateSquareChatStatus,
- );
- }
- if (args.notifiedCreateSquareMember !== undefined && args.notifiedCreateSquareMember !== null) {
- this.notifiedCreateSquareMember = new lineType.SquareEventNotifiedCreateSquareMember(
- args.notifiedCreateSquareMember,
- );
- }
- if (args.notifiedCreateSquareChatMember !== undefined && args.notifiedCreateSquareChatMember !== null) {
- this.notifiedCreateSquareChatMember = new lineType.SquareEventNotifiedCreateSquareChatMember(
- args.notifiedCreateSquareChatMember,
- );
- }
- if (
- args.notifiedUpdateSquareMemberRelation !== undefined &&
- args.notifiedUpdateSquareMemberRelation !== null
- ) {
- this.notifiedUpdateSquareMemberRelation = new lineType.SquareEventNotifiedUpdateSquareMemberRelation(
- args.notifiedUpdateSquareMemberRelation,
- );
- }
- if (args.notifiedUpdateSquare !== undefined && args.notifiedUpdateSquare !== null) {
- this.notifiedUpdateSquare = new lineType.SquareEventNotifiedUpdateSquare(args.notifiedUpdateSquare);
- }
- if (args.notifiedUpdateSquareMember !== undefined && args.notifiedUpdateSquareMember !== null) {
- this.notifiedUpdateSquareMember = new lineType.SquareEventNotifiedUpdateSquareMember(
- args.notifiedUpdateSquareMember,
- );
- }
- if (args.notifiedUpdateSquareChat !== undefined && args.notifiedUpdateSquareChat !== null) {
- this.notifiedUpdateSquareChat = new lineType.SquareEventNotifiedUpdateSquareChat(
- args.notifiedUpdateSquareChat,
- );
- }
- if (args.notificationJoinRequest !== undefined && args.notificationJoinRequest !== null) {
- this.notificationJoinRequest = new lineType.SquareEventNotificationJoinRequest(
- args.notificationJoinRequest,
- );
- }
- if (args.notificationJoined !== undefined && args.notificationJoined !== null) {
- this.notificationJoined = new lineType.SquareEventNotificationMemberUpdate(args.notificationJoined);
- }
- if (args.notificationPromoteCoadmin !== undefined && args.notificationPromoteCoadmin !== null) {
- this.notificationPromoteCoadmin = new lineType.SquareEventNotificationMemberUpdate(
- args.notificationPromoteCoadmin,
- );
- }
- if (args.notificationPromoteAdmin !== undefined && args.notificationPromoteAdmin !== null) {
- this.notificationPromoteAdmin = new lineType.SquareEventNotificationMemberUpdate(
- args.notificationPromoteAdmin,
- );
- }
- if (args.notificationDemoteMember !== undefined && args.notificationDemoteMember !== null) {
- this.notificationDemoteMember = new lineType.SquareEventNotificationMemberUpdate(
- args.notificationDemoteMember,
- );
- }
- if (args.notificationKickedOut !== undefined && args.notificationKickedOut !== null) {
- this.notificationKickedOut = new lineType.SquareEventNotificationMemberUpdate(
- args.notificationKickedOut,
- );
- }
- if (args.notificationSquareDelete !== undefined && args.notificationSquareDelete !== null) {
- this.notificationSquareDelete = new lineType.SquareEventNotificationSquareDelete(
- args.notificationSquareDelete,
- );
- }
- if (args.notificationSquareChatDelete !== undefined && args.notificationSquareChatDelete !== null) {
- this.notificationSquareChatDelete = new lineType.SquareEventNotificationSquareChatDelete(
- args.notificationSquareChatDelete,
- );
- }
- if (args.notificationMessage !== undefined && args.notificationMessage !== null) {
- this.notificationMessage = new lineType.SquareEventNotificationMessage(args.notificationMessage);
- }
- if (args.notifiedUpdateSquareChatMember !== undefined && args.notifiedUpdateSquareChatMember !== null) {
- this.notifiedUpdateSquareChatMember = new lineType.SquareEventNotifiedUpdateSquareChatMember(
- args.notifiedUpdateSquareChatMember,
- );
- }
- if (args.notifiedUpdateSquareAuthority !== undefined && args.notifiedUpdateSquareAuthority !== null) {
- this.notifiedUpdateSquareAuthority = new lineType.SquareEventNotifiedUpdateSquareAuthority(
- args.notifiedUpdateSquareAuthority,
- );
- }
- if (args.notifiedUpdateSquareFeatureSet !== undefined && args.notifiedUpdateSquareFeatureSet !== null) {
- this.notifiedUpdateSquareFeatureSet = new lineType.SquareEventNotifiedUpdateSquareFeatureSet(
- args.notifiedUpdateSquareFeatureSet,
- );
- }
- }
- }
-};
-lineType.SquareEvent = class {
- constructor(args) {
- this.createdTime = null;
- this.type = 0;
- this.payload = null;
- this.syncToken = null;
- this.eventStatus = null;
- if (args) {
- if (args.createdTime !== undefined && args.createdTime !== null) {
- this.createdTime = args.createdTime;
- }
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.payload !== undefined && args.payload !== null) {
- this.payload = new lineType.SquareEventPayload(args.payload);
- }
- if (args.syncToken !== undefined && args.syncToken !== null) {
- this.syncToken = args.syncToken;
- }
- if (args.eventStatus !== undefined && args.eventStatus !== null) {
- this.eventStatus = args.eventStatus;
- }
- }
- }
-};
-lineType.FetchMyEventsRequest = class {
- constructor(args) {
- this.subscriptionId = null;
- this.syncToken = null;
- this.limit = null;
- this.continuationToken = null;
- if (args) {
- if (args.subscriptionId !== undefined && args.subscriptionId !== null) {
- this.subscriptionId = args.subscriptionId;
- }
- if (args.syncToken !== undefined && args.syncToken !== null) {
- this.syncToken = args.syncToken;
- }
- if (args.limit !== undefined && args.limit !== null) {
- this.limit = args.limit;
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- }
- }
-};
-lineType.FetchMyEventsResponse = class {
- constructor(args) {
- this.subscription = null;
- this.events = null;
- this.syncToken = null;
- this.continuationToken = null;
- if (args) {
- if (args.subscription !== undefined && args.subscription !== null) {
- this.subscription = new lineType.SubscriptionState(args.subscription);
- }
- if (args.events !== undefined && args.events !== null) {
- this.events = Thrift.copyList(args.events, [lineType.SquareEvent]);
- }
- if (args.syncToken !== undefined && args.syncToken !== null) {
- this.syncToken = args.syncToken;
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- }
- }
-};
-lineType.FetchSquareChatEventsRequest = class {
- constructor(args) {
- this.subscriptionId = null;
- this.squareChatMid = null;
- this.syncToken = null;
- this.limit = null;
- this.direction = null;
- if (args) {
- if (args.subscriptionId !== undefined && args.subscriptionId !== null) {
- this.subscriptionId = args.subscriptionId;
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.syncToken !== undefined && args.syncToken !== null) {
- this.syncToken = args.syncToken;
- }
- if (args.limit !== undefined && args.limit !== null) {
- this.limit = args.limit;
- }
- if (args.direction !== undefined && args.direction !== null) {
- this.direction = args.direction;
- }
- }
- }
-};
-lineType.FetchSquareChatEventsResponse = class {
- constructor(args) {
- this.subscription = null;
- this.events = null;
- this.syncToken = null;
- this.continuationToken = null;
- if (args) {
- if (args.subscription !== undefined && args.subscription !== null) {
- this.subscription = new lineType.SubscriptionState(args.subscription);
- }
- if (args.events !== undefined && args.events !== null) {
- this.events = Thrift.copyList(args.events, [lineType.SquareEvent]);
- }
- if (args.syncToken !== undefined && args.syncToken !== null) {
- this.syncToken = args.syncToken;
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- }
- }
-};
-lineType.InviteToSquareRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.invitees = null;
- this.squareChatMid = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.invitees !== undefined && args.invitees !== null) {
- this.invitees = Thrift.copyList(args.invitees, [null]);
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- }
- }
-};
-lineType.InviteToSquareResponse = class {
- constructor(args) {}
-};
-lineType.InviteToSquareChatRequest = class {
- constructor(args) {
- this.inviteeMids = null;
- this.squareChatMid = null;
- if (args) {
- if (args.inviteeMids !== undefined && args.inviteeMids !== null) {
- this.inviteeMids = Thrift.copyList(args.inviteeMids, [null]);
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- }
- }
-};
-lineType.InviteToSquareChatResponse = class {
- constructor(args) {
- this.inviteeMids = null;
- if (args) {
- if (args.inviteeMids !== undefined && args.inviteeMids !== null) {
- this.inviteeMids = Thrift.copyList(args.inviteeMids, [null]);
- }
- }
- }
-};
-lineType.GetSquareMemberRequest = class {
- constructor(args) {
- this.squareMemberMid = null;
- if (args) {
- if (args.squareMemberMid !== undefined && args.squareMemberMid !== null) {
- this.squareMemberMid = args.squareMemberMid;
- }
- }
- }
-};
-lineType.GetSquareMemberResponse = class {
- constructor(args) {
- this.squareMember = null;
- this.relation = null;
- this.oneOnOneChatMid = null;
- if (args) {
- if (args.squareMember !== undefined && args.squareMember !== null) {
- this.squareMember = new lineType.SquareMember(args.squareMember);
- }
- if (args.relation !== undefined && args.relation !== null) {
- this.relation = new lineType.SquareMemberRelation(args.relation);
- }
- if (args.oneOnOneChatMid !== undefined && args.oneOnOneChatMid !== null) {
- this.oneOnOneChatMid = args.oneOnOneChatMid;
- }
- }
- }
-};
-lineType.GetSquareMembersRequest = class {
- constructor(args) {
- this.mids = null;
- if (args) {
- if (args.mids !== undefined && args.mids !== null) {
- this.mids = Thrift.copyList(args.mids, [null]);
- }
- }
- }
-};
-lineType.GetSquareMembersResponse = class {
- constructor(args) {
- this.members = null;
- if (args) {
- if (args.members !== undefined && args.members !== null) {
- this.members = new lineType.SquareMember(args.members);
- }
- }
- }
-};
-lineType.GetSquareMemberRelationsRequest = class {
- constructor(args) {
- this.state = null;
- this.continuationToken = null;
- this.limit = null;
- if (args) {
- if (args.state !== undefined && args.state !== null) {
- this.state = args.state;
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.limit !== undefined && args.limit !== null) {
- this.limit = args.limit;
- }
- }
- }
-};
-lineType.GetSquareMemberRelationsResponse = class {
- constructor(args) {
- this.squareMembers = null;
- this.relations = null;
- this.continuationToken = null;
- if (args) {
- if (args.squareMembers !== undefined && args.squareMembers !== null) {
- this.squareMembers = Thrift.copyList(args.squareMembers, [lineType.SquareMember]);
- }
- if (args.relations !== undefined && args.relations !== null) {
- this.relations = Thrift.copyMap(args.relations, [lineType.SquareMemberRelation]);
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- }
- }
-};
-lineType.GetSquareMemberRelationRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.targetSquareMemberMid = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.targetSquareMemberMid !== undefined && args.targetSquareMemberMid !== null) {
- this.targetSquareMemberMid = args.targetSquareMemberMid;
- }
- }
- }
-};
-lineType.GetSquareMemberRelationResponse = class {
- constructor(args) {
- this.squareMid = null;
- this.targetSquareMemberMid = null;
- this.relation = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.targetSquareMemberMid !== undefined && args.targetSquareMemberMid !== null) {
- this.targetSquareMemberMid = args.targetSquareMemberMid;
- }
- if (args.relation !== undefined && args.relation !== null) {
- this.relation = new lineType.SquareMemberRelation(args.relation);
- }
- }
- }
-};
-lineType.Category = class {
- constructor(args) {
- this.id = null;
- this.name = null;
- if (args) {
- if (args.id !== undefined && args.id !== null) {
- this.id = args.id;
- }
- if (args.name !== undefined && args.name !== null) {
- this.name = args.name;
- }
- }
- }
-};
-lineType.GetSquareCategoriesRequest = class {
- constructor(args) {}
-};
-lineType.GetSquareCategoriesResponse = class {
- constructor(args) {
- this.categoryList = null;
- if (args) {
- if (args.categoryList !== undefined && args.categoryList !== null) {
- this.categoryList = Thrift.copyList(args.categoryList, [lineType.Category]);
- }
- }
- }
-};
-lineType.UpdateSquareRequest = class {
- constructor(args) {
- this.updatedAttrs = null;
- this.square = null;
- if (args) {
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- }
- }
-};
-lineType.UpdateSquareResponse = class {
- constructor(args) {
- this.updatedAttrs = null;
- this.square = null;
- if (args) {
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- }
- }
-};
-lineType.SearchSquaresRequest = class {
- constructor(args) {
- this.query = null;
- this.continuationToken = null;
- this.limit = null;
- if (args) {
- if (args.query !== undefined && args.query !== null) {
- this.query = args.query;
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.limit !== undefined && args.limit !== null) {
- this.limit = args.limit;
- }
- }
- }
-};
-lineType.SearchSquaresResponse = class {
- constructor(args) {
- this.squares = null;
- this.squareStatuses = null;
- this.myMemberships = null;
- this.continuationToken = null;
- this.noteStatuses = null;
- if (args) {
- if (args.squares !== undefined && args.squares !== null) {
- this.squares = Thrift.copyList(args.squares, [lineType.Square]);
- }
- if (args.squareStatuses !== undefined && args.squareStatuses !== null) {
- this.squareStatuses = Thrift.copyMap(args.squareStatuses, [lineType.SquareStatus]);
- }
- if (args.myMemberships !== undefined && args.myMemberships !== null) {
- this.myMemberships = Thrift.copyMap(args.myMemberships, [lineType.SquareMember]);
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.noteStatuses !== undefined && args.noteStatuses !== null) {
- this.noteStatuses = Thrift.copyMap(args.noteStatuses, [lineType.NoteStatus]);
- }
- }
- }
-};
-lineType.GetSquareFeatureSetRequest = class {
- constructor(args) {
- this.squareMid = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- }
- }
-};
-lineType.GetSquareFeatureSetResponse = class {
- constructor(args) {
- this.squareFeatureSet = null;
- if (args) {
- if (args.squareFeatureSet !== undefined && args.squareFeatureSet !== null) {
- this.squareFeatureSet = new lineType.SquareFeatureSet(args.squareFeatureSet);
- }
- }
- }
-};
-lineType.UpdateSquareFeatureSetRequest = class {
- constructor(args) {
- this.updateAttributes = null;
- this.squareFeatureSet = null;
- if (args) {
- if (args.updateAttributes !== undefined && args.updateAttributes !== null) {
- this.updateAttributes = Thrift.copyList(args.updateAttributes, [null]);
- }
- if (args.squareFeatureSet !== undefined && args.squareFeatureSet !== null) {
- this.squareFeatureSet = new lineType.SquareFeatureSet(args.squareFeatureSet);
- }
- }
- }
-};
-lineType.UpdateSquareFeatureSetResponse = class {
- constructor(args) {
- this.updateAttributes = null;
- this.squareFeatureSet = null;
- if (args) {
- if (args.updateAttributes !== undefined && args.updateAttributes !== null) {
- this.updateAttributes = Thrift.copyList(args.updateAttributes, [null]);
- }
- if (args.squareFeatureSet !== undefined && args.squareFeatureSet !== null) {
- this.squareFeatureSet = new lineType.SquareFeatureSet(args.squareFeatureSet);
- }
- }
- }
-};
-lineType.UpdateSquareMemberRequest = class {
- constructor(args) {
- this.updatedAttrs = null;
- this.updatedPreferenceAttrs = null;
- this.squareMember = null;
- if (args) {
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.updatedPreferenceAttrs !== undefined && args.updatedPreferenceAttrs !== null) {
- this.updatedPreferenceAttrs = Thrift.copyList(args.updatedPreferenceAttrs, [null]);
- }
- if (args.squareMember !== undefined && args.squareMember !== null) {
- this.squareMember = new lineType.SquareMember(args.squareMember);
- }
- }
- }
-};
-lineType.UpdateSquareMemberResponse = class {
- constructor(args) {
- this.updatedAttrs = null;
- this.squareMember = null;
- this.updatedPreferenceAttrs = null;
- if (args) {
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.squareMember !== undefined && args.squareMember !== null) {
- this.squareMember = new lineType.SquareMember(args.squareMember);
- }
- if (args.updatedPreferenceAttrs !== undefined && args.updatedPreferenceAttrs !== null) {
- this.updatedPreferenceAttrs = Thrift.copyList(args.updatedPreferenceAttrs, [null]);
- }
- }
- }
-};
-lineType.UpdateSquareMembersRequest = class {
- constructor(args) {
- this.updatedAttrs = null;
- this.members = null;
- if (args) {
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.members !== undefined && args.members !== null) {
- this.members = Thrift.copyList(args.members, [lineType.SquareMember]);
- }
- }
- }
-};
-lineType.UpdateSquareMembersResponse = class {
- constructor(args) {
- this.updatedAttrs = null;
- this.editor = null;
- this.members = null;
- if (args) {
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.editor !== undefined && args.editor !== null) {
- this.editor = new lineType.SquareMember(args.editor);
- }
- if (args.members !== undefined && args.members !== null) {
- this.members = Thrift.copyMap(args.members, [lineType.SquareMember]);
- }
- }
- }
-};
-lineType.RejectSquareMembersRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.requestedMemberMids = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.requestedMemberMids !== undefined && args.requestedMemberMids !== null) {
- this.requestedMemberMids = Thrift.copyList(args.requestedMemberMids, [null]);
- }
- }
- }
-};
-lineType.RejectSquareMembersResponse = class {
- constructor(args) {
- this.rejectedMembers = null;
- this.status = null;
- if (args) {
- if (args.rejectedMembers !== undefined && args.rejectedMembers !== null) {
- this.rejectedMembers = Thrift.copyList(args.rejectedMembers, [lineType.SquareMember]);
- }
- if (args.status !== undefined && args.status !== null) {
- this.status = new lineType.SquareStatus(args.status);
- }
- }
- }
-};
-lineType.RemoveSubscriptionsRequest = class {
- constructor(args) {
- this.unsubscriptions = null;
- if (args) {
- if (args.unsubscriptions !== undefined && args.unsubscriptions !== null) {
- this.unsubscriptions = Thrift.copyList(args.unsubscriptions, [null]);
- }
- }
- }
-};
-lineType.RemoveSubscriptionsResponse = class {
- constructor(args) {}
-};
-lineType.RefreshSubscriptionsRequest = class {
- constructor(args) {
- this.subscriptions = null;
- if (args) {
- if (args.subscriptions !== undefined && args.subscriptions !== null) {
- this.subscriptions = Thrift.copyList(args.subscriptions, [null]);
- }
- }
- }
-};
-lineType.RefreshSubscriptionsResponse = class {
- constructor(args) {
- this.ttlMillis = null;
- this.subscriptionStates = null;
- if (args) {
- if (args.ttlMillis !== undefined && args.ttlMillis !== null) {
- this.ttlMillis = args.ttlMillis;
- }
- if (args.subscriptionStates !== undefined && args.subscriptionStates !== null) {
- this.subscriptionStates = Thrift.copyMap(args.subscriptionStates, [lineType.SubscriptionState]);
- }
- }
- }
-};
-lineType.UpdateSquareChatRequest = class {
- constructor(args) {
- this.updatedAttrs = null;
- this.squareChat = null;
- if (args) {
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.squareChat !== undefined && args.squareChat !== null) {
- this.squareChat = new lineType.SquareChat(args.squareChat);
- }
- }
- }
-};
-lineType.UpdateSquareChatResponse = class {
- constructor(args) {
- this.updatedAttrs = null;
- this.squareChat = null;
- if (args) {
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.squareChat !== undefined && args.squareChat !== null) {
- this.squareChat = new lineType.SquareChat(args.squareChat);
- }
- }
- }
-};
-lineType.DeleteSquareChatRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- this.revision = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.revision !== undefined && args.revision !== null) {
- this.revision = args.revision;
- }
- }
- }
-};
-lineType.DeleteSquareChatResponse = class {
- constructor(args) {}
-};
-lineType.UpdateSquareChatMemberRequest = class {
- constructor(args) {
- this.updatedAttrs = null;
- this.chatMember = null;
- if (args) {
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.chatMember !== undefined && args.chatMember !== null) {
- this.chatMember = new lineType.SquareChatMember(args.chatMember);
- }
- }
- }
-};
-lineType.UpdateSquareChatMemberResponse = class {
- constructor(args) {
- this.updatedChatMember = null;
- if (args) {
- if (args.updatedChatMember !== undefined && args.updatedChatMember !== null) {
- this.updatedChatMember = new lineType.SquareChatMember(args.updatedChatMember);
- }
- }
- }
-};
-lineType.UpdateSquareAuthorityRequest = class {
- constructor(args) {
- this.updateAttributes = null;
- this.authority = null;
- if (args) {
- if (args.updateAttributes !== undefined && args.updateAttributes !== null) {
- this.updateAttributes = Thrift.copyList(args.updateAttributes, [null]);
- }
- if (args.authority !== undefined && args.authority !== null) {
- this.authority = new lineType.SquareAuthority(args.authority);
- }
- }
- }
-};
-lineType.UpdateSquareAuthorityResponse = class {
- constructor(args) {
- this.updatdAttributes = null;
- this.authority = null;
- if (args) {
- if (args.updatdAttributes !== undefined && args.updatdAttributes !== null) {
- this.updatdAttributes = Thrift.copyList(args.updatdAttributes, [null]);
- }
- if (args.authority !== undefined && args.authority !== null) {
- this.authority = new lineType.SquareAuthority(args.authority);
- }
- }
- }
-};
-lineType.UpdateSquareMemberRelationRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.targetSquareMemberMid = null;
- this.updatedAttrs = null;
- this.relation = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.targetSquareMemberMid !== undefined && args.targetSquareMemberMid !== null) {
- this.targetSquareMemberMid = args.targetSquareMemberMid;
- }
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.relation !== undefined && args.relation !== null) {
- this.relation = new lineType.SquareMemberRelation(args.relation);
- }
- }
- }
-};
-lineType.UpdateSquareMemberRelationResponse = class {
- constructor(args) {
- this.squareMid = null;
- this.targetSquareMemberMid = null;
- this.updatedAttrs = null;
- this.relation = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.targetSquareMemberMid !== undefined && args.targetSquareMemberMid !== null) {
- this.targetSquareMemberMid = args.targetSquareMemberMid;
- }
- if (args.updatedAttrs !== undefined && args.updatedAttrs !== null) {
- this.updatedAttrs = Thrift.copyList(args.updatedAttrs, [null]);
- }
- if (args.relation !== undefined && args.relation !== null) {
- this.relation = new lineType.SquareMemberRelation(args.relation);
- }
- }
- }
-};
-lineType.ReportSquareRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.reportType = null;
- this.otherReason = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.reportType !== undefined && args.reportType !== null) {
- this.reportType = args.reportType;
- }
- if (args.otherReason !== undefined && args.otherReason !== null) {
- this.otherReason = args.otherReason;
- }
- }
- }
-};
-lineType.ReportSquareResponse = class {
- constructor(args) {}
-};
-lineType.ReportSquareChatRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.squareChatMid = null;
- this.reportType = null;
- this.otherReason = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.reportType !== undefined && args.reportType !== null) {
- this.reportType = args.reportType;
- }
- if (args.otherReason !== undefined && args.otherReason !== null) {
- this.otherReason = args.otherReason;
- }
- }
- }
-};
-lineType.ReportSquareChatResponse = class {
- constructor(args) {}
-};
-lineType.ReportSquareMessageRequest = class {
- constructor(args) {
- this.squareMid = null;
- this.squareChatMid = null;
- this.squareMessageId = null;
- this.reportType = null;
- this.otherReason = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareMessageId !== undefined && args.squareMessageId !== null) {
- this.squareMessageId = args.squareMessageId;
- }
- if (args.reportType !== undefined && args.reportType !== null) {
- this.reportType = args.reportType;
- }
- if (args.otherReason !== undefined && args.otherReason !== null) {
- this.otherReason = args.otherReason;
- }
- }
- }
-};
-lineType.ReportSquareMessageResponse = class {
- constructor(args) {}
-};
-lineType.ReportSquareMemberRequest = class {
- constructor(args) {
- this.squareMemberMid = null;
- this.reportType = null;
- this.otherReason = null;
- this.squareChatMid = null;
- if (args) {
- if (args.squareMemberMid !== undefined && args.squareMemberMid !== null) {
- this.squareMemberMid = args.squareMemberMid;
- }
- if (args.reportType !== undefined && args.reportType !== null) {
- this.reportType = args.reportType;
- }
- if (args.otherReason !== undefined && args.otherReason !== null) {
- this.otherReason = args.otherReason;
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- }
- }
-};
-lineType.ReportSquareMemberResponse = class {
- constructor(args) {}
-};
-lineType.GetSquareRequest = class {
- constructor(args) {
- this.mid = null;
- if (args) {
- if (args.mid !== undefined && args.mid !== null) {
- this.mid = args.mid;
- }
- }
- }
-};
-lineType.GetSquareResponse = class {
- constructor(args) {
- this.square = null;
- this.myMembership = null;
- this.squareAuthority = null;
- this.squareStatus = null;
- this.squareFeatureSet = null;
- this.noteStatus = null;
- if (args) {
- if (args.square !== undefined && args.square !== null) {
- this.square = new lineType.Square(args.square);
- }
- if (args.myMembership !== undefined && args.myMembership !== null) {
- this.myMembership = new lineType.SquareMember(args.myMembership);
- }
- if (args.squareAuthority !== undefined && args.squareAuthority !== null) {
- this.squareAuthority = new lineType.SquareAuthority(args.squareAuthority);
- }
- if (args.squareStatus !== undefined && args.squareStatus !== null) {
- this.squareStatus = new lineType.SquareStatus(args.squareStatus);
- }
- if (args.squareFeatureSet !== undefined && args.squareFeatureSet !== null) {
- this.squareFeatureSet = new lineType.SquareFeatureSet(args.squareFeatureSet);
- }
- if (args.noteStatus !== undefined && args.noteStatus !== null) {
- this.noteStatus = new lineType.NoteStatus(args.noteStatus);
- }
- }
- }
-};
-lineType.GetSquareStatusRequest = class {
- constructor(args) {
- this.squareMid = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- }
- }
-};
-lineType.GetSquareStatusResponse = class {
- constructor(args) {
- this.squareStatus = null;
- if (args) {
- if (args.squareStatus !== undefined && args.squareStatus !== null) {
- this.squareStatus = new lineType.SquareStatus(args.squareStatus);
- }
- }
- }
-};
-lineType.GetNoteStatusRequest = class {
- constructor(args) {
- this.squareMid = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- }
- }
-};
-lineType.GetNoteStatusResponse = class {
- constructor(args) {
- this.squareMid = null;
- this.status = null;
- if (args) {
- if (args.squareMid !== undefined && args.squareMid !== null) {
- this.squareMid = args.squareMid;
- }
- if (args.status !== undefined && args.status !== null) {
- this.status = new lineType.NoteStatus(args.status);
- }
- }
- }
-};
-lineType.CreateSquareChatAnnouncementRequest = class {
- constructor(args) {
- this.reqSeq = null;
- this.squareChatMid = null;
- this.squareChatAnnouncement = null;
- if (args) {
- if (args.reqSeq !== undefined && args.reqSeq !== null) {
- this.reqSeq = args.reqSeq;
- }
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.squareChatAnnouncement !== undefined && args.squareChatAnnouncement !== null) {
- this.squareChatAnnouncement = new lineType.SquareChatAnnouncement(args.squareChatAnnouncement);
- }
- }
- }
-};
-lineType.CreateSquareChatAnnouncementResponse = class {
- constructor(args) {
- this.announcement = null;
- if (args) {
- if (args.announcement !== undefined && args.announcement !== null) {
- this.announcement = new lineType.SquareChatAnnouncement(args.announcement);
- }
- }
- }
-};
-lineType.DeleteSquareChatAnnouncementRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- this.announcementSeq = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- if (args.announcementSeq !== undefined && args.announcementSeq !== null) {
- this.announcementSeq = args.announcementSeq;
- }
- }
- }
-};
-lineType.DeleteSquareChatAnnouncementResponse = class {
- constructor(args) {}
-};
-lineType.GetSquareChatAnnouncementsRequest = class {
- constructor(args) {
- this.squareChatMid = null;
- if (args) {
- if (args.squareChatMid !== undefined && args.squareChatMid !== null) {
- this.squareChatMid = args.squareChatMid;
- }
- }
- }
-};
-lineType.GetSquareChatAnnouncementsResponse = class {
- constructor(args) {
- this.announcements = null;
- if (args) {
- if (args.announcements !== undefined && args.announcements !== null) {
- this.announcements = Thrift.copyList(args.announcements, [lineType.SquareChatAnnouncement]);
- }
- }
- }
-};
-lineType.GetJoinedSquareChatsRequest = class {
- constructor(args) {
- this.continuationToken = null;
- this.limit = null;
- if (args) {
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- if (args.limit !== undefined && args.limit !== null) {
- this.limit = args.limit;
- }
- }
- }
-};
-lineType.GetJoinedSquareChatsResponse = class {
- constructor(args) {
- this.chats = null;
- this.chatMembers = null;
- this.statuses = null;
- this.continuationToken = null;
- if (args) {
- if (args.chats !== undefined && args.chats !== null) {
- this.chats = Thrift.copyList(args.chats, [lineType.SquareChat]);
- }
- if (args.chatMembers !== undefined && args.chatMembers !== null) {
- this.chatMembers = Thrift.copyMap(args.chatMembers, [lineType.SquareChatMember]);
- }
- if (args.statuses !== undefined && args.statuses !== null) {
- this.statuses = Thrift.copyMap(args.statuses, [lineType.SquareChatStatus]);
- }
- if (args.continuationToken !== undefined && args.continuationToken !== null) {
- this.continuationToken = args.continuationToken;
- }
- }
- }
-};
-lineType.TalkException = function (args) {
- Thrift.TException.call(this, "TalkException");
- this.name = "TalkException";
- this.code = null;
- this.reason = null;
- this.parameterMap = null;
- if (args) {
- if (args.code !== undefined && args.code !== null) {
- this.code = args.code;
- }
- if (args.reason !== undefined && args.reason !== null) {
- this.reason = args.reason;
- }
- if (args.parameterMap !== undefined && args.parameterMap !== null) {
- this.parameterMap = Thrift.copyMap(args.parameterMap, [null]);
- }
- }
-};
-lineType.UserAuthStatus = class {
- constructor(args) {
- this.phoneNumberRegistered = null;
- this.registeredSnsIdTypes = null;
- if (args) {
- if (args.phoneNumberRegistered !== undefined && args.phoneNumberRegistered !== null) {
- this.phoneNumberRegistered = args.phoneNumberRegistered;
- }
- if (args.registeredSnsIdTypes !== undefined && args.registeredSnsIdTypes !== null) {
- this.registeredSnsIdTypes = Thrift.copyList(args.registeredSnsIdTypes, [null]);
- }
- }
- }
-};
-lineType.WapInvitation = class {
- constructor(args) {
- this.type = null;
- this.inviteeEmail = null;
- this.inviterMid = null;
- this.roomMid = null;
- if (args) {
- if (args.type !== undefined && args.type !== null) {
- this.type = args.type;
- }
- if (args.inviteeEmail !== undefined && args.inviteeEmail !== null) {
- this.inviteeEmail = args.inviteeEmail;
- }
- if (args.inviterMid !== undefined && args.inviterMid !== null) {
- this.inviterMid = args.inviterMid;
- }
- if (args.roomMid !== undefined && args.roomMid !== null) {
- this.roomMid = args.roomMid;
- }
- }
- }
-};
-lineType.GroupCall = class {
- constructor(args) {
- this.online = null;
- this.chatMid = null;
- this.hostMids = null;
- this.memberMids = null;
- this.started = null;
- this.mediaType = null;
- if (args) {
- if (args.online !== undefined && args.online !== null) {
- this.online = args.online;
- }
- if (args.chatMid !== undefined && args.chatMid !== null) {
- this.chatMid = args.chatMid;
- }
- if (args.hostMids !== undefined && args.hostMids !== null) {
- this.hostMids = args.hostMids;
- }
- if (args.memberMids !== undefined && args.memberMids !== null) {
- this.memberMids = Thrift.copyList(args.memberMids, [null]);
- }
- if (args.started !== undefined && args.started !== null) {
- this.started = args.started;
- }
- if (args.mediaType !== undefined && args.mediaType !== null) {
- this.mediaType = args.mediaType;
- }
- }
- }
-};
-lineType.GroupCallRoute = class {
- constructor(args) {
- this.token = null;
- this.cscf = null;
- this.mix = null;
- if (args) {
- if (args.token !== undefined && args.token !== null) {
- this.token = args.token;
- }
- if (args.cscf !== undefined && args.cscf !== null) {
- this.cscf = new lineType.CallHost(args.cscf);
- }
- if (args.mix !== undefined && args.mix !== null) {
- this.mix = new lineType.CallHost(args.mix);
- }
- }
- }
-};
diff --git a/site/tmp/voomUI.js b/site/tmp/voomUI.js
deleted file mode 100644
index 01deacc..0000000
--- a/site/tmp/voomUI.js
+++ /dev/null
@@ -1,587 +0,0 @@
-const voom = (elm, data) => {
- elm.appendChild(article(
- {
- "class": "generalPostLayout_feed_post__9CnYc",
- "data-mid": data.mid,
- "data-rmid": data.rmid,
- "data-id": data.id,
- },
- div(
- {
- "class": "postHeaderLayout_post_header__jc8wg",
- },
- div(
- {
- "class": "writerInfoLayout_writer_info_wrap__IV9NI",
- "$click": (...arg) => {
- buttonEvent("voom-profile", arg);
- },
- },
- a(
- {
- "class": "profileLayout_thumbnail_wrap__tAvs2",
- },
- span(
- {
- "class": "userProfileThumbnail_thumbnail__PANhF",
- "style": "width: 100%; height: 100%;",
- },
- img(
- {
- "src": data.icon,
- "class": "userProfileThumbnail_image__A5Afu",
- "width": "64",
- "height": "64",
- },
- ),
- ),
- ),
- span(
- {
- "class": "linkText_text_area__eG4IS",
- },
- a(
- {
- "class": "linkText_link__pMHBf",
- },
- strong(
- {
- "class": "linkText_text__QJFNU",
- },
- data.name,
- ),
- ),
- ),
- ),
- div(
- {
- "class": "postButtonLayout_post_button_wrap__hbU8V",
- },
- div(
- {
- "class": "postMenuLayout_post_menu_wrap__LXysY",
- },
- button(
- {
- "type": "button",
- "class": "postMenuLayout_button_menu__A5gwf",
- },
- i(
- {
- "class": "postMenuLayout_icon_menu__SawF4",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "15.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M12 10.5c-.829 0-1.5.671-1.5 1.5s.671 1.5 1.5 1.5 1.5-.671 1.5-1.5-.671-1.5-1.5-1.5Zm0-2.9722c.829 0 1.5-.671 1.5-1.5 0-.828-.671-1.5-1.5-1.5s-1.5.672-1.5 1.5c0 .829.671 1.5 1.5 1.5Zm0 8.9444c-.829 0-1.5.671-1.5 1.5 0 .311.094.599.256.838.054.08.116.155.183.223.272.271.647.439 1.061.439.414 0 .789-.168 1.061-.439.067-.068.129-.143.183-.223.162-.239.256-.527.256-.838 0-.829-.671-1.5-1.5-1.5Z",
- },
- ),
- ),
- ),
- span(
- {
- "class": "blind",
- },
- "Menu",
- ),
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "postContentLayout_post_content__bYnAD",
- "style": "--full-viewer-text-bottom: 24px; --full-viewer-inner-height: 54px;",
- },
- div(
- {
- "class": "viewer_trigger",
- },
- div(
- {},
- div(
- {
- "class": "voomEditor-layout",
- },
- div(
- {},
- div(
- {
- "class": "media_layout type_single",
- },
- div(
- {
- "class": "media_inner",
- "style": "padding-top: 100%;",
- },
- div(
- {
- "role": "button",
- "tabindex": "0",
- "class": "media_box_layout",
- },
- div(
- {
- "class": "media_item type_viewer",
- },
- img(
- {
- "src": data.img,
- "class": "media_image",
- "alt": "",
- "style": "object-position: 50% 50%;",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "post_text post_text_margin",
- },
- div(
- {
- "class": "text_layout",
- },
- div(
- {
- "class": "text_area",
- },
- div(
- {
- "class": "text_inner",
- },
- div(
- {
- "class": "text_viewer page_feed",
- },
- pre(
- {},
- data.text,
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- section(
- {
- "class": "reactionLayout_reaction_group__B1CXz",
- },
- div(
- {
- "class": "likeButtonLayout_like_button_wrap__qJwig",
- },
- button(
- {
- "type": "button",
- "class": "likeButton_button_like__WwN6d",
- "id": "",
- "$click": (...arg) => {
- buttonEvent("voom-like", arg);
- },
- },
- i(
- {
- "class": "likeButton_icon___PUSz",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "15.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M8.6233 13.1151a.65.65 0 0 1 .8882.237c.4976.8597 1.4261 1.4359 2.4887 1.4359 1.0626 0 1.9911-.5762 2.4887-1.4359a.65.65 0 0 1 1.1252.6512c-.7206 1.2449-2.0689 2.0847-3.6139 2.0847s-2.8932-.8398-3.6138-2.0847a.65.65 0 0 1 .237-.8882ZM14.7773 9.2964c-.5522 0-1 .4477-1 1s.4478 1 1 1c.5523 0 1-.4477 1-1s-.4477-1-1-1Zm-5.5546 0c-.5523 0-1 .4477-1 1s.4477 1 1 1c.5522 0 1-.4477 1-1s-.4478-1-1-1Z",
- },
- ),
- path(
- {
- "d": "M12 4.05c-4.3907 0-7.95 3.5593-7.95 7.95 0 4.3907 3.5593 7.95 7.95 7.95 4.3907 0 7.95-3.5593 7.95-7.95 0-4.3907-3.5593-7.95-7.95-7.95ZM2.75 12c0-5.1086 4.1414-9.25 9.25-9.25s9.25 4.1414 9.25 9.25-4.1414 9.25-9.25 9.25S2.75 17.1086 2.75 12Z",
- },
- ),
- ),
- ),
- ),
- span(
- {
- "class": "blind",
- },
- "Like",
- ),
- ),
- ),
- button(
- {
- "type": "button",
- "class": "commentButton_button_comment__gjMIk",
- "id": "",
- "$click": (...arg) => {
- buttonEvent("voom-comment", arg);
- },
- },
- i(
- {
- "class": "commentButton_icon__2elZ8",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "15.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M5.412 5.412C7.1288 3.695 9.4172 2.75 11.839 2.75s4.7102.945 6.4272 2.662c2.8754 2.8753 3.4863 7.2297 1.5648 10.7585l1.2894 4.136a.65.65 0 0 1-.8108.815l-4.1492-1.2705a9.1125 9.1125 0 0 1-4.332 1.0983c-2.4226 0-4.7002-.9455-6.4166-2.6619C3.6946 16.5701 2.75 14.2816 2.75 11.8497c0-2.4332.9454-4.71 2.6604-6.4363l.0015-.0015Zm.92.9184C4.8575 7.8148 4.05 9.7626 4.05 11.8497c0 2.0886.8087 4.046 2.2812 5.5185 1.4733 1.4734 3.4206 2.2811 5.4973 2.2811 1.3838 0 2.7393-.3703 3.9296-1.063a.6504.6504 0 0 1 .5173-.0598l3.2376.9915-1.0066-3.2289a.6499.6499 0 0 1 .0597-.5221c1.7939-3.0613 1.3074-6.9094-1.219-9.4358-1.4728-1.4728-3.4304-2.2812-5.508-2.2812-2.0773 0-4.0345.8081-5.5072 2.2804Z",
- },
- ),
- path(
- {
- "d": "M15.5501 11.05c-.5235 0-.95.4265-.95.95 0 .5234.4265.95.95.95.5234 0 .95-.4266.95-.95 0-.5235-.4266-.95-.95-.95Zm-3.5503 0c-.5235 0-.95.4265-.95.95 0 .5234.4265.95.95.95.5234 0 .95-.4266.95-.95 0-.5235-.4169-.95-.95-.95Zm-3.5996 0c-.5235 0-.95.4265-.95.95 0 .5234.4265.95.95.95s.95-.4266.95-.95c0-.5235-.4265-.95-.95-.95Z",
- },
- ),
- ),
- ),
- ),
- span(
- {
- "class": "commentButton_count__rX03b",
- },
- data.comment,
- ),
- span(
- {
- "class": "blind",
- },
- "Comment",
- ),
- ),
- div(
- {
- "class": "shareButton_share_button_wrap__3ksAj",
- },
- button(
- {
- "type": "button",
- "class": "shareButton_button_share__a21_m",
- "id": "",
- },
- i(
- {
- "class": "shareButton_icon__6Sa8Y",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "15.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M4.4263 19.0055v-7.967h1.3V18.85h12.5461v-7.8115h1.3v7.967c0 .6321-.5124 1.1445-1.1445 1.1445H5.5708c-.6321 0-1.1445-.5124-1.1445-1.1445Zm7.5731-15.4009 4.1008 3.885-.894.9438-3.2068-3.038-3.2069 3.038-.894-.9438 4.1009-3.885Z",
- },
- ),
- path(
- {
- "d": "m11.3457 14.4995.0071-10 1.3.001-.0071 10-1.3-.001Z",
- },
- ),
- ),
- ),
- ),
- span(
- {
- "class": "shareButton_count___ItWD",
- },
- "",
- ),
- span(
- {
- "class": "blind",
- },
- "Share",
- ),
- ),
- ),
- ),
- div(
- {
- "class": "commentList_comment_list__6XUED",
- },
- ),
- div(
- {
- "class": "postFooter_post_footer__V0Dfl",
- },
- i(
- {
- "class": "iconPrivacy_icon_privacy__X1zsb",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "15.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M21.25 12c0-5.1-4.15-9.25-9.25-9.25S2.75 6.9 2.75 12 6.9 21.25 12 21.25h.06c5.07-.04 9.19-4.17 9.19-9.25ZM10.33 4.23c-.03.22-.12.46-.39.53-.43.12-.65.05-.88-.14.41-.16.83-.3 1.27-.39ZM4.05 12c0-.84.14-1.66.38-2.42.31.53.64 1.04.98 1.5.89 1.2 2.09 1.86 3.16 2.43.03.02.07.03.1.04.37.13.74.35 1 .6.04.06.09.1.14.14.12.14.2.27.21.39.02.18.01.36 0 .55-.01.35-.03.75.1 1.16.13.42.39.72.6.96.13.15.25.28.31.42.16.33.24.73.25 1.2 0 .38 0 .68.02.95-4.06-.36-7.25-3.77-7.25-7.91V12Zm10.08 7.65c0-.05.01-.1.02-.11.1-.29.33-.88.34-.92.11-.34.33-.99.49-1.26.08-.14.21-.29.34-.44.2-.22.42-.47.58-.8.2-.42.44-1.47.22-1.96-.36-1.34-1.87-1.61-2.7-1.55 0 0-1.25.07-1.77.09-.33.01-.64.17-.93.31-.05.02-.11.05-.16.08-.13-.25-.33-.57-.82-.95-.21-.16-.41-.25-.58-.32-.2-.09-.26-.12-.3-.18 0-.09.02-.24.03-.29.03-.07.32-.16.45-.19l.1-.03c.17-.05.22-.04.26-.01.74.8 1.68.1 2.04-.17.19-.14.31-.34.34-.57.06-.42-.2-.75-.43-1.05a.6257.6257 0 0 1-.09-.12c.17-.11.42-.22.57-.29.41-.18.76-.33.89-.71.14-.39-.04-.71-.21-.91.42-.43 1.18-1.22.81-2.47-.1-.26-.25-.49-.41-.7 2.39.37 4.43 1.8 5.62 3.8-.08 0-.16.02-.21.03h-.03c-.85.21-1.57.89-1.97 1.65-.4.76-.56 1.78.02 2.63.5.74 1.32 1.04 1.92 1.22.1.03.55.15.94.25l.23.06c-.65 2.84-2.83 5.09-5.61 5.87l.01.01Z",
- },
- ),
- ),
- ),
- span(
- {
- "class": "blind",
- },
- "Public",
- ),
- ),
- span(
- {
- "class": "postFooter_time__dTT6T",
- "id": "dateTime",
- },
- data.time,
- ),
- ),
- div(
- {
- "class": "commentWriter_comment_writer__KKGfj",
- },
- div(
- {
- "class": "commentWriter_thumbnail_wrap__Sg3o0",
- },
- span(
- {
- "class": "userProfileThumbnail_thumbnail__PANhF",
- "style": "width: 100%; height: 100%;",
- },
- img(
- {
- "src": "",
- "class": "userProfileThumbnail_image__A5Afu",
- "width": "64",
- "height": "64",
- },
- ),
- ),
- ),
- div(
- {
- "class": "commentWriter_writer_wrap__yJMVg",
- },
- div(
- {
- "class": "commentWriter_writer_area__71gGR",
- },
- div(
- {
- "class": "voomEditor-layout",
- },
- div(
- {
- "class": "comment_writer_layout",
- },
- div(
- {
- "class": "comment_content",
- "data-name": "comment_content",
- },
- div(
- {
- "class": "voomEditor-layout",
- },
- div(
- {
- "class": "post_writer_text_card",
- },
- div(
- {
- "class": "text_layout animation_0",
- },
- div(
- {
- "class": "text_area",
- },
- div(
- {
- "class": "text_inner",
- },
- label(
- {
- "class": "text_editor",
- },
- textarea(
- {
- "class": "input_text",
- "placeholder": "コメントしてみよう",
- "maxlength": "1000",
- "data-feedid": "1168769285681398053",
- },
- ),
- span(
- {
- "class": "label_text",
- "aria-hidden": "true",
- },
- "コメントしてみよう",
- ),
- ),
- div(
- {
- "class": "text_viewer page_editor",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "comment_tool_group",
- },
- label(
- {
- "class": "tool_button",
- "title": "写真を追加",
- },
- input(
- {
- "type": "file",
- "class": "blind",
- "accept": "image/*",
- },
- ),
- i(
- {
- "class": "icon_photo",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "15.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M15.5519 8.5134c-.5769 0-1.0446.4678-1.0446 1.0447 0 .577.4677 1.0447 1.0446 1.0447s1.0446-.4677 1.0446-1.0447c0-.5769-.4677-1.0447-1.0446-1.0447ZM8.6929 10.2734l8.5795 8.5796a.6498.6498 0 0 1 0 .9192.6498.6498 0 0 1-.9192 0l-7.6603-7.6604-4.4334 4.4335a.65.65 0 1 1-.9192-.9192l5.3526-5.3527Z",
- },
- ),
- path(
- {
- "d": "M4.4499 5.3375v13.3251h15.1V5.3375h-15.1Zm-1.3-.15c0-.6353.515-1.15 1.15-1.15h15.4c.635 0 1.15.5147 1.15 1.15v13.6251c0 .6353-.515 1.15-1.15 1.15h-15.4c-.635 0-1.15-.5149-1.15-1.15V5.1875Z",
- },
- ),
- ),
- ),
- ),
- span(
- {
- "class": "blind",
- },
- "photo",
- ),
- ),
- button(
- {
- "type": "button",
- "class": "tool_button",
- "title": "スタンプを追加",
- },
- i(
- {
- "class": "icon_sticker",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "15.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M8.6233 13.1151a.65.65 0 0 1 .8882.237c.4976.8597 1.4261 1.4359 2.4887 1.4359 1.0626 0 1.9911-.5762 2.4887-1.4359a.65.65 0 0 1 1.1252.6512c-.7206 1.2449-2.0689 2.0847-3.6139 2.0847s-2.8932-.8398-3.6138-2.0847a.65.65 0 0 1 .237-.8882ZM14.7773 9.2964c-.5522 0-1 .4477-1 1s.4478 1 1 1c.5523 0 1-.4477 1-1s-.4477-1-1-1Zm-5.5546 0c-.5523 0-1 .4477-1 1s.4477 1 1 1c.5522 0 1-.4477 1-1s-.4478-1-1-1Z",
- },
- ),
- path(
- {
- "d": "M12 4.05c-4.3907 0-7.95 3.5593-7.95 7.95 0 4.3907 3.5593 7.95 7.95 7.95 4.3907 0 7.95-3.5593 7.95-7.95 0-4.3907-3.5593-7.95-7.95-7.95ZM2.75 12c0-5.1086 4.1414-9.25 9.25-9.25s9.25 4.1414 9.25 9.25-4.1414 9.25-9.25 9.25S2.75 17.1086 2.75 12Z",
- },
- ),
- ),
- ),
- ),
- span(
- {
- "class": "blind",
- },
- "sticker",
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ));
-};
diff --git a/site/tmp/x3.js b/site/tmp/x3.js
deleted file mode 100644
index c774ab3..0000000
--- a/site/tmp/x3.js
+++ /dev/null
@@ -1,654 +0,0 @@
-runLINE = () => {
- $("body").in(
- div(
- { "style": "display: none;", "id": "hide" },
- "hidden DIV",
- ),
- noscript(
- {},
- "You need to enable JavaScript to run this app.",
- ),
- div(
- {
- "id": "root",
- "$click": () => {
- document.querySelector("#modal-root").innerHTML = "";
- },
- },
- div(
- {
- "class": "app",
- },
- div(
- {
- "class": "pageLayout-module__wrap__h-oSt",
- },
- div(
- {
- "class": "gnb-module__gnb__01tnB ",
- },
- ul(
- {
- "class": "gnb-module__nav_list__wRO2S",
- },
- li(
- {
- "class": "gnb-module__nav_list_item__tbnc4",
- },
- button(
- {
- "type": "button",
- "class": "gnb-module__button_action__aTdj7",
- "aria-label": "Friend",
- "aria-current": "false",
- "data-tooltip": "友だち",
- "$click": (...arg) => {
- buttonEvent("openProfile", arg);
- },
- },
- i(
- {
- "class": "icon gnb-module__icon__RvjKM",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M19.394 16.513s-3.866-2.369-4.816-2.969c-.086-.055-.316-.2-.296-.694.014-.348.151-.712.271-.902.185-.291.395-.702.639-1.183.124-.244.258-.507.404-.782.339-.184.729-.559.866-1.493.078-.531-.07-.945-.223-1.214C16.175 4.555 14.45 2.669 12 2.669c-2.439 0-4.16 1.869-4.236 4.602-.154.269-.304.685-.226 1.22.138.941.535 1.314.866 1.49.145.276.28.54.404.784.244.481.454.892.639 1.183.12.19.257.554.271.902.02.494-.21.639-.297.694-.949.6-4.815 2.969-4.83 2.979a2.7233 2.7233 0 0 0-1.241 2.29v2.518h17.3v-2.518c0-.928-.464-1.784-1.256-2.3",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- li(
- {
- "class": "gnb-module__nav_list_item__tbnc4",
- },
- button(
- {
- "type": "button",
- "class": "gnb-module__button_action__aTdj7",
- "aria-label": "Chat",
- "aria-current": "true",
- "data-tooltip": "トーク",
- "$click": (...arg) => {
- buttonEvent("openTalk", arg);
- },
- },
- i(
- {
- "class": "icon gnb-module__icon__RvjKM",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M12.1 3.078c5.194 0 8.549 2.979 8.549 7.591 0 4.185-3.405 7.59-7.591 7.59l-2.289.01c-1.346 0-2.132.993-2.555 1.826l-.418.827-.635-.676c-1.423-1.516-3.81-4.616-3.81-8.343 0-5.361 3.434-8.825 8.749-8.825Zm-3.724 7.155a.9.9 0 1 0 .0001 1.8001.9.9 0 0 0-.0001-1.8001Zm3.538 0a.9.9 0 1 0 .0001 1.8001.9.9 0 0 0-.0001-1.8001Zm3.538 0a.9.9 0 1 0 .0001 1.8001.9.9 0 0 0-.0001-1.8001Z",
- },
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "gnb-module__badge__nU45a badge-module__badge__Eh36I ",
- },
- "25",
- ),
- ),
- li(
- {
- "class": "gnb-module__nav_list_item__tbnc4",
- },
- button(
- {
- "type": "button",
- "class": "gnb-module__button_action__aTdj7",
- "aria-label": "Voom",
- "aria-current": "false",
- "data-tooltip": "LINE VOOM",
- "$click": (...arg) => {
- buttonEvent("openVoom", arg);
- },
- },
- i(
- {
- "class": "icon gnb-module__icon__RvjKM",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "7.3",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "m19.088 15.33-9.068 5.149a3.907 3.907 0 0 1-5.86-3.329v-1.62a3.1 3.1 0 0 1 1.579-2.69l4.351-2.47a.728.728 0 0 0 .367-.63.736.736 0 0 0-.149-.44.756.756 0 0 0-.963-.18L5.7 11.19a1.023 1.023 0 0 1-1.54-.87V6.851a3.908 3.908 0 0 1 5.86-3.33l9.068 5.149a3.816 3.816 0 0 1 0 6.66z",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- li(
- {
- "class": "gnb-module__nav_list_item__tbnc4",
- },
- button(
- {
- "type": "button",
- "class": "gnb-module__button_action__aTdj7",
- "aria-label": "Voom",
- "aria-current": "false",
- "data-tooltip": "LINE Openchat",
- "$click": (...arg) => {
- buttonEvent("openSquare", arg);
- },
- },
- i(
- {
- "class": "icon gnb-module__icon__RvjKM",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "7.3",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M19.7 19.982V9.018c0-2.606-2.163-4.718-4.832-4.718H9.132C6.463 4.3 4.3 6.412 4.3 9.018v5.6c0 2.605 2.163 4.717 4.832 4.717h5.908",
- "stroke": "#707991",
- "stroke-width": "3",
- "style": "color: #202a43;",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- li(
- {
- "class": "gnb-module__nav_list_item__tbnc4",
- },
- button(
- {
- "type": "button",
- "class": "gnb-module__button_action__aTdj7",
- "aria-label": "Voom",
- "aria-current": "false",
- "data-tooltip": "Console",
- "$click": (...arg) => {
- buttonEvent("openConsole", arg);
- },
- },
- i(
- {
- "class": "icon gg-terminal",
- },
- ),
- ),
- ),
- ),
- ul(
- {
- "class": "gnb-module__nav_bottom_list__t-ASJ",
- },
- li(
- {
- "class": "gnb-module__nav_list_item__tbnc4",
- },
- button(
- {
- "type": "button",
- "class": "gnb-module__button_action__aTdj7",
- "aria-label": "Popover more actions",
- "data-tooltip": "設定",
- "$click": (...arg) => {
- buttonEvent("openSettings", arg);
- },
- },
- i(
- {
- "class": "icon gnb-module__icon__RvjKM",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M12 10.5c.829 0 1.5.671 1.5 1.5s-.671 1.5-1.5 1.5-1.5-.671-1.5-1.5.671-1.5 1.5-1.5Zm5.9722 0c.828 0 1.5.671 1.5 1.5s-.672 1.5-1.5 1.5c-.829 0-1.5-.671-1.5-1.5s.671-1.5 1.5-1.5Zm-11.9444-.0003c.208 0 .405.042.584.118.18.076.341.186.477.322.272.271.439.646.439 1.06 0 .414-.167.789-.439 1.061-.136.136-.297.245-.477.322-.179.075-.376.117-.584.117-.828 0-1.5-.671-1.5-1.5 0-.828.672-1.5 1.5-1.5Z",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "chatlist-module__tab__xaUJd folderTab-module__tab__YXsQR",
- },
- div(
- {
- "class": "folderTab-module__tab_list__hjBJ2",
- "role": "tablist",
- },
- button(
- {
- "class": "folderTab-module__tab_item__7dbuI",
- "role": "tab",
- "data-state": "",
- "data-folder-id": "ALL",
- "aria-selected": "false",
- },
- span(
- {
- "class": "folderTab-module__text__0saah",
- },
- "すべて",
- ),
- ),
- button(
- {
- "class": "folderTab-module__tab_item__7dbuI",
- "role": "tab",
- "data-state": "",
- "data-folder-id": "FRIENDS",
- "aria-selected": "false",
- },
- span(
- {
- "class": "folderTab-module__text__0saah",
- },
- "友だち",
- ),
- ),
- button(
- {
- "class": "folderTab-module__tab_item__7dbuI",
- "role": "tab",
- "data-state": "",
- "data-folder-id": "GROUP",
- "aria-selected": "true",
- },
- span(
- {
- "class": "folderTab-module__text__0saah",
- },
- "グループ",
- ),
- ),
- ),
- ),
- div(
- {
- "class": "chatlist-module__chatlist_wrap__KtTpq",
- },
- div(
- {
- "class": "chatlist-module__search_box__enOMX searchInput-module__input_box__vp6NF",
- },
- label(
- {
- "class": "searchInput-module__label__40CWI",
- },
- i(
- {
- "class": "icon searchInput-module__icon_search__amOMA",
- },
- svg(
- {
- "xmlns": "http://www.w3.org/2000/svg",
- "width": "24",
- "height": "24",
- "viewBox": "0 0 24 24",
- },
- g(
- {
- "fill": "none",
- "fill-rule": "evenodd",
- },
- g(
- {},
- g(
- {},
- g(
- {},
- g(
- {},
- g(
- {},
- path(
- {
- "d": "M0 0H20V20H0z",
- "transform":
- "translate(-261.000000, -95.000000) translate(181.000000, 54.000000) translate(74.000000, 34.000000) translate(6.000000, 7.000000) translate(2.000000, 2.000000)",
- },
- ),
- g(
- {
- "stroke": "#B7B7B7",
- "stroke-width": "1.5",
- "transform":
- "translate(-261.000000, -95.000000) translate(181.000000, 54.000000) translate(74.000000, 34.000000) translate(6.000000, 7.000000) translate(2.000000, 2.000000) translate(4.000000, 4.000000)",
- },
- circle(
- {
- "cx": "4.5",
- "cy": "4.5",
- "r": "4.5",
- "fill-rule": "nonzero",
- },
- ),
- path(
- {
- "stroke-linecap": "square",
- "d": "M8 8L11 11",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- input(
- {
- "class": "searchInput-module__input__ekGp7 ",
- "placeholder": "トークルーム検索",
- "maxlength": "20",
- "value": "",
- },
- ),
- button(
- {
- "type": "button",
- "class": "searchInput-module__button_reset__l2-td",
- "aria-label": "reset",
- },
- i(
- {
- "class": "icon searchInput-module__icon_reset__bPtuX",
- },
- svg(
- {
- "xmlns": "http://www.w3.org/2000/svg",
- "width": "24",
- "height": "24",
- "viewBox": "0 0 24 24",
- },
- g(
- {
- "fill": "none",
- "fill-rule": "evenodd",
- },
- g(
- {},
- g(
- {},
- g(
- {},
- g(
- {},
- path(
- {
- "d": "M0 0H24V24H0z",
- "transform":
- "translate(-1216.000000, -227.000000) translate(928.000000, 162.000000) translate(14.000000, 58.000000) translate(274.000000, 7.000000)",
- },
- ),
- path(
- {
- "fill": "#C8C8C8",
- "d": "M12 5c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7 3.134-7 7-7zm2.413 3.5L12 10.912 9.587 8.5 8.5 9.587 10.912 12 8.5 14.413 9.587 15.5 12 13.087l2.413 2.413 1.087-1.087L13.087 12 15.5 9.587 14.413 8.5z",
- "transform":
- "translate(-1216.000000, -227.000000) translate(928.000000, 162.000000) translate(14.000000, 58.000000) translate(274.000000, 7.000000)",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "chatlist-module__chatlist__qruAE",
- },
- div(
- {
- "class": "chatlist-module__chatlist_inner__YtvQB",
- "style": "position: relative; overflow: hidden;",
- },
- div(
- {
- "style": "position: absolute; width: 100%; height: 100%; overflow: scroll;",
- },
- div(
- {
- "style":
- "position: relative; height: auto; width: 100%; overflow: overlay; will-change: transform; direction: ltr;",
- },
- ),
- ),
- ),
- ),
- div(
- {
- "class":
- "chatlist-module__create_chat_button__lADKP createChatButton-module__popover_wrap__CxRuU ",
- "aria-hidden": "false",
- "data-tooltip": "トークルームを作成",
- },
- button(
- {
- "type": "button",
- "class": "createChatButton-module__button_create__-BK-p",
- "aria-haspopup": "true",
- "aria-expanded": "false",
- "aria-labelledby": "create action list popover",
- },
- i(
- {
- "class": "icon createChatButton-module__icon_create__pLEwQ",
- },
- img({
- src: "https://static.line-scdn.net/Openchat-Real/edge/img/apng/icon-nav-create.png",
- alt: "",
- }),
- ),
- ),
- div(
- {
- "class": "createChatButton-module__popover_content__DG6zk",
- },
- ul(
- {
- "class": "createChatButton-module__action_list__zZqLv",
- },
- li(
- {
- "class": "createChatButton-module__action_list_item__I1EVN",
- },
- button(
- {
- "class": "createChatButton-module__link__1CoG2",
- },
- i(
- {
- "class": "icon",
- },
- svg(
- {
- "xmlns": "http://www.w3.org/2000/svg",
- "width": "18",
- "height": "18",
- "viewBox": "0 0 18 18",
- },
- path(
- {
- "fill": "#303030",
- "stroke": "#303030",
- "stroke-width": "0.4",
- "d": "M9.246 2.218c4.155 0 6.84 2.384 6.84 6.073-.004 3.352-2.72 6.069-6.073 6.072h0l-1.831.008c-.908.049-1.704.619-2.044 1.461h0l-.335.662-.508-.54C4.157 14.74 2.247 12.26 2.247 9.277c0-4.289 2.747-7.06 7-7.06zm0 1.04c-3.731 0-5.96 2.25-5.96 6.02 0 2.299 1.38 4.336 2.31 5.447.577-.864 1.544-1.387 2.583-1.394h0l1.832-.008c2.778-.002 5.031-2.253 5.035-5.032 0-3.104-2.223-5.033-5.8-5.033zm-.148 4.685c.397 0 .72.322.72.72 0 .397-.323.72-.72.72-.398 0-.72-.323-.72-.72 0-.398.322-.72.72-.72zm-2.83 0c.397 0 .72.322.72.72 0 .397-.323.72-.72.72-.399 0-.72-.323-.72-.72 0-.398.321-.72.72-.72zm5.66 0c.398 0 .72.322.72.72 0 .397-.322.72-.72.72-.397 0-.72-.323-.72-.72 0-.398.323-.72.72-.72z",
- },
- ),
- ),
- ),
- span(
- {
- "class": "createChatButton-module__text__ji4iL",
- },
- "トーク",
- ),
- ),
- ),
- li(
- {
- "class": "createChatButton-module__action_list_item__I1EVN",
- },
- button(
- {
- "class": "createChatButton-module__link__1CoG2",
- },
- i(
- {
- "class": "icon",
- },
- svg(
- {
- "xmlns": "http://www.w3.org/2000/svg",
- "width": "18",
- "height": "18",
- "viewBox": "0 0 18 18",
- },
- path(
- {
- "fill": "#303030",
- "stroke": "#303030",
- "stroke-width": "0.4",
- "d": "M10.665 2.082c.864.004 1.69.353 2.296.969.605.616.94 1.449.927 2.313.149.267.204.577.158.88-.04.474-.267.913-.63 1.222-.307.566-.528.927-.72 1.231-.112.176-.154.538.017.658.312.218 1.994 1.376 2.964 2.043.575.396.919 1.049.918 1.747h0v2.175h-2.25v-1.04h1.21v-1.135c0-.355-.175-.688-.468-.89-.972-.669-2.657-1.83-2.97-2.048-.616-.51-.745-1.403-.3-2.066.224-.355.437-.709.743-1.279h0l.07-.13.128-.074c.032-.018.195-.133.26-.565.014-.092-.008-.187-.063-.263h0l-.106-.139v-.174c.082-1.134-.7-2.149-1.817-2.358-.21-.384-.48-.733-.797-1.035.142-.023.286-.037.43-.042zm-4.955.44c1.006-.587 2.251-.586 3.257.003 1.005.59 1.614 1.675 1.592 2.84.148.268.203.577.157.879-.04.474-.266.912-.628 1.22-.315.58-.533.937-.722 1.234-.111.175-.153.537.018.657.293.206 1.8 1.242 2.785 1.92h0l.179.123c.575.396.918 1.05.918 1.747h0v2.175H1.405v-2.36c0-.582.286-1.127.765-1.456h0l.203-.14c.977-.673 2.607-1.794 2.914-2.009.17-.12.129-.482.018-.657-.193-.305-.414-.666-.721-1.232-.363-.308-.589-.747-.63-1.221-.046-.304.01-.616.16-.884-.02-1.166.59-2.25 1.596-2.838zm2.787.933c-.703-.439-1.594-.444-2.302-.013S5.083 4.667 5.15 5.493h0v.174l-.105.163c-.055.076-.077.172-.061.265.063.43.226.545.258.563h0l.128.074.07.13c.306.57.519.924.744 1.28.444.663.314 1.555-.3 2.065-.308.215-1.942 1.34-2.92 2.014h0l-.205.14c-.197.136-.314.36-.314.599h0v1.32h9.78v-1.135c0-.355-.174-.688-.466-.89h0l-.18-.123c-.988-.68-2.498-1.72-2.791-1.925-.623-.506-.753-1.404-.301-2.065.19-.3.412-.663.744-1.28h0l.07-.129.126-.074c.16-.145.254-.35.26-.565.016-.093-.007-.188-.062-.264h0L9.52 5.69v-.174c.076-.826-.32-1.623-1.023-2.062z",
- },
- ),
- ),
- ),
- span(
- {
- "class": "createChatButton-module__text__ji4iL",
- },
- "グループ",
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- div({}),
- div(
- {
- "class": "notificationStateToast-module__notification_toast__b7WP7 ",
- "data-visible": "false",
- },
- i(
- {
- "class": "icon notificationStateToast-module__icon__hvseN",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "7.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M13.38 3.18 8.376 7.845H2.66a.65.65 0 0 0-.66.639v7.032l.006.094a.654.654 0 0 0 .654.545l5.716-.001 5.004 4.666c.419.391 1.119.103 1.119-.46V3.64c0-.563-.699-.851-1.119-.46zm-.203 1.965v13.711l-4.076-3.8-.078-.063a.68.68 0 0 0-.38-.117H3.319V9.124h5.324c.17 0 .333-.064.458-.179l4.076-3.8zm4.569 3.943a4.185 4.185 0 0 0-.725-.57l-.702 1.09.175.118A2.793 2.793 0 0 1 16.818 14c-.153.15-.32.281-.498.392l.701 1.09.192-.127c.19-.133.368-.28.533-.443a4.068 4.068 0 0 0 0-5.824zM18.638 6c.45.28.87.61 1.248.983h.002a7.008 7.008 0 0 1 0 10.034c-.306.3-.635.57-.984.809L18.64 18l-.704-1.09c.37-.23.712-.5 1.023-.805a5.735 5.735 0 0 0 0-8.21 5.874 5.874 0 0 0-.753-.626l-.27-.179.701-1.09z",
- },
- ),
- ),
- ),
- ),
- span(
- {
- "class": "notificationStateToast-module__text__PGuSE",
- },
- ),
- ),
- ),
- ul(
- {
- "class": "ToastContainer-module__toast-list__QAniw",
- "style": "z-index: 100;",
- },
- ),
- ),
- ),
- div(
- {
- "id": "modal-root",
- },
- ),
- );
-};
diff --git a/site/tmp/xUI.js b/site/tmp/xUI.js
deleted file mode 100644
index 19a1a45..0000000
--- a/site/tmp/xUI.js
+++ /dev/null
@@ -1,2794 +0,0 @@
-window.version = "v 0.0.0";
-window.versionCode = 0;
-if (localStorage.getItem("auth")) {
- document.getElementById("auth").value = localStorage.getItem("auth");
-}
-if (localStorage.getItem("device")) {
- document.getElementById("device").value = localStorage.getItem("device");
-}
-async function runnnn() {
- window.Line = new LineSquareClient(
- document.getElementById("auth").value,
- document.getElementById("device").value,
- () => {
- setTimeout(async () => {
- let rooms = await UserCashe.getItem(Line.mid + ":chatsList");
- if (!rooms) {
- rooms = await Line.getJoinedSquareChats();
- await buildChatButton(rooms);
- } else {
- await buildChatButtonC(rooms);
- }
- }, 200);
- },
- );
- localStorage.setItem("auth", document.getElementById("auth").value);
- localStorage.setItem("device", document.getElementById("device").value);
- runLINE();
-}
-var chatData = { //チャットリストのデータを入れる
- chatList: [],
-};
-var blobUrl = {};
-function createObjectURL(prot, blob) {
- if (blobUrl[prot]) {
- return blobUrl[prot];
- }
- blobUrl[prot] = URL.createObjectURL(blob);
- return blobUrl[prot];
-}
-async function updateChat() {
- if (roomData.roomMid) {
- let isTooLate = false;
- let data = await Line.timeout(() => Line.fetchSquareChatEvents(roomData.roomMid, roomData.syncToken), 2100);
- if (!data) {
- setTimeout(() => {
- isTooLate = true;
- updateChat();
- }, 2000);
- return;
- }
- if (isTooLate) {
- return;
- }
- if (data.syncToken && !Number(data.syncToken)) {
- roomData.syncToken = data.syncToken;
- }
-
- let events = [];
- let reading = [];
- for (let i = 0; i < data.events.length; i++) {
- const e = data.events[i];
- if (
- e.type == 1 || e.type == undefined || e.type == 2 || e.type == 4 || e.type == 5 || e.type == 30 ||
- e.type == 31 || e.type == 41 || e.type == 49 || e.type == 6
- ) {
- events.push(e);
- } else if (e.type == 7) {
- await refreshProfile(e.payload.notifiedUpdateSquareMemberProfile.squareMember.squareMemberMid);
- }
- }
- /*
- let readingTxt = "浮上中: "
- reading.forEach(e => {
- readingTxt += e.name + " "
- })
- genNewMessage({
- text: readingTxt,
- by: "",
- call: () => { notify(readingTxt, "#fff", "#333") }
- })*/
- await append2Talk(events, roomData.roomMid, roomData.setting.viewMkRead);
- setTimeout(() => {
- isTooLate = true;
- updateChat();
- }, 2000);
- } else {
- }
-}
-
-async function initTalk(mid) {
- let res = await Line.timeout(() => Line.fetchSquareChatEvents(mid), 2100);
- roomData.syncToken = res.syncToken;
- await append2Talk(res.events, mid, false);
-}
-
-async function append2Talk(events, mid, withEvent) {
- let htmls = [];
- for (let index = 0; index < events.length; index++) {
- const e = events[index];
- if (e.type == undefined && e.payload) {
- roomData.messageView.dataList.push(e.payload.receiveMessage.squareMessage.message);
- htmls.push((await Message2Elm(e.payload.receiveMessage.squareMessage.message))[0]);
- } else if (e.type == 1) {
- roomData.messageView.dataList.push(e.payload.sendMessage.squareMessage.message);
- htmls.push((await Message2Elm(e.payload.sendMessage.squareMessage.message))[0]);
- } else if (e.type == 2) {
- let date = new Date(e.createdTime);
- date = date.getMonth() + 1 + "/" + date.getDate() + " " + date.toLocaleTimeString().substring(0, 5);
- htmls.push(genSysMsg({
- event: {
- timeStr: date,
- arg: e.payload,
- text: (await getProfile(e.payload.notifiedJoinSquareChat.joinedMember.squareMemberMid)).name +
- " がトークに参加しました",
- },
- }));
- } else if (e.type == 4) {
- let date = new Date(e.createdTime);
- date = date.getMonth() + 1 + "/" + date.getDate() + " " + date.toLocaleTimeString().substring(0, 5);
- htmls.push(genSysMsg({
- event: {
- timeStr: date,
- arg: e.payload,
- text: (await getProfile(e.payload.notifiedLeaveSquareChat.squareMember.squareMemberMid)).name +
- " がトークを退出しました",
- },
- }));
- } else if (e.type == 5) {
- htmls.push(genSysMsg({
- event: {
- timeStr: "",
- onclick: async () => {
- let res = await getMsgById(e.payload.notifiedDestroyMessage.messageId, true);
- if (res) {
- res.scrollIntoView();
- res.focus();
- }
- },
- text: "メッセージが削除されました",
- },
- }));
- } else if (e.type == 6 && withEvent) {
- htmls.push(genSysMsg({
- event: {
- timeStr: "",
- arg: e.payload,
- text: (await getProfile(e.payload.notifiedMarkAsRead.sMemberMid)).name + "が既読しました",
- },
- }));
- } else if (e.type == 19) {
- let date = new Date(e.createdTime);
- date = date.getMonth() + 1 + "/" + date.getDate() + " " + date.toLocaleTimeString().substring(0, 5);
- htmls.push(genSysMsg({
- event: {
- timeStr: date,
- arg: e.payload,
- text: (await getProfile(e.payload.notifiedKickoutFromSquare.by.squareMemberMid)).name + " が " +
- e.payload.notifiedKickoutFromSquare.kickees[0].displayName +
- " をこのトークから強制退会させました",
- },
- }));
- } else if (e.type == 30) {
- let date = new Date(e.createdTime);
- date = date.getMonth() + 1 + "/" + date.getDate() + " " + date.toLocaleTimeString().substring(0, 5);
- htmls.push(genSysMsg({
- event: {
- timeStr: date,
- arg: e.payload,
- text:
- (await getProfile(e.payload.notifiedUpdateSquareChatProfileName.editor.squareMemberMid)).name +
- "がこのトークの名前を " + e.payload.notifiedUpdateSquareChatProfileName.updatedChatName +
- " に変更しました",
- },
- }));
- } else if (e.type == 31) {
- let date = new Date(e.createdTime);
- date = date.getMonth() + 1 + "/" + date.getDate() + " " + date.toLocaleTimeString().substring(0, 5);
- htmls.push(genSysMsg({
- event: {
- timeStr: date,
- arg: e.payload,
- text:
- (await getProfile(e.payload.notifiedUpdateSquareChatProfileImage.editor.squareMemberMid)).name +
- "がこのトークの背景画像を変更しました",
- },
- }));
- } else if (e.type == 41) {
- let date = new Date(e.createdTime);
- date = date.getMonth() + 1 + "/" + date.getDate() + " " + date.toLocaleTimeString().substring(0, 5);
- htmls.push(genSysMsg({
- event: {
- timeStr: date,
- onclick: async () => {
- let res = await getMsgById(e.payload[41][2][1][4], true);
- if (res) {
- res.scrollIntoView();
- res.focus();
- }
- },
- text: "メッセージが送信取り消しされました",
- },
- }));
- } else if (e.type == 49) {
- let date = new Date(e.createdTime);
- date = date.getMonth() + 1 + "/" + date.getDate() + " " + date.toLocaleTimeString().substring(0, 5);
- htmls.push(genSysMsg({
- event: {
- timeStr: date,
- arg: e.payload,
- text: e.payload[47][2],
- },
- }));
- }
- if (mid != roomData.roomMid) {
- return;
- }
- }
- for (let index = 0; index < htmls.length; index++) {
- const dom = htmls[index];
- roomData.messageView.elmList.prepend(dom);
- if (roomData.followLatest) {
- dom.scrollIntoView();
- }
- observer.observe(dom);
- }
- return;
-}
-
-function genNewMessage(data) {
- roomData.notifyMsg.innerHTML = "";
- roomData.notifyMsg.appendChild(div(
- {
- "class": "newMessage-module__new_message__7AimN ",
- },
- button(
- {
- "type": "button",
- "class": "newMessage-module__button_new_message__4lxeN",
- "$click": (...arg) => {
- data.call(arg);
- },
- },
- strong(
- {
- "class": "newMessage-module__name__i7cy-",
- },
- pre(
- {},
- data.by,
- ),
- ),
- p(
- {
- "class": "newMessage-module__description__Bp-zX",
- },
- span(
- {},
- data.text,
- ),
- ),
- ),
- ));
-}
-
-var defaltIMG =
- "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAYAAACHjumMAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAABGKADAAQAAAABAAABGAAAAADGOxDpAAAUVklEQVR4Ae2daVNbORaGhQ0Ewp6tl6qZ//+vej7MdHcSSAIJJCy2R68J1Vmwde4i6+r4URWV4OUszxGvZV1daeOP/9zOAg0CEIBABgKjDDYxCQEIQGBOAIGhI0AAAtkIIDDZ0GIYAhBAYOgDEIBANgIITDa0GIYABBAY+gAEIJCNAAKTDS2GIQABBIY+AAEIZCOAwGRDi2EIQACBoQ9AAALZCCAw2dBiGAIQQGDoAxCAQDYCCEw2tBiGAAQQGPoABCCQjQACkw0thiEAAQSGPgABCGQjgMBkQ4thCEAAgaEPQAAC2QggMNnQYhgCEEBg6AMQgEA2AghMNrQYhgAEEBj6AAQgkI0AApMNLYYhAAEEhj4AAQhkI4DAZEOLYQhAAIGhD0AAAtkIIDDZ0GIYAhBAYOgDEIBANgIITDa0GIYABBAY+gAEIJCNAAKTDS2GIQABBIY+AAEIZCOAwGRDi2EIQACBoQ9AAALZCCAw2dBiGAIQQGDoAxCAQDYCCEw2tBiGAAQQGPoABCCQjQACkw0thiEAAQSGPgABCGQjgMBkQ4thCEAAgaEPQAAC2QggMNnQYhgCEEBg6AMQgEA2AghMNrQYhgAEEBj6AAQgkI0AApMNLYYhAAEEhj4AAQhkI4DAZEOLYQhAAIGhD0AAAtkIIDDZ0GIYAhBAYOgDEIBANgIITDa0GIYABBAY+gAEIJCNAAKTDS2GIQABBIY+AAEIZCOAwGRDi2EIQACBoQ9AAALZCCAw2dBiGAIQQGDoAxCAQDYCCEw2tBiGAAQQGPoABCCQjQACkw0thiEAAQSGPgABCGQjgMBkQ4thCEAAgaEPQAAC2QggMNnQYhgCEEBg6AMQgEA2AghMNrQYhgAEEBj6AAQgkI0AApMNLYYhAAEEhj4AAQhkI4DAZEOLYQhAAIGhD0AAAtkIIDDZ0GIYAhBAYOgDEIBANgIITDa0GIYABBAY+gAEIJCNwGY2yxiunsA4fvxsbsWfzY0w2ghh4+vH0WwawnQWwt3dLNzdhjCJv9Mg8BgBBOYxKmv62GbsDbu7G2F3ZyM8iT9jqYqhTaLaXH+Zhc/6+RxF587wJl6yFgQQmLUo8+IkN6KG7O1thP39Udh5YhOUH61JiJ4+1c/9M1+uZ+HTp2m4vJyFWRzp0NaXAAKzprWXsBzsb4Sjo1EYj9sJyyJ0EqqdJ+NwcjwL5+fT8PETQrOIlffHERjvFX4kv5349efF89F8buWRp3t7SML17Nk4HB7OwunZNHyJX6Fo60UAgVmveofnUVgO4tehVTZNEv/6yziOZKbhLAoNbX0IIDBrUmt9JXr1ahQncFcrLt/ilbBpIvnNmylzM9+Ccfz/cr3NMdShpTYeh/Dbr+Oi4vLARAKnWBQTzT8BBMZ5jbfiOhb9QW9v9zuR2wWbYlFMio3mmwBfkRzXVwvlNPfR9irRLF5j1pqWu8ksTOK/k8k9LI0+xrHnbMZJXH3l2dD3r4ZN8zK/xNj++nPCQr2G7Gp6OQJTU7UaxvriZfNL0BIVXe25uoo/cdHcg6gsci2xeRoX52kdjK5ONREbCZRifP2aid9FfGt/HIGpvYIL4j+O61uaTuheXk7D+/fTOGJZYPSRhyVAWuein80oNicno7hwz/7NWzEeH4XwIa6XofkjgMD4q+l8JHF0ZP/acnMzC2fvJuH6uhsMCdPb02m4+DgNz+P6F+u8j2L9ch1/WCfTrQADfLf9o2aAwRPSzwQ0HfLyxcj8VeXq8zT89Xd3cfk2EgmVbMq2pelr1X3MllfzmpoIIDA1VcsQ68FBvEnRuPRf9wvlWpOie5BkWz4sTTErdpovAgiMo3rqz/Pw0FZS/eFr+X7uJh9WkVHsSEzuiqzWvq03rjYmvLUksB9HALoyk2q3t5pzyS8uD3HIl3ymmmJXDjQ/BBAYP7UMR4bRiy5Dvz2drHSpvr4u3ftMi4wlB0clc58KAuOkxNrTRYvXUu38fBZublKv6v95+ZTvVFMOyoXmgwAC46OOYS8udEu1adx5TpeQSzX5VgypZsklZYPnh0EAgRlGHTpFoUvTO3E1bap9iovhpuX0Ze5bMaSacmlx90HKLM8XIIDAFIDet0st0R8l/iI193J+UVBdviatGBTLsqZclBOtfgIITP01DE8Me+lexzmQ1H1Fq0ChGCxzQJacVhEvProRQGC68RvEuy2bdQ9pGb5OH0g1S04pGzxfngACU74GnSPY2k6bGJLAWGKx5JTOmleUJoDAlK5AR/86uih1fpHmPK7jUSJDaYolNQ+jnIzHMg0lLeJ4hAAC8wiUmh7SyYupprucE/OqKRO9Pq9YLFtCWHLrNTCM9U4Agekd6WoNpkYvimYaBWZozRKTJbeh5UU83xNAYL7nUd1vD+dFLwtcR7sOrVlisuQ2tLyI53sCCMz3PKr7zXK1xTJaWHXilpgsua06bvw1I4DANOM1qFdrbd1+PP411Uqu3l0UmyUm5ZZYP7jIPI8PhAACM5BCtAlDm22PHF9qUW7KkVYvAQSm3tqZVvDq5kId2Tq0ppgsNz6yondolWsWDwLTjNegXm05uOziYhY3expU2PNgFNPFx/TksyXH4WVHRA8EEJgHEhX+a9l717rxdon0r67SIytLjiVix6eNAAJj4zTIVw3w6nPvnNYhx96hDcggAjOgYjQNZWb467OeTdTUdx+vt8RmybGPWLCRhwACk4frSqxa5laGvJbEEpslx5XAxkkrAghMK2zDeNONYad+nRk9GmCVFZNiSzVLjikbPF+OwAC7XjkYtXm2bHugtSTWs5JWmb9isqzhseS4yrjx1YwAAtOM16BefXcXwu1d+lLv0eFGPNIkPVpYVXLWeJSbcqTVSwCBqbd288g/GU4J0NnPJyfj+fnPpdPVGdSKRTGlmiW3lA2eL0sAgSnLv7P3j/OTAtKjGDnSnMe2Yfe7zkEtMCDflnkXvf1+BbItrwXueHgABBCYARShSwi6adByFIh8zEcyx+VKfhJ9W0YuirX0ESuKgdadQLne1j12LHwl8OF8GucqbJ/2u7ujYLk83Ddc+ZRvS1MuyolWPwFbxevP03UGGsW8eavzpm0ic3Ky+rJbfSoH5WLZzsF1UZ0kt/qe5gTc0NLQWUOnp+lDzRS37lC2zoX0kad8We6KlrgoB8u5SX3EhY38BBCY/IxX5uHyahbexj9QS9N8yKqa1ZdiVw40PwRW18v8MBt0JlfxD9RyRMnWlhbgpS8Vd01WPuQr1RSzYqf5IoDA+KrnPJv3722jmOOjURiP8wGQbfmwNGvMFlu8ZjgEbNUfTrxEYiDwRaOBz2mR0VJ969cXg9ufXiLbltsBFKtipvkjgMD4q+k8I40ILFeV9vY0Ads/BNmU7VRTjIxeUpTqfR6Bqbd2SyPXNgeWBXha+PbsWf/fk2TTsqhOMbIlw9JSVv0kAlN1+ZYH//7DNFgOOHuyvWE6/mS5t3+e1XEjsplqik0x0vwSQGD81na+WO2D8Q/YOhlrwWW1pdhYUGchWu9rEJh6a2eK/GPcuf/mJj2BurnZzyhGoxfZSjXFpNhovgkgML7rO8/u7N3ElOWeYYe5lCGrDWtMKX88P2wCCMyw69NLdNfXccL3Mj3XsbPT7ahWbfEiG6mmWBQTzT8BBMZ/jecZar4jddlaV30s9wwtQqb3pq4cKQbrvNAiPzxeDwEEpp5adYpUW09a9rfd3GzvxvJexcA2mO0Z1/ZOBKa2inWI98ZwhOzmOP0VZ1EIlvdaYlhkn8frI4DA1Fez1hFbDpufhfZXdizvtcTQOkHeODgCCMzgSpIvIMtdzR30JVjea4ohHwIsr5gAArNi4KXcaX7k6W76689th2NCLO9VDJa5mlKc8NsvAQSmX56DtKY/6t9+HZvubLYsyluUpOW9urtasVjEbpEfHq+HQIdrBvUkua6R6njWZ89GYX/P9jmizba7XOHRe2UjtZJ3HCeSX70az9fmvHvH7QKe+6et53km4DS33Thq+f33sVlchOGj4RC3FK4mNiR8ilGx0nwSQGCc1VWjlhfPR+GXOEKwXDZ+SL+vg86aHAQn34pRsSrm+O2J5owAAuOooPNRy29x1LLfvKx9fVXR3dHvjFt2foteMTOa+ZaIj/8374k+8naVhe4Bev4wajHcyfxj8pfx3qBPl+3Xv/xoT5tIyWbTprkbjWaUi3Ki1U+ASd7Ka6ibC/X1IjWxuijNj5+m4eysuRgssvfwuI4giftJhYMWoym9ZzfmdRrjstze8OCTf4dHYOOP/9z299E1vPzcRqRP+GfxhMaDg3aD0PleuPEGyIuLvOXXsSXa/Dt1E+SiQmnSWF+54j2StAoJIDAVFq3rqEVnEJ2eTVa2F+7Wliaex63v1Nalb0YzFXbUGDICU1HdNGrRGc+HHUYt2irhPPOoZRHSoziaOe4wmrmIo5n70xIWeeDxoRFAYIZWkQXx7MS9Vp6/GIWtFpO4MrnqUcuCNOIpj91GM7dxNHMW53c4R2kR4WE9jsAMqx4/RTMftcRP/YOD9GZOP705PjDf4Ok8jlrOhzWJcXQURzPx1Mc2czPKSfv56kQC5mYeq/pwHkNghlOLnyLR4WWau2h7B7LuDXp7urq5lp8SSDyg0czLF+OwbTji5DFTt/H6hOaS2H7zMTrDeAyBGUYdvouij1GLRiwf4silhqaRjEY0jGZqqFazGBGYZryyv7qPUYs+1W9usofaq4Pt7fvRGqOZXrEWN4bAFC/BfQBauHo8v0LU/pNcV4dq31BbV5l0tantaOYizs180LqZgdR13cNAYAbQA57o0zvORXSZa6lx1LIIfS+jmTj3dF3ZKG4Rj5ofR2AKV0+rXLXatfUndhy1eD3fGTaFO2cP7hGYHiC2MTEeh/mmS5ZD4h+zf6MrKPFTura5lsdyWfbYfDSjK01b7e5+vI5X0t68mYSJ7XDLZaHwXAsCCEwLaF3fosuz8/1aWiya0xqQdZtn6Do/pVsNXkeRuTUc29K1trz/ewIIzPc8sv+m+4hevYybK7XYXWnd1310ucKmDbXevOXu7Owd/AcH7W7F/cEIv9oIaDf9NuIyH7VcTMOff633ojItqBODi8hCTJo0CbrYc6JBE2rdX4vAdGdotqBVuU1HLhq1/P16wpYFXylLV7R9g5iITZMm9qoBbXUEEJgVsdbaDn09sjZGLctJtR3NqAaqBW01BBCYFXDWsFwLyKxNn8yvX7PRUorXw2hGrJqMZlQLviql6PbzvL3X9+NvLa0cHtrvGtYWlppnYDsCe1cRKzETO0vTmiPVhJafAJQzM9aNi/t7tiH5+/eT+f64DecvM2dQh3kx097CYmhpqolqQ8tLAIHJy3e+ebVlYld7z5baaS4zgpWaF0PL4W+qiTYWp+UlgMDk5Ws6tVALwdqcJZQ59GrNi6WYphonSqYIdX8egenOcKkFy/YDOkeIr0VLMTZ6UizFNNUstUnZ4PnlBBCY5Xw6P6vbAlLt8so2OZmyw/P/ELAwtdTmH4v8rw0BBKYNtQbvSc2/aL0L98g0AGp8qZimVvumamN0xcuWEEBglsDp+pQOok81neVMy0PAwtZSozzRrYdVw5/AeoAolSVzL/nIwzYfW6tlBMZKitdBAAKNCSAwjZHxBghAwEoAgbGS4nUQgEBjAghMY2S8AQIQsBJAYKykeB0EINCYAALTGBlvgAAErAQQGCspXgcBCDQmgMA0RsYbIAABK4G41xqtNAFWk5auAP5zEUBgcpE12t2MZyP9+1+UwYiLl1VGgK9IlRWMcCFQEwEEpqZqESsEKiOAwFRWMMKFQE0EEJiaqkWsEKiMAAJTWcEIFwI1EUBgaqoWsUKgMgIITGUFI1wI1ESABRiZq2U5PiNzCJiHQDECCExG9NoT9r//s500mDEMTEOgGAG+IhVDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUIIDDF0OMYAv4JIDD+a0yGEChGAIEphh7HEPBPAIHxX2MyhEAxAghMMfQ4hoB/AgiM/xqTIQSKEUBgiqHHMQT8E0Bg/NeYDCFQjAACUww9jiHgnwAC47/GZAiBYgQQmGLocQwB/wQQGP81JkMIFCOAwBRDj2MI+CeAwPivMRlCoBgBBKYYehxDwD8BBMZ/jckQAsUI/B/m95a6zS3tegAAAABJRU5ErkJggg==";
-async function chatMembersList(mid) {
- notify("Loading...", "#FFF", "#333");
- let member = (await Line.getSquareChatMembers(mid)).squareChatMembers;
- let members = [];
- for (let i = 0; i < member.length; i++) {
- const e = member[i];
- let data = {
- mid: e.squareMemberMid,
- name: e.displayName,
- };
- if (e.profileImageObsHash) {
- data.img = await getObsUrl(e.profileImageObsHash + "/preview");
- }
- if (!data.img) {
- data.img = defaltIMG;
- }
- members.push(data);
- }
- let data = {
- mid: mid,
- members: members,
- };
- $("#root > div > div > div:nth-child(4)").in(genMemberList(data));
-}
-
-function genMemberList(data) {
- function memberButton(data, index) {
- return div(
- {
- "class": "friendlistItem-module__item__1tuZn ",
- "data-mid": data.mid,
- "style": "position: absolute; left: 0px; top: " + (index * 57 + 20) + "px; height: 57px; width: 100%;",
- "$click": (...arg) => {
- buttonEvent("openProfileM", arg);
- },
- },
- div(
- {
- "class": "profileImage-module__thumbnail_wrap__0bK7m ",
- "data-mid": data.mid,
- "data-profile-image": "true",
- "style": "width: 43px; height: 43px; border-radius: 50%;",
- },
- button(
- {
- "type": "button",
- "class": "profileImage-module__button_profile__GqKue",
- },
- div(
- {
- "class": "profileImage-module__thumbnail_area__nqIpB",
- },
- span(
- {
- "class": "profileImage-module__thumbnail__Q6OsR",
- },
- img(
- {
- "src": data.img,
- "class": "",
- "loading": "lazy",
- "alt": "",
- "draggable": "false",
- },
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "friendlistItem-module__info__89Stz",
- },
- strong(
- {
- "class": "friendlistItem-module__name_box__fUKhX",
- "role": "",
- },
- span(
- {
- "class": "friendlistItem-module__text__YxSko",
- },
- pre(
- {},
- span(
- {},
- data.name,
- ),
- ),
- ),
- ),
- ),
- );
- }
- let members = [];
- data.members.forEach((e, i) => {
- members.push(memberButton(e, i));
- });
- return div(
- {
- "class": "memberPopup-module__popup__KtCXP ",
- "style": "min-width:300;",
- },
- div(
- {
- "class": "memberPopup-module__contents__7scEN",
- },
- div(
- {
- "class": "friendlist-module__list_wrap__IeJXY",
- "data-type": "invite",
- },
- div(
- {
- "class": "searchInput-module__input_box__vp6NF",
- },
- label(
- {
- "class": "searchInput-module__label__40CWI",
- },
- i(
- {
- "class": "icon searchInput-module__icon_search__amOMA",
- },
- svg(
- {
- "xmlns": "http://www.w3.org/2000/svg",
- "width": "24",
- "height": "24",
- "viewBox": "0 0 24 24",
- },
- g(
- {
- "fill": "none",
- "fill-rule": "evenodd",
- },
- g(
- {},
- g(
- {},
- g(
- {},
- g(
- {},
- g(
- {},
- path(
- {
- "d": "M0 0H20V20H0z",
- "transform":
- "translate(-261.000000, -95.000000) translate(181.000000, 54.000000) translate(74.000000, 34.000000) translate(6.000000, 7.000000) translate(2.000000, 2.000000)",
- },
- ),
- g(
- {
- "stroke": "#B7B7B7",
- "stroke-width": "1.5",
- "transform":
- "translate(-261.000000, -95.000000) translate(181.000000, 54.000000) translate(74.000000, 34.000000) translate(6.000000, 7.000000) translate(2.000000, 2.000000) translate(4.000000, 4.000000)",
- },
- circle(
- {
- "cx": "4.5",
- "cy": "4.5",
- "r": "4.5",
- "fill-rule": "nonzero",
- },
- ),
- path(
- {
- "stroke-linecap": "square",
- "d": "M8 8L11 11",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- input(
- {
- "class": "searchInput-module__input__ekGp7 ",
- "placeholder": "名前で検索",
- "maxlength": "20",
- "data-chatmid": data.mid,
- "value": "",
- "$input": (...arg) => {
- buttonEvent("searchMember", arg);
- },
- },
- ),
- button(
- {
- "type": "button",
- "class": "searchInput-module__button_reset__l2-td",
- "aria-label": "reset",
- "$click": (...arg) => {},
- },
- i(
- {
- "class": "icon searchInput-module__icon_reset__bPtuX",
- },
- svg(
- {
- "xmlns": "http://www.w3.org/2000/svg",
- "width": "24",
- "height": "24",
- "viewBox": "0 0 24 24",
- },
- g(
- {
- "fill": "none",
- "fill-rule": "evenodd",
- },
- g(
- {},
- g(
- {},
- g(
- {},
- g(
- {},
- path(
- {
- "d": "M0 0H24V24H0z",
- "transform":
- "translate(-1216.000000, -227.000000) translate(928.000000, 162.000000) translate(14.000000, 58.000000) translate(274.000000, 7.000000)",
- },
- ),
- path(
- {
- "fill": "#C8C8C8",
- "d": "M12 5c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7 3.134-7 7-7zm2.413 3.5L12 10.912 9.587 8.5 8.5 9.587 10.912 12 8.5 14.413 9.587 15.5 12 13.087l2.413 2.413 1.087-1.087L13.087 12 15.5 9.587 14.413 8.5z",
- "transform":
- "translate(-1216.000000, -227.000000) translate(928.000000, 162.000000) translate(14.000000, 58.000000) translate(274.000000, 7.000000)",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "friendlist-module__list__Z-8nt",
- },
- div(
- {
- "class": "friendlist-module__inner__d3xFH",
- "style": "position: relative; overflow: hidden;",
- },
- div(
- {
- "style": "position: absolute; width: 100%; height: 100%;",
- },
- div(
- {
- "style":
- "position: relative; height: 558px; width: 100%; overflow: overlay; will-change: transform; direction: ltr;",
- },
- div(
- {
- "style": "height: " + (data.members.length * 57 + 60) + "px; width: 100%;",
- },
- div(
- {
- "class": "categoryLayout-module__category_wrap__31191 ",
- "style":
- "position: absolute; left: 0px; top: 0px; height: 20px; width: 100%;",
- },
- button(
- {
- "class": "categoryLayout-module__button_category__nqIZM",
- "aria-expanded": "true",
- },
- span(
- {
- "class": "categoryLayout-module__title__iV725",
- },
- span(
- {
- "class": "categoryLayout-module__text__crUcb",
- },
- "メンバー",
- ),
- span(
- {
- "class": "categoryLayout-module__count__8h25Q",
- },
- data.members.length,
- ),
- ),
- i(
- {
- "class": "icon categoryLayout-module__icon_arrow__kdyor",
- },
- svg(
- {
- "xmlns": "http://www.w3.org/2000/svg",
- "width": "20",
- "height": "20",
- "viewBox": "0 0 20 20",
- },
- g(
- {
- "fill": "none",
- "fill-rule": "evenodd",
- },
- path(
- {
- "d": "M0 0H20V20H0z",
- },
- ),
- path(
- {
- "fill-rule": "nonzero",
- "stroke": "#C8C8C8",
- "stroke-linecap": "square",
- "stroke-width": "1.4",
- "d": "M7 11L7 5 13 5",
- "transform": "rotate(-135 10 8)",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ...members,
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- );
-}
-async function memberPopup(pid) {
- let data = await refreshProfile(pid);
- let data2 = await getProfile(pid, true);
- data.desc = JSON.stringify(data2, null, 2);
- let member = genProfilePopup(data);
- $("#modal-root").in(member);
- member.scrollIntoView();
-}
-function genProfilePopup(data) {
- return div(
- {
- "class": "profileModal-module__modal__QRrnT ",
- "role": "dialog",
- "aria-labelledby": "profile modal",
- "style": "position: absolute;z-index: 28;left: 0px;top: 0px;width: 100%;height: 100%;text-align: center;",
- },
- div(
- {
- "class": "profileModal-module__content__qKTEy",
- "style":
- "width: 300px;height: 400px;margin-right: auto;margin-left: auto;margin-top: 100;border: solid;background-color: #fff;border-color: black;",
- },
- button({
- "type": "button",
- "style": "margin-right: auto;font-size: 18px;margin-left: 10px;margin-top: 10px;",
- "$click": () => {
- document.querySelector("#modal-root").innerHTML = "";
- },
- }, "X"),
- div(
- {
- "class": "profileModal-module__info_area__VRAIt",
- "style": "height:100px",
- },
- div(
- {
- "class": "profileImage-module__thumbnail_wrap__0bK7m ",
- "data-mid": data.mid,
- "data-profile-image": "true",
- "style": "border-radius: 50%;cursor: default;margin: 0 0 0 0;",
- },
- div(
- {
- "class": "profileImage-module__thumbnail_area__nqIpB",
- "$click": (...arg) => {
- buttonEvent("openProfileImg", arg);
- },
- },
- span(
- {
- "class": "profileImage-module__thumbnail__Q6OsR",
- },
- img(
- {
- "src": data.img,
- "class": "",
- "loading": "lazy",
- "alt": "",
- "draggable": "false",
- },
- ),
- ),
- ),
- ),
- div(
- {
- "class": "profileModal-module__name_box__vJfbr",
- },
- button(
- {
- "class": "editButton-module__button_edit__GA02s ",
- "type": "button",
- "aria-pressed": "false",
- "data-ellipsis": "1",
- },
- span(
- {
- "class": "editButton-module__name__uQ-y5",
- },
- pre(
- {},
- span(
- {},
- data.name,
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "profileModal-module__description_box__Jb6O2",
- "style": "max-height:300;",
- },
- pre(
- {
- "class": "profileModal-module__description__hSNDU",
- "data-tooltip": "87f15f9f-0c36-4796-bf4e-f74d9f10fef5",
- "style": "text-align: left;user-select:text;",
- },
- data.desc,
- ),
- ),
- ),
- div(
- {
- "class": "profileModal-module__action_area__gN4d-",
- "data-mid": data.mid,
- },
- button(
- {
- "type": "button",
- "class": "profileModal-module__button_action__SmB4T",
- "$click": (...arg) => {
- buttonEvent("reportMember", arg);
- },
- },
- "通報",
- ),
- button(
- {
- "type": "button",
- "class": "profileModal-module__button_action__SmB4T",
- "$click": (...arg) => {
- buttonEvent("kickoutMember", arg);
- },
- },
- "強制退会",
- ),
- ),
- ),
- );
-}
-
-function genTxtPopup(data) {
- $("#modal-root").out.appendChild(div(
- {
- "class": "profileModal-module__modal__QRrnT ",
- "role": "dialog",
- "aria-labelledby": "profile modal",
- "style": "position: absolute;z-index: 28;left: 0px;top: 0px;width: 100%;height: 100%;text-align: center;",
- },
- div(
- {
- "class": "profileModal-module__content__qKTEy",
- "style":
- "width: 300px;height: 400px;margin-right: auto;margin-left: auto;margin-top: 100;border: solid;background-color: #fff;border-color: black;",
- },
- button({
- "type": "button",
- "style": "margin-right: auto;font-size: 18px;margin-left: 10px;margin-top: 10px;",
- "$click": () => {
- document.querySelector("#modal-root").innerHTML = "";
- },
- }, "X"),
- div(
- {
- "class": "profileModal-module__info_area__VRAIt",
- "style": "height:100px",
- },
- div(
- {
- "class": "profileModal-module__name_box__vJfbr",
- },
- span(
- {
- "class": "editButton-module__name__uQ-y5",
- },
- pre(
- {},
- span(
- {},
- data.name,
- ),
- ),
- ),
- ),
- div(
- {
- "class": "profileModal-module__description_box__Jb6O2",
- "style": "max-height:300;",
- },
- pre(
- {
- "class": "profileModal-module__description__hSNDU",
- "data-tooltip": "87f15f9f-0c36-4796-bf4e-f74d9f10fef5",
- "style": "text-align: left;user-select:text;",
- },
- data.desc,
- ),
- ),
- ),
- ),
- ));
- console.log(data);
-}
-
-function notify(text, color, bcolor, time = 5000) {
- let noti = li(
- {},
- div(
- {
- style: "background-color:" + bcolor + ";border-radius: 17.5px;user-select:text;",
- "$click": () => {
- $("#root > div > ul").out.innerHTML = "";
- },
- },
- pre(
- {
- style: "font-size:20px;padding:5px;color:" + color + ";",
- },
- text,
- ),
- ),
- );
- $("#root > div > ul").out.appendChild(noti);
- setTimeout(() => {
- $("#root > div > ul").out.removeChild(noti);
- }, time);
-}
-
-async function buildChatButton(squareChatResponseList = []) { //[getSquareChatResponse]からチャットリストのボタンを生成追加
- function list(inElm) {
- return div({ style: "height: " + 71 * squareChatResponseList.length + "px; width: 100%;" }, ...inElm);
- }
- let elms = [];
- for (let index = 0; index < squareChatResponseList.length; index++) {
- const element = squareChatResponseList[index];
- let elm = await squareChat2chatButton(element, index);
- observer.observe(elm);
- elms.push(elm);
- }
- let res = list(elms);
- $("#root > div > div > div.chatlist-module__chatlist_wrap__KtTpq > div.chatlist-module__chatlist__qruAE > div > div > div")
- .in(res);
- setInterval(() => {
- try {
- fetchEventUpdate();
- //更新開始
- } catch (error) {
- }
- }, 2000);
- return res;
-}
-async function buildChatButtonC(dataList = []) { //dataListからチャットリストのボタンを生成追加
- function list(inElm) {
- return div({ style: "height: " + 71 * dataList.length + "px; width: 100%;" }, ...inElm);
- }
- let elms = [];
- for (let index = 0; index < dataList.length; index++) {
- const element = await Line.getSquareChat(dataList[index]);
- let elm = await squareChat2chatButton(element);
- if (!elm) {
- continue;
- }
- observer.observe(elm);
- elms.push(elm);
- }
- let res = list(elms);
- $("#root > div > div > div.chatlist-module__chatlist_wrap__KtTpq > div.chatlist-module__chatlist__qruAE > div > div > div")
- .in(res);
- setInterval(() => {
- try {
- fetchEventUpdate(); //更新開始
- } catch (error) {
- }
- }, 2000);
- return res;
-}
-function fetchEventUpdate() { //fetchMyEvents fetchSquareChatEvents から表示を更新
- if (Line.SQ1.socket.post.readyState !== Line.SQ1.socket.post.OPEN) {
- Line.SQ1.reOpenSocket();
- notify("Network Error", "#fff", "#f00");
- return;
- }
- let mids = [];
- chatData.chatList.forEach((e, i) => {
- let is1 = true;
- mids.forEach((f) => {
- if (e.mid == f) {
- is1 = false;
- }
- });
- if (is1) {
- mids.push(e.mid);
- } else {
- chatData.chatList.splice(i, 1);
- }
- });
-
- UserCashe.setItem(Line.mid + ":chatsList", mids);
- //myEvent
- (async () => {
- function list(inElm) {
- return div({ style: "height: " + 71 * inElm.length + "px; width: 100%;" }, ...inElm);
- }
- let elms = [];
- if (!chatData.syncToken) {
- chatData.syncToken = (await Line.fetchMyEvents()).syncToken;
- }
- let res = await Line.timeout(() => Line.fetchMyEvents(chatData.syncToken), 3500);
- chatData.syncToken = res.syncToken;
- res.events.forEach(async (e) => {
- let chat;
- switch (e.type) {
- case 29:
- chat = await getChatdata(e.payload.notificationMessage.squareChatMid);
- let date = e.payload.notificationMessage.squareMessage.message.deliveredTime;
- date = new Date(date);
- date = date.getMonth() + 1 + "/" + date.getDate();
- chat.timeInt = e.payload.notificationMessage.squareMessage.message.deliveredTime;
- if (e.payload.notificationMessage.squareMessage.message.text) {
- chat.lastText = e.payload.notificationMessage.squareMessage.message.text;
- }
-
- if (e.payload.notificationMessage.unreadCount) {
- let unread = e.payload.notificationMessage.unreadCount;
- chat.unread = span({ class: "chatlistItem-module__message_count__FRt4s" }, unread);
- } else {
- chat.unread = "";
- }
- break;
- case 13:
- chat = await getChatdata(e.payload.notifiedUpdateSquareChatStatus.squareChatMid);
- chat.member = e.payload.notifiedUpdateSquareChatStatus.statusWithoutMessage.memberCount;
- if (e.payload.notifiedUpdateSquareChatStatus.statusWithoutMessage.unreadCount) {
- let unread = e.payload.notifiedUpdateSquareChatStatus.statusWithoutMessage.unreadCount;
- chat.unread = span({ class: "chatlistItem-module__message_count__FRt4s" }, unread);
- } else {
- chat.unread = "";
- }
- default:
- break;
- }
- });
- chatData.chatList.sort((a, b) => {
- return b.timeInt - a.timeInt;
- });
- chatData.chatList.forEach((e, i) => {
- e.index = i;
- elms.push(genChatButton(e));
- });
- let elm = list(elms);
- $("#root > div > div > div.chatlist-module__chatlist_wrap__KtTpq > div.chatlist-module__chatlist__qruAE > div > div > div")
- .in(elm);
-
- async function getChatdata(id) {
- for (let index = 0; index < chatData.chatList.length; index++) {
- const e = chatData.chatList[index];
- if (e.mid == id) {
- return e;
- }
- }
- let chat = await Line.getSquareChat(id);
- await squareChat2chatButton(chat, 0);
- return await getChatdata(id);
- }
- })();
-}
-
-async function squareChat2chatButton(squareChatResponse, index) { //getSquareChatと上からの順番からボタンを生成
- let lastText = "";
- let date = "";
- let unread = "";
- if (!squareChatResponse.squareChatStatus) {
- return;
- }
- if (squareChatResponse.squareChatStatus.lastMessage) {
- date = new Date(squareChatResponse.squareChatStatus.lastMessage.message.createdTime);
- date = date.getMonth() + 1 + "/" + date.getDate() + " " + date.getHours() + ":" + date.getMinutes();
- if (squareChatResponse.squareChatStatus.lastMessage.message.text) {
- lastText = squareChatResponse.squareChatStatus.lastMessage.message.text;
- }
- }
- if (squareChatResponse.squareChatStatus.otherStatus.unreadMessageCount) {
- unread = squareChatResponse.squareChatStatus.otherStatus.unreadMessageCount;
- unread = span({ class: "chatlistItem-module__message_count__FRt4s" }, unread);
- }
- let data = {
- mid: squareChatResponse.squareChat.squareChatMid,
- name: squareChatResponse.squareChat.name,
- member: squareChatResponse.squareChatStatus.otherStatus.memberCount,
- img: await getObsUrl(squareChatResponse.squareChat.chatImageObsHash),
- index: index,
- date: date,
- timeInt: squareChatResponse.squareChatStatus.lastMessage
- ? squareChatResponse.squareChatStatus.lastMessage.message.createdTime
- : 0,
- lastText: lastText,
- unread: unread,
- };
- chatData.chatList.push(data);
- return genChatButton(data);
-}
-
-function genChatButton(data) { //html生成部分
- return div(
- {
- "class": "chatlistItem-module__chatlist_item__MOwxh ",
- "aria-selected": "false",
- "aria-busy": "false",
- "aria-current": "true",
- "data-mid": data.mid,
- "style": "position: absolute; left: 0px; top: " + data.index * 71 + "px; height: 71px; width: 100%;",
- },
- div(
- {
- "class": "profileImage-module__thumbnail_wrap__0bK7m ",
- "data-mid": data.mid,
- "data-profile-image": "true",
- "style": "width: 53px; height: 53px; border-radius: 50%;",
- },
- button(
- {
- "type": "button",
- "class": "profileImage-module__button_profile__GqKue",
- },
- div(
- {
- "class": "profileImage-module__thumbnail_area__nqIpB",
- },
- span(
- {
- "class": "profileImage-module__thumbnail__Q6OsR",
- },
- img(
- {
- "src": data.img,
- "class": "",
- "loading": "lazy",
- "alt": "",
- "draggable": "false",
- },
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "chatlistItem-module__info__nHGhi",
- },
- strong(
- {
- "class": "chatlistItem-module__title_box__aDNJD",
- },
- span(
- {
- "class": "chatlistItem-module__text__daDD3",
- },
- pre(
- {},
- span(
- {},
- data.name,
- ),
- ),
- ),
- span(
- {
- "class": "chatlistItem-module__member_count__MbL2c",
- },
- "(" + data.member + ")",
- ),
- ),
- time(
- {
- "datetime": "Tue Mar 26 2024 14:20:07 GMT+0900 (日本標準時)",
- "class": "chatlistItem-module__date__tG-MV",
- },
- data.date,
- ),
- div(
- {
- "class": "chatlistItem-module__description__JH3NE",
- },
- p(
- {
- "class": "chatlistItem-module__text__daDD3",
- },
- span(
- {
- "data-message-id": "500966165850882385",
- },
- data.lastText,
- ),
- ),
- ),
- data.unread,
- ),
- button(
- {
- "role": "link",
- "type": "button",
- "aria-label": "Go chatroom",
- "class": "chatlistItem-module__button_chatlist_item__pcmtA",
- "$click": (...arg) => {
- buttonEvent("goChat", arg);
- },
- },
- ),
- );
-}
-
-var roomData = { //chat
- messageView: {
- dataList: [],
- elmList: [],
- },
- mymid: null,
- roomMid: null,
- followLatest: false,
- setting: {},
-};
-
-var URLcashe = localforage.createInstance({
- name: "URLcashe",
-});
-var MDataCashe = localforage.createInstance({
- name: "MDataCashe",
-});
-var ThriftCashe = localforage.createInstance({
- name: "ThriftCashe",
-});
-var UserCashe = localforage.createInstance({
- name: "UserCashe",
-});
-async function getMDataUrl(id) {
- let url = "https://obs-jp.line-apps.com/r/g2/m/" + id;
- let data = await MDataCashe.getItem(url);
- if (data) {
- return createObjectURL(url, data);
- } else {
- let res;
- try {
- res = await Line.proxyFetch(url, {
- "x-line-access": Line.authToken,
- "x-line-application": Line.SQ1.config.appName,
- });
- } catch (error) {
- }
- if (!res || !res.ok) {
- console.error("Error response at " + url);
- return "";
- }
- data = await res.blob();
- MDataCashe.setItem(url, data);
- return createObjectURL(url, data);
- }
-}
-async function getMPDataUrl(id) {
- let url = "https://obs-jp.line-apps.com/r/g2/m/" + id + "/preview";
- let data = await MDataCashe.getItem(url);
- if (data) {
- return createObjectURL(url, data);
- } else {
- let res;
- try {
- res = await Line.proxyFetch(url, {
- "x-line-access": Line.authToken,
- "x-line-application": Line.SQ1.config.appName,
- });
- } catch (error) {
- }
- if (!res || !res.ok) {
- console.error("Error response at " + url);
- return "";
- }
- data = await res.blob();
- MDataCashe.setItem(url, data);
- return createObjectURL(url, data);
- }
-}
-async function getMsgById(id, isElm) {
- let data = { txt: "このメッセージはありません" };
- if (isElm) {
- for (let index = 0; index < roomData.messageView.elmList.childNodes.length; index++) {
- const e = roomData.messageView.elmList.childNodes[index];
- if (e.dataset.id == id) {
- return e;
- }
- }
- return null;
- }
- for (let index = 0; index < roomData.messageView.dataList.length; index++) {
- const e = roomData.messageView.dataList[index];
- if (e.id == id) {
- if (e.text) {
- data.txt = e.text;
- data.profile = await getProfile(e._from);
- } else {
- data.txt = "";
- data.profile = await getProfile(e._from);
- }
- return data;
- }
- }
-
- if (!data.profile) {
- data.profile = { img: defaltIMG, mid: "", name: "" };
- }
- return data;
-}
-async function getObsUrl(obs) {
- let url = "https://obs.line-scdn.net/" + obs;
- let data = await URLcashe.getItem(url);
- if (data) {
- return createObjectURL(url, data);
- } else {
- let res;
- try {
- res = await fetch(url);
- } catch (error) {
- }
- if (!res || !res.ok) {
- console.error("Error response at " + url);
- res = await fetch(defaltIMG);
- }
- data = await res.blob();
- URLcashe.setItem(url, data);
- return createObjectURL(url, data);
- }
-}
-async function getSquareChatHistory(mid) {
- let prot = "squareChatHistory:" + mid;
- let data = await ThriftCashe.getItem(prot);
- if (data) {
- return data;
- } else {
- return null;
- }
-}
-async function setSquareChatHistory(mid, sync, history = []) {
- let prot = "squareChatHistory:" + mid;
- let data = await getSquareChatHistory(mid);
- if (data) {
- data = {
- syncToken: sync,
- history: [...data.history, ...history],
- };
- } else {
- data = {
- syncToken: sync,
- history: history,
- };
- }
- await ThriftCashe.setItem(prot, data);
-}
-async function refreshProfile(mid) {
- let prot = "squareMember:" + mid;
- await ThriftCashe.removeItem(prot);
- return await getProfile(mid);
-}
-async function getProfile(mid, raw) {
- if (mid.substring(0, 1) == "v") {
- return {
- name: "Auto-reply",
- img: await getObsUrl(
- "0hC0fMBLdfHB9bNA6h2cdjSGViQTEgRwUNJkwRLXxnSyp0DAxBNFVRfncwQykhAFJPY1YDK3g2RngkUAw/preview",
- ),
- mid: mid,
- };
- }
- let prot = "squareMember:" + mid;
- let data = await ThriftCashe.getItem(prot);
- if (data) {
- } else {
- let res = (await Line.getSquareMember(mid))[1];
- if (res.length == 1) {
- console.error("Error response at " + prot);
- return "";
- }
- let member = new lineType.SquareMember({
- squareMemberMid: res[1],
- squareMid: res[2],
- displayName: res[3],
- profileImageObsHash: res[4],
- ableToReceiveMessage: res[5],
- membershipState: res[7],
- role: res[8],
- revision: res[9],
- });
- data = member;
- ThriftCashe.setItem(prot, data);
- }
- if (raw) {
- return data;
- }
- let img = defaltIMG;
- if (data.profileImageObsHash) {
- img = await getObsUrl(data.profileImageObsHash + "/preview");
- }
- return { name: data.displayName, img: img, mid: data.squareMemberMid };
-}
-async function getStkDataUrl(id) {
- let url = "https://stickershop.line-scdn.net/stickershop/v1/sticker/" + id + "/android/sticker.png";
- let data = await URLcashe.getItem(url);
- if (data) {
- return URL.createObjectURL(data);
- } else {
- let res;
- try {
- res = await fetch(url);
- } catch (error) {
- }
- if (!res || !res.ok) {
- console.error("Error response at " + url);
- return "";
- }
- data = await res.blob();
- URLcashe.setItem(url, data);
- return URL.createObjectURL(data);
- }
-}
-async function buttonEvent(n, arg, add) {
- if (n == "goChat") {
- if (roomData.roomMid == arg[0].parentElement.dataset.mid) {
- notify("すでに開いています", "red", "#fff");
- return;
- }
- notify("Loading...", "#000", "#fff");
- roomData.roomMid = arg[0].parentElement.dataset.mid;
- await squareChat2chatroom(await Line.getSquareChat(arg[0].parentElement.dataset.mid));
- await initTalk(arg[0].parentElement.dataset.mid);
- updateChat();
- return;
- }
- if (n == "send") {
- if (roomData.command) {
- cRequest(arg[0].parentElement.parentElement.childNodes[0].childNodes[0].value);
- cResponse(await runCommand(" " + arg[0].parentElement.parentElement.childNodes[0].childNodes[0].value));
- }
- if (arg[0].parentElement.parentElement.childNodes[0].childNodes[0].value.substring(0, 4) == "$cmd") {
- notify(
- await runCommand(arg[0].parentElement.parentElement.childNodes[0].childNodes[0].value.substring(4)),
- "#fff",
- "#222",
- 7000,
- );
- return;
- }
- Line.sendTxtMessage(roomData.roomMid, arg[0].parentElement.parentElement.childNodes[0].childNodes[0].value);
- arg[0].parentElement.parentElement.childNodes[0].childNodes[0].value = "";
- return;
- }
- if (n == "viewReply") {
- let res = await getMsgById(arg[0].parentElement.dataset.messageId, true);
- if (res) {
- res.scrollIntoView();
- }
- return;
- }
- if (n == "chatScroll") {
- var scroll = arg[0].scrollTop;
- if (scroll > -1) {
- arg[0].parentElement.childNodes[1].dataset.hidden = "true";
- roomData.followLatest = true;
- } else {
- roomData.followLatest = false;
- arg[0].parentElement.childNodes[1].dataset.hidden = "false";
- }
- return;
- }
- if (n == "chatDown") {
- roomData.followLatest = true;
- arg[0].parentElement.childNodes[2].scrollTop = 0;
- return;
- }
- if (n == "openProfileM") {
- memberPopup(arg[0].dataset.mid);
- return;
- }
- if (n == "openProfile") {
- memberPopup(arg[0].parentElement.dataset.mid);
- return;
- }
- if (n == "closeChat") {
- roomData.roomMid = null;
- $("#root > div > div > div:nth-child(4)").out.innerHTML = "";
- return;
- }
- if (n == "memberView") {
- roomData.roomMid = null;
- chatMembersList(arg[0].parentElement.parentElement.parentElement.parentElement.dataset.mid);
- return;
- }
- if (n == "imgMsgView") {
- notify("画像を読み込み中...", "#fff", "green");
- open(
- await getMDataUrl(arg[0].parentElement.parentElement.dataset.messageId),
- "image",
- "popup,width=400,height=400",
- );
- return;
- }
- if (n == "videoMsgView") {
- notify("動画を読み込み中...", "#fff", "green");
- open(
- await getMDataUrl(arg[0].parentElement.parentElement.dataset.messageId),
- "video",
- "popup,width=400,height=400",
- );
- return;
- }
- if (n == "stkView") {
- open("https://store.line.me/stickershop/product/" + arg[0].dataset.stkPkgId);
- return;
- }
- if (n == "openProfileImg") {
- open(
- "https://obs.line-scdn.net/" +
- (await getProfile(arg[0].parentElement.dataset.mid, true)).profileImageObsHash,
- "image",
- "popup,width=400,height=400",
- );
- return;
- }
- if (n == "openConsole") {
- consoleRoom();
- return;
- }
- if (n == "msgAction") {
- genTxtPopup({ name: "Message Data", desc: JSON.stringify(add, null, 2) });
- return;
- }
- if (n == "eventView") {
- genTxtPopup({ name: "Event Data", desc: JSON.stringify(add, null, 2) });
- return;
- }
- if (n == "msgInput") {
- return;
- }
- console.log(n, arg);
-}
-async function runCommand(command) {
- console.log(command);
- command = command.split(" ");
- switch (command[1]) {
- case "viewRead":
- if (command[2] == "true") {
- roomData.setting.viewMkRead = true;
- return "viewMkRead : true";
- } else {
- roomData.setting.viewMkRead = false;
- return "viewMkRead : false";
- }
- case "allkick":
- return "👿";
- case "silent":
- return `${command[2]} : mode = Silent`;
- case "nosilent":
- return `${command[2]} : mode = Normal`;
- case "status":
- return `OpenChat-Web-Client : ${window.version} / ${window.versionCode}
-User-Name : ${Line.name}
-User-Mid : ${Line.mid}
-User-Device : ${Line.deviceName}
-SquareChatMid : ${roomData.commandMid ? roomData.commandMid : roomData.roomMid}
-MySquareMemberMid : ${roomData.mymid}`;
- case "cd":
- roomData.commandMid = command[2];
- roomData.mymid = null;
- return `SquareChatMid : ${roomData.commandMid}`;
- default:
- return "unknown command : " + command[1];
- }
-}
-function consoleRoom() {
- let data = {
- mymid: roomData.mymid,
- mid: roomData.roomMid,
- name: "Console",
- member: version,
- img: "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QBoRXhpZgAATU0AKgAAAAgABAEaAAUAAAABAAAAPgEbAAUAAAABAAAARgEoAAMAAAABAAMAAAExAAIAAAARAAAATgAAAAAAAJOjAAAD6AAAk6MAAAPocGFpbnQubmV0IDUuMC4xMwAA/+ICKElDQ19QUk9GSUxFAAEBAAACGAAAAAAEMAAAbW50clJHQiBYWVogAAAAAAAAAAAAAAAAYWNzcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAPbWAAEAAAAA0y0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJZGVzYwAAAPAAAAB0clhZWgAAAWQAAAAUZ1hZWgAAAXgAAAAUYlhZWgAAAYwAAAAUclRSQwAAAaAAAAAoZ1RSQwAAAaAAAAAoYlRSQwAAAaAAAAAod3RwdAAAAcgAAAAUY3BydAAAAdwAAAA8bWx1YwAAAAAAAAABAAAADGVuVVMAAABYAAAAHABzAFIARwBCAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9wYXJhAAAAAAAEAAAAAmZmAADypwAADVkAABPQAAAKWwAAAAAAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y1tbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAIBAQEBAQIBAQECAgICAgQDAgICAgUEBAMEBgUGBgYFBgYGBwkIBgcJBwYGCAsICQoKCgoKBggLDAsKDAkKCgr/2wBDAQICAgICAgUDAwUKBwYHCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgr/wAARCAABAAEDARIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD+f+igD//Z",
- inputName: "コマンド ",
- };
- let res = genChatroom(data);
- $("#root > div > div > div:nth-child(4)").in(res);
- if (!roomData.commandMid) {
- roomData.commandMid = roomData.roomMid;
- }
- roomData.command = true;
- roomData.roomMid = null;
- data = {
- isSelected: false,
- timeInt: new Date().getTime(),
- timeStr: new Date()
- .toLocaleTimeString()
- .substring(0, 5),
- profile: { img: defaltIMG, name: "console", mid: "vconsole" },
- mid: "vconsole",
- msgId: new Date().getTime(),
- contentType: 0,
- direction: "", //reverse
- msgGroup: "item",
- text: `chatCommand
-OpenChat-Web-Client : ${window.version} / ${window.versionCode}
-User-Name : ${Line.name}
-User-Mid : ${Line.mid}
-User-Device : ${Line.deviceName}
-SquareChatMid : ${roomData.commandMid}
-MySquareMemberMid : ${roomData.mymid}`,
- };
- appendMsgByData(data);
-}
-function cResponse(text) {
- data = {
- isSelected: false,
- timeInt: new Date().getTime(),
- timeStr: new Date()
- .toLocaleTimeString()
- .substring(0, 5),
- profile: { img: defaltIMG, name: "console", mid: "vconsole" },
- mid: "vconsole",
- msgId: new Date().getTime(),
- contentType: 0,
- direction: "", //reverse
- msgGroup: "item",
- text: text,
- };
- appendMsgByData(data);
-}
-function cRequest(text) {
- data = {
- isSelected: false,
- timeInt: new Date().getTime(),
- timeStr: new Date()
- .toLocaleTimeString()
- .substring(0, 5),
- profile: { img: defaltIMG, name: "console", mid: "vconsole" },
- mid: "vconsole",
- msgId: new Date().getTime(),
- contentType: 0,
- direction: "reverse", //
- msgGroup: "item",
- text: text,
- };
- appendMsgByData(data);
-}
-function appendMsgByData(data) {
- let dom = genMsg(data);
- roomData.messageView.elmList.prepend(dom);
- if (roomData.followLatest) {
- dom.scrollIntoView();
- }
- observer.observe(dom);
-}
-async function squareChat2chatroom(squareChatResponse) {
- roomData.messageView.dataList = [];
- roomData.commandMid = null;
- roomData.command = false;
- roomData.roomMid = squareChatResponse.squareChat.squareChatMid;
- let data = {
- mymid: squareChatResponse.squareChatMember.squareMemberMid,
- mid: squareChatResponse.squareChat.squareChatMid,
- name: squareChatResponse.squareChat.name,
- member: squareChatResponse.squareChatStatus.otherStatus.memberCount,
- img: await getObsUrl(squareChatResponse.squareChat.chatImageObsHash),
- inputName: (await getProfile(squareChatResponse.squareChatMember.squareMemberMid)).name + "として",
- };
- let res = genChatroom(data);
- $("#root > div > div > div:nth-child(4)").in(res);
- return res;
-}
-function genChatroom(data) {
- let mlist = div(
- {
- "class": "message_list",
- "role": "log",
- "data-mymid": data.mymid,
- "$scroll": (...arg) => {
- buttonEvent("chatScroll", arg);
- },
- "style": "background-color:rgba(0,0,0,0.2)",
- },
- );
- roomData.mymid = data.mymid;
- roomData.messageView.elmList = mlist;
- let notifyMsg = div({});
- roomData.notifyMsg = notifyMsg;
- return div(
- {
- "class": "chatroom-module__chatroom__eVUaK ",
- "data-mid": data.mid,
- "data-font-size": "normal",
- "data-is-dropzone": "true",
- },
- div(
- {
- "class": "chatroomHeader-module__header__ihDT2",
- },
- div(
- {
- "class": "chatroomHeader-module__inner__0P5fp",
- },
- div(
- {
- "class": "chatroomHeader-module__info__2my0W",
- },
- button(
- {
- "type": "button",
- "class": "chatroomHeader-module__button_name__US7lb",
- "aria-controls": "member_popup",
- "aria-haspopup": "false",
- "aria-expanded": "false",
- "$click": (...arg) => {
- buttonEvent("memberView", arg);
- },
- },
- strong(
- {
- "class": "chatroomHeader-module__name__t-K11",
- },
- pre(
- {},
- span(
- {},
- data.name,
- ),
- ),
- ),
- span(
- {
- "class": "chatroomHeader-module__member_count__s6hqu",
- },
- "(" + data.member + ")",
- ),
- ),
- button(
- {
- "class": "chatroomHeader-module__button_alarm__dBqwP",
- "data-tooltip": "通知オフ",
- "$click": (...arg) => {
- buttonEvent("chatNotiDisable", arg);
- },
- },
- i(
- {
- "class": "icon chatroomHeader-module__icon_alarm__tgjw2",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "7.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "m8.377 7.845 5.004-4.665c.419-.391 1.119-.103 1.119.46v16.72c0 .563-.699.851-1.119.46l-5.004-4.665H2.661a.654.654 0 0 1-.654-.545L2 15.515v-7.03a.65.65 0 0 1 .661-.64h5.716zm9.37 1.243a4.185 4.185 0 0 0-.725-.57l-.702 1.09.175.118A2.793 2.793 0 0 1 16.819 14c-.153.15-.32.281-.498.392l.701 1.09.192-.127c.19-.133.368-.28.533-.443a4.068 4.068 0 0 0 0-5.824zM18.637 6c.452.28.87.61 1.25.983a7.008 7.008 0 0 1 0 10.034c-.305.3-.634.57-.983.809L18.64 18l-.704-1.09c.37-.23.712-.5 1.023-.805a5.735 5.735 0 0 0 0-8.21 5.874 5.874 0 0 0-.753-.626l-.27-.179.701-1.09z",
- },
- ),
- ),
- ),
- ),
- ),
- button(
- {
- "class": "chatroomHeader-module__button_popup__tcF1V",
- "data-tooltip": "閉じる",
- "$click": (...arg) => {
- buttonEvent("closeChat", arg);
- },
- },
- "X",
- ),
- ),
- div(
- {
- "class": "chatroomHeader-module__action_group__k8w1P",
- },
- button(
- {
- "type": "button",
- "aria-label": "more button",
- "data-tooltip": "ノート",
- "class": "chatroomHeader-module__button_more__9rz-2",
- "aria-haspopup": "true",
- "$click": (...arg) => {
- buttonEvent("noteView", arg);
- },
- },
- i(
- {
- "class": "icon chatroomHeader-module__icon_more__Q8OVO",
- },
- svg(
- {
- "xmlns": "http://www.w3.org/2000/svg",
- "height": "2em",
- "fill": "#fff",
- "viewBox": "0 0 20 20",
- },
- g(
- {
- "stroke": "#000",
- "stroke-width": "1.5",
- },
- path(
- {
- "d": "M3.75 4c0-.69.56-1.25 1.25-1.25h13c.69 0 1.25.56 1.25 1.25v14.004c0 .69-.56 1.25-1.25 1.25H5c-.69 0-1.25-.56-1.25-1.25V4zM8.523 8.026h5.954M8.523 10.979h5.954M8.523 13.979h5.954",
- },
- ),
- ),
- defs(
- {},
- clipPath(
- {
- "id": "bcclip0_1_5447",
- },
- path(
- {
- "fill": "currentColor",
- "transform": "translate(3 2)",
- "d": "M0 0h17v18H0z",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- button(
- {
- "type": "button",
- "aria-label": "more button",
- "class": "chatroomHeader-module__button_more__9rz-2",
- "aria-haspopup": "true",
- "$click": (...arg) => {
- buttonEvent("chatAction", arg);
- },
- },
- i(
- {
- "class": "icon chatroomHeader-module__icon_more__Q8OVO",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M12 16.4722c.829 0 1.5.671 1.5 1.5 0 .311-.094.599-.256.838-.054.08-.116.155-.183.223a1.499 1.499 0 0 1-1.061.439c-.414 0-.789-.168-1.061-.439a1.5739 1.5739 0 0 1-.183-.223 1.487 1.487 0 0 1-.256-.838c0-.829.671-1.5 1.5-1.5ZM12 10.5c.829 0 1.5.671 1.5 1.5s-.671 1.5-1.5 1.5-1.5-.671-1.5-1.5.671-1.5 1.5-1.5Zm0-5.9722c.829 0 1.5.672 1.5 1.5 0 .829-.671 1.5-1.5 1.5s-1.5-.671-1.5-1.5c0-.828.671-1.5 1.5-1.5Z",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "chatroomContent-module__content_area__gK6db ",
- "style": "background-image:url(" + data.img +
- ");background-size: 100% auto;background-position: center;height:50vh;",
- },
- ul(
- {
- "class": "ToastContainer-module__toast-list__QAniw",
- "style": "z-index: 100;",
- },
- ),
- button(
- {
- "type": "button",
- "aria-label": "Scroll down",
- "class": "scrollDownButton-module__button_scroll_down__-XrLT",
- "data-hidden": "true",
- "$click": (...arg) => {
- buttonEvent("chatDown", arg);
- },
- },
- i(
- {
- "class": "icon scrollDownButton-module__icon_arrow__6We-I",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "5.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "m13 3.6245-.0002 13.046 5.7122-5.4163 1.3762 1.4512L12 20.3754l-8.0882-7.67 1.3762-1.4512 5.7118 5.4163L11 3.6245h2Z",
- },
- ),
- ),
- ),
- ),
- ),
- mlist,
- notifyMsg,
- ),
- div(
- {
- "class": "chatroomEditor-module__editor_area__1UsgR",
- },
- div(
- {
- "data-is-empty": "true",
- "class": "text chatroomEditor-module__textarea__yKTlH",
- spellcheck: "false",
- autofocus: "",
- maxlength: "10000",
- placeholder: "メッセージを入力",
- },
- textarea(
- {
- "part": "input",
- "class": "input ",
- "placeholder": data.inputName + "メッセージを入力",
- "maxlength": "10000",
- "autofocus": "",
- "style":
- 'max-width: 100%; min-width: 100%;max-height:150%;--inherited-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", helvetica, "Hiragino Sans", arial, "MS PGothic", sans-serif; --webfont-family: F2607980855;',
- "$input": (...arg) => {
- buttonEvent("msgInput", arg);
- },
- },
- ),
- div(
- {
- "class": "cover",
- "part": "cover",
- "style":
- '--inherited-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", helvetica, "Hiragino Sans", arial, "MS PGothic", sans-serif; --webfont-family: F2607980855;',
- },
- ),
- ),
- div(
- {
- "class": "actionGroup-module__action_box__-HA8N ",
- },
- button(
- {
- "type": "button",
- "aria-label": "Send file",
- "class": "actionGroup-module__button_action__VwNgx",
- "data-type": "file",
- "data-tooltip": "ファイル送信",
- "data-tooltip-placement": "top-start",
- "$click": (...arg) => {
- buttonEvent("sendFile", arg);
- },
- },
- i(
- {
- "class": "icon",
- },
- svg(
- {
- "width": "24",
- "height": "24",
- "viewBox": "0 0 24 24",
- "fill": "none",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- path(
- {
- "d": "M11.479 4.971c1.664-1.925 4.658-2.24 6.686-.702.988.749 1.603 1.823 1.73 3.021a4.32 4.32 0 0 1-.908 3.123l-.156.19-8.75 10.125-1.1-.834 8.78-10.158c.566-.655.828-1.47.74-2.3A3.009 3.009 0 0 0 17.3 5.341c-1.382-1.049-3.414-.88-4.615.352l-.134.147-6.762 7.828a1.86 1.86 0 0 0-.458 1.421c.054.513.316.971.744 1.295a2.16 2.16 0 0 0 1.54.418 2.17 2.17 0 0 0 1.296-.597l.123-.131 6.763-7.83a.707.707 0 0 0-.109-1.042.885.885 0 0 0-1.098.046l-.078.078-5.367 6.213-1.043-.954 5.34-6.128a2.316 2.316 0 0 1 3.113-.326 2.034 2.034 0 0 1 .415 2.854l-.102.127-6.763 7.83a3.579 3.579 0 0 1-2.348 1.21 3.578 3.578 0 0 1-2.55-.696 3.192 3.192 0 0 1-1.269-2.22 3.176 3.176 0 0 1 .638-2.26l.142-.176 6.762-7.829z",
- "fill": "#303030",
- },
- ),
- ),
- ),
- ),
- button(
- {
- "type": "button",
- "aria-label": "Select sticker",
- "class": "actionGroup-module__button_action__VwNgx",
- "data-type": "sticker",
- "data-tooltip": "スタンプ",
- "data-tooltip-placement": "top-end",
- "$click": (...arg) => {
- buttonEvent("sendStk", arg);
- },
- },
- i(
- {
- "class": "icon",
- },
- svg(
- {
- "width": "24",
- "height": "24",
- "viewBox": "0 0 24 24",
- "fill": "none",
- "xmlns": "http://www.w3.org/2000/svg",
- },
- g(
- {
- "opacity": "0.01",
- "fill": "#fff",
- },
- path(
- {
- "d": "M0 0h24v24H0z",
- },
- ),
- path(
- {
- "opacity": "0.7",
- "d": "M2 2h20v20H2z",
- },
- ),
- ),
- path(
- {
- "d": "M14.843 13.17a.624.624 0 0 0-.853.228 2.76 2.76 0 0 1-4.78 0 .624.624 0 1 0-1.08.625 4.008 4.008 0 0 0 6.94 0 .624.624 0 0 0-.227-.852z",
- "fill": "#303030",
- },
- ),
- circle(
- {
- "cx": "14.266",
- "cy": "10.464",
- "r": "0.96",
- "fill": "#303030",
- },
- ),
- circle(
- {
- "cx": "8.934",
- "cy": "10.464",
- "r": "0.96",
- "fill": "#303030",
- },
- ),
- path(
- {
- "fill-rule": "evenodd",
- "clip-rule": "evenodd",
- "d": "M11.6 3.22a8.88 8.88 0 1 0 8.88 8.88 8.89 8.89 0 0 0-8.88-8.88zm0 16.512a7.632 7.632 0 1 1 7.632-7.632 7.64 7.64 0 0 1-7.632 7.632z",
- "fill": "#303030",
- },
- ),
- path(
- {
- "d": "M11.6 3.22v-.1.1zm8.88 8.88h.1-.1zm-8.88 7.632v.1-.1zm7.632-7.632h.1-.1zM11.6 3.12a8.98 8.98 0 0 0-8.98 8.98h.2a8.78 8.78 0 0 1 8.78-8.78v-.2zM2.62 12.1a8.98 8.98 0 0 0 8.98 8.98v-.2a8.78 8.78 0 0 1-8.78-8.78h-.2zm8.98 8.98a8.98 8.98 0 0 0 8.98-8.98h-.2a8.78 8.78 0 0 1-8.78 8.78v.2zm8.98-8.98a8.99 8.99 0 0 0-8.98-8.98v.2a8.79 8.79 0 0 1 8.78 8.78h.2zm-8.98 7.532a7.532 7.532 0 0 1-6.96-4.649l-.184.077a7.732 7.732 0 0 0 7.144 4.772v-.2zm-6.96-4.649a7.532 7.532 0 0 1 1.633-8.209l-.142-.141a7.732 7.732 0 0 0-1.675 8.427l.185-.077zm1.633-8.209a7.532 7.532 0 0 1 8.209-1.633l.076-.185a7.732 7.732 0 0 0-8.427 1.677l.142.141zm8.209-1.633a7.532 7.532 0 0 1 4.65 6.959h.2a7.732 7.732 0 0 0-4.774-7.144l-.076.185zm4.65 6.959a7.54 7.54 0 0 1-7.532 7.532v.2a7.74 7.74 0 0 0 7.731-7.732h-.2z",
- "fill": "#303030",
- },
- ),
- ),
- ),
- ),
- button(
- {
- "type": "button",
- "aria-label": "Select sticker",
- "class": "actionGroup-module__button_action__VwNgx",
- "data-type": "send",
- "data-tooltip": "送信",
- "data-tooltip-placement": "top-end",
- "$click": (...arg) => {
- buttonEvent("send", arg);
- },
- },
- i(
- {
- "class": "icon",
- "style": "color:#007aff;",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "15.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "m20.1864 11.0044-15.477-7.736a1.1091 1.1091 0 0 0-1.165.105c-.338.254-.503.671-.427 1.087l1.274 7.04h8.108v1h-8.119l-1.263 7.039c-.076.417.089.833.427 1.087.198.148.432.224.667.224.169 0 .34-.039.499-.118l15.476-7.737c.379-.19.614-.571.614-.995 0-.425-.235-.806-.614-.996Z",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- );
-}
-
-const observer = new IntersectionObserver((entries) => {
- for (const e of entries) {
- if (e.isIntersecting) {
- e.target.setAttribute("style", "");
- } else {
- e.target.setAttribute("style", "visibility:hidden;");
- }
- }
-});
-
-var fileMenu = "";
-
-async function Message2Elm(message) {
- let date = new Date(message.deliveredTime);
- let data = {
- isSelected: false,
- timeInt: message.deliveredTime,
- timeStr: date.getHours() + ":" + date.getMinutes(),
- profile: await getProfile(message._from),
- mid: message._from,
- msgId: message.id,
- rId: message.relatedMessageId,
- contentType: message.contentType,
- direction: "",
- msgGroup: "",
- };
-
- if (data.mid == roomData.mymid) {
- data.direction = "reverse";
- }
- if (data.rId && (message.relatedMessageServiceCode == 2) && (message.messageRelationType == 3)) {
- data.reply = await getMsgById(data.rId);
- }
- let add;
-
- if (message.contentMetadata && message.contentMetadata.UNSENT == "true") {
- return [genSysMsg({
- event: {
- timeStr: data.timeStr,
- arg: message,
- text: data.profile.name + "が送信取り消ししたメッセージ",
- },
- })];
- }
-
- switch (message.contentType) {
- case 0: //t
- add = {
- text: [message.text],
- emoji: message.contentMetadata ? message.contentMetadata.REPLACE : null,
- mention: message.contentMetadata ? message.contentMetadata.MENTION : null,
- };
- data = { ...data, ...add };
- break;
- case undefined: //t
- add = {
- text: [message.text],
- emoji: message.contentMetadata ? message.contentMetadata.REPLACE : null,
- mention: message.contentMetadata ? message.contentMetadata.MENTION : null,
- };
- data = { ...data, ...add };
- break;
- case 1: //i
- add = {
- data: {
- preview: await getMPDataUrl(message.id),
- },
- };
- data = { ...data, ...add };
- break;
- case 2: //v
- add = {
- data: {
- preview: await getMPDataUrl(message.id),
- },
- };
- data = { ...data, ...add };
- break;
- case 3: //a
- add = {
- data: await getMDataUrl(message.id),
- };
- data = { ...data, ...add };
- break;
- case 7: //st
- add = {
- img: await getStkDataUrl(message.contentMetadata.STKID),
- stkId: message.contentMetadata.STKID,
- stkPId: message.contentMetadata.STKPKGID,
- };
- data = { ...data, ...add };
- break;
- case 14: //fi
- break;
- case 16: //note
- add = {
- text: message.text,
- url: message.contentMetadata.postEndUrl,
- createBy: message.contentMetadata.officialName,
- };
- data = { ...data, ...add };
- break;
- break;
- case 22: //fl
- add = {
- text: message.contentMetadata.ALT_TEXT,
- flex: message.contentMetadata.FLEX_JSON,
- };
- data = { ...data, ...add };
- break;
- default:
- break;
- }
-
- return [genMsg(data, message), data, genMsg]; //elm data func
-}
-
-function genSysMsg(data, raw) {
- if (data.date) {
- return div(
- {
- "class": "messageDate-module__date_wrap__I4ily ",
- "data-selected": "false",
- },
- time(
- {
- "class": "messageDate-module__date__pDnK3",
- },
- data.date,
- ),
- );
- } else if (data.event) {
- return div(
- {
- "class": "systemMessage-module__message__yIiOJ ",
- "data-flexible": "true",
- "data-selected": "false",
- "data-timestamp": data.event.timeStr,
- "$click": (data.event.arg
- ? (...arg) => {
- setTimeout(() =>
- genTxtPopup({ name: "Event Data", desc: JSON.stringify(data.event.arg, null, 2) })
- );
- }
- : data.event.onclick),
- },
- div(
- {
- "class": "systemMessage-module__text__7T3Lj",
- },
- pre(
- {},
- time(
- {
- "class": "systemMessage-module__date__o1LDL",
- "style": "color:#fff;",
- },
- data.event.timeStr,
- ),
- span(
- { "style": "color:#fff;" },
- data.event.text,
- ),
- ),
- ),
- );
- }
-}
-function genMsg(data = {}, raw) {
- return div(
- {
- "class": "message-module__message__7odk3 messageLayout-module__message__YVDhk ",
- "data-selected": data.isSelected,
- "data-timestamp": data.timeInt,
- "data-message-content-prefix": data.timeStr + " " + data.profile.name,
- "data-mid": data.mid,
- "data-group": data.msgGroup,
- "data-direction": data.direction,
- "data-id": data.msgId,
- },
- div(
- {
- "class": "thumbnail profileImage-module__thumbnail_wrap__0bK7m ",
- "data-mid": data.mid,
- "data-profile-image": "true",
- "style": "border-radius: 50%;",
- },
- button(
- {
- "type": "button",
- "class": "profileImage-module__button_profile__GqKue",
- "$click": (...arg) => {
- buttonEvent("openProfile", arg);
- },
- },
- div(
- {
- "class": "profileImage-module__thumbnail_area__nqIpB",
- },
- span(
- {
- "class": "profileImage-module__thumbnail__Q6OsR",
- },
- img(
- {
- "src": data.profile.img,
- "class": "",
- "loading": "lazy",
- "alt": "",
- "draggable": "false",
- },
- ),
- ),
- ),
- ),
- ),
- pre(
- {
- "class": "username-module__username__vGQGj",
- "style": "color:#fff;",
- },
- fuchi(data.profile.name),
- ),
- div(
- {
- "class": "messageLayout-module__content__PGz66",
- },
- div(
- {
- "class": "message-module__content__OuUCi",
- },
- div(
- {
- "class": "message-module__content_inner__j-iko",
- },
- msgMain(data, raw),
- div(
- {
- "class": "metaInfo-module__meta__F2Lfn ",
- },
- span(
- {
- "class": "metaInfo-module__read_count__8-U6j",
- },
- ),
- time(
- {
- "class": "metaInfo-module__send_time__-3Q6-",
- "style": "color:#fff;",
- },
- fuchi(data.timeStr),
- ),
- ),
- ),
- ),
- div(
- {
- "class": "reactionBubblelist-module__reaction_bubble_list__eV9o2 ",
- },
- ),
- fileMenu,
- ),
- "",
- );
-}
-function msgMain(data, raw) {
- fileMenu = "";
- switch (data.contentType) {
- case 0: //txt
- if (data.reply) {
- return replyBox(data, textMsg(data));
- } else {
- return textMsg(data);
- }
- break;
- case undefined: //txt
- if (data.reply) {
- return replyBox(data, textMsg(data));
- } else {
- return textMsg(data);
- }
- break;
- case 1: //img
- return imgMsg(data);
- case 2: //video
- return videoMsg(data);
- case 3: //audio
- return audioMsg(data);
- case 7: //sticker
- return stickerMsg(data);
- case 14: //file
- break;
- case 16: //note
- return noteMessage(data);
- case 22: //flex
- return flexMsg(data);
- default:
- break;
- }
- function noteMessage(data) {
- if (!data.text) {
- data.text = "";
- }
- let text = ["ノート\n", data.text, "\n", a({ href: data.url }, "ノートを見る")];
- return div(
- {
- "class": "textMessageContent-module__content_wrap__238E1 ",
- "data-message-id": data.msgId,
- "$contextmenu": (...arg) => {
- buttonEvent("msgAction", arg, raw);
- },
- "data-direction": data.direction,
- },
- pre(
- {
- "class": "textMessageContent-module__text__EFwEN",
- },
- span(
- {
- "data-message-content": "",
- "data-is-message-text": "true",
- },
- ...text,
- ),
- ),
- );
- }
- function textMsg(data) {
- if (!data.text) {
- data.text = [""];
- }
- if (data.mention) {
- let mention = JSON.parse(data.mention);
- let txt = [];
- let otxt = data.text[0];
- mention.MENTIONEES.forEach((e, i, l) => {
- let oE;
- if (l[i - 1]) {
- oE = Number(l[i - 1].E);
- } else {
- oE = 0;
- }
-
- if (i == (l.length - 1)) {
- txt.push(otxt.substring(oE, Number(e.S)));
- txt.push(strong(
- {
- "class": "mention",
- "data-mid": e.M,
- "$click": (...arg) => {
- buttonEvent("openProfileM", arg);
- },
- },
- otxt.substring(Number(e.S), Number(e.E)),
- ));
- txt.push(otxt.substring(Number(e.E)));
- } else {
- txt.push(otxt.substring(oE, Number(e.S)));
- txt.push(strong(
- {
- "class": "mention",
- "data-mid": e.M,
- "$click": (...arg) => {
- buttonEvent("openProfileM", arg);
- },
- },
- otxt.substring(Number(e.S), Number(e.E)),
- ));
- }
- });
- data.text = txt;
- } else if (data.emoji) {
- let emoji = JSON.parse(data.emoji);
- let txt = [];
- let otxt = data.text[0];
- emoji.sticon.resources.forEach((e, i, l) => {
- let oE;
- if (l[i - 1]) {
- oE = l[i - 1].E;
- } else {
- oE = 0;
- }
-
- if (i == (l.length - 1)) {
- txt.push(otxt.substring(oE, e.S));
- txt.push(span(
- {
- "class": "emoji-wrap",
- "data-tooltip": "",
- "data-tooltip-is-html": "true",
- "data-tooltip-is-preserved": "true",
- "data-emoji": e.productId + ":" + e.sticonId,
- "$click": (...arg) => {
- buttonEvent("emojiView", arg);
- },
- },
- img(
- {
- "src":
- `https://stickershop.line-scdn.net/sticonshop/v1/sticon/${e.productId}/android/${e.sticonId}.png`,
- "class": "emoji",
- "alt": "(emoji)",
- "loading": "lazy",
- },
- ),
- ));
- txt.push(otxt.substring(e.E));
- } else {
- txt.push(otxt.substring(oE, e.S));
- txt.push(span(
- {
- "class": "emoji-wrap",
- "data-tooltip": "",
- "data-tooltip-is-html": "true",
- "data-tooltip-is-preserved": "true",
- "data-emoji": e.productId + ":" + e.sticonId,
- "$click": (...arg) => {
- buttonEvent("emojiView", arg);
- },
- },
- img(
- {
- "src":
- `https://stickershop.line-scdn.net/sticonshop/v1/sticon/${e.productId}/android/${e.sticonId}.png`,
- "class": "emoji",
- "alt": "(emoji)",
- "loading": "lazy",
- },
- ),
- ));
- }
- });
- data.text = txt;
- }
- return div(
- {
- "class": "textMessageContent-module__content_wrap__238E1 ",
- "data-message-id": data.msgId,
- "$contextmenu": (...arg) => {
- buttonEvent("msgAction", arg, raw);
- },
- "data-direction": data.direction,
- },
- pre(
- {
- "class": "textMessageContent-module__text__EFwEN",
- "style": "max-height: 500px;overflow-y: auto;",
- },
- span(
- {
- "data-message-content": "",
- "data-is-message-text": "true",
- },
- ...data.text,
- ),
- ),
- );
- }
-
- function replyBox(data, index) {
- return div(
- {
- "class": "replyMessageContent-module__content_wrap__D0K-5 ",
- "data-type": "",
- "data-content-type": "",
- "data-message-id": data.rId,
- },
- button(
- {
- "type": "button",
- "class": "replyMessageContent-module__button_move__Jo33w",
- "aria-label": "See in chat",
- "$click": (...arg) => {
- buttonEvent("viewReply", arg);
- },
- },
- div(
- {
- "class": "replyMessageContent-module__message__0FNkK messageLayout-module__message__YVDhk ",
- },
- div(
- {
- "class": "thumbnail profileImage-module__thumbnail_wrap__0bK7m ",
- "data-mid": data.reply.profile.mid,
- "data-profile-image": "true",
- "style": "border-radius: 50%; cursor: default;",
- },
- div(
- {
- "class": "profileImage-module__thumbnail_area__nqIpB",
- },
- span(
- {
- "class": "profileImage-module__thumbnail__Q6OsR",
- },
- img(
- {
- "src": data.reply.profile.img,
- "class": "",
- "loading": "lazy",
- "alt": "",
- "draggable": "false",
- },
- ),
- ),
- ),
- ),
- pre(
- {
- "class": "username-module__username__vGQGj",
- },
- span(
- {},
- data.reply.profile.name,
- ),
- ),
- div(
- {
- "class": "messageLayout-module__content__PGz66",
- },
- p(
- {
- "class": "replyMessageContent-module__text__0T50-",
- },
- span(
- {},
- data.reply.txt,
- ),
- ),
- ),
- "",
- ),
- ),
- index,
- );
- }
- function imgMsg(data) {
- return div(
- {
- "class": "imageMessageContent-module__content_wrap__bT-Si ",
- "data-type": "",
- },
- div(
- {
- "class": "imageMessageContent-module__image_group__ZOeAa",
- },
- div(
- {
- "class": "imageMessageContent-module__item__fJDih ",
- "data-message-id": data.msgId,
- },
- div(
- {
- "class": "imageMessageContent-module__thumbnail__z4GO8",
- },
- button(
- {
- "type": "button",
- "class": "imageMessageContent-module__button_view__4y-jN",
- "aria-label": "Show image",
- "data-index": "0",
- "$click": (...arg) => {
- buttonEvent("imgMsgView", arg);
- },
- },
- img(
- {
- "alt": "",
- "src": data.data.preview,
- "class": "",
- "loading": "lazy",
- "draggable": "false",
- },
- ),
- ),
- ),
- ),
- ),
- );
- }
- function videoMsg(data) {
- return div(
- {
- "class": "videoMessageContent-module__content_wrap__ffvJq ",
- "data-message-id": data.msgId,
- },
- div(
- {
- "class": "videoMessageContent-module__thumbnail__Va9Ie",
- },
- button(
- {
- "type": "button",
- "class": "videoMessageContent-module__button_view__qMX7E",
- "aria-label": "view video",
- "$click": (...arg) => {
- buttonEvent("videoMsgView", arg);
- },
- },
- img(
- {
- "alt": "",
- "src": data.data.preview,
- "class": "",
- "loading": "lazy",
- "draggable": "false",
- },
- ),
- div(
- {
- "class": "videoMessageContent-module__info__j528-",
- },
- i(
- {
- "class": "icon videoMessageContent-module__icon_play__N7WFP",
- },
- svg(
- {
- "height": "1em",
- "fill": "currentColor",
- "viewBox": "0 0 20 20",
- "xmlns": "http://www.w3.org/2000/svg",
- "data-laicon-version": "10.0",
- },
- g(
- {
- "transform": "translate(-2 -2)",
- },
- path(
- {
- "d": "M18.105 11.437a.665.665 0 0 1 0 1.126L7.412 19.29a.665.665 0 0 1-1.02-.563V5.274a.665.665 0 0 1 1.02-.563l10.693 6.726z",
- },
- ),
- ),
- ),
- ),
- ),
- ),
- ),
- );
- }
- function audioMsg(data) {
- return div(
- {
- "class": "textMessageContent-module__content_wrap__238E1 ",
- "data-message-id": data.msgId,
- },
- audio(
- {
- controls: "",
- src: data.data,
- },
- ),
- );
- }
- function stickerMsg(data) {
- return div(
- {
- "class": "stickerMessageContent-module__content_wrap__BGfk- ",
- "data-message-id": data.msgId,
- },
- button(
- {
- "type": "button",
- "class": "stickerMessageContent-module__button_view__rTOx0",
- "aria-label": "view sticker",
- "data-stkPkgId": data.stkPId,
- "$click": (...arg) => {
- buttonEvent("stkView", arg);
- },
- },
- div(
- {
- "class": "stickerMessageContent-module__thumbnail__eMXOS",
- },
- div(
- {
- "class": "sticker",
- },
- img(
- {
- "src": data.img,
- "alt": "[スタンプ]",
- "loading": "lazy",
- "draggable": "false",
- "class": "",
- "width": "170",
- "height": "149.33333333333334",
- "data-is-owned": "false",
- "data-is-effect-sticker": "false",
- },
- ),
- ),
- ),
- ),
- );
- }
- function flexMsg(data) {
- let flex = JSON.parse(data.flex);
- let html =
- '';
- html += flex2html("hide", { "type": "flex", "altText": "Flex Message", "contents": flex }) +
- "
";
- document.getElementById("hide").innerHTML = "";
- let ifr = iframe(
- {
- "frameborder": "0",
- "title": "",
- "style": "width:100%;height:100%;",
- "data-message-id": "501557461296873730",
- "srcdoc": html,
- },
- );
- setTimeout(() => {
- ifr.setAttribute(
- "style",
- "width:" + (ifr.contentWindow.document.documentElement.offsetWidth + 1) + "px;height:" +
- (ifr.contentWindow.document.documentElement.offsetHeight + 11) + "px;",
- );
- }, 2000);
-
- return div(
- {
- "class": "iframeMessage-module__iframe_wrap__PUSyZ",
- },
- ifr,
- );
- }
- function fileM() {
- fileMenu = div(
- {
- "class": "message-module__action_group__c8hSm actionGroup-module__action_group__sGYDY",
- },
- button(
- {
- "type": "button",
- "class": "actionGroup-module__button_action__Cu9RJ",
- "$click": (...arg) => {
- buttonEvent("dlFile", arg);
- },
- },
- span(
- {
- "class": "actionGroup-module__text__OBOQx",
- },
- fuchi("保存"),
- ),
- ),
- );
- }
-}
-
-function fuchi(txt) {
- return span(
- { style: "color:#fff;" },
- txt,
- );
-}
-/*setInterval(()=>{
- let a=Date.now()
- setTimeout(()=>{
- let b=Date.now()
- if ((b-a)>80) {
- location.reload()
- }
- },10)
- debugger;
-
-},500)*/
diff --git a/tmpReq.bin b/tmpReq.bin
deleted file mode 100644
index a281676..0000000
Binary files a/tmpReq.bin and /dev/null differ
diff --git a/tmpRes.bin b/tmpRes.bin
deleted file mode 100644
index c867b25..0000000
Binary files a/tmpRes.bin and /dev/null differ