[
  {
    "path": ".github/ISSUE_TEMPLATE.md",
    "content": "---\nname: V2RayX issue 模版\n---\n\n请回答下列问题。不按模板发的 issue 将直接被关闭。\n\n0) 如果你没有遇到任何错误和不正常，请在此处回答你想发表的内容：\n\n1) 你正在使用哪个版本的 V2RayX，你的 macOS 系统版本？\n\n2) 如果你在操作 V2RayX 的时候遇到程序崩溃/无反应，请描述你的操作，之后在命令行（终端.app）里运行`/Applications/V2RayX.app/Contents/MacOS/V2RayX`，重复上述操作直至软件崩溃，把终端里的输出贴到下面指定的地方。\n\n```\n在这里贴上终端的输出\n```\n\n3) 如果 V2RayX 没有发生崩溃，但是有一些不正常行为，比如上次勾选了 mux，再次打开，mux 的钩没有了。请描述你遇到的不正常行为。\n\n4) 如果 V2RayX 一切正常，但网络依然不如你所预料，请首先把 log level 切换到 debug，再次访问你想访问的网站。然后点击 V2RayX 的 `view current config.json`，将弹出的浏览器内的配置文件粘贴到下面指定的地方，但是隐藏掉ip/端口/id等信息。\n\n```javascript\n在这里粘贴配置文件内容\n```\n\n然后点击 V2RayX 的`view log`，把 error.log 中的输出贴到下方：\n\n```\n在这里贴上 error.log\n```\n\n5) 其他你认为可以帮助开发者和你一起解决问题的信息：\n"
  },
  {
    "path": ".gitignore",
    "content": "DerivedData/\n.DS_Store\nV2RayX.xcodeproj/project.xcworkspace\nV2RayX.xcodeproj/xcuserdata/\nbuild/\nv2ray-core-bin/\n"
  },
  {
    "path": ".gitmodules",
    "content": "[submodule \"GCDWebServer\"]\n\tpath = GCDWebServer\n\turl = https://github.com/swisspol/GCDWebServer.git\n"
  },
  {
    "path": ".travis.yml",
    "content": "os: osx\nlanguage: objective-c\nsudo: false\ninstall: true\nscript: xcodebuild -project V2RayX.xcodeproj -target V2RayX -configuration Release\n\nafter_success:\n- isbeta=$(git describe --abbrev=0 --tags | grep beta)\n\nbefore_deploy:\n- sh ./prepare_zip.sh\n\ndeploy:\n  - provider: releases\n    prerelease: true\n    api_key:\n      secure: HjwZ8C70qYeozvaEUvKqDX42T26pRYiQBrTvzbqy8Q+BDWJZ7vNZhSwgt+oYGBywgpk0bM/Ao3al6YDlTE86bMiRUEGSFjRWo2Oquo4N5ydp5cmzT6sVigrLiviufAMrCrCljh0OEt/hEN7wf7zJ8SZKFCLOi8AhTkJu8yEuFdx/2Zd/VSOs6AFp0s1uGrfd3UmwxWfGcKatpYb4GcCwZk2PrECc0qkAP9UzGjemU1cYzcICi+cXl/NoMeLRftHSZaGl+zg95bvddSlNvyqvPwH/00hnh6kpjdyKMDQ071eFE+9NIShglm5yS9TcR3+fE6WfWU9SjTOnT2IfggvXfogcJWd7k4/AwFoAkezNiV0IMKXl2163T17pfFxVQo56oy9HtMts3bw5TapL2YiJa1PKzluSc5ijNcGdDh/7GIejne9lyTeHNhnE/Acmlt8Mu9N+gSj04R4sqN/GfTGzmlPC4kXB08RLg5ycHksGyf4YOLYe9wOEBN4UaSqepFsWqrrufj16l4dqTdacLdt2dJtkPsqCCiUu+nfVVZP9uibIMqWjBi+Fp2Rz+RIvaqtoQrMy+b1y/YwcVz9cJ29OMwU5hY6MehN5pqknwMhsDk1vH5m93swpL6wfM6CT7NjambVfPGffX8zYp/1l/CbBelzjaxZ/CbV4GHXkYHJ923s=\n    file: build/Debug/V2RayX.app.zip\n    skip_cleanup: true\n    on:\n      repo: Cenmrev/V2RayX\n      tags: true\n      condition: \"\\\"$isbeta\\\" != \\\"\\\"\"\n\n  - provider: releases\n    api_key:\n      secure: HjwZ8C70qYeozvaEUvKqDX42T26pRYiQBrTvzbqy8Q+BDWJZ7vNZhSwgt+oYGBywgpk0bM/Ao3al6YDlTE86bMiRUEGSFjRWo2Oquo4N5ydp5cmzT6sVigrLiviufAMrCrCljh0OEt/hEN7wf7zJ8SZKFCLOi8AhTkJu8yEuFdx/2Zd/VSOs6AFp0s1uGrfd3UmwxWfGcKatpYb4GcCwZk2PrECc0qkAP9UzGjemU1cYzcICi+cXl/NoMeLRftHSZaGl+zg95bvddSlNvyqvPwH/00hnh6kpjdyKMDQ071eFE+9NIShglm5yS9TcR3+fE6WfWU9SjTOnT2IfggvXfogcJWd7k4/AwFoAkezNiV0IMKXl2163T17pfFxVQo56oy9HtMts3bw5TapL2YiJa1PKzluSc5ijNcGdDh/7GIejne9lyTeHNhnE/Acmlt8Mu9N+gSj04R4sqN/GfTGzmlPC4kXB08RLg5ycHksGyf4YOLYe9wOEBN4UaSqepFsWqrrufj16l4dqTdacLdt2dJtkPsqCCiUu+nfVVZP9uibIMqWjBi+Fp2Rz+RIvaqtoQrMy+b1y/YwcVz9cJ29OMwU5hY6MehN5pqknwMhsDk1vH5m93swpL6wfM6CT7NjambVfPGffX8zYp/1l/CbBelzjaxZ/CbV4GHXkYHJ923s=\n    file: build/Release/V2RayX.app.zip\n    skip_cleanup: true\n    on:\n      repo: Cenmrev/V2RayX\n      tags: true\n      condition: \"\\\"$isbeta\\\" = \\\"\\\"\"\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <http://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<http://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<http://www.gnu.org/philosophy/why-not-lgpl.html>.\n"
  },
  {
    "path": "README.md",
    "content": "# V2RayX: A simple GUI for V2Ray on macOS\n\n[![Build Status](https://travis-ci.org/Cenmrev/V2RayX.svg?branch=master)](https://travis-ci.org/Cenmrev/V2RayX)\n\n## What is V2Ray?\n\n__READ THIS__: [Project V2Ray](http://www.v2ray.com).\n\n__YOU SHOULD READ V2RAY'S OFFICIAL INSTRUCTION BEFORE USING V2RAYX!__\n\nOther V2Ray clients on macOS: [V2RayU](https://github.com/yanue/v2rayu).\n(Not related to or endorsed by authors of this repo. USE AT YOUR OWN RISK.)\n\n## Download V2RayX\n\nDownload from [Releases](https://github.com/Cenmrev/V2RayX/releases). (compiled by [travis-ci.org](https://travis-ci.org/Cenmrev/V2RayX)).\n\nBy [Homebrew-Cask](https://caskroom.github.io/).\n\n```sh\nbrew cask install v2rayx\n```\n\n## How to build\n\nV2RayX.app is built by running one of the following commands in your terminal. You can install this via the command-line with curl.\n\n`sh -c \"$(curl -fsSL https://raw.githubusercontent.com/Cenmrev/V2RayX/master/compilefromsource.sh)\"`\n\nor step by step:\n\n`git clone --recursive https://github.com/Cenmrev/V2RayX.git`\n\nopen V2RayX.xcodeproj and use Xcode to build V2RayX.\n\n## How does V2RayX work\n\nV2RayX provides a GUI to generate the config file for V2Ray. It includes V2Ray's binary executable in the app bundle. V2RayX starts and stops V2Ray with `launchd` of macOS.\n\nV2RayX also allows users to change system proxy settings and switch proxy servers on the macOS menu bar.\n\nAs default, V2RayX will open a socks5 proxy at port `1081` as the main inbound, as well as a http proxy at port `8001` as an inboundDetour.\n\nV2RayX provide three modes:\n* Global Mode: V2RayX asks macOS to route all internet traffic to v2ray core if the network traffic obeys operating system's network rules.\n* PAC Mode: macOS will determine the routing based on a pac file and some traffic may be routed to v2ray core.\n* Manual Mode: V2RayX will not modify any macOS network settings, but only start or stop v2ray core.\n\nOptions in menu list `Routing Rule` determine how v2ray core deals with incoming traffic. Core routing rules apply to all three modes above.\n\n### auto-run on login\n\nOpen macOS System Preferences -> Users & Group -> Login Items, add V2RayX.app to\nthe list.\n\n### manually update v2ray-core\nreplace `V2RayX.app/Contents/Resources/v2ray` with the newest v2ray \nversion from [v2ray-core \nrepo](https://github.com/v2ray/v2ray-core/releases). However, compatibility is not guaranteed.\n\n### Uninstall\n\nV2RayX will create the following files and folders:\n\n* `/Library/Application Support/V2RayX`\n* `~/Library/Application Support/V2RayX`\n* `~/Library/Preferences/cenmrev.V2RayX.plist`\n\nSo, to totally uninstall V2RayX, just delete V2RayX.app and the files above. :)\n\n## Acknowledge\n\nV2RayX uses [GCDWebServer](https://github.com/swisspol/GCDWebServer) to provide a local pac server. V2RayX also uses many ideas and codes from [ShadowsocksX](https://github.com/shadowsocks/shadowsocks-iOS/tree/master), especially, the codes of [v2rays_sysconfig](https://github.com/Cenmrev/V2RayX/blob/master/v2rayx_sysconf/main.m) are simply copied from [shadowsocks_sysconf](https://github.com/shadowsocks/shadowsocks-iOS/blob/master/shadowsocks_sysconf/main.m) with some modifications.\n\n## Donation\n\nIf Project V2Ray or V2RayX helped you, you can also help us by donation __in your will__. To donate to Project V2Ray, you may refer to [this page](https://www.v2ray.com/chapter_00/02_donate.html).\n\n## Disclaimer\n\nThis tool is mainly for personal usage. For professional users and technique \nsupport, commercial software like proxifier is recommended. Please refer to [#60](https://github.com/Cenmrev/V2RayX/issues/60#issuecomment-369531443).\n\nThe developer does not major in CS nor Software Engineer and currently is busy with grad school courses. So V2rayX will not be updated frequently. Users can replace V2RayX.app/Contents/Resources/v2ray with the newest v2ray-core downloaded from [https://github.com/v2ray/v2ray-core/releases](https://github.com/v2ray/v2ray-core/releases).\n\nThe developer currently does not have enough time to add more features to V2RayX, nor to merge PRs. However, forking and releasing your own version are always welcome.\n"
  },
  {
    "path": "V2RayX/AdvancedWindow.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"14460.31\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"14460.31\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"AdvancedWindowController\">\n            <connections>\n                <outlet property=\"changeIndicatorField\" destination=\"2i8-WG-Jvl\" id=\"EbX-Ps-tBn\"/>\n                <outlet property=\"checkLabel\" destination=\"nN6-wl-YxO\" id=\"LhM-ek-MwD\"/>\n                <outlet property=\"configAddControl\" destination=\"aFK-VU-U5u\" id=\"01n-0m-N3B\"/>\n                <outlet property=\"configTable\" destination=\"sAX-Hf-7on\" id=\"YHW-T4-U6Z\"/>\n                <outlet property=\"coreFileListField\" destination=\"SbL-wp-TzE\" id=\"O9n-fQ-Coz\"/>\n                <outlet property=\"corePathField\" destination=\"8Y7-Ux-q6J\" id=\"Tnh-t0-6EK\"/>\n                <outlet property=\"domainEnableButton\" destination=\"e2v-9w-e45\" id=\"M5I-A3-4JO\"/>\n                <outlet property=\"domainIpHelpButton\" destination=\"mR8-QF-6Vz\" id=\"tgx-nb-fhd\"/>\n                <outlet property=\"domainIpHelpView\" destination=\"o2X-Co-4Uk\" id=\"yJU-k6-UuF\"/>\n                <outlet property=\"domainListEditView\" destination=\"F9v-Aq-oZG\" id=\"EIl-0z-Ver\"/>\n                <outlet property=\"domainStrategyButton\" destination=\"go4-fU-8VR\" id=\"dbi-6a-wSS\"/>\n                <outlet property=\"domainTextView\" destination=\"1mD-il-bEM\" id=\"NFH-22-9XV\"/>\n                <outlet property=\"editDomainButton\" destination=\"qkf-gu-jAD\" id=\"3jh-ii-Bah\"/>\n                <outlet property=\"editIpButton\" destination=\"pz5-A1-vVo\" id=\"OUt-Th-GzW\"/>\n                <outlet property=\"enableEncryptionButton\" destination=\"UgR-3O-68p\" id=\"ttK-r0-unJ\"/>\n                <outlet property=\"enableRestoreButton\" destination=\"Brv-Oa-rjx\" id=\"JtK-Jh-zAk\"/>\n                <outlet property=\"encryptionKeyConfirmField\" destination=\"sHt-j7-mwK\" id=\"IPv-yO-hIY\"/>\n                <outlet property=\"encryptionKeyField\" destination=\"MqC-Po-7Ay\" id=\"ckz-rO-PXI\"/>\n                <outlet property=\"inboundEnableButton\" destination=\"RGU-Jf-XVA\" id=\"4Fq-0M-iMT\"/>\n                <outlet property=\"inboundTagBox\" destination=\"3aY-he-a4p\" id=\"iCo-WJ-W8p\"/>\n                <outlet property=\"ipEnableButton\" destination=\"8i6-Ji-on9\" id=\"YSe-e8-vEe\"/>\n                <outlet property=\"ipListEditView\" destination=\"HaA-4d-JXp\" id=\"v8r-2R-qPQ\"/>\n                <outlet property=\"ipTextView\" destination=\"3kN-VI-6Jc\" id=\"B0c-z3-Bwm\"/>\n                <outlet property=\"mainTabView\" destination=\"QYP-On-JTO\" id=\"wVr-XL-l8W\"/>\n                <outlet property=\"networkEnableButton\" destination=\"5bh-W3-sf1\" id=\"b4C-oc-iUb\"/>\n                <outlet property=\"networkListButton\" destination=\"g4Z-Bg-9h9\" id=\"AGs-ms-Bjs\"/>\n                <outlet property=\"outboundAddControl\" destination=\"hhh-bW-Kml\" id=\"Pbg-mP-fcq\"/>\n                <outlet property=\"outboundJsonView\" destination=\"u9b-6e-BFb\" id=\"g90-n8-BI0\"/>\n                <outlet property=\"outboundTable\" destination=\"XPi-HC-KJg\" id=\"CkG-5u-rpo\"/>\n                <outlet property=\"portEnableButton\" destination=\"csz-yQ-hNt\" id=\"VV9-1q-kPc\"/>\n                <outlet property=\"portField\" destination=\"GJe-w6-K5h\" id=\"FC9-1A-JrM\"/>\n                <outlet property=\"protocolButton\" destination=\"IaG-in-WIw\" id=\"Whz-MN-6pD\"/>\n                <outlet property=\"protocolEnableButton\" destination=\"tc9-9B-I4x\" id=\"CF8-e3-mUW\"/>\n                <outlet property=\"routeToBox\" destination=\"P9N-Y8-afr\" id=\"WWN-8K-AWc\"/>\n                <outlet property=\"routeToHelpButton\" destination=\"JC4-HP-JE8\" id=\"BZE-EO-mgO\"/>\n                <outlet property=\"routingTagHelpView\" destination=\"QAK-Cz-bFI\" id=\"Irw-HU-E1u\"/>\n                <outlet property=\"ruleAddControl\" destination=\"yoj-Gc-d7Z\" id=\"tzC-N1-yoK\"/>\n                <outlet property=\"ruleSetAddControl\" destination=\"kzb-ey-8xe\" id=\"rpf-Si-YCe\"/>\n                <outlet property=\"ruleSetNameField\" destination=\"7eT-Ie-mUI\" id=\"7yh-jU-7el\"/>\n                <outlet property=\"ruleSetTable\" destination=\"wbH-CA-T9F\" id=\"zwJ-4V-mjo\"/>\n                <outlet property=\"ruleTable\" destination=\"VlQ-mV-pLn\" id=\"TkH-iS-AuO\"/>\n                <outlet property=\"saveDomainListButton\" destination=\"0Xw-eT-Liy\" id=\"STA-Bw-d5H\"/>\n                <outlet property=\"saveIPListButton\" destination=\"TGf-m6-LYU\" id=\"rNb-bw-qm9\"/>\n                <outlet property=\"subscriptionAddControl\" destination=\"3fe-R5-yne\" id=\"iaE-97-e45\"/>\n                <outlet property=\"subscriptionTable\" destination=\"WsS-Gf-yrN\" id=\"UxJ-Ro-NDe\"/>\n                <outlet property=\"window\" destination=\"QvC-M9-y7g\" id=\"1sc-H8-xnH\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <window title=\"Window\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" animationBehavior=\"default\" id=\"QvC-M9-y7g\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\"/>\n            <windowPositionMask key=\"initialPositionMask\" leftStrut=\"YES\" rightStrut=\"YES\" topStrut=\"YES\" bottomStrut=\"YES\"/>\n            <rect key=\"contentRect\" x=\"196\" y=\"240\" width=\"540\" height=\"455\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1440\" height=\"877\"/>\n            <view key=\"contentView\" wantsLayer=\"YES\" id=\"EiT-Mj-1SZ\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"540\" height=\"455\"/>\n                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                <subviews>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Vwe-wN-xLw\">\n                        <rect key=\"frame\" x=\"444\" y=\"9\" width=\"82\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Finish\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"Hv6-1n-72W\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"ok:\" target=\"-2\" id=\"aNh-JL-vgi\"/>\n                        </connections>\n                    </button>\n                    <textField hidden=\"YES\" horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"nN6-wl-YxO\">\n                        <rect key=\"frame\" x=\"18\" y=\"20\" width=\"71\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"checking...\" id=\"R7w-O4-j5u\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <tabView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"QYP-On-JTO\">\n                        <rect key=\"frame\" x=\"13\" y=\"35\" width=\"514\" height=\"406\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <tabViewItems>\n                            <tabViewItem label=\"Outbounds\" identifier=\"\" id=\"ubo-eB-GSJ\">\n                                <view key=\"view\" ambiguous=\"YES\" id=\"Cry-No-H0h\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"494\" height=\"360\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"19\" horizontalPageScroll=\"10\" verticalLineScroll=\"19\" verticalPageScroll=\"10\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"3sW-be-UPU\">\n                                            <rect key=\"frame\" x=\"17\" y=\"37\" width=\"120\" height=\"270\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <clipView key=\"contentView\" ambiguous=\"YES\" id=\"V5q-1F-ez5\">\n                                                <rect key=\"frame\" x=\"1\" y=\"1\" width=\"118\" height=\"268\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" alternatingRowBackgroundColors=\"YES\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" id=\"XPi-HC-KJg\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"118\" height=\"268\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                        <size key=\"intercellSpacing\" width=\"3\" height=\"2\"/>\n                                                        <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <tableColumns>\n                                                            <tableColumn width=\"115\" minWidth=\"40\" maxWidth=\"1000\" id=\"1Ok-9N-aIl\">\n                                                                <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\">\n                                                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                    <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </tableHeaderCell>\n                                                                <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" title=\"Text Cell\" placeholderString=\"tag\" usesSingleLineMode=\"YES\" id=\"dYt-6I-wvZ\">\n                                                                    <font key=\"font\" metaFont=\"system\"/>\n                                                                    <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                                <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\" userResizable=\"YES\"/>\n                                                            </tableColumn>\n                                                        </tableColumns>\n                                                        <connections>\n                                                            <outlet property=\"dataSource\" destination=\"-2\" id=\"axi-MF-eoh\"/>\n                                                            <outlet property=\"delegate\" destination=\"-2\" id=\"O0u-tV-z5A\"/>\n                                                        </connections>\n                                                    </tableView>\n                                                </subviews>\n                                            </clipView>\n                                            <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"Rk9-su-OgR\">\n                                                <rect key=\"frame\" x=\"1\" y=\"156\" width=\"118\" height=\"16\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                            <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"d04-Vf-WfY\">\n                                                <rect key=\"frame\" x=\"-15\" y=\"1\" width=\"16\" height=\"0.0\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                        </scrollView>\n                                        <segmentedControl verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"hhh-bW-Kml\">\n                                            <rect key=\"frame\" x=\"17\" y=\"16\" width=\"120\" height=\"23\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <segmentedCell key=\"cell\" borderStyle=\"border\" alignment=\"left\" style=\"smallSquare\" trackingMode=\"momentary\" id=\"YzI-dv-nKI\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <segments>\n                                                    <segment image=\"NSAddTemplate\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                    <segment image=\"NSRemoveTemplate\" tag=\"1\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                    <segment width=\"62\" enabled=\"NO\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                </segments>\n                                            </segmentedCell>\n                                            <connections>\n                                                <action selector=\"addRemoveOutbound:\" target=\"-2\" id=\"jXG-Mw-eR9\"/>\n                                            </connections>\n                                        </segmentedControl>\n                                        <scrollView fixedFrame=\"YES\" borderType=\"none\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"eDx-Pc-Wrt\">\n                                            <rect key=\"frame\" x=\"145\" y=\"17\" width=\"332\" height=\"290\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <clipView key=\"contentView\" ambiguous=\"YES\" drawsBackground=\"NO\" copiesOnScroll=\"NO\" id=\"nNS-kZ-Fe2\">\n                                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"332\" height=\"290\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <textView ambiguous=\"YES\" importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" spellingCorrection=\"YES\" smartInsertDelete=\"YES\" id=\"u9b-6e-BFb\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"332\" height=\"290\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                        <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <size key=\"minSize\" width=\"332\" height=\"290\"/>\n                                                        <size key=\"maxSize\" width=\"332\" height=\"10000000\"/>\n                                                        <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <connections>\n                                                            <outlet property=\"delegate\" destination=\"-2\" id=\"KD0-9D-iC3\"/>\n                                                        </connections>\n                                                    </textView>\n                                                </subviews>\n                                            </clipView>\n                                            <scroller key=\"verticalScroller\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"WPy-9F-0mh\">\n                                                <rect key=\"frame\" x=\"316\" y=\"0.0\" width=\"16\" height=\"290\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                        </scrollView>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" preferredMaxLayoutWidth=\"458\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"RZC-B9-mJC\">\n                                            <rect key=\"frame\" x=\"17\" y=\"315\" width=\"462\" height=\"42\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" id=\"GuN-KN-aPK\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <string key=\"title\">To use outbounds of other protocols apart from vmess, directly provide the corresponding OutboundObject below. Click Help to see instructions.</string>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Subscription\" identifier=\"\" id=\"c9O-2e-b8g\">\n                                <view key=\"view\" id=\"WC0-rc-GkH\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"494\" height=\"360\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"19\" horizontalPageScroll=\"10\" verticalLineScroll=\"19\" verticalPageScroll=\"10\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"OYj-mB-Okk\">\n                                            <rect key=\"frame\" x=\"17\" y=\"37\" width=\"460\" height=\"275\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <clipView key=\"contentView\" ambiguous=\"YES\" id=\"Vi9-1X-hgV\">\n                                                <rect key=\"frame\" x=\"1\" y=\"1\" width=\"458\" height=\"273\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                                <subviews>\n                                                    <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" alternatingRowBackgroundColors=\"YES\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" id=\"WsS-Gf-yrN\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"458\" height=\"273\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                        <size key=\"intercellSpacing\" width=\"3\" height=\"2\"/>\n                                                        <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <tableColumns>\n                                                            <tableColumn width=\"455\" minWidth=\"40\" maxWidth=\"1000\" id=\"ofY-tf-r3a\">\n                                                                <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\">\n                                                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                    <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </tableHeaderCell>\n                                                                <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" title=\"Text Cell\" usesSingleLineMode=\"YES\" id=\"ZS4-bp-UnJ\">\n                                                                    <font key=\"font\" metaFont=\"system\"/>\n                                                                    <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                                <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\" userResizable=\"YES\"/>\n                                                            </tableColumn>\n                                                        </tableColumns>\n                                                        <connections>\n                                                            <outlet property=\"dataSource\" destination=\"-2\" id=\"NSj-HK-Oa7\"/>\n                                                            <outlet property=\"delegate\" destination=\"-2\" id=\"nsA-mb-mb5\"/>\n                                                        </connections>\n                                                    </tableView>\n                                                </subviews>\n                                            </clipView>\n                                            <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"Foc-Ri-DSS\">\n                                                <rect key=\"frame\" x=\"1\" y=\"-15\" width=\"0.0\" height=\"16\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                            <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"ebi-F0-0yH\">\n                                                <rect key=\"frame\" x=\"-15\" y=\"1\" width=\"16\" height=\"0.0\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                        </scrollView>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" preferredMaxLayoutWidth=\"458\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"22V-dc-UXp\">\n                                            <rect key=\"frame\" x=\"17\" y=\"313\" width=\"462\" height=\"42\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" title=\"Save your airport subscription link here and refresh config from server list in menubar icon.\" id=\"qfa-aV-cmn\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <segmentedControl verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"3fe-R5-yne\">\n                                            <rect key=\"frame\" x=\"17\" y=\"16\" width=\"460\" height=\"23\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <segmentedCell key=\"cell\" borderStyle=\"border\" alignment=\"left\" style=\"smallSquare\" trackingMode=\"momentary\" id=\"fnx-1v-MTC\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <segments>\n                                                    <segment image=\"NSAddTemplate\"/>\n                                                    <segment image=\"NSRemoveTemplate\" tag=\"1\"/>\n                                                    <segment width=\"402\" enabled=\"NO\"/>\n                                                </segments>\n                                            </segmentedCell>\n                                            <connections>\n                                                <action selector=\"addRemoveSubscription:\" target=\"-2\" id=\"z54-n0-f2T\"/>\n                                            </connections>\n                                        </segmentedControl>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Rules\" identifier=\"\" id=\"i0P-1v-Yeh\">\n                                <view key=\"view\" id=\"uJw-Fs-Pqs\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"494\" height=\"360\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"19\" horizontalPageScroll=\"10\" verticalLineScroll=\"19\" verticalPageScroll=\"10\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"fXT-Lv-fEz\">\n                                            <rect key=\"frame\" x=\"11\" y=\"34\" width=\"114\" height=\"323\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <clipView key=\"contentView\" ambiguous=\"YES\" id=\"R4k-Ta-qWH\">\n                                                <rect key=\"frame\" x=\"1\" y=\"1\" width=\"112\" height=\"321\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                                <subviews>\n                                                    <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" alternatingRowBackgroundColors=\"YES\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" id=\"wbH-CA-T9F\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"112\" height=\"321\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                        <size key=\"intercellSpacing\" width=\"3\" height=\"2\"/>\n                                                        <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <tableColumns>\n                                                            <tableColumn width=\"109\" minWidth=\"40\" maxWidth=\"1000\" id=\"s4h-kx-6zl\">\n                                                                <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\">\n                                                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                    <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </tableHeaderCell>\n                                                                <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" title=\"Text Cell\" placeholderString=\"rule name\" usesSingleLineMode=\"YES\" id=\"bg2-0h-Zy8\">\n                                                                    <font key=\"font\" metaFont=\"system\"/>\n                                                                    <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                                <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\" userResizable=\"YES\"/>\n                                                            </tableColumn>\n                                                        </tableColumns>\n                                                        <connections>\n                                                            <outlet property=\"dataSource\" destination=\"-2\" id=\"aog-e6-WNE\"/>\n                                                            <outlet property=\"delegate\" destination=\"-2\" id=\"QEE-RK-S9u\"/>\n                                                        </connections>\n                                                    </tableView>\n                                                </subviews>\n                                            </clipView>\n                                            <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"Sat-td-gwZ\">\n                                                <rect key=\"frame\" x=\"1\" y=\"264\" width=\"112\" height=\"16\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                            <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"2aS-Dj-o0r\">\n                                                <rect key=\"frame\" x=\"-15\" y=\"1\" width=\"16\" height=\"0.0\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                        </scrollView>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2su-gn-RcM\">\n                                            <rect key=\"frame\" x=\"145\" y=\"333\" width=\"97\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Rule Set Name:\" id=\"nds-1r-ppI\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"go4-fU-8VR\">\n                                            <rect key=\"frame\" x=\"258\" y=\"298\" width=\"197\" height=\"25\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" title=\"Item 1\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"jok-h9-59Z\" id=\"WmV-Dw-enQ\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" id=\"sQ8-z9-7Lt\">\n                                                    <items>\n                                                        <menuItem title=\"Item 1\" state=\"on\" id=\"jok-h9-59Z\"/>\n                                                        <menuItem title=\"Item 2\" id=\"4DK-9y-rmk\"/>\n                                                        <menuItem title=\"Item 3\" id=\"NO6-7e-gtq\"/>\n                                                    </items>\n                                                </menu>\n                                            </popUpButtonCell>\n                                            <connections>\n                                                <action selector=\"didSelectStrategy:\" target=\"-2\" id=\"ass-Rz-Zml\"/>\n                                            </connections>\n                                        </popUpButton>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8Wc-ck-QLK\">\n                                            <rect key=\"frame\" x=\"145\" y=\"303\" width=\"109\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Domain Strategy:\" id=\"Abd-Kl-8fv\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" textCompletion=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"7eT-Ie-mUI\">\n                                            <rect key=\"frame\" x=\"254\" y=\"331\" width=\"198\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" placeholderString=\"rule set name\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"9nq-rX-rC3\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <box fixedFrame=\"YES\" title=\"Rules\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"A3j-NA-vk6\">\n                                            <rect key=\"frame\" x=\"144\" y=\"1\" width=\"344\" height=\"292\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <view key=\"contentView\" id=\"qes-QS-Pws\">\n                                                <rect key=\"frame\" x=\"3\" y=\"3\" width=\"338\" height=\"274\"/>\n                                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                <subviews>\n                                                    <segmentedControl verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"yoj-Gc-d7Z\">\n                                                        <rect key=\"frame\" x=\"14\" y=\"15\" width=\"87\" height=\"23\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <segmentedCell key=\"cell\" borderStyle=\"border\" alignment=\"left\" style=\"smallSquare\" trackingMode=\"momentary\" id=\"QNA-24-I1O\">\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                            <segments>\n                                                                <segment image=\"NSAddTemplate\">\n                                                                    <nil key=\"label\"/>\n                                                                </segment>\n                                                                <segment image=\"NSRemoveTemplate\" tag=\"1\">\n                                                                    <nil key=\"label\"/>\n                                                                </segment>\n                                                                <segment width=\"29\" enabled=\"NO\">\n                                                                    <nil key=\"label\"/>\n                                                                </segment>\n                                                            </segments>\n                                                        </segmentedCell>\n                                                        <connections>\n                                                            <action selector=\"addRemoveRule:\" target=\"-2\" id=\"6x0-hG-7dl\"/>\n                                                        </connections>\n                                                    </segmentedControl>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"e2v-9w-e45\">\n                                                        <rect key=\"frame\" x=\"110\" y=\"192\" width=\"68\" height=\"18\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"check\" title=\"Domain\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"FXd-hg-kTV\">\n                                                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"didClickEnable:\" target=\"-2\" id=\"ZZ8-Lt-RZH\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8i6-Ji-on9\">\n                                                        <rect key=\"frame\" x=\"110\" y=\"163\" width=\"34\" height=\"18\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"check\" title=\"IP\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"bEb-OZ-H5Q\">\n                                                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"didClickEnable:\" target=\"-2\" id=\"QEa-Hw-3d2\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Wd9-ps-Rqc\">\n                                                        <rect key=\"frame\" x=\"107\" y=\"14\" width=\"56\" height=\"17\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                        <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"route to:\" id=\"X80-bG-59t\">\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"19\" horizontalPageScroll=\"10\" verticalLineScroll=\"19\" verticalPageScroll=\"10\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"fbY-mi-hjQ\">\n                                                        <rect key=\"frame\" x=\"14\" y=\"36\" width=\"87\" height=\"230\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <clipView key=\"contentView\" ambiguous=\"YES\" id=\"svV-1v-pv5\">\n                                                            <rect key=\"frame\" x=\"1\" y=\"1\" width=\"85\" height=\"228\"/>\n                                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                                            <subviews>\n                                                                <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" alternatingRowBackgroundColors=\"YES\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" id=\"VlQ-mV-pLn\">\n                                                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"85\" height=\"228\"/>\n                                                                    <autoresizingMask key=\"autoresizingMask\"/>\n                                                                    <size key=\"intercellSpacing\" width=\"3\" height=\"2\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <tableColumns>\n                                                                        <tableColumn width=\"82\" minWidth=\"40\" maxWidth=\"1000\" id=\"qE1-YD-I69\">\n                                                                            <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\">\n                                                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                                <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            </tableHeaderCell>\n                                                                            <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" title=\"Text Cell\" usesSingleLineMode=\"YES\" id=\"OoL-C4-v5k\">\n                                                                                <font key=\"font\" metaFont=\"system\"/>\n                                                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                            </textFieldCell>\n                                                                            <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\" userResizable=\"YES\"/>\n                                                                        </tableColumn>\n                                                                    </tableColumns>\n                                                                    <connections>\n                                                                        <outlet property=\"dataSource\" destination=\"-2\" id=\"wj3-GI-kav\"/>\n                                                                        <outlet property=\"delegate\" destination=\"-2\" id=\"zuF-D4-w5H\"/>\n                                                                    </connections>\n                                                                </tableView>\n                                                            </subviews>\n                                                        </clipView>\n                                                        <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"bnn-ry-c3A\">\n                                                            <rect key=\"frame\" x=\"1\" y=\"200\" width=\"77\" height=\"16\"/>\n                                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                                        </scroller>\n                                                        <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"iCC-Ir-cd8\">\n                                                            <rect key=\"frame\" x=\"-15\" y=\"1\" width=\"16\" height=\"0.0\"/>\n                                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                                        </scroller>\n                                                    </scrollView>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"5bh-W3-sf1\">\n                                                        <rect key=\"frame\" x=\"110\" y=\"47\" width=\"77\" height=\"18\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"check\" title=\"Network:\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"j3B-yf-IFU\">\n                                                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"didClickEnable:\" target=\"-2\" id=\"hTg-wC-8zB\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"g4Z-Bg-9h9\">\n                                                        <rect key=\"frame\" x=\"227\" y=\"42\" width=\"100\" height=\"25\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <popUpButtonCell key=\"cell\" type=\"push\" title=\"Item 1\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"h2c-ET-iJb\" id=\"o85-p6-eaa\">\n                                                            <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"menu\"/>\n                                                            <menu key=\"menu\" id=\"SO7-L9-DNr\">\n                                                                <items>\n                                                                    <menuItem title=\"Item 1\" state=\"on\" id=\"h2c-ET-iJb\"/>\n                                                                    <menuItem title=\"Item 2\" id=\"rBE-Wt-bzW\"/>\n                                                                    <menuItem title=\"Item 3\" id=\"PNJ-mc-Nhk\"/>\n                                                                </items>\n                                                            </menu>\n                                                        </popUpButtonCell>\n                                                        <connections>\n                                                            <action selector=\"didSelectRuleItem:\" target=\"-2\" id=\"S8k-lp-GLD\"/>\n                                                        </connections>\n                                                    </popUpButton>\n                                                    <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"IaG-in-WIw\">\n                                                        <rect key=\"frame\" x=\"226\" y=\"101\" width=\"100\" height=\"25\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <popUpButtonCell key=\"cell\" type=\"push\" title=\"Item 1\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"2Oy-Qp-IeQ\" id=\"QGH-Zk-ysI\">\n                                                            <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"menu\"/>\n                                                            <menu key=\"menu\" id=\"4Tc-Zt-ZJE\">\n                                                                <items>\n                                                                    <menuItem title=\"Item 1\" state=\"on\" id=\"2Oy-Qp-IeQ\"/>\n                                                                    <menuItem title=\"Item 2\" id=\"E4G-rh-24K\"/>\n                                                                    <menuItem title=\"Item 3\" id=\"CJg-8o-Fwh\"/>\n                                                                </items>\n                                                            </menu>\n                                                        </popUpButtonCell>\n                                                        <connections>\n                                                            <action selector=\"didSelectRuleItem:\" target=\"-2\" id=\"rSD-al-Muk\"/>\n                                                        </connections>\n                                                    </popUpButton>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"csz-yQ-hNt\">\n                                                        <rect key=\"frame\" x=\"110\" y=\"76\" width=\"52\" height=\"18\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"check\" title=\"Port\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"aZy-cf-V3d\">\n                                                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"didClickEnable:\" target=\"-2\" id=\"qCk-Ps-4fk\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"GJe-w6-K5h\">\n                                                        <rect key=\"frame\" x=\"229\" y=\"74\" width=\"95\" height=\"22\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" drawsBackground=\"YES\" id=\"WiB-gG-yjP\">\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <button horizontalHuggingPriority=\"750\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mR8-QF-6Vz\">\n                                                        <rect key=\"frame\" x=\"309\" y=\"245\" width=\"25\" height=\"25\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"help\" bezelStyle=\"helpButton\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"aO0-3T-L5Y\">\n                                                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"showInformation:\" target=\"-2\" id=\"ONj-aX-IUg\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <comboBox verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"P9N-Y8-afr\">\n                                                        <rect key=\"frame\" x=\"169\" y=\"10\" width=\"135\" height=\"26\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <comboBoxCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" drawsBackground=\"YES\" completes=\"NO\" numberOfVisibleItems=\"5\" id=\"m0j-kv-PFY\">\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <objectValues>\n                                                                <string>Item 1</string>\n                                                                <string>Item 2</string>\n                                                                <string>Item 3</string>\n                                                            </objectValues>\n                                                        </comboBoxCell>\n                                                        <connections>\n                                                            <action selector=\"didSelectRuleItem:\" target=\"-2\" id=\"Sl0-Ef-04w\"/>\n                                                        </connections>\n                                                    </comboBox>\n                                                    <button horizontalHuggingPriority=\"750\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"JC4-HP-JE8\">\n                                                        <rect key=\"frame\" x=\"309\" y=\"9\" width=\"25\" height=\"25\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"help\" bezelStyle=\"helpButton\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"hh1-mH-fhk\">\n                                                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"showInformation:\" target=\"-2\" id=\"VAd-g7-cb3\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"tc9-9B-I4x\">\n                                                        <rect key=\"frame\" x=\"110\" y=\"105\" width=\"73\" height=\"18\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"check\" title=\"Protocol\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"eJB-Nw-fGt\">\n                                                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"didClickEnable:\" target=\"-2\" id=\"bWe-pp-qUM\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"RGU-Jf-XVA\">\n                                                        <rect key=\"frame\" x=\"110\" y=\"134\" width=\"97\" height=\"18\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"check\" title=\"Inbound Tag\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"hTm-DB-j4B\">\n                                                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"didClickEnable:\" target=\"-2\" id=\"w7A-lI-C8A\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"PA1-Jj-4Ac\">\n                                                        <rect key=\"frame\" x=\"110\" y=\"216\" width=\"200\" height=\"38\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                        <textFieldCell key=\"cell\" title=\"When ALL the following criteria are satisfied:\" id=\"ZeT-4k-vxH\">\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        </textFieldCell>\n                                                    </textField>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"qkf-gu-jAD\">\n                                                        <rect key=\"frame\" x=\"228\" y=\"193\" width=\"95\" height=\"17\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"inline\" title=\"Edit list\" bezelStyle=\"inline\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"E4s-0q-jVZ\">\n                                                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"smallSystemBold\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"showEditView:\" target=\"-2\" id=\"lY8-gq-gRV\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"pz5-A1-vVo\">\n                                                        <rect key=\"frame\" x=\"229\" y=\"164\" width=\"95\" height=\"17\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <buttonCell key=\"cell\" type=\"inline\" title=\"Edit list\" bezelStyle=\"inline\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"tWE-zk-ucK\">\n                                                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                            <font key=\"font\" metaFont=\"smallSystemBold\"/>\n                                                        </buttonCell>\n                                                        <connections>\n                                                            <action selector=\"showEditView:\" target=\"-2\" id=\"zPK-4R-5Tt\"/>\n                                                        </connections>\n                                                    </button>\n                                                    <comboBox verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"3aY-he-a4p\">\n                                                        <rect key=\"frame\" x=\"229\" y=\"130\" width=\"98\" height=\"26\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                                        <comboBoxCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" drawsBackground=\"YES\" completes=\"NO\" numberOfVisibleItems=\"5\" id=\"btf-wg-PEM\">\n                                                            <font key=\"font\" metaFont=\"system\"/>\n                                                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                            <objectValues>\n                                                                <string>Item 1</string>\n                                                                <string>Item 2</string>\n                                                                <string>Item 3</string>\n                                                            </objectValues>\n                                                        </comboBoxCell>\n                                                        <connections>\n                                                            <action selector=\"didSelectRuleItem:\" target=\"-2\" id=\"P2f-GL-gii\"/>\n                                                        </connections>\n                                                    </comboBox>\n                                                </subviews>\n                                            </view>\n                                        </box>\n                                        <segmentedControl verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kzb-ey-8xe\">\n                                            <rect key=\"frame\" x=\"11\" y=\"13\" width=\"114\" height=\"23\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <segmentedCell key=\"cell\" borderStyle=\"border\" alignment=\"left\" style=\"smallSquare\" trackingMode=\"momentary\" id=\"N82-tM-ejL\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <segments>\n                                                    <segment image=\"NSAddTemplate\" width=\"27\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                    <segment image=\"NSRemoveTemplate\" width=\"27\" tag=\"1\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                    <segment image=\"NSRefreshTemplate\" width=\"27\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                    <segment image=\"config_duplicate\" width=\"28\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                </segments>\n                                            </segmentedCell>\n                                            <connections>\n                                                <action selector=\"addRemoveRuleSet:\" target=\"-2\" id=\"PEN-Vk-9QX\"/>\n                                            </connections>\n                                        </segmentedControl>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Configs\" identifier=\"\" id=\"kZw-NT-AZ4\">\n                                <view key=\"view\" id=\"QPL-oN-1TZ\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"494\" height=\"360\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"19\" horizontalPageScroll=\"10\" verticalLineScroll=\"19\" verticalPageScroll=\"10\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"otK-EN-A6Z\">\n                                            <rect key=\"frame\" x=\"17\" y=\"39\" width=\"460\" height=\"268\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <clipView key=\"contentView\" ambiguous=\"YES\" id=\"Jkw-Zi-tMR\">\n                                                <rect key=\"frame\" x=\"1\" y=\"1\" width=\"458\" height=\"266\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                                <subviews>\n                                                    <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" alternatingRowBackgroundColors=\"YES\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" id=\"sAX-Hf-7on\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"458\" height=\"266\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\"/>\n                                                        <size key=\"intercellSpacing\" width=\"3\" height=\"2\"/>\n                                                        <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <tableColumns>\n                                                            <tableColumn width=\"455\" minWidth=\"40\" maxWidth=\"1000\" id=\"5pD-C8-qBX\">\n                                                                <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\">\n                                                                    <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                                    <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </tableHeaderCell>\n                                                                <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" selectable=\"YES\" editable=\"YES\" title=\"Text Cell\" placeholderString=\"full path to your config file, do not use ~\" usesSingleLineMode=\"YES\" id=\"blU-qK-jS1\">\n                                                                    <font key=\"font\" metaFont=\"system\"/>\n                                                                    <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                </textFieldCell>\n                                                                <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\" userResizable=\"YES\"/>\n                                                            </tableColumn>\n                                                        </tableColumns>\n                                                        <connections>\n                                                            <outlet property=\"dataSource\" destination=\"-2\" id=\"xk1-pi-de8\"/>\n                                                            <outlet property=\"delegate\" destination=\"-2\" id=\"hgF-z7-R0u\"/>\n                                                        </connections>\n                                                    </tableView>\n                                                </subviews>\n                                            </clipView>\n                                            <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"co8-xJ-PSP\">\n                                                <rect key=\"frame\" x=\"1\" y=\"-15\" width=\"0.0\" height=\"16\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                            <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"tsb-pY-Eg6\">\n                                                <rect key=\"frame\" x=\"-15\" y=\"1\" width=\"16\" height=\"0.0\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                        </scrollView>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" preferredMaxLayoutWidth=\"458\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"455-Tq-ULi\">\n                                            <rect key=\"frame\" x=\"17\" y=\"315\" width=\"462\" height=\"42\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" title=\"To fully take control of the V2Ray core, directly provide the full path to complete configure files below.\" id=\"sQg-oW-z1H\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <segmentedControl verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"aFK-VU-U5u\">\n                                            <rect key=\"frame\" x=\"17\" y=\"18\" width=\"460\" height=\"23\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <segmentedCell key=\"cell\" borderStyle=\"border\" alignment=\"left\" style=\"smallSquare\" trackingMode=\"momentary\" id=\"xK5-Kp-yhj\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <segments>\n                                                    <segment image=\"NSAddTemplate\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                    <segment image=\"NSRemoveTemplate\" tag=\"1\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                    <segment width=\"402\" enabled=\"NO\">\n                                                        <nil key=\"label\"/>\n                                                    </segment>\n                                                </segments>\n                                            </segmentedCell>\n                                            <connections>\n                                                <action selector=\"addRemoveConfig:\" target=\"-2\" id=\"3aY-3H-ipo\"/>\n                                            </connections>\n                                        </segmentedControl>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Core\" identifier=\"\" id=\"67G-Pu-y5A\">\n                                <view key=\"view\" id=\"Jjh-Q6-tKG\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"494\" height=\"360\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" preferredMaxLayoutWidth=\"458\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Vky-bm-RTr\">\n                                            <rect key=\"frame\" x=\"15\" y=\"297\" width=\"462\" height=\"60\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" id=\"a4D-MW-Gqf\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <string key=\"title\">V2RayX is shipped with a v2ray binary file in the app bundle. If anyone wants to use a different v2ray core binary, put the binary file in the following directory:</string>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"8Y7-Ux-q6J\">\n                                            <rect key=\"frame\" x=\"17\" y=\"272\" width=\"462\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"/path/to/application support\" id=\"IEx-Ah-Xhi\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Ean-lF-CNp\">\n                                            <rect key=\"frame\" x=\"402\" y=\"236\" width=\"85\" height=\"32\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"push\" title=\"Open...\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"sPe-U4-330\">\n                                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <action selector=\"showCorePath:\" target=\"-2\" id=\"FfT-7Z-L9B\"/>\n                                            </connections>\n                                        </button>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" preferredMaxLayoutWidth=\"415\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Tfr-JR-7kn\">\n                                            <rect key=\"frame\" x=\"17\" y=\"218\" width=\"419\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" title=\"Make sure the following files are present:\" id=\"1Vl-aE-8sN\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"SbL-wp-TzE\">\n                                            <rect key=\"frame\" x=\"49\" y=\"136\" width=\"326\" height=\"74\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" id=\"QCH-HC-h7v\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <string key=\"title\">v2ray-core/v2ray\nv2ray-core/v2ctl\nv2ray-core/geoip.dat\nv2ray-core/geosite.dat</string>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"0qM-00-ZuW\">\n                                            <rect key=\"frame\" x=\"17\" y=\"94\" width=\"361\" height=\"34\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" id=\"ldu-SF-fOd\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <string key=\"title\">Otherwise V2RayX will still use default v2ray core binaries. \nCompatibility is not guaranteed.</string>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"5po-D3-mgl\">\n                                            <rect key=\"frame\" x=\"15\" y=\"41\" width=\"416\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"When quiting V2RayX, or unloading core, or choosing manual mode:\" id=\"dIM-hU-vOx\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Brv-Oa-rjx\">\n                                            <rect key=\"frame\" x=\"15\" y=\"9\" width=\"277\" height=\"25\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" title=\"Turn off system proxy\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"pJL-wh-M4Z\" id=\"7tm-cR-ge6\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" id=\"ifX-Ah-Gk4\">\n                                                    <items>\n                                                        <menuItem title=\"Turn off system proxy\" state=\"on\" id=\"pJL-wh-M4Z\"/>\n                                                        <menuItem title=\"Restore system proxy to original states\" id=\"uYN-nr-DtG\"/>\n                                                    </items>\n                                                </menu>\n                                            </popUpButtonCell>\n                                            <connections>\n                                                <action selector=\"changeEnableRestore:\" target=\"-2\" id=\"4AQ-BY-JAu\"/>\n                                            </connections>\n                                        </popUpButton>\n                                        <box verticalHuggingPriority=\"750\" fixedFrame=\"YES\" boxType=\"separator\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"4nM-Ft-D96\">\n                                            <rect key=\"frame\" x=\"9\" y=\"74\" width=\"476\" height=\"5\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                        </box>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"Encryption\" identifier=\"\" id=\"EcZ-9w-1Yw\">\n                                <view key=\"view\" id=\"1w0-hb-2Ct\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"494\" height=\"360\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"UgR-3O-68p\">\n                                            <rect key=\"frame\" x=\"31\" y=\"211\" width=\"124\" height=\"18\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"Enable Ecryption\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"qR7-nu-QAT\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <binding destination=\"-2\" name=\"value\" keyPath=\"self.enableEncryption\" id=\"etv-jb-ax1\"/>\n                                            </connections>\n                                        </button>\n                                        <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"04Z-pl-uC6\">\n                                            <rect key=\"frame\" x=\"31\" y=\"251\" width=\"432\" height=\"68\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" selectable=\"YES\" id=\"EAT-73-Qh6\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <string key=\"title\">All the configuration information are stored in ~/Library/Preferences/cenmrev.V2RayX.plist. In case the information is leaked to other unauthorized programs or individuals, set a password and V2RayX will use AES-256-ECB to encrypt the information.</string>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Nek-2F-WfS\">\n                                            <rect key=\"frame\" x=\"31\" y=\"17\" width=\"376\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"WARNING: this function is still in beta. Backup before you try!\" id=\"0s7-uP-t1h\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"systemRedColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2AY-26-tgQ\">\n                                            <rect key=\"frame\" x=\"27\" y=\"90\" width=\"187\" height=\"32\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"push\" title=\"Change/setup password\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"hbo-B3-M63\">\n                                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <action selector=\"changePassword:\" target=\"-2\" id=\"8p5-Eb-cWj\"/>\n                                                <binding destination=\"-2\" name=\"enabled\" keyPath=\"self.enableEncryption\" id=\"ZK5-Pb-3g9\"/>\n                                            </connections>\n                                        </button>\n                                        <secureTextField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"MqC-Po-7Ay\">\n                                            <rect key=\"frame\" x=\"33\" y=\"158\" width=\"222\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <secureTextFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"Zc2-Pa-LJd\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <allowedInputSourceLocales>\n                                                    <string>NSAllRomanInputSourcesLocaleIdentifier</string>\n                                                </allowedInputSourceLocales>\n                                            </secureTextFieldCell>\n                                            <connections>\n                                                <binding destination=\"-2\" name=\"enabled\" keyPath=\"self.enableEncryption\" id=\"idb-ah-NqO\"/>\n                                            </connections>\n                                        </secureTextField>\n                                        <secureTextField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"sHt-j7-mwK\">\n                                            <rect key=\"frame\" x=\"33\" y=\"126\" width=\"222\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <secureTextFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"qMi-cG-gw6\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <allowedInputSourceLocales>\n                                                    <string>NSAllRomanInputSourcesLocaleIdentifier</string>\n                                                </allowedInputSourceLocales>\n                                            </secureTextFieldCell>\n                                            <connections>\n                                                <binding destination=\"-2\" name=\"enabled\" keyPath=\"self.enableEncryption\" id=\"5GK-nC-4J7\"/>\n                                            </connections>\n                                        </secureTextField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"4tZ-Ho-z6g\">\n                                            <rect key=\"frame\" x=\"31\" y=\"188\" width=\"214\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Input twice to set a new password:\" id=\"AZm-tN-5qT\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2i8-WG-Jvl\">\n                                            <rect key=\"frame\" x=\"31\" y=\"72\" width=\"226\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Label\" id=\"GuH-9u-diX\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                        </tabViewItems>\n                    </tabView>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2Z5-SI-er6\">\n                        <rect key=\"frame\" x=\"362\" y=\"9\" width=\"82\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"2bW-I2-dXF\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"cancel:\" target=\"-2\" id=\"cVE-EY-gVw\"/>\n                        </connections>\n                    </button>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Ogb-e2-2CM\">\n                        <rect key=\"frame\" x=\"280\" y=\"9\" width=\"82\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Help\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"BKj-YZ-Vk2\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"showHelp:\" target=\"-2\" id=\"W7C-Bx-NT7\"/>\n                        </connections>\n                    </button>\n                </subviews>\n            </view>\n            <connections>\n                <outlet property=\"delegate\" destination=\"-2\" id=\"fEg-7w-QRN\"/>\n            </connections>\n            <point key=\"canvasLocation\" x=\"207\" y=\"235.5\"/>\n        </window>\n        <customView id=\"QAK-Cz-bFI\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"530\" height=\"194\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" preferredMaxLayoutWidth=\"495\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"uei-XJ-a4J\">\n                    <rect key=\"frame\" x=\"18\" y=\"12\" width=\"499\" height=\"170\"/>\n                    <autoresizingMask key=\"autoresizingMask\"/>\n                    <textFieldCell key=\"cell\" id=\"GeG-md-J3l\">\n                        <font key=\"font\" size=\"13\" name=\"Courier\"/>\n                        <string key=\"title\">When an incoming connection matches ALL the criterions (domain/ip/port/network), it will be routed to the provided outbound tag. \n\nFour preset tags:\n   main: the outbound users choose from the menu list \"Server\"\ndecline: the connection will be closed.\n direct: incoming traffic will be send to its real destination.\nbalance: v2ray will randomly pickup an outbound from all \n         provided outbounds.</string>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"822\" y=\"348\"/>\n        </customView>\n        <customView id=\"o2X-Co-4Uk\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"438\" height=\"380\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" preferredMaxLayoutWidth=\"398\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ePw-bH-ogO\">\n                    <rect key=\"frame\" x=\"18\" y=\"20\" width=\"402\" height=\"340\"/>\n                    <autoresizingMask key=\"autoresizingMask\"/>\n                    <textFieldCell key=\"cell\" id=\"EXS-dL-5V7\">\n                        <font key=\"font\" size=\"13\" name=\"Courier\"/>\n                        <string key=\"title\">To provide domain and IP rules, follow this format:\n    separate domains and ips with a line `---`.\nExamples:\n1.\n    v2ray.com\n    ----\n    10.0.0.0/8\n    geoip:private\nwill match traffic with (a destination domain includes \"v2ray.com\") AND (a destination IP in range of 10.0.0.0/8 OR a private destination IP)\n2.\n    domain:v2ray.com\n    ----\nwill match traffic with a destination domain of v2ray.com and *.v2ray.com.\n3.\n    ----\n    geoip:private\nwill match all private IPs.</string>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"776\" y=\"-2\"/>\n        </customView>\n        <userDefaultsController representsSharedInstance=\"YES\" id=\"8vE-Ob-ZFh\"/>\n        <customView id=\"F9v-Aq-oZG\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"276\" height=\"174\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <scrollView fixedFrame=\"YES\" borderType=\"none\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Ie4-oz-k96\">\n                    <rect key=\"frame\" x=\"8\" y=\"32\" width=\"260\" height=\"133\"/>\n                    <autoresizingMask key=\"autoresizingMask\"/>\n                    <clipView key=\"contentView\" ambiguous=\"YES\" drawsBackground=\"NO\" copiesOnScroll=\"NO\" id=\"RDn-zh-dIS\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"260\" height=\"133\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <textView ambiguous=\"YES\" importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" spellingCorrection=\"YES\" smartInsertDelete=\"YES\" id=\"1mD-il-bEM\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"260\" height=\"133\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <size key=\"minSize\" width=\"260\" height=\"133\"/>\n                                <size key=\"maxSize\" width=\"264\" height=\"10000000\"/>\n                                <attributedString key=\"textStorage\">\n                                    <fragment content=\"domain list\">\n                                        <attributes>\n                                            <color key=\"NSColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <font key=\"NSFont\" metaFont=\"user\"/>\n                                            <paragraphStyle key=\"NSParagraphStyle\" alignment=\"natural\" lineBreakMode=\"wordWrapping\" baseWritingDirection=\"natural\" tighteningFactorForTruncation=\"0.0\"/>\n                                        </attributes>\n                                    </fragment>\n                                </attributedString>\n                                <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"verticalScroller\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"V6i-GY-DXa\">\n                        <rect key=\"frame\" x=\"244\" y=\"0.0\" width=\"16\" height=\"133\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"0Xw-eT-Liy\">\n                    <rect key=\"frame\" x=\"192\" y=\"-2\" width=\"82\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Save\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"8kA-bO-a9z\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"saveDomainOrIPList:\" target=\"-2\" id=\"Yzk-5F-TJ2\"/>\n                    </connections>\n                </button>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"VCH-NX-Y3t\">\n                    <rect key=\"frame\" x=\"110\" y=\"-2\" width=\"82\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"hp1-s7-XJV\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"closeDomainOrIPList:\" target=\"-2\" id=\"aBw-X3-Ynf\"/>\n                    </connections>\n                </button>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"695\" y=\"598\"/>\n        </customView>\n        <customView id=\"HaA-4d-JXp\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"276\" height=\"174\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <scrollView fixedFrame=\"YES\" borderType=\"none\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" hasHorizontalScroller=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"bYJ-jn-eiL\">\n                    <rect key=\"frame\" x=\"8\" y=\"32\" width=\"260\" height=\"133\"/>\n                    <autoresizingMask key=\"autoresizingMask\"/>\n                    <clipView key=\"contentView\" ambiguous=\"YES\" drawsBackground=\"NO\" copiesOnScroll=\"NO\" id=\"jPy-Y0-jqx\">\n                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"260\" height=\"133\"/>\n                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                        <subviews>\n                            <textView ambiguous=\"YES\" importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" spellingCorrection=\"YES\" smartInsertDelete=\"YES\" id=\"3kN-VI-6Jc\">\n                                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"260\" height=\"133\"/>\n                                <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                <size key=\"minSize\" width=\"260\" height=\"133\"/>\n                                <size key=\"maxSize\" width=\"264\" height=\"10000000\"/>\n                                <attributedString key=\"textStorage\">\n                                    <fragment content=\"ip list\">\n                                        <attributes>\n                                            <color key=\"NSColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            <font key=\"NSFont\" metaFont=\"user\"/>\n                                            <paragraphStyle key=\"NSParagraphStyle\" alignment=\"natural\" lineBreakMode=\"wordWrapping\" baseWritingDirection=\"natural\" tighteningFactorForTruncation=\"0.0\"/>\n                                        </attributes>\n                                    </fragment>\n                                </attributedString>\n                                <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            </textView>\n                        </subviews>\n                    </clipView>\n                    <scroller key=\"verticalScroller\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"jgM-15-0UD\">\n                        <rect key=\"frame\" x=\"244\" y=\"0.0\" width=\"16\" height=\"133\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                    </scroller>\n                </scrollView>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"TGf-m6-LYU\">\n                    <rect key=\"frame\" x=\"192\" y=\"-2\" width=\"82\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Save\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"jQ2-JH-sjq\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"saveDomainOrIPList:\" target=\"-2\" id=\"rMe-5l-mbs\"/>\n                    </connections>\n                </button>\n                <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"D97-EN-bVV\">\n                    <rect key=\"frame\" x=\"110\" y=\"-2\" width=\"82\" height=\"32\"/>\n                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                    <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"c0Q-Wz-IXk\">\n                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                    </buttonCell>\n                    <connections>\n                        <action selector=\"closeDomainOrIPList:\" target=\"-2\" id=\"jxT-I8-dLz\"/>\n                    </connections>\n                </button>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"347\" y=\"615\"/>\n        </customView>\n    </objects>\n    <resources>\n        <image name=\"NSAddTemplate\" width=\"11\" height=\"11\"/>\n        <image name=\"NSRefreshTemplate\" width=\"11\" height=\"15\"/>\n        <image name=\"NSRemoveTemplate\" width=\"11\" height=\"11\"/>\n        <image name=\"config_duplicate\" width=\"24\" height=\"24\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "V2RayX/AdvancedWindowController.h",
    "content": "//\n//  AdvancedWindowController.h\n//  V2RayX\n//\n//\n\n#import <Cocoa/Cocoa.h>\n#import \"ConfigWindowController.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface AdvancedWindowController : NSWindowController<NSTableViewDelegate, NSTableViewDataSource, NSTextViewDelegate>\n\n- (instancetype)initWithWindowNibName:(NSNibName)windowNibName parentController:(ConfigWindowController*)parent;\n@property (weak) IBOutlet NSTextField *checkLabel;\n\n@property (weak) IBOutlet NSTabView *mainTabView;\n\n//outbounds\n@property (weak) IBOutlet NSTableView *outboundTable;\n@property (unsafe_unretained) IBOutlet NSTextView *outboundJsonView;\n@property (weak) IBOutlet NSSegmentedControl *outboundAddControl;\n@property NSMutableArray* outbounds;\n\n// subscription\n@property (weak) IBOutlet NSTableView *subscriptionTable;\n@property (weak) IBOutlet NSSegmentedControl *subscriptionAddControl;\n@property NSMutableArray* subscriptions;\n\n//rules\n@property (strong) IBOutlet NSView *domainListEditView;\n@property (strong) IBOutlet NSView *ipListEditView;\n\n@property (strong) IBOutlet NSView *routingTagHelpView;\n@property (strong) IBOutlet NSView *domainIpHelpView;\n\n@property (weak) IBOutlet NSTableView *ruleSetTable;\n@property (weak) IBOutlet NSSegmentedControl *ruleSetAddControl;\n@property (weak) IBOutlet NSTextField *ruleSetNameField;\n@property (weak) IBOutlet NSPopUpButton *domainStrategyButton;\n@property (weak) IBOutlet NSTableView *ruleTable;\n@property (weak) IBOutlet NSSegmentedControl *ruleAddControl;\n@property (weak) IBOutlet NSButton *domainIpHelpButton;\n\n// enbale buttons\n@property (weak) IBOutlet NSButton *domainEnableButton;\n@property (weak) IBOutlet NSButton *ipEnableButton;\n@property (weak) IBOutlet NSButton *inboundEnableButton;\n@property (weak) IBOutlet NSButton *protocolEnableButton;\n@property (weak) IBOutlet NSButton *portEnableButton;\n@property (weak) IBOutlet NSButton *networkEnableButton;\n\n// fields\n@property (weak) IBOutlet NSButton *editDomainButton;\n@property (unsafe_unretained) IBOutlet NSTextView *domainTextView;\n@property (weak) IBOutlet NSButton *editIpButton;\n@property (unsafe_unretained) IBOutlet NSTextView *ipTextView;\n@property (weak) IBOutlet NSComboBox *inboundTagBox;\n@property (weak) IBOutlet NSPopUpButton *protocolButton;\n@property (weak) IBOutlet NSTextField *portField;\n@property (weak) IBOutlet NSPopUpButton *networkListButton;\n@property (weak) IBOutlet NSButton *saveIPListButton;\n@property (weak) IBOutlet NSButton *saveDomainListButton;\n\n@property (weak) IBOutlet NSButton *routeToHelpButton;\n@property (weak) IBOutlet NSComboBox *routeToBox;\n@property NSMutableArray* routingRuleSets;\n\n//config\n@property (weak) IBOutlet NSTableView *configTable;\n@property (weak) IBOutlet NSSegmentedControl *configAddControl;\n@property NSMutableArray* configs;\n\n// v2ray core\n@property (weak) IBOutlet NSTextField *corePathField;\n@property (weak) IBOutlet NSTextField *coreFileListField;\n@property (weak) IBOutlet NSPopUpButton *enableRestoreButton;\n@property BOOL enableRestore;\n\n// encryption\n@property (weak) IBOutlet NSButton *enableEncryptionButton;\n@property (weak) IBOutlet NSSecureTextField *encryptionKeyField;\n@property (weak) IBOutlet NSSecureTextField *encryptionKeyConfirmField;\n@property BOOL enableEncryption;\n@property NSString* encryptionKey;\n@property (weak) IBOutlet NSTextField *changeIndicatorField;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "V2RayX/AdvancedWindowController.m",
    "content": "//\n//  AdvancedWindowController.m\n//  V2RayX\n//\n//\n\n#import \"AdvancedWindowController.h\"\n#import \"MutableDeepCopying.h\"\n#include <stdio.h>\n\n@interface AdvancedWindowController () {\n    ConfigWindowController* configWindowController;\n    //outbound\n   \n}\n\n@property (strong) NSPopover* popover;\n@property NSInteger selectedOutbound;\n@property (atomic) NSInteger selectedRuleSet;\n@property (atomic) NSInteger selectedRule;\n\n@end\n\n@implementation AdvancedWindowController\n\n- (instancetype)initWithWindowNibName:(NSNibName)windowNibName parentController:(ConfigWindowController*)parent {\n    self = [super initWithWindowNibName:windowNibName];\n    if (self) {\n        configWindowController = parent;\n    }\n    return self;\n}\n\n- (void)removeObservers {\n    [self removeObserver:self forKeyPath:@\"selectedOutbound\"];\n    [self removeObserver:self forKeyPath:@\"selectedRuleSet\"];\n    [self removeObserver:self forKeyPath:@\"selectedRule\"];\n}\n\n- (void)windowDidLoad {\n    [super windowDidLoad];\n    \n    // initialize UI\n    [_outboundTable setFocusRingType:NSFocusRingTypeNone];\n    [_ruleTable setFocusRingType:NSFocusRingTypeNone];\n    [_ruleSetTable setFocusRingType:NSFocusRingTypeNone];\n    [_configTable setFocusRingType:NSFocusRingTypeNone];\n    [_subscriptionTable setFocusRingType:NSFocusRingTypeNone];\n    [[self domainStrategyButton] removeAllItems];\n    for(NSString* strategy in DOMAIN_STRATEGY_LIST) {\n        [[self domainStrategyButton] addItemWithTitle:strategy];\n    }\n    [[self networkListButton] removeAllItems];\n    for(NSString* network in ROUTING_NETWORK_LIST) {\n        [[self networkListButton] addItemWithTitle:network];\n    }\n    [_protocolButton removeAllItems];\n    for (NSString* p in SNIFFING_PROTOCOL) {\n        [_protocolButton addItemWithTitle:p];\n    }\n    _outboundJsonView.automaticQuoteSubstitutionEnabled = false;\n    _domainTextView.automaticQuoteSubstitutionEnabled = false;\n    [_routeToBox removeAllItems];\n    [_routeToBox addItemsWithObjectValues:RESERVED_TAGS];\n    [_inboundTagBox removeAllItems];\n    [_inboundTagBox addItemsWithObjectValues:@[@\"socksinbound\", @\"httpinbound\"]];\n    \n    // outbound\n    [_outboundJsonView setFont:[NSFont fontWithName:@\"Menlo\" size:13]];\n    [self addObserver:self\n           forKeyPath:@\"selectedOutbound\"\n              options:NSKeyValueObservingOptionNew\n              context:nil];\n    \n    // rule\n    [self addObserver:self\n           forKeyPath:@\"selectedRuleSet\"\n              options:NSKeyValueObservingOptionNew\n              context:nil];\n    [self addObserver:self\n           forKeyPath:@\"selectedRule\"\n              options:NSKeyValueObservingOptionNew\n              context:nil];\n    \n    [[NSNotificationCenter defaultCenter] addObserver:self\n                                             selector:@selector(textFieldDidChange:)\n                                                 name:NSControlTextDidChangeNotification\n                                               object:_ruleSetNameField];\n    [[NSNotificationCenter defaultCenter] addObserver:self\n                                             selector:@selector(textFieldDidChange:)\n                                                 name:NSControlTextDidChangeNotification\n                                               object:_routeToBox];\n    [[NSNotificationCenter defaultCenter] addObserver:self\n                                             selector:@selector(textFieldDidChange:)\n                                                 name:NSControlTextDidChangeNotification\n                                               object:_portField];\n    \n    \n    // core path\n    self.corePathField.stringValue = [NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/v2ray-core/\",NSHomeDirectory()];\n    self.enableRestore = configWindowController.enableRestore;\n    \n    self.enableEncryption = configWindowController.enableEncryption;\n    self.encryptionKey = [[NSString alloc] initWithString:configWindowController.encryptionKey];\n    // encryption\n    _changeIndicatorField.stringValue = @\"\";\n    \n    [self fillData];\n}\n\n- (void)fillData {\n    // outbound\n    self.outbounds = [configWindowController.outbounds mutableCopy];\n    _outboundJsonView.editable = self.outbounds.count > 0;\n    if (self.outbounds.count > 0) {\n        self.selectedOutbound = 0;\n    } else {\n        self.selectedOutbound = -1;\n    }\n    [_outboundTable reloadData];\n    // subscriptions\n    self.subscriptions = [configWindowController.subscriptions mutableCopy];\n    [_subscriptionTable reloadData];\n    // rules\n    self.selectedRuleSet = 0;\n    self.selectedRule = 0;\n    self.routingRuleSets = [configWindowController.routingRuleSets mutableDeepCopy];\n    // configs\n    self.configs = [configWindowController.cusProfiles mutableDeepCopy];\n    [_configTable reloadData];\n    // core\n    [_enableRestoreButton selectItemAtIndex:_enableRestore?1:0];\n}\n\n- (IBAction)ok:(id)sender {\n    \n    if (![self checkOutbound]) {\n        return;\n    }\n    if (![self checkConfig]) {\n        return;\n    }\n    [self removeObservers];\n    [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseOK];\n}\n\n- (IBAction)cancel:(id)sender {\n    [self removeObservers];\n    [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseCancel];\n}\n\n// table data\n- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView {\n    if (tableView == _outboundTable) {\n        return [self.outbounds count];\n    }\n    if (tableView == _configTable) {\n        return [self.configs count];\n    }\n    if (tableView == _ruleSetTable) {\n        return self.routingRuleSets.count;\n    }\n    if (tableView == _ruleTable) {\n        return [self.routingRuleSets[_selectedRuleSet][@\"rules\"] count];\n    }\n    if (tableView == _subscriptionTable) {\n        return [self.subscriptions count];\n    }\n    return 0;\n}\n\n- (id)tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {\n    if (tableView == _outboundTable) {\n        return self.outbounds[row][@\"tag\"];\n    }\n    if (tableView == _configTable) {\n        return self.configs[row];\n    }\n    if (tableView == _ruleSetTable) {\n        return self.routingRuleSets[row][@\"name\"];\n    }\n    if(tableView == _ruleTable) {\n        NSUInteger ruleCount = [self.routingRuleSets[_selectedRuleSet][@\"rules\"] count];\n        NSDictionary* rule = self.routingRuleSets[_selectedRuleSet][@\"rules\"][row];\n        NSString* routeTo = rule[@\"outboundTag\"] ? rule[@\"outboundTag\"] : rule[@\"balancerTag\"];\n        return row + 1 == ruleCount ? [NSString stringWithFormat:@\"final:%@\", routeTo] : [NSString stringWithFormat:@\"%lu:%@\", row, routeTo] ;\n    }\n    if (tableView == _subscriptionTable) {\n        return self.subscriptions[row];\n    }\n    return @\"\";\n}\n\n// table delegate\n- (void)tableViewSelectionDidChange:(NSNotification *)notification {\n    if (notification.object == _outboundTable) {\n        if (_outboundTable.selectedRow != _selectedOutbound) {\n            [self checkOutbound];\n        } else {\n            NSLog(@\"do nothing\");\n        }\n    }\n    if (notification.object == _ruleSetTable) {\n        self.selectedRuleSet = [_ruleSetTable selectedRow];\n        [_ruleTable reloadData];\n    }\n    if (notification.object == _ruleTable) {\n        self.selectedRule = [_ruleTable selectedRow];\n    }\n}\n\n- (void)tableView:(NSTableView *)tableView setObjectValue:(id)object forTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {\n    if (tableView == _configTable) {\n        self.configs[row] = object;\n    } else if (tableView == _subscriptionTable) {\n        self.subscriptions[row] = object;\n    }\n}\n\n// bound\n\n- (BOOL)checkOutbound {\n    if (_outbounds.count == 0) {\n        return YES;\n    }\n    NSError *e;\n    NSDictionary* newOutboud = [NSJSONSerialization JSONObjectWithData:[_outboundJsonView.string dataUsingEncoding:NSUTF8StringEncoding] options:0 error:&e];\n    if (e) {\n        [self showAlert:@\"NOT a valid json\"];\n        [_outboundTable selectRowIndexes:[NSIndexSet indexSetWithIndex:_selectedOutbound] byExtendingSelection:NO];\n        return NO;\n    } else {\n        self.outbounds[_selectedOutbound] = newOutboud;\n        self.selectedOutbound = _outboundTable.selectedRow;\n        [_outboundTable reloadData];\n        return YES;\n    }\n}\n\n- (IBAction)addRemoveOutbound:(id)sender {\n    if ([sender selectedSegment] == 0) {\n        NSString* tagName = [NSString stringWithFormat:@\"tag%lu\", self.outbounds.count];\n        [self.outbounds addObject:@{\n                                    @\"sendThrough\": @\"0.0.0.0\",\n                                    @\"protocol\": @\"protocol name\",\n                                    @\"settings\": @{},\n                                    @\"tag\": tagName,\n                                    @\"streamSettings\": @{},\n                                    @\"mux\": @{}\n                                    }];\n        if (_selectedOutbound == -1) {\n            _selectedOutbound = 0;\n            self.selectedOutbound = 0;\n        }\n    } else {\n        if (_selectedOutbound >= 0 && _selectedOutbound < _outbounds.count) {\n            [_outbounds removeObjectAtIndex:_selectedOutbound];\n            self.selectedOutbound = MIN((NSInteger)_outbounds.count - 1, _selectedOutbound);\n        }\n    }\n    [_outboundTable reloadData];\n    _outboundJsonView.editable = _outbounds.count > 0;\n}\n\n// rules\n\n-(void)textFieldDidChange:(NSNotification *)notification {\n    if (notification.object == _ruleSetNameField) {\n        self.routingRuleSets[_selectedRuleSet][@\"name\"] = _ruleSetNameField.stringValue;\n    }\n    if (notification.object == _routeToBox) {\n        NSMutableDictionary* rule =\n        self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule];\n        if ([@\"balance\" isEqualToString:_routeToBox.stringValue]) {\n            rule[@\"balancerTag\"] = @\"balance\";\n            [rule removeObjectForKey:@\"outboundTag\"];\n        } else {\n            rule[@\"outboundTag\"] = _routeToBox.stringValue;\n            [rule removeObjectForKey:@\"balancerTag\"];\n        }\n    }\n    if (notification.object == _portField) {\n        NSMutableDictionary* rule =\n        self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule];\n        NSString* trimedInput = [_portField.stringValue stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];\n        NSNumberFormatter* f = [[NSNumberFormatter alloc] init];\n        f.numberStyle = NSNumberFormatterDecimalStyle;\n        NSNumber *port = [f numberFromString:trimedInput];\n        rule[@\"port\"] = nilCoalescing(port, trimedInput);\n    }\n    if (notification.object == _inboundTagBox) {\n        self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule][@\"inboundTag\"] = _inboundTagBox.stringValue;\n    }\n}\n\n- (IBAction)addRemoveRuleSet:(id)sender {\n    [[self window] makeFirstResponder:_ruleSetTable];\n    if ([sender selectedSegment] == 0) {\n        NSMutableDictionary* newRuleSet = [ROUTING_DIRECT mutableDeepCopy];\n        newRuleSet[@\"name\"] = @\"new_rule_set\";\n        [_routingRuleSets addObject:newRuleSet];\n        [_ruleSetTable reloadData];\n        [_ruleSetTable selectRowIndexes:[NSIndexSet indexSetWithIndex:_routingRuleSets.count - 1] byExtendingSelection:NO]; // toggle\n    } else if([sender selectedSegment] == 1 && _selectedRuleSet > 0 && _selectedRuleSet < _routingRuleSets.count){\n        [_routingRuleSets removeObjectAtIndex:_selectedRuleSet];\n        NSUInteger originalIndex = _ruleSetTable.selectedRow;\n        [_ruleSetTable selectRowIndexes:[NSIndexSet indexSetWithIndex:MIN(_selectedRuleSet, _routingRuleSets.count - 1)] byExtendingSelection:NO]; // toggle\n        if (originalIndex == _ruleSetTable.selectedRow) {\n            [self tableViewSelectionDidChange:[NSNotification notificationWithName:NSTableViewSelectionDidChangeNotification object:_ruleSetTable]];\n        }\n        [_ruleSetTable reloadData];\n    } else if ([sender selectedSegment] == 2) {\n        NSAlert* alert = [[NSAlert alloc] init];\n        alert.messageText = @\"Do you want to reset rule sets to original three ones?\";\n        [alert addButtonWithTitle:@\"OK\"];\n        [alert addButtonWithTitle:@\"Cancel\"];\n        [alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) {\n            if (returnCode == NSAlertFirstButtonReturn) {\n                NSLog(@\"will rest\");\n                self->_routingRuleSets = [@[ROUTING_GLOBAL, ROUTING_BYPASSCN_PRIVATE_APPLE, ROUTING_DIRECT] mutableDeepCopy];\n                NSUInteger originalIndex = self->_ruleSetTable.selectedRow;\n                [self->_ruleSetTable selectRowIndexes:[NSIndexSet indexSetWithIndex:0] byExtendingSelection:NO]; // toggle\n                if (originalIndex == self->_ruleSetTable.selectedRow) {\n                    [self tableViewSelectionDidChange:[NSNotification notificationWithName:NSTableViewSelectionDidChangeNotification object:self->_ruleSetTable]];\n                }\n                [self->_ruleSetTable reloadData];\n            }\n        }];\n    } else if ([sender selectedSegment] == 3 && _selectedRuleSet >= 0 && _selectedRuleSet < _routingRuleSets.count) {\n        [_routingRuleSets addObject:[[_routingRuleSets objectAtIndex:_selectedRuleSet] mutableDeepCopy]];\n        [_ruleSetTable reloadData];\n        [_ruleSetTable selectRowIndexes:[NSIndexSet indexSetWithIndex:_routingRuleSets.count - 1] byExtendingSelection:NO]; // toggle\n    }\n}\n\n- (IBAction)didSelectStrategy:(id)sender {\n    if (_selectedRuleSet < _routingRuleSets.count) {\n        _routingRuleSets[_selectedRuleSet][@\"domainStrategy\"] = _domainStrategyButton.selectedItem.title;\n    }\n}\n\n- (IBAction)addRemoveRule:(id)sender {\n    [[self window] makeFirstResponder:_ruleTable];\n    NSMutableArray* rules = _routingRuleSets[_selectedRuleSet][@\"rules\"];\n    if ([sender selectedSegment] == 0) {\n        [rules insertObject:[@{\n                              @\"type\": @\"field\",\n                              @\"outboundTag\": @\"direct\"} mutableDeepCopy] atIndex:rules.count-1];\n    } else {\n        if (_selectedRule + 1 == [rules count]) {\n            return;\n        }\n        [rules removeObjectAtIndex:_selectedRule];\n    }\n    [_ruleTable reloadData];\n    self.selectedRule = _selectedRule; // toggle\n}\n\n- (IBAction)didClickEnable:(id)sender {\n\n#define enableFilter(enableButton, field, key) \\\n    field.enabled = enableButton.state; \\\n    if (!enableButton.state) { \\\n        [self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule] removeObjectForKey:key];\\\n    }\n    \n    if (sender == _domainEnableButton) {\n        enableFilter(_domainEnableButton, _editDomainButton, @\"domain\")\n        if (_domainEnableButton.state) {\n            [self showEditView:_editDomainButton];\n        } else if (self.popover.shown) {\n            [self.popover close];\n        }\n    } else if (sender == _ipEnableButton) {\n        enableFilter(_ipEnableButton, _editIpButton, @\"ip\")\n        if (_ipEnableButton.state) {\n            [self showEditView:_editIpButton];\n        } else if (self.popover.shown) {\n            [self.popover close];\n        }\n    } else if (sender == _inboundEnableButton) {\n        enableFilter(_inboundEnableButton, _inboundTagBox, @\"inboundTag\")\n        if (_inboundEnableButton.state) {\n            [self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule] setObject:_inboundTagBox.stringValue forKey:@\"inboundTag\"];\n        }\n    } else if (sender == _protocolEnableButton) {\n        enableFilter(_protocolEnableButton, _protocolButton, @\"protocol\")\n        if (_protocolEnableButton.state) {\n            [self didSelectRuleItem:_protocolButton];\n        }\n    } else if (sender == _networkEnableButton) {\n        enableFilter(_networkEnableButton, _networkListButton, @\"network\")\n        if (_networkEnableButton.state) {\n            [self didSelectRuleItem:_networkListButton];\n        }\n    } else if (sender == _portEnableButton) {\n        enableFilter(_portEnableButton, _portField, @\"port\")\n        if (_portEnableButton.state) {\n            [self textFieldDidChange:[[NSNotification alloc] initWithName:NSTextDidChangeNotification object:_portField userInfo:nil]];\n        }\n    }\n}\n\n\n- (IBAction)didSelectRuleItem:(id)sender {\n    if (sender == _networkListButton && _networkEnableButton.state) {\n        [self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule] setObject:_networkListButton.selectedItem.title forKey:@\"network\"];\n    } else if (sender == _protocolButton && _protocolEnableButton.state) {\n        [self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule] setObject:_protocolButton.selectedItem.title forKey:@\"protocol\"];\n    } else if ((sender == _inboundTagBox && _inboundEnableButton.state) || sender == _routeToBox) {\n        [self textFieldDidChange:[[NSNotification alloc] initWithName:NSTextDidChangeNotification object:sender userInfo:nil]];\n    }\n}\n\n- (IBAction)showEditView:(id)sender {\n    if (self.popover.shown) {\n        [self.popover close];\n    }\n    self.popover = [[NSPopover alloc] init];\n    self.popover.behavior = NSPopoverBehaviorApplicationDefined;\n    self.popover.contentViewController = [[NSViewController alloc] init];\n    if (sender == _editDomainButton) {\n        self.popover.contentViewController.view = _domainListEditView;\n    } else if (sender == _editIpButton) {\n        self.popover.contentViewController.view = _ipListEditView;\n    }\n    [self.popover showRelativeToRect:[sender bounds] ofView:sender preferredEdge:NSMaxYEdge];\n}\n- (IBAction)saveDomainOrIPList:(id)sender {\n    [self.popover close];\n    if (sender == _saveIPListButton) {\n        self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule][@\"ip\"] = [[_ipTextView string] componentsSeparatedByString:@\"\\n\"];\n        NSLog(@\"%@\", self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule][@\"ip\"]);\n    } else {\n        self.routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule][@\"domain\"] = [[_ipTextView string] componentsSeparatedByString:@\"\\n\"];\n    }\n}\n\n- (IBAction)closeDomainOrIPList:(id)sender {\n    [self.popover close];\n}\n\n\n//\n\n- (IBAction)addRemoveSubscription:(id)sender {\n    NSLog(@\"%@\", sender);\n    if ([sender selectedSegment] == 0) {\n        [_subscriptions addObject:@\"enter your subscription link here\"];\n        [_subscriptionTable reloadData];\n    } else if ([sender selectedSegment] == 1 && [_subscriptionTable selectedRow] >= 0 && [_subscriptionTable selectedRow] < _subscriptions.count) {\n        [_subscriptions removeObjectAtIndex:[_subscriptionTable selectedRow]];\n        [_subscriptionTable reloadData];\n    }\n    NSLog(@\"%@\", _subscriptions);\n}\n\n// configs\n\n- (IBAction)addRemoveConfig:(id)sender {\n    if ([sender selectedSegment] == 0) {\n        [_configs addObject:@\"/path/to/your/config.json\"];\n        [_configTable reloadData];\n//        [_configTable selectRowIndexes:[NSIndexSet indexSetWithIndex:[_configs count] -1] byExtendingSelection:NO];\n//        [_configTable setFocusedColumn:[_configs count] - 1];\n    } else if ([sender selectedSegment] == 1 && [_configTable selectedRow] >= 0 && [_configTable selectedRow] < _configs.count) {\n        [_configs removeObjectAtIndex:[_configTable selectedRow]];\n        [_configTable reloadData];\n    }\n}\n\n- (BOOL)checkConfig {\n    [_checkLabel setHidden:NO];\n    NSString* v2rayBinPath = [configWindowController.appDelegate getV2rayPath];\n    for (NSString* filePath in _configs) {\n        int returnCode = runCommandLine(v2rayBinPath, @[@\"-test\", @\"-config\", filePath]);\n        if (returnCode != 0) {\n            [_checkLabel setHidden:YES];\n            NSAlert *alert = [[NSAlert alloc] init];\n            [alert setMessageText:[NSString stringWithFormat:@\"%@ is not a valid v2ray config file\", filePath]];\n            [alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) {\n                return;\n            }];\n            return NO;\n        }\n    }\n    return YES;\n}\n\n// core\n- (IBAction)showCorePath:(id)sender {\n    if (![[NSFileManager defaultManager] fileExistsAtPath:self.corePathField.stringValue]) {\n        [[NSFileManager defaultManager] createDirectoryAtPath:self.corePathField.stringValue withIntermediateDirectories:YES attributes:nil error:nil];\n    }\n    [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[[NSURL fileURLWithPath:self.corePathField.stringValue]]];\n}\n\n- (IBAction)changeEnableRestore:(NSPopUpButton*)sender {\n    _enableRestore = [sender indexOfSelectedItem];\n}\n\n- (IBAction)showInformation:(id)sender {\n    self.popover = [[NSPopover alloc] init];\n    self.popover.behavior = NSPopoverBehaviorTransient;\n    self.popover.contentViewController = [[NSViewController alloc] init];\n    if (sender == _domainIpHelpButton) {\n        self.popover.contentViewController.view = _domainIpHelpView;\n    } else if (sender == _routeToHelpButton) {\n        self.popover.contentViewController.view = _routingTagHelpView;\n    }\n    [self.popover showRelativeToRect:[sender bounds] ofView:sender preferredEdge:NSMaxYEdge];\n}\n\n- (IBAction)showHelp:(id)sender {\n    NSString* tabTitle = _mainTabView.selectedTabViewItem.label;\n//    NSLog(@\"%@\", _mainTabView.selectedTabViewItem.label);\n    if ([@\"Rules\" isEqualToString:tabTitle]) {\n        [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@\"https://www.v2ray.com/chapter_02/03_routing.html\"]];\n    } else if ([@\"Outbounds\" isEqualToString:tabTitle]) {\n        [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@\"https://www.v2ray.com/chapter_02/01_overview.html#outboundobject\"]];\n    } else if ([@\"Configs\" isEqualToString:tabTitle]) {\n        [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@\"https://www.v2ray.com/chapter_02/01_overview.html\"]];\n    } else if ([@\"V2Ray Core\" isEqualToString:tabTitle]) {\n        [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@\"https://www.v2ray.com/chapter_00/install.html#download\"]];\n    }\n}\n\n\n- (void)showAlert:(NSString*)text {\n    NSAlert* alert = [[NSAlert alloc] init];\n    [alert setInformativeText:text];\n    [alert beginSheetModalForWindow:self.window completionHandler:nil];\n}\n\n- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context {\n//    NSLog(@\"keypath=%@\", keyPath);\n    // outboud\n    if ([@\"selectedOutbound\" isEqualToString:keyPath]) {\n        if (_selectedOutbound > -1) {\n            [_outboundTable selectRowIndexes:[NSIndexSet indexSetWithIndex:_selectedOutbound] byExtendingSelection:NO];\n            _outboundJsonView.string = [[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:_outbounds[_selectedOutbound] options:NSJSONWritingPrettyPrinted error:nil] encoding:NSUTF8StringEncoding];\n        } else {\n            _outboundJsonView.string = @\"\";\n        }\n    }\n    // rule\n    if ([@\"selectedRuleSet\" isEqualToString:keyPath] && _selectedRuleSet < _routingRuleSets.count) {\n        _ruleSetNameField.stringValue = _routingRuleSets[_selectedRuleSet][@\"name\"];\n        [_domainStrategyButton selectItemAtIndex:searchInArray(_routingRuleSets[_selectedRuleSet][@\"domainStrategy\"], DOMAIN_STRATEGY_LIST)];\n        self.selectedRule = _selectedRule; //toggle\n    }\n    if ([@\"selectedRule\" isEqualToString:keyPath] && _selectedRuleSet < _routingRuleSets.count && _selectedRule < [_routingRuleSets[_selectedRuleSet][@\"rules\"] count]  ) {\n        if (self.popover.shown) {\n            [self.popover close];\n        }\n        NSDictionary* rules = _routingRuleSets[_selectedRuleSet][@\"rules\"][_selectedRule];\n        BOOL selectedLastRule = _selectedRule + 1 == [_routingRuleSets[_selectedRuleSet][@\"rules\"] count];\n        \n        _domainEnableButton.enabled = !selectedLastRule;\n        _domainEnableButton.state = rules[@\"domain\"] != NULL;\n        _editDomainButton.enabled = _domainEnableButton.state;\n        if (rules[@\"domain\"]) {\n            _domainTextView.string = [rules[@\"domain\"] componentsJoinedByString:@\"\\n\"];\n        } else {\n            _domainTextView.string = @\"\";\n        }\n        \n        _ipEnableButton.enabled = !selectedLastRule;\n        _ipEnableButton.state = rules[@\"ip\"] != NULL;\n        _editIpButton.enabled = _ipEnableButton.state;\n        if (rules[@\"ip\"]) {\n            _ipTextView.string = [rules[@\"ip\"] componentsJoinedByString:@\"\\n\"];\n        } else {\n            _ipTextView.string = @\"\";\n        }\n        \n        _inboundEnableButton.enabled = !selectedLastRule;\n        _inboundEnableButton.state = rules[@\"inboundTag\"] != NULL;\n        _inboundTagBox.enabled = _inboundEnableButton.state;\n        _inboundTagBox.stringValue = nilCoalescing(rules[@\"inboundTag\"], @\"\");\n        \n        _protocolEnableButton.enabled = !selectedLastRule;\n        _protocolEnableButton.state = rules[@\"protocol\"] != NULL;\n        _protocolButton.enabled = _protocolEnableButton.state;\n        [_protocolButton selectItemAtIndex:searchInArray(rules[@\"protocol\"], SNIFFING_PROTOCOL)];\n        \n        _portEnableButton.enabled = !selectedLastRule;\n        _portEnableButton.state = rules[@\"port\"] != NULL;\n        _portField.enabled = _portEnableButton.state && !selectedLastRule;\n        _portField.objectValue = nilCoalescing(rules[@\"port\"], @\"0-65535\");\n        \n        _networkEnableButton.enabled = !selectedLastRule;\n        _networkEnableButton.state = rules[@\"network\"] != NULL;\n        _networkListButton.enabled = _networkEnableButton.state;\n        [_networkListButton selectItemAtIndex:searchInArray(rules[@\"network\"], ROUTING_NETWORK_LIST)];\n        \n        \n        _routeToBox.stringValue = rules[@\"outboundTag\"] ? rules[@\"outboundTag\"] : rules[@\"balancerTag\"];\n    }\n}\n\n- (IBAction)changePassword:(id)sender {\n    if ([[_encryptionKeyField stringValue] isEqualToString:[_encryptionKeyConfirmField stringValue]]) {\n        if ([[_encryptionKeyField stringValue] length] > 32) {\n            self.encryptionKey = [_encryptionKeyField.stringValue substringToIndex:32];\n        } else {\n            self.encryptionKey = [_encryptionKeyConfirmField.stringValue stringByPaddingToLength:32 withString:@\"-\" startingAtIndex:0];\n        }\n        [_changeIndicatorField setStringValue:@\"success\"];\n    } else {\n        [_changeIndicatorField setStringValue:@\"two password do not match each other.\"];\n    }\n}\n\n@end\n"
  },
  {
    "path": "V2RayX/AppDelegate.h",
    "content": "//\n//  AppDelegate.h\n//  V2RayX\n//\n//  Copyright © 2016年 Cenmrev. All rights reserved.\n//\n\n\n#import <Cocoa/Cocoa.h>\n#import \"sysconf_version.h\"\n#import \"utilities.h\"\n#define kV2RayXHelper @\"/Library/Application Support/V2RayX/v2rayx_sysconf\"\n#define kV2RayXSettingVersion 4\n\n#define webServerPort 8070\n\ntypedef enum ProxyMode : NSInteger{\n    pacMode,\n    globalMode,\n    manualMode\n} ProxyMode;\n\n\nint runCommandLine(NSString* launchPath, NSArray* arguments);\n\n@interface AppDelegate : NSObject <NSApplicationDelegate, NSUserNotificationCenterDelegate> {\n    BOOL proxyState;\n    ProxyMode proxyMode;\n    NSInteger localPort;\n    NSInteger httpPort;\n    BOOL udpSupport;\n    BOOL shareOverLan;\n    BOOL useCusProfile;\n    BOOL useMultipleServer;\n    NSInteger selectedServerIndex;\n    NSInteger selectedCusServerIndex;\n    NSString* selectedPacFileName;\n    NSString* dnsString;\n    NSMutableArray *profiles;\n    NSMutableArray *cusProfiles;\n    NSString* logLevel;\n    \n    NSString* logDirPath;\n}\n\n@property NSString* logDirPath;\n\n@property BOOL proxyState;\n@property ProxyMode proxyMode;\n@property NSInteger localPort;\n@property NSInteger httpPort;\n@property BOOL udpSupport;\n@property BOOL shareOverLan;\n@property BOOL useCusProfile;\n@property NSInteger selectedServerIndex;\n@property NSInteger selectedCusServerIndex;\n@property NSInteger selectedRoutingSet;\n@property NSString* dnsString;\n@property NSMutableArray *profiles;\n@property NSMutableArray *cusProfiles;\n@property (atomic) NSMutableArray *subsOutbounds;\n@property NSMutableArray *routingRuleSets;\n@property NSString* logLevel;\n@property BOOL useMultipleServer;\n@property NSString* selectedPacFileName;\n@property BOOL enableRestore;\n@property NSMutableArray *subscriptions;\n@property BOOL enableEncryption;\n@property NSString* encryptionKey;\n\n- (IBAction)didChangeStatus:(id)sender;\n- (IBAction)updateSubscriptions:(id)sender;\n- (IBAction)showHelp:(id)sender;\n- (IBAction)showConfigWindow:(id)sender;\n- (IBAction)editPac:(id)sender;\n- (IBAction)resetPac:(id)sender;\n- (IBAction)viewLog:(id)sender;\n- (void)saveConfigInfo;\n\n-(NSString*)getV2rayPath;\n- (NSString*)logDirPath;\n\n@property (weak) IBOutlet NSMenuItem *updateServerItem;\n@property (strong, nonatomic)  NSStatusItem *statusBarItem;\n@property (weak) IBOutlet NSMenuItem *upgradeMenuItem;\n@property (weak, nonatomic) IBOutlet NSMenu *statusBarMenu;\n@property (weak, nonatomic) IBOutlet NSMenuItem *v2rayStatusItem;\n@property (weak, nonatomic) IBOutlet NSMenuItem *enableV2rayItem;\n@property (weak, nonatomic) IBOutlet NSMenuItem *pacModeItem;\n@property (weak, nonatomic) IBOutlet NSMenuItem *v2rayRulesItem;\n@property (weak) IBOutlet NSMenu *ruleSetMenuList;\n@property (weak, nonatomic) IBOutlet NSMenuItem *globalModeItem;\n@property (weak) IBOutlet NSMenuItem *manualModeItem;\n@property (weak, nonatomic) IBOutlet NSMenuItem *serversItem;\n@property (weak, nonatomic) IBOutlet NSMenu *serverListMenu;\n@property (weak, nonatomic) IBOutlet NSMenu *pacListMenu;\n@property (weak) IBOutlet NSMenuItem *editPacMenuItem;\n\n@property (weak) IBOutlet NSMenu *authMenu;\n\n@end\n\n"
  },
  {
    "path": "V2RayX/AppDelegate.m",
    "content": "//\n//  AppDelegate.m\n//  V2RayX\n//\n//  Copyright © 2016年 Cenmrev. All rights reserved.\n//\n\n#import \"AppDelegate.h\"\n#import \"GCDWebServer.h\"\n#import \"GCDWebServerDataResponse.h\"\n#import \"ConfigWindowController.h\"\n#import <SystemConfiguration/SystemConfiguration.h>\n#import \"ServerProfile.h\"\n#import \"MutableDeepCopying.h\"\n#import \"ConfigImporter.h\"\n#import \"NSData+AES256Encryption.h\"\n\n#define kUseAllServer -10\n\n@interface AppDelegate () {\n    GCDWebServer *webServer;\n    ConfigWindowController *configWindowController;\n\n    dispatch_queue_t taskQueue;\n    dispatch_queue_t coreLoopQueue;\n    dispatch_semaphore_t coreLoopSemaphore;\n    NSTask* coreProcess;\n    dispatch_source_t dispatchPacSource;\n    FSEventStreamRef fsEventStream;\n    \n    NSData* v2rayJSONconfig;\n}\n\n@end\n\n@implementation AppDelegate\n\nstatic AppDelegate *appDelegate;\n\n- (NSData*)v2rayJSONconfig {\n    return v2rayJSONconfig;\n}\n\n// a good reference: https://blog.gaelfoppolo.com/user-notifications-in-macos-66c25ed5c692\n\n- (BOOL)userNotificationCenter:(NSUserNotificationCenter *)center\n     shouldPresentNotification:(NSUserNotification *)notification {\n    return YES;\n}\n\n- (void)userNotificationCenter:(NSUserNotificationCenter *)center didActivateNotification:(NSUserNotification *)notification {\n    switch (notification.activationType) {\n        case NSUserNotificationActivationTypeActionButtonClicked:\n            [self inputPassword:self];\n            break;\n        default:\n            break;\n    }\n}\n\n- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {\n    [[NSUserNotificationCenter defaultUserNotificationCenter] setDelegate:self];\n    \n    // check helper\n    if (![self installHelper:false]) {\n        [[NSApplication sharedApplication] terminate:nil];// installation failed or stopped by user,\n    };\n    \n    // prepare directory\n    NSFileManager* fileManager = [NSFileManager defaultManager];\n    NSString *pacDir = [NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/pac\", NSHomeDirectory()];\n    //create application support directory and pac directory\n    if (![fileManager fileExistsAtPath:pacDir]) {\n        [fileManager createDirectoryAtPath:pacDir withIntermediateDirectories:YES attributes:nil error:nil];\n    }\n    // Create Log Dir\n    NSString* logDirName = @\"cenmrev.v2rayx.log\";\n    logDirPath = [NSString stringWithFormat:@\"%@%@\", NSTemporaryDirectory(), logDirName];\n    [fileManager createDirectoryAtPath:logDirPath withIntermediateDirectories:YES attributes:nil error:nil];\n    [fileManager createFileAtPath:[NSString stringWithFormat:@\"%@/access.log\", logDirPath] contents:nil attributes:nil];\n    [fileManager createFileAtPath:[NSString stringWithFormat:@\"%@/error.log\", logDirPath] contents:nil attributes:nil];\n    \n    // initialize variables\n    NSNumber* setingVersion = [[NSUserDefaults standardUserDefaults] objectForKey:@\"setingVersion\"];\n    if(setingVersion == nil || [setingVersion integerValue] != kV2RayXSettingVersion) {\n        NSAlert *noServerAlert = [[NSAlert alloc] init];\n        [noServerAlert setMessageText:@\"If you are running V2RayX for the first time, ignore this message. \\nSorry, unknown settings!\\nAll V2RayX settings will be reset.\"];\n        [noServerAlert runModal];\n        [self writeDefaultSettings]; //explicitly write default settings to user defaults file\n    }\n    \n    v2rayJSONconfig = [[NSData alloc] init];\n    [self addObserver:self forKeyPath:@\"selectedPacFileName\" options:NSKeyValueObservingOptionNew context:nil];\n    \n    // create a serial queue used for NSTask operations\n    taskQueue = dispatch_queue_create(\"cenmrev.v2rayx.nstask\", DISPATCH_QUEUE_SERIAL);\n    // create a loop to run core\n    coreLoopSemaphore = dispatch_semaphore_create(0);\n    coreLoopQueue = dispatch_queue_create(\"cenmrev.v2rayx.coreloop\", DISPATCH_QUEUE_SERIAL);\n    \n    \n    dispatch_async(coreLoopQueue, ^{\n        while (true) {\n            dispatch_semaphore_wait(self->coreLoopSemaphore, DISPATCH_TIME_FOREVER);\n            self->coreProcess = [[NSTask alloc] init];\n            if (@available(macOS 10.13, *)) {\n                [self->coreProcess setExecutableURL:[NSURL fileURLWithPath:[self getV2rayPath]]];\n            } else {\n                [self->coreProcess setLaunchPath:[self getV2rayPath]];\n            }\n            [self->coreProcess setArguments:@[@\"-config\", @\"stdin:\"]];\n            NSPipe* stdinpipe = [NSPipe pipe];\n            [self->coreProcess setStandardInput:stdinpipe];\n            NSData* configData = [NSJSONSerialization dataWithJSONObject:[self generateConfigFile] options:0 error:nil];\n            [[stdinpipe fileHandleForWriting] writeData:configData];\n            [self->coreProcess launch];\n            [[stdinpipe fileHandleForWriting] closeFile];\n            [self->coreProcess waitUntilExit];\n            NSLog(@\"core exit with code %d\", [self->coreProcess terminationStatus]);\n        }\n    });\n    \n    // set up pac server\n    __weak typeof(self) weakSelf = self;\n    //http://stackoverflow.com/questions/14556605/capturing-self-strongly-in-this-block-is-likely-to-lead-to-a-retain-cycle\n    webServer = [[GCDWebServer alloc] init];\n    [webServer addHandlerForMethod:@\"GET\" path:@\"/proxy.pac\" requestClass:[GCDWebServerRequest class] processBlock:^GCDWebServerResponse *(GCDWebServerRequest* request) {\n        return [GCDWebServerDataResponse responseWithData:[weakSelf pacData] contentType:@\"application/x-ns-proxy-autoconfig\"];\n    }];\n    [webServer addHandlerForMethod:@\"GET\" path:@\"/config.json\" requestClass:[GCDWebServerRequest class] processBlock:^GCDWebServerResponse * _Nullable(__kindof GCDWebServerRequest * _Nonnull request) {\n        return [GCDWebServerDataResponse responseWithData:[weakSelf v2rayJSONconfig] contentType:@\"application/json\"];\n    }];\n    [webServer startWithPort:webServerPort bonjourName:nil];\n    \n    \n    [self checkUpgrade:self];\n    \n    appDelegate = self;\n    \n    // resume the service when mac wakes up\n    [[[NSWorkspace sharedWorkspace] notificationCenter] addObserver:self selector:@selector(didChangeStatus:) name:NSWorkspaceDidWakeNotification object:NULL];\n    \n    // initialize UI\n    _statusBarItem = [[NSStatusBar systemStatusBar] statusItemWithLength:NSVariableStatusItemLength];\n    [_statusBarItem setHighlightMode:YES];\n    _pacModeItem.tag = pacMode;\n    _globalModeItem.tag = globalMode;\n    _manualModeItem.tag = manualMode;\n    \n    // read defaults\n    [self readDefaults];\n    self.encryptionKey = @\"\";\n    if (_enableEncryption && ([profiles count] > 0 || [_subscriptions count] > 0)) {\n        NSUserNotification* notification = [[NSUserNotification alloc] init];\n        notification.identifier = [NSString stringWithFormat:@\"cenmrev.v2rayx.passwork.%@\", [NSUUID UUID]];\n        notification.title = @\"Input Password\";\n        notification.informativeText = @\"input your password to continue\";\n        notification.soundName = NSUserNotificationDefaultSoundName;\n        notification.actionButtonTitle = @\"Continue\";\n        notification.hasActionButton = true;\n        [[NSUserNotificationCenter defaultUserNotificationCenter] deliverNotification:notification];\n        [_statusBarItem setMenu:_authMenu];\n        [_statusBarItem setImage:[NSImage imageNamed:@\"statusBarIcon_disabled\"]];\n    } else {\n        [self continueInitialization];\n    }\n}\n\n- (IBAction)inputPassword:(id)sender {\n    NSAlert* alert = [[NSAlert alloc] init];\n    alert.messageText = @\"input password to decrypt configurations\";\n    [alert addButtonWithTitle:@\"Decrypt\"];\n    [alert addButtonWithTitle:@\"Cancel\"];\n    NSTextField *input = [[NSSecureTextField alloc] initWithFrame:NSMakeRect(0, 0, 200, 24)];\n    [input setStringValue:@\"\"];\n    [alert setAccessoryView:input];\n    [input becomeFirstResponder];\n    [alert layout]; //important https://openmcl-devel.clozure.narkive.com/76HRbj5O/how-to-make-an-alert-accessory-view-be-first-responder\n    [alert.window makeFirstResponder:input];\n    while (true) {\n        NSModalResponse response = [alert runModal];\n        if (response == NSAlertSecondButtonReturn) {\n            return;\n        } else {\n            BOOL result = [self decryptConfigurationsWithKey:[[input stringValue] stringByPaddingToLength:32 withString:@\"-\" startingAtIndex:0]];\n            if (result) {\n                break;\n            }\n        }\n    }\n    [self continueInitialization];\n}\n\n-(BOOL)decryptConfigurationsWithKey:(NSString*)key {\n    NSMutableArray* decryptedLinks = [[NSMutableArray alloc] init];\n    for (NSString* encryptedLink in _subscriptions) {\n        NSData* encryptedData = [[NSData alloc] initWithBase64EncodedString:encryptedLink options:NSDataBase64DecodingIgnoreUnknownCharacters];\n        NSData* decryptedData = [encryptedData decryptedDataWithKey:key];\n        if (decryptedData) {\n            NSString* decryptedLink = [[NSString alloc] initWithData:decryptedData encoding:NSUTF8StringEncoding];\n            if (decryptedLink) {\n                [decryptedLinks addObject:decryptedLink];\n            } else {\n                return false;\n            }\n        } else {\n            return false;\n        }\n    }\n    \n    NSMutableArray* decryptedProfiles = [[NSMutableArray alloc] init];\n    for (NSString* encryptedJSON in profiles) {\n        NSData* encryptedData = [[NSData alloc] initWithBase64EncodedString:encryptedJSON options:NSDataBase64DecodingIgnoreUnknownCharacters];\n        NSData* decryptedData = [encryptedData decryptedDataWithKey:key];\n        if (decryptedData) {\n            NSDictionary* decryptedProfile = [NSJSONSerialization JSONObjectWithData:decryptedData options:0 error:nil];\n            if (decryptedProfile) {\n                [decryptedProfiles addObject:decryptedProfile];\n            } else {\n                return false;\n            }\n        } else {\n            return false;\n        }\n    }\n    _subscriptions = decryptedLinks;\n    profiles = decryptedProfiles;\n    return true;\n}\n\n- (void)continueInitialization {\n    [_statusBarItem setMenu:_statusBarMenu];\n    // start proxy\n    [self updateSubscriptions:self]; // also includes [self didChangeStatus:self];\n}\n\n- (BOOL)installHelper:(BOOL)force {\n    NSFileManager *fileManager = [NSFileManager defaultManager];\n    if (!force && [fileManager fileExistsAtPath:kV2RayXHelper] && [self isSysconfVersionOK]) {\n        // helper already installed\n        return YES;\n    }\n    NSAlert *installAlert = [[NSAlert alloc] init];\n    [installAlert addButtonWithTitle:@\"Install\"];\n    [installAlert addButtonWithTitle:@\"Quit\"];\n    [installAlert setMessageText:@\"V2RayX needs to install a small tool to /Library/Application Support/V2RayX/ with administrator privileges to set system proxy quickly.\\nOtherwise you need to type in the administrator password every time you change system proxy through V2RayX.\"];\n    if ([installAlert runModal] == NSAlertFirstButtonReturn) {\n        NSLog(@\"start install\");\n        NSString *helperPath = [NSString stringWithFormat:@\"%@/%@\", [[NSBundle mainBundle] resourcePath], @\"install_helper.sh\"];\n        NSLog(@\"run install script: %@\", helperPath);\n        NSDictionary *error;\n        NSString *script = [NSString stringWithFormat:@\"do shell script \\\"bash %@\\\" with administrator privileges\", helperPath];\n        NSAppleScript *appleScript = [[NSAppleScript new] initWithSource:script];\n        if ([appleScript executeAndReturnError:&error]) {\n            NSLog(@\"installation success\");\n            return YES;\n        } else {\n            NSLog(@\"installation failure\");\n            //unknown failure\n            return NO;\n        }\n    } else {\n        // stopped by user\n        return NO;\n    }\n}\n\n- (BOOL)isSysconfVersionOK {\n    NSTask *task;\n    task = [[NSTask alloc] init];\n    if (@available(macOS 10.13, *)) {\n        [task setExecutableURL:[NSURL fileURLWithPath:kV2RayXHelper]];\n    } else {\n        [task setLaunchPath:kV2RayXHelper];\n    }\n    \n    NSArray *args;\n    args = [NSArray arrayWithObjects:@\"-v\", nil];\n    [task setArguments: args];\n    \n    NSPipe *pipe;\n    pipe = [NSPipe pipe];\n    [task setStandardOutput:pipe];\n    \n    NSFileHandle *fd;\n    fd = [pipe fileHandleForReading];\n    \n    [task launch];\n    \n    NSData *data;\n    data = [fd readDataToEndOfFile];\n    \n    NSString *str;\n    str = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];\n    \n    if (![str isEqualToString:VERSION]) {\n        return NO;\n    }\n    return YES;\n}\n\n- (IBAction)openReleasePage:(id)sender {\n    [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@\"https://github.com/Cenmrev/V2RayX/releases/latest\"]];\n}\n\n- (IBAction)checkUpgrade:(id)sender {\n    NSURL* url =[NSURL URLWithString:@\"https://api.github.com/repos/cenmrev/v2rayx/releases/latest\"];\n    NSURLSessionDataTask* task = [[NSURLSession sharedSession] dataTaskWithURL:url completionHandler:^(NSData * _Nullable data, NSURLResponse * _Nullable response, NSError * _Nullable error) {\n        @try {\n            NSDictionary* d = [NSJSONSerialization JSONObjectWithData:data options:0 error:nil];\n            if ([d[@\"prerelease\"] isEqualToNumber:@NO]) {\n                NSNumberFormatter* f = [[NSNumberFormatter alloc] init];\n                f.numberStyle = NSNumberFormatterDecimalStyle;\n                NSArray* newVersion = [[d[@\"tag_name\"] substringFromIndex:1] componentsSeparatedByString:@\".\"];\n                NSArray* currentVersion = [[[[NSBundle mainBundle] infoDictionary] objectForKey:@\"CFBundleShortVersionString\"] componentsSeparatedByString:@\".\"];\n                for (int i = 0; i < 3; i += 1) {\n                    NSInteger newv = [[f numberFromString:newVersion[i]] integerValue];\n                    NSInteger currentv = [[f numberFromString:currentVersion[i]] integerValue];\n                    if (newv > currentv) {\n                        self.upgradeMenuItem.hidden = false;\n                        return;\n                    }\n                }\n\n            }\n        } @catch (NSException *exception) {\n        } @finally {\n            ;\n        }\n        self.upgradeMenuItem.hidden = true;\n    }];\n    [task resume];\n}\n\n- (void)readDefaults {\n    // just read defaults, didChangeStatus will handle invalid parameters.\n    // return encrypted or not\n    \n    NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];\n    NSDictionary* appStatus = nilCoalescing([defaults objectForKey:@\"appStatus\"], @{});\n    \n    proxyState = [nilCoalescing(appStatus[@\"proxyState\"], @(NO)) boolValue]; //turn off proxy as default\n    proxyMode = [nilCoalescing(appStatus[@\"proxyMode\"], @(manualMode)) integerValue];\n    selectedServerIndex = [nilCoalescing(appStatus[@\"selectedServerIndex\"], @0) integerValue];\n    selectedCusServerIndex = [nilCoalescing(appStatus[@\"selectedCusServerIndex\"], @0) integerValue];\n    _selectedRoutingSet = [nilCoalescing(appStatus[@\"selectedRoutingSet\"], @0) integerValue];\n    useMultipleServer = [nilCoalescing(appStatus[@\"useMultipleServer\"], @(NO)) boolValue];\n    useCusProfile = [nilCoalescing(appStatus[@\"useCusProfile\"], @(NO)) boolValue];\n    self.selectedPacFileName = nilCoalescing(appStatus[@\"selectedPacFileName\"], @\"pac.js\");\n    \n    _enableEncryption = [nilCoalescing([defaults objectForKey:@\"enableEncryption\"], @(NO)) boolValue];\n    logLevel = nilCoalescing([defaults objectForKey:@\"logLevel\"], @\"none\");\n    localPort = [nilCoalescing([defaults objectForKey:@\"localPort\"], @1081) integerValue]; //use 1081 as default local port\n    httpPort = [nilCoalescing([defaults objectForKey:@\"httpPort\"], @8001) integerValue]; //use 8001 as default local http port\n    udpSupport = [nilCoalescing([defaults objectForKey:@\"udpSupport\"], @(NO)) boolValue];// do not support udp as default\n    shareOverLan = [nilCoalescing([defaults objectForKey:@\"shareOverLan\"],@(NO)) boolValue];\n    dnsString = nilCoalescing([defaults objectForKey:@\"dnsString\"], @\"localhost\");\n    _enableRestore = [nilCoalescing([defaults objectForKey:@\"enableRestore\"],@(NO)) boolValue];\n    \n    profiles = [[NSMutableArray alloc] init];\n    if ([defaults objectForKey:@\"profiles\"] && [[defaults objectForKey:@\"profiles\"] isKindOfClass:[NSArray class]]) {\n        if (!_enableEncryption) {\n            for (NSDictionary* aProfile in [defaults objectForKey:@\"profiles\"]) {\n                if ([aProfile isKindOfClass:[NSDictionary class]] && aProfile[@\"tag\"] && [aProfile[@\"tag\"] length] && [RESERVED_TAGS indexOfObject:aProfile[@\"tag\"]] == NSNotFound) {\n                    [profiles addObject:aProfile];\n                }\n            }\n        } else {\n            for (NSString* encrypted in [defaults objectForKey:@\"profiles\"]) {\n                if ([encrypted isKindOfClass:[NSString class]]) {\n                    [profiles addObject:encrypted];\n                }\n            }\n        }\n    }\n    \n    cusProfiles = [[NSMutableArray alloc] init];\n    if ([[defaults objectForKey:@\"cusProfiles\"] isKindOfClass:[NSArray class]] && [[defaults objectForKey:@\"cusProfiles\"] count] > 0) {\n        for (id cusPorfile in [defaults objectForKey:@\"cusProfiles\"]) {\n            if ([cusPorfile isKindOfClass:[NSString class]]) {\n                [cusProfiles addObject:cusPorfile];\n            }\n        }\n    }\n    \n    _subscriptions = [[NSMutableArray alloc] init];\n    if ([defaults objectForKey:@\"subscriptions\"] && [[defaults objectForKey:@\"subscriptions\"] isKindOfClass:[NSArray class]]) {\n        for (NSString* link in [defaults objectForKey:@\"subscriptions\"]) {\n            if ([link isKindOfClass:[NSString class]]) {\n                [_subscriptions addObject:link];\n            }\n        }\n    }\n    \n    _routingRuleSets = [@[ROUTING_GLOBAL, ROUTING_BYPASSCN_PRIVATE_APPLE, ROUTING_DIRECT] mutableDeepCopy];\n    if ([[defaults objectForKey:@\"routingRuleSets\"] isKindOfClass:[NSArray class]] && [[defaults objectForKey:@\"routingRuleSets\"] count] > 0) {\n        _routingRuleSets = [[defaults objectForKey:@\"routingRuleSets\"] mutableDeepCopy];\n    }\n}\n\n- (void) writeDefaultSettings {\n    NSDictionary *defaultSettings =\n    @{\n      @\"setingVersion\": [NSNumber numberWithInteger:kV2RayXSettingVersion],\n      @\"appStatus\": @{\n              @\"proxyState\": [NSNumber numberWithBool:NO],\n              @\"proxyMode\": @(manualMode),\n              @\"selectedServerIndex\": [NSNumber numberWithInteger:0],\n              @\"selectedCusServerIndex\": [NSNumber numberWithInteger:-1],\n              @\"useCusProfile\": @NO,\n              @\"selectedRoutingSet\":@0,\n              @\"useMultipleServer\": @NO,\n              @\"selectedPacFileName\": @\"pac.js\"\n              },\n      @\"enableEncryption\":@(NO),\n      @\"logLevel\": @\"none\",\n      @\"localPort\": [NSNumber numberWithInteger:1081],\n      @\"httpPort\": [NSNumber numberWithInteger:8001],\n      @\"udpSupport\": [NSNumber numberWithBool:NO],\n      @\"shareOverLan\": [NSNumber numberWithBool:NO],\n      @\"dnsString\": @\"localhost\",\n      @\"profiles\":@[\n              [[[ServerProfile alloc] init] outboundProfile]\n              ],\n      @\"cusProfiles\": @[],\n      @\"enableRestore\": @NO,\n      @\"routingRuleSets\": @[ROUTING_GLOBAL, ROUTING_BYPASSCN_PRIVATE_APPLE, ROUTING_DIRECT],\n      };\n    for (NSString* key in [defaultSettings allKeys]) {\n        [[NSUserDefaults standardUserDefaults] setObject:defaultSettings[key] forKey:key];\n    }\n}\n\n- (NSData*) pacData {\n    return [NSData dataWithContentsOfFile:[NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/pac/%@\",NSHomeDirectory(), selectedPacFileName]];\n}\n\n- (void)saveAppStatus {\n    NSDictionary* status = @{\n                             @\"proxyState\": @(proxyState),\n                             @\"proxyMode\": @(proxyMode),\n                             @\"selectedServerIndex\": @(selectedServerIndex),\n                             @\"selectedCusServerIndex\": @(selectedCusServerIndex),\n                             @\"useCusProfile\": @(useCusProfile),\n                             @\"selectedRoutingSet\":@(_selectedRoutingSet),\n                             @\"useMultipleServer\": @(useMultipleServer),\n                             @\"selectedPacFileName\": selectedPacFileName\n                             };\n    [[NSUserDefaults standardUserDefaults] setObject:status forKey:@\"appStatus\"];\n}\n\n- (void)saveConfigInfo {\n    dispatch_async(taskQueue, ^{\n        NSMutableArray* subscriptionToSave;\n        NSMutableArray* profilesToSave;\n        if (self->_enableEncryption) {\n            subscriptionToSave = [[NSMutableArray alloc] init];\n            for (NSString* link in self->_subscriptions) {\n                [subscriptionToSave addObject:[[[link dataUsingEncoding:NSUTF8StringEncoding] encryptedDataWithKey:self->_encryptionKey] base64EncodedStringWithOptions:0]];\n            }\n            profilesToSave = [[NSMutableArray alloc] init];\n            for (NSDictionary* profile in self->profiles) {\n                NSData* jsonData = [NSJSONSerialization dataWithJSONObject:profile options:0 error:nil];\n                [profilesToSave addObject:[[jsonData encryptedDataWithKey:self->_encryptionKey] base64EncodedStringWithOptions:0]];\n            }\n        } else {\n            subscriptionToSave = self->_subscriptions;\n            profilesToSave = self->profiles;\n        }\n        NSDictionary *settings =\n        @{\n          @\"enableEncryption\":@(self->_enableEncryption),\n          @\"setingVersion\": [NSNumber numberWithInteger:kV2RayXSettingVersion],\n          @\"logLevel\": self.logLevel,\n          @\"localPort\": @(self.localPort),\n          @\"httpPort\": @(self.httpPort),\n          @\"udpSupport\": @(self.udpSupport),\n          @\"shareOverLan\": @(self.shareOverLan),\n          @\"dnsString\": self.dnsString,\n          @\"profiles\":profilesToSave,\n          @\"cusProfiles\": self.cusProfiles,\n          @\"subscriptions\": subscriptionToSave,\n          @\"routingRuleSets\": self.routingRuleSets,\n          @\"enableRestore\": @(self.enableRestore)\n          };\n        for (NSString* key in [settings allKeys]) {\n            [[NSUserDefaults standardUserDefaults] setObject:settings[key] forKey:key];\n        }\n        NSLog(@\"Settings saved.\");\n    });\n}\n\n- (void)applicationWillTerminate:(NSNotification *)aNotification {\n    //stop monitor pac\n    if (dispatchPacSource) {\n        dispatch_source_cancel(dispatchPacSource);\n    }\n    //unload v2ray\n    //runCommandLine(@\"/bin/launchctl\", @[@\"unload\", plistPath]);\n    [self unloadV2ray];\n    NSLog(@\"V2RayX quiting, V2Ray core unloaded.\");\n    //remove log file\n    [[NSFileManager defaultManager] removeItemAtPath:logDirPath error:nil];\n    //save application status\n    [self saveAppStatus];\n    //turn off proxy\n    if (proxyState && proxyMode != manualMode) {\n        _enableRestore ? [self restoreSystemProxy] : [self cancelSystemProxy]; //restore system proxy\n    }\n}\n\n- (IBAction)showHelp:(id)sender {\n    [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@\"https://www.v2ray.com\"]];\n}\n\n// v2rayx status part\n\n// back up system proxy state when V2RayX starts to take control of\n// macOS's proxy settings, which means:\n// 1. proxy status is On and not changed, but proxy mode changes from manual to non-manual => happens when didChangeMode\n// or 2. proxy status was off and now is turned on, and the proxy mode is non-manual => happens when didChangeStatus\n// restore system proxy state when V2RayX stops taking control of macOS's proxy settings, which means:\n// 1. proxy state is On and not changed, but proxy mode changes from non-manual mode to manual mode => happens when didChangeMode\n// or 2. proxy state was on and now is turned off, and the proxy mode is non-manual => happens when didChangeStatus\n\n-(void)backupSystemProxy {\n    SCPreferencesRef prefRef = SCPreferencesCreate(nil, CFSTR(\"V2RayX\"), nil);\n    NSDictionary* sets = (__bridge NSDictionary *)SCPreferencesGetValue(prefRef, kSCPrefNetworkServices);\n    [sets writeToURL:[NSURL fileURLWithPath:[NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/system_proxy_backup.plist\",NSHomeDirectory()]] atomically:NO];\n}\n\n-(void)restoreSystemProxy {\n    dispatch_async(taskQueue, ^{\n        runCommandLine(kV2RayXHelper,@[@\"restore\"]);\n    });\n}\n\n-(void)cancelSystemProxy {\n    dispatch_async(taskQueue, ^{\n        runCommandLine(kV2RayXHelper,@[@\"off\"]);\n    });\n}\n\n- (IBAction)didChangeStatus:(id)sender {\n    NSInteger previousStatus = proxyState;\n    if (sender == self) {\n        previousStatus = false;\n    }\n    // sender can be\n    // 1. self, when app is launched\n    // 2. menuitem, when a user click on a server or a routing or updateSeverMenuItem\n    // 3. configwindow controller\n    if (sender == _enableV2rayItem) {\n        proxyState = !proxyState;\n    }\n    // make sure current status parameter is valid\n    selectedServerIndex = MIN((NSInteger)profiles.count + (NSInteger)_subsOutbounds.count - 1, selectedServerIndex);\n    if (profiles.count + _subsOutbounds.count > 0) {\n        selectedServerIndex = MAX(selectedServerIndex, 0);\n    }\n    selectedCusServerIndex = MIN((NSInteger)cusProfiles.count - 1, selectedCusServerIndex );\n    _selectedRoutingSet = MIN((NSInteger)_routingRuleSets.count - 1, _selectedRoutingSet);\n    \n    NSLog(@\"%ld, %ld\", selectedServerIndex, selectedCusServerIndex);\n    if ((!useMultipleServer && selectedServerIndex == -1 && selectedCusServerIndex == -1) || (useMultipleServer && profiles.count + _subsOutbounds.count < 1)) {\n        proxyState = false;\n    } else if (!useMultipleServer && selectedCusServerIndex == -1) {\n        useCusProfile = false;\n    } else if (!useMultipleServer && selectedServerIndex == -1) {\n        useCusProfile = true;\n    }\n    if (proxyMode != manualMode) {\n        if (previousStatus == false && proxyState == true) {\n            [self backupSystemProxy];\n        } else if (previousStatus == true && proxyState == false ) {\n            _enableRestore ? [self restoreSystemProxy] : [self cancelSystemProxy];\n        }\n    }\n    [self coreConfigDidChange:self];\n    if (proxyState == true) {\n        [self updateSystemProxy];\n    } else {\n        [self unloadV2ray];\n    }\n    [self updateMenus];\n    [self updatePacMenuList];\n}\n\n- (IBAction)didChangeMode:(id)sender {\n    if (proxyState == true && proxyMode == manualMode && [sender tag] != manualMode) {\n        [self backupSystemProxy];\n    }\n    if (proxyState == true && proxyMode != manualMode && [sender tag] == manualMode) {\n        _enableRestore ? [self restoreSystemProxy] : [self cancelSystemProxy];\n    }\n    proxyMode = [sender tag];\n    [self updateMenus];\n    if (sender == _pacModeItem) {\n        [self updatePacMenuList];\n    }\n    if (proxyState == true) {\n        [self updateSystemProxy];\n    }\n}\n\n- (void)updateMenus {\n    if (proxyState) {\n        [_v2rayStatusItem setTitle:@\"v2ray-core: loaded\"];\n        [_enableV2rayItem setTitle:@\"Unload core\"];\n        NSImage *icon = [NSImage imageNamed:@\"statusBarIcon\"];\n        [icon setTemplate:YES];\n        [_statusBarItem setImage:icon];\n    } else {\n        [_v2rayStatusItem setTitle:@\"v2ray-core: unloaded\"];\n        [_enableV2rayItem setTitle:@\"Load core\"];\n        [_statusBarItem setImage:[NSImage imageNamed:@\"statusBarIcon_disabled\"]];\n    }\n    [_pacModeItem setState:proxyMode == pacMode];\n    [_manualModeItem setState:proxyMode == manualMode];\n    [_globalModeItem setState:proxyMode == globalMode];\n}\n\n- (void)updatePacMenuList {\n    NSLog(@\"updatePacMenuList\");\n    [_pacListMenu removeAllItems];\n    NSString *pacDir = [NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/pac\", NSHomeDirectory()];\n    \n    NSFileManager *manager = [NSFileManager defaultManager];\n    NSArray *allPath =[manager subpathsAtPath:pacDir];\n    int i = 0;\n    for (NSString *subPath in allPath) {\n        NSString *extString = [subPath pathExtension];\n        if (![extString  isEqual: @\"js\"]){\n            continue;\n        }\n        NSString *itemTitle = subPath;\n        NSMenuItem *newItem = [[NSMenuItem alloc] initWithTitle:itemTitle action:@selector(switchPac:) keyEquivalent:@\"\"];\n        newItem.state = [itemTitle isEqualToString:selectedPacFileName];\n        [newItem setTag:i];\n        [_pacListMenu addItem:newItem];\n        i++;\n    }\n    [_pacListMenu addItem:[NSMenuItem separatorItem]];\n    [_pacListMenu addItem:_editPacMenuItem];\n}\n\n- (IBAction)editPac:(id)sender {\n    [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[[NSURL fileURLWithPath:[NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/pac/%@\",NSHomeDirectory(), selectedPacFileName]]]];\n}\n\n- (IBAction)resetPac:(id)sender {\n    NSAlert *resetAlert = [[NSAlert alloc] init];\n    [resetAlert setMessageText:@\"The pac file will be reset to the original one coming with V2RayX. Are you sure to proceed?\"];\n    [resetAlert addButtonWithTitle:@\"Yes\"];\n    [resetAlert addButtonWithTitle:@\"Cancel\"];\n    NSModalResponse response = [resetAlert runModal];\n    if(response == NSAlertFirstButtonReturn) {\n        NSString* simplePac = [[NSBundle mainBundle] pathForResource:@\"simple\" ofType:@\"pac\"];\n        NSString* pacPath = [NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/pac/%@\",NSHomeDirectory(), selectedPacFileName];\n        if ([[NSFileManager defaultManager] isWritableFileAtPath:pacPath]) {\n            [[NSData dataWithContentsOfFile:simplePac] writeToFile:pacPath atomically:YES];\n        } else {\n            NSAlert* writePacAlert = [[NSAlert alloc] init];\n            [writePacAlert setMessageText:[NSString stringWithFormat:@\"%@ is not writable!\", pacPath]];\n            [writePacAlert runModal];\n        }\n    }\n}\n\n- (void)switchPac:(id)sender {\n    [self setSelectedPacFileName:[sender title]];\n    [self didChangeMode:_pacModeItem];\n}\n\n-(void)updateSystemProxy {\n    NSArray *arguments;\n    if (proxyState) {\n        if (proxyMode == pacMode) { // pac mode\n            // close system proxy first to refresh pac file\n            dispatch_async(taskQueue, ^{\n                runCommandLine(kV2RayXHelper, @[@\"off\"]);\n            });\n            arguments = @[@\"auto\"];\n        } else {\n            if (proxyMode == manualMode) { // manualMode mode\n                arguments = @[@\"-v\"]; // do nothing\n            } else { // global mode\n                if(useMultipleServer || !useCusProfile) {\n                    arguments = @[@\"global\", [NSString stringWithFormat:@\"%ld\", localPort], [NSString stringWithFormat:@\"%ld\", httpPort]];\n                } else {\n                    NSInteger cusHttpPort = 0;\n                    NSInteger cusSocksPort = 0;\n                    NSDictionary* cusJson = [NSJSONSerialization JSONObjectWithData:[NSData dataWithContentsOfFile:cusProfiles[selectedCusServerIndex]] options:0 error:nil];\n                    if (cusJson[@\"inboundDetour\"] != nil && [cusJson[@\"inboundDetour\"] isKindOfClass:[NSArray class]]) {\n                        for (NSDictionary *inboundDetour in cusJson[@\"inboundDetour\"]) {\n                            if ([inboundDetour[@\"protocol\"] isEqualToString:@\"http\"]) {\n                                cusHttpPort = [inboundDetour[@\"port\"] integerValue];\n                            }\n                            if ([inboundDetour[@\"protocol\"] isEqualToString:@\"socks\"]) {\n                                cusSocksPort = [inboundDetour[@\"port\"] integerValue];\n                            }\n                        }\n                    }\n                    if ([cusJson[@\"inbound\"][@\"protocol\"] isEqualToString:@\"http\"]) {\n                        cusHttpPort = [cusJson[@\"inbound\"][@\"port\"] integerValue];\n                    }\n                    if ([cusJson[@\"inbound\"][@\"protocol\"] isEqualToString:@\"socks\"]) {\n                        cusSocksPort = [cusJson[@\"inbound\"][@\"port\"] integerValue];\n                    }\n                    NSLog(@\"socks: %ld, http: %ld\", cusSocksPort, cusHttpPort);\n                    arguments = @[@\"global\", [NSString stringWithFormat:@\"%ld\", cusSocksPort], [NSString stringWithFormat:@\"%ld\", cusHttpPort]];\n                }\n            }\n        }\n        dispatch_async(taskQueue, ^{\n            runCommandLine(kV2RayXHelper,arguments);\n        });\n    } else {\n        ; // do nothing\n    }\n    NSLog(@\"system proxy state:%@,%ld\",proxyState?@\"on\":@\"off\", (long)proxyMode);\n}\n\n\n// core part\n\n- (IBAction)updateSubscriptions:(id)sender {\n    // sender can be self -> called when app is started\n    // or menuItem -> called by user\n    _subsOutbounds = [[NSMutableArray alloc] init];\n    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{\n        for (NSString* link in self.subscriptions) {\n            NSDictionary* r = [ConfigImporter importFromHTTPSubscription:link];\n            if (r) {\n                for (ServerProfile* p in r[@\"vmess\"]) {\n                    [self.subsOutbounds addObject:[p outboundProfile]];\n                }\n                [self.subsOutbounds addObjectsFromArray:r[@\"other\"]];\n            }\n        }\n        // not safe, need to make sure every tag is unique\n        dispatch_async(dispatch_get_main_queue(), ^{\n            [self didChangeStatus:sender];\n        });\n    });\n}\n\n- (void)updateRuleSetMenuList {\n    [_ruleSetMenuList removeAllItems];\n    NSInteger i = 0;\n    for (NSDictionary* rule in _routingRuleSets) {\n        NSMenuItem* item = [[NSMenuItem alloc] initWithTitle:rule[@\"name\"] action:@selector(switchRoutingSet:) keyEquivalent:@\"\"];\n        item.tag = i;\n        item.state = i == _selectedRoutingSet;\n        [_ruleSetMenuList addItem:item];\n        i += 1;\n    }\n}\n\n- (void)updateServerMenuList {\n    [_serverListMenu removeAllItems];\n    if ([profiles count] == 0 && [cusProfiles count] == 0 && [_subsOutbounds count] == 0) {\n        [_serverListMenu addItem:[[NSMenuItem alloc] initWithTitle:@\"no available servers, please add server profiles through config window.\" action:nil keyEquivalent:@\"\"]];\n        if (_subscriptions.count > 0) {\n            [_serverListMenu addItem:[NSMenuItem separatorItem]];\n            [_serverListMenu addItem:_updateServerItem];\n        }\n    } else {\n        int i = 0;\n        for (NSDictionary *p in profiles) {\n            NSString *itemTitle = nilCoalescing(p[@\"tag\"], @\"\");\n            NSMenuItem *newItem = [[NSMenuItem alloc] initWithTitle:itemTitle action:@selector(switchServer:) keyEquivalent:@\"\"];\n            [newItem setTag:i];\n            if (useMultipleServer){\n                newItem.state = 0;\n            } else {\n                newItem.state = (!useCusProfile && i == selectedServerIndex);\n            }\n            [_serverListMenu addItem:newItem];\n            i += 1;\n        }\n        for (NSDictionary* p in _subsOutbounds) {\n            NSString *itemTitle = nilCoalescing(p[@\"tag\"], @\"from subscription\");\n            NSMenuItem *newItem = [[NSMenuItem alloc] initWithTitle:itemTitle action:@selector(switchServer:) keyEquivalent:@\"\"];\n            [newItem setTag:i];\n            if (useMultipleServer){\n                newItem.state = 0;\n            } else {\n                newItem.state = (!useCusProfile && i == selectedServerIndex);\n            }\n            [_serverListMenu addItem:newItem];\n            i += 1;\n        }\n        if([profiles count] + [_subsOutbounds count]> 0) {\n            NSMenuItem *newItem = [[NSMenuItem alloc] initWithTitle:@\"Use All\" action:@selector(switchServer:) keyEquivalent:@\"\"];\n            [newItem setTag:kUseAllServer];\n            newItem.state = useMultipleServer & !useCusProfile;\n            [_serverListMenu addItem:newItem];\n        }\n        if (_subscriptions.count > 0) {\n            [_serverListMenu addItem:[NSMenuItem separatorItem]];\n            [_serverListMenu addItem:_updateServerItem];\n        }\n        if (cusProfiles.count > 0) {\n            [_serverListMenu addItem:[NSMenuItem separatorItem]];\n        }\n        for (NSString* cusProfilePath in cusProfiles) {\n            NSString *itemTitle = [[cusProfilePath componentsSeparatedByString:@\"/\"] lastObject];\n            NSMenuItem *newItem = [[NSMenuItem alloc] initWithTitle:itemTitle action:@selector(switchServer:) keyEquivalent:@\"\"];\n            [newItem setTag:i];\n            if (useMultipleServer){\n                newItem.state = 0;\n            } else {\n                newItem.state = (useCusProfile && i - [profiles count] - [_subsOutbounds count] == selectedCusServerIndex)? 1 : 0;\n            }\n            [_serverListMenu addItem:newItem];\n            i += 1;\n        }\n    }\n}\n\n\n- (IBAction)coreConfigDidChange:(id)sender {\n    if (proxyState == true) {\n        if (!useMultipleServer && useCusProfile) {\n            v2rayJSONconfig = [NSData dataWithContentsOfFile:cusProfiles[selectedCusServerIndex]];\n        } else {\n            NSDictionary *fullConfig = [self generateConfigFile];\n            v2rayJSONconfig = [NSJSONSerialization dataWithJSONObject:fullConfig options:NSJSONWritingPrettyPrinted error:nil];\n        }\n        //[self generateLaunchdPlist:plistPath];\n        [self toggleCore];\n    }\n    [self updateServerMenuList];\n    [self updateRuleSetMenuList];\n}\n\n-(void)toggleCore {\n    [self unloadV2ray];\n    dispatch_semaphore_signal(coreLoopSemaphore);\n//    dispatch_async(taskQueue, ^{\n//        runCommandLine(@\"/bin/launchctl\",  @[@\"unload\", self->plistPath]);\n//        runCommandLine(@\"/bin/cp\", @[@\"/dev/null\", [NSString stringWithFormat:@\"%@/access.log\", self->logDirPath]]);\n//        runCommandLine(@\"/bin/cp\", @[@\"/dev/null\", [NSString stringWithFormat:@\"%@/error.log\", self->logDirPath]]);\n//        runCommandLine(@\"/bin/launchctl\",  @[@\"load\", self->plistPath]);\n//    });\n}\n\n- (IBAction)showConfigWindow:(id)sender {\n    if (configWindowController) {\n        [configWindowController close];\n    }\n    configWindowController =[[ConfigWindowController alloc] initWithWindowNibName:@\"ConfigWindow\"];\n    configWindowController.appDelegate = self;\n    [configWindowController showWindow:self];\n    [NSApp activateIgnoringOtherApps:YES];\n    [configWindowController.window makeKeyAndOrderFront:nil];\n}\n\n- (IBAction)backupConfigs:(id)sender {\n    NSDateFormatter *formatter = [[NSDateFormatter alloc] init];\n    [formatter setDateFormat:@\"dd-MM-yyyy HH:mm\"];\n    NSDate *currentDate = [NSDate date];\n    NSString *dateString = [formatter stringFromDate:currentDate];\n    \n    NSMutableDictionary *backup = [[NSMutableDictionary alloc] init];\n    backup[@\"outbounds\"] = self.profiles;\n    backup[@\"routings\"] = self.routingRuleSets;\n    NSData* backupData = [NSJSONSerialization dataWithJSONObject:backup options:NSJSONWritingPrettyPrinted error:nil];\n    NSString* backupPath = [NSString stringWithFormat:@\"%@/v2rayx_backup_%@.json\", NSHomeDirectory(), dateString];\n    \n    [backupData writeToFile:backupPath atomically:YES];\n    [[NSWorkspace sharedWorkspace] activateFileViewerSelectingURLs:@[[NSURL fileURLWithPath:backupPath]]];\n}\n\n-(IBAction)switchRoutingSet:(id)sender {\n    _selectedRoutingSet = [sender tag];\n    [self coreConfigDidChange:self];\n}\n\n- (void)switchServer:(id)sender {\n    NSInteger outboundCount = [profiles count] + [_subsOutbounds count];\n    if ([sender tag] >= 0 && [sender tag] < outboundCount) {\n        [self setUseMultipleServer:NO];\n        [self setUseCusProfile:NO];\n        [self setSelectedServerIndex:[sender tag]];\n    } else if ([sender tag] >= outboundCount && [sender tag] < outboundCount + [cusProfiles count]) {\n        [self setUseMultipleServer:NO];\n        [self setUseCusProfile:YES];\n        [self setSelectedCusServerIndex:[sender tag] - outboundCount];\n    } else if ([sender tag] == kUseAllServer) {\n        [self setUseMultipleServer:YES];\n        [self setUseCusProfile:NO];\n    }\n    NSLog(@\"use cus pro:%hhd, select %ld, select cus %ld\", useCusProfile, (long)selectedServerIndex, selectedCusServerIndex);\n    [self coreConfigDidChange:self];\n}\n\n-(void)unloadV2ray {\n    if (coreProcess && [coreProcess isRunning]) {\n        [coreProcess terminate];\n    }\n//    dispatch_async(taskQueue, ^{\n//        runCommandLine(@\"/bin/launchctl\", @[@\"unload\", self->plistPath]);\n//        NSLog(@\"V2Ray core unloaded.\");\n//    });\n}\n\n- (NSDictionary*)generateConfigFile {\n    NSMutableDictionary* fullConfig = [NSMutableDictionary dictionaryWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@\"config-sample_new\" ofType:@\"plist\"]];\n    fullConfig[@\"log\"] = @{\n                           @\"access\": [NSString stringWithFormat:@\"%@/access.log\", logDirPath],\n                           @\"error\": [NSString stringWithFormat:@\"%@/error.log\", logDirPath],\n                           @\"loglevel\": logLevel\n                           };\n    fullConfig[@\"inbounds\"][0][@\"port\"] = @(localPort);\n    fullConfig[@\"inbounds\"][0][@\"listen\"] = shareOverLan ? @\"0.0.0.0\" : @\"127.0.0.1\";\n    fullConfig[@\"inbounds\"][0][@\"settings\"][@\"udp\"] = [NSNumber numberWithBool:udpSupport];\n    fullConfig[@\"inbounds\"][1][@\"port\"] = @(httpPort);\n    fullConfig[@\"inbounds\"][1][@\"listen\"] = shareOverLan ? @\"0.0.0.0\" : @\"127.0.0.1\";\n    \n    NSArray* dnsArray = [dnsString componentsSeparatedByString:@\",\"];\n    if ([dnsArray count] > 0) {\n        fullConfig[@\"dns\"][@\"servers\"] = dnsArray;\n    } else {\n        fullConfig[@\"dns\"][@\"servers\"] = @[@\"localhost\"];\n    }\n    \n    // deal with outbound\n    NSMutableDictionary* configOutboundDict = [[NSMutableDictionary alloc] init];\n    NSMutableDictionary* allUniqueTagOutboundDict = [[NSMutableDictionary alloc] init]; // make sure tag is unique\n    NSMutableArray* allOutbounds = [profiles mutableCopy];\n    [allOutbounds addObjectsFromArray:_subsOutbounds];\n    for (NSDictionary* outbound in profiles) {\n        allUniqueTagOutboundDict[outbound[@\"tag\"]] = [outbound mutableDeepCopy];\n    }\n    for (NSDictionary* outbound in _subsOutbounds) {\n        allUniqueTagOutboundDict[outbound[@\"tag\"]] = [outbound mutableDeepCopy];\n    }\n    NSArray* allProxyTags = allUniqueTagOutboundDict.allKeys;\n    allUniqueTagOutboundDict[@\"direct\"] = OUTBOUND_DIRECT;\n    allUniqueTagOutboundDict[@\"decline\"] = OUTBOUND_DECLINE;\n    \n    fullConfig[@\"routing\"] = [_routingRuleSets[_selectedRoutingSet] mutableDeepCopy];\n    if (!useMultipleServer) {\n        // replace tag main with current selected outbound tag\n        NSString* currentMainTag = allOutbounds[selectedServerIndex][@\"tag\"];\n        for (NSMutableDictionary* aRule in fullConfig[@\"routing\"][@\"rules\"]) {\n            if ([@\"main\" isEqualToString:aRule[@\"outboundTag\"]]) {\n                aRule[@\"outboundTag\"] = currentMainTag;\n            }\n        }\n    } else {\n        // replace outbound tag main with balancetag\n        for (NSMutableDictionary* aRule in fullConfig[@\"routing\"][@\"rules\"]) {\n            if ([@\"main\" isEqualToString:aRule[@\"outboundTag\"]]) {\n                [aRule removeObjectForKey:@\"outboundTag\"];\n                [aRule setObject:@\"balance\" forKey:@\"balancerTag\"];\n            }\n        }\n        \n    }\n\n//    NSLog(@\"%@\", allOutbounds);\n    BOOL usebalance = false;\n    for (NSDictionary* rule in fullConfig[@\"routing\"][@\"rules\"]) {\n        if (rule[@\"balancerTag\"] && !rule[@\"outboundTag\"]) {\n            // if any rule uses balancer, stop the loop and add a balancer to the routing part\n            usebalance = true;\n            break;\n        } else {\n            // pick up all mentioned outbounds in the routing rule set\n            if (allUniqueTagOutboundDict[rule[@\"outboundTag\"]]) {\n                configOutboundDict[rule[@\"outboundTag\"]] = allUniqueTagOutboundDict[rule[@\"outboundTag\"]];\n            }\n        }\n    }\n    if (usebalance) {\n        // if balancer is used, add all outbounds into config file, and add all tags to the balancer selector\n        fullConfig[@\"routing\"][@\"balancers\"] = @[@{\n                                                     @\"tag\":@\"balance\",\n                                                     @\"selector\": allProxyTags\n                                                     }];\n        fullConfig[@\"outbounds\"] = allUniqueTagOutboundDict.allValues;\n    } else {\n        // otherwise, we convert all collected outbounds into an array\n        fullConfig[@\"outbounds\"] = configOutboundDict.allValues;\n    }\n    return fullConfig;\n}\n\n//-(void)generateLaunchdPlist:(NSString*)path {\n//    NSString* v2rayPath = [self getV2rayPath];\n//    NSLog(@\"use core: %@\", v2rayPath);\n//    NSString *configPath = [NSString stringWithFormat:@\"http://127.0.0.1:%d/config.json\", webServerPort];\n//    NSDictionary *runPlistDic = [[NSDictionary alloc] initWithObjects:@[@\"v2rayproject.v2rayx.v2ray-core\", @[v2rayPath, @\"-config\", configPath], [NSNumber numberWithBool:YES]] forKeys:@[@\"Label\", @\"ProgramArguments\", @\"RunAtLoad\"]];\n//    [runPlistDic writeToFile:path atomically:NO];\n//}\n\n-(NSString*)getV2rayPath {\n    NSString* defaultV2ray = [NSString stringWithFormat:@\"%@/v2ray\", [[NSBundle mainBundle] resourcePath]];\n    NSFileManager* fileManager = [NSFileManager defaultManager];\n    NSString* cusV2ray = [NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/v2ray-core/v2ray\",NSHomeDirectory()];\n    for (NSString* binary in @[@\"v2ray\", @\"v2ctl\"]) {\n        NSString* fullpath = [NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/v2ray-core/%@\",NSHomeDirectory(), binary];\n        BOOL isDir = YES;\n        if (![fileManager fileExistsAtPath:fullpath isDirectory:&isDir] || isDir || ![fileManager setAttributes:@{NSFilePosixPermissions: [NSNumber numberWithShort:0777]} ofItemAtPath:fullpath error:nil]) {\n            return defaultV2ray;\n        }\n    }\n    for (NSString* data in @[@\"geoip.dat\", @\"geosite.dat\"]) {\n        NSString* fullpath = [NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/v2ray-core/%@\",NSHomeDirectory(), data];\n        BOOL isDir = YES;\n        if (![fileManager fileExistsAtPath:fullpath isDirectory:&isDir] || isDir ) {\n            return defaultV2ray;\n        }\n    }\n    return cusV2ray;\n    \n}\n\n- (IBAction)authorizeV2sys:(id)sender {\n    [self installHelper:true];\n}\n\n- (IBAction)viewLog:(id)sender {\n    if (!useCusProfile) {\n        [[NSWorkspace sharedWorkspace] openFile:logDirPath];\n    } else {\n        NSAlert *alert = [[NSAlert alloc] init];\n        [alert setMessageText:[NSString stringWithFormat:@\"Check %@.\", cusProfiles[selectedCusServerIndex]]];\n        [alert runModal];\n    }\n}\n\n- (IBAction)copyExportCmd:(id)sender {\n    if (!useCusProfile) {\n        [[NSPasteboard generalPasteboard] clearContents];\n        NSString* command = [NSString stringWithFormat:@\"export http_proxy=\\\"http://127.0.0.1:%ld\\\"; export HTTP_PROXY=\\\"http://127.0.0.1:%ld\\\"; export https_proxy=\\\"http://127.0.0.1:%ld\\\"; export HTTPS_PROXY=\\\"http://127.0.0.1:%ld\\\"\", httpPort, httpPort, httpPort, httpPort];\n        [[NSPasteboard generalPasteboard] setString:command forType:NSStringPboardType];\n    } else {\n        NSAlert *alert = [[NSAlert alloc] init];\n        [alert setMessageText:[NSString stringWithFormat:@\"Check %@.\", cusProfiles[selectedCusServerIndex]]];\n        [alert runModal];\n    }\n}\n\n- (IBAction)viewConfigJson:(NSMenuItem *)sender {\n    [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:[NSString stringWithFormat:@\"http://127.0.0.1:%d/config.json\", webServerPort]]];\n}\n\nint runCommandLine(NSString* launchPath, NSArray* arguments) {\n    NSTask *task = [[NSTask alloc] init];\n    [task setLaunchPath:launchPath];\n    [task setArguments:arguments];\n    NSPipe *stdoutpipe = [NSPipe pipe];\n    [task setStandardOutput:stdoutpipe];\n    NSPipe *stderrpipe = [NSPipe pipe];\n    [task setStandardError:stderrpipe];\n    NSFileHandle *file;\n    file = [stdoutpipe fileHandleForReading];\n    [task launch];\n    NSData *data;\n    data = [file readDataToEndOfFile];\n    NSString *string;\n    string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];\n    if (string.length > 0) {\n        NSLog(@\"%@\", string);\n    }\n    file = [stderrpipe fileHandleForReading];\n    data = [file readDataToEndOfFile];\n    string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];\n    if (string.length > 0) {\n        NSLog(@\"%@\", string);\n    }\n    [task waitUntilExit];\n    return task.terminationStatus;\n}\n\n- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey,id> *)change context:(void *)context {\n    if ([@\"selectedPacFileName\" isEqualToString:keyPath]) {\n        NSLog(@\"pac file is switched to %@\", selectedPacFileName);\n        if (dispatchPacSource) { //stop monitor previous pac\n            dispatch_source_cancel(dispatchPacSource);\n        }\n        if (selectedPacFileName == nil || selectedPacFileName.length == 0) {\n            return;\n        }\n        NSString* pacFullPath = [NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/pac/%@\",NSHomeDirectory(), selectedPacFileName];\n        if (![[NSFileManager defaultManager] fileExistsAtPath:pacFullPath]) {\n            NSString* simplePac = [[NSBundle mainBundle] pathForResource:@\"simple\" ofType:@\"pac\"];\n            [[NSFileManager defaultManager] copyItemAtPath:simplePac toPath:pacFullPath error:nil];\n        }\n        //https://randexdev.com/2012/03/how-to-detect-directory-changes-using-gcd/\n        int fildes = open([pacFullPath cStringUsingEncoding:NSUTF8StringEncoding], O_RDONLY);\n        dispatchPacSource = dispatch_source_create(DISPATCH_SOURCE_TYPE_VNODE, fildes, DISPATCH_VNODE_WRITE | DISPATCH_VNODE_EXTEND, dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0));\n        dispatch_source_set_event_handler(dispatchPacSource, ^{\n            NSLog(@\"pac file changed\");\n            if (self.proxyMode == pacMode && self.proxyState == true) {\n                [appDelegate updateSystemProxy];\n                NSLog(@\"refreshed system pacfile.\");\n            }\n        });\n        dispatch_resume(dispatchPacSource);\n    }\n}\n\n@synthesize logDirPath;\n\n@synthesize proxyState;\n@synthesize proxyMode;\n@synthesize localPort;\n@synthesize httpPort;\n@synthesize udpSupport;\n@synthesize shareOverLan;\n@synthesize selectedServerIndex;\n@synthesize selectedPacFileName;\n@synthesize dnsString;\n@synthesize profiles;\n@synthesize logLevel;\n@synthesize cusProfiles;\n@synthesize useCusProfile;\n@synthesize selectedCusServerIndex;\n@synthesize useMultipleServer;\n@end\n"
  },
  {
    "path": "V2RayX/Assets.xcassets/AppIcon.appiconset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"vx16.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"16x16\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"vx32.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"vx32.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"32x32\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"vx64.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"vx128.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"128x128\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"vx256.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"vx256.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"size\" : \"256x256\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"vx 512.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"size\" : \"512x512\",\n      \"idiom\" : \"mac\",\n      \"filename\" : \"vx 512.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"mac\",\n      \"size\" : \"512x512\",\n      \"scale\" : \"2x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}\n"
  },
  {
    "path": "V2RayX/Assets.xcassets/Contents.json",
    "content": "{\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "V2RayX/Assets.xcassets/config_duplicate.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"duplicate-document16.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"duplicate-document.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "V2RayX/Assets.xcassets/statusBarIcon.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"b16.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"b32.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "V2RayX/Assets.xcassets/statusBarIcon_disabled.imageset/Contents.json",
    "content": "{\n  \"images\" : [\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"g16.png\",\n      \"scale\" : \"1x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"filename\" : \"g32.png\",\n      \"scale\" : \"2x\"\n    },\n    {\n      \"idiom\" : \"universal\",\n      \"scale\" : \"3x\"\n    }\n  ],\n  \"info\" : {\n    \"version\" : 1,\n    \"author\" : \"xcode\"\n  }\n}"
  },
  {
    "path": "V2RayX/Base.lproj/MainMenu.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"14460.31\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"14460.31\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"NSApplication\">\n            <connections>\n                <outlet property=\"delegate\" destination=\"Voe-Tx-rLC\" id=\"GzC-gU-4Uq\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <customObject id=\"Voe-Tx-rLC\" customClass=\"AppDelegate\">\n            <connections>\n                <outlet property=\"authMenu\" destination=\"vXy-mo-Nh0\" id=\"AA1-I3-X0A\"/>\n                <outlet property=\"editPacMenuItem\" destination=\"3NY-51-bgh\" id=\"dgA-Xq-mKn\"/>\n                <outlet property=\"enableV2rayItem\" destination=\"I9I-uu-xak\" id=\"b3P-ct-RqE\"/>\n                <outlet property=\"globalModeItem\" destination=\"12u-76-Ytb\" id=\"RA8-m2-Iv6\"/>\n                <outlet property=\"manualModeItem\" destination=\"P4q-kj-6fs\" id=\"5XH-9p-w3e\"/>\n                <outlet property=\"pacListMenu\" destination=\"yno-KX-HOj\" id=\"qzq-pN-ala\"/>\n                <outlet property=\"pacModeItem\" destination=\"Cm9-3e-L2z\" id=\"IvE-nJ-dW0\"/>\n                <outlet property=\"ruleSetMenuList\" destination=\"8Ld-d4-m0U\" id=\"DNS-66-cYT\"/>\n                <outlet property=\"serverListMenu\" destination=\"eqU-gH-G4L\" id=\"unc-2a-DIW\"/>\n                <outlet property=\"serversItem\" destination=\"3wi-Co-2Kd\" id=\"kKi-8l-dDJ\"/>\n                <outlet property=\"statusBarMenu\" destination=\"yZm-2L-r3v\" id=\"3iW-vb-TOn\"/>\n                <outlet property=\"updateServerItem\" destination=\"C3a-eC-bFQ\" id=\"3kY-g6-FNX\"/>\n                <outlet property=\"upgradeMenuItem\" destination=\"29h-Cl-9kt\" id=\"Fk0-Xq-OK0\"/>\n                <outlet property=\"v2rayRulesItem\" destination=\"bUi-AV-IfA\" id=\"p4V-ny-gh7\"/>\n                <outlet property=\"v2rayStatusItem\" destination=\"EFa-yl-fQC\" id=\"z3V-zp-jw7\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"YLy-65-1bz\" customClass=\"NSFontManager\"/>\n        <menu title=\"Main Menu\" systemMenu=\"main\" id=\"AYu-sK-qS6\">\n            <items>\n                <menuItem title=\"V2RayX\" id=\"1Xt-HY-uBw\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"V2RayX\" systemMenu=\"apple\" id=\"uQy-DD-JDr\">\n                        <items>\n                            <menuItem title=\"About V2RayX\" id=\"5kV-Vb-QxS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"orderFrontStandardAboutPanel:\" target=\"-1\" id=\"Exp-CZ-Vem\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"VOq-y0-SEH\"/>\n                            <menuItem title=\"Preferences…\" keyEquivalent=\",\" id=\"BOF-NM-1cW\"/>\n                            <menuItem isSeparatorItem=\"YES\" id=\"wFC-TO-SCJ\"/>\n                            <menuItem title=\"Services\" id=\"NMo-om-nkz\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Services\" systemMenu=\"services\" id=\"hz9-B4-Xy5\"/>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"4je-JR-u6R\"/>\n                            <menuItem title=\"Hide V2RayX\" keyEquivalent=\"h\" id=\"Olw-nP-bQN\">\n                                <connections>\n                                    <action selector=\"hide:\" target=\"-1\" id=\"PnN-Uc-m68\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Hide Others\" keyEquivalent=\"h\" id=\"Vdr-fp-XzO\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"hideOtherApplications:\" target=\"-1\" id=\"VT4-aY-XCT\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Show All\" id=\"Kd2-mp-pUS\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"unhideAllApplications:\" target=\"-1\" id=\"Dhg-Le-xox\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"kCx-OE-vgT\"/>\n                            <menuItem title=\"Quit V2RayX\" keyEquivalent=\"q\" id=\"4sb-4s-VLi\">\n                                <connections>\n                                    <action selector=\"terminate:\" target=\"-1\" id=\"Te7-pn-YzF\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"File\" id=\"dMs-cI-mzQ\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"File\" id=\"bib-Uj-vzu\">\n                        <items>\n                            <menuItem title=\"New\" keyEquivalent=\"n\" id=\"Was-JA-tGl\">\n                                <connections>\n                                    <action selector=\"newDocument:\" target=\"-1\" id=\"4Si-XN-c54\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Open…\" keyEquivalent=\"o\" id=\"IAo-SY-fd9\">\n                                <connections>\n                                    <action selector=\"openDocument:\" target=\"-1\" id=\"bVn-NM-KNZ\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Open Recent\" id=\"tXI-mr-wws\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Open Recent\" systemMenu=\"recentDocuments\" id=\"oas-Oc-fiZ\">\n                                    <items>\n                                        <menuItem title=\"Clear Menu\" id=\"vNY-rz-j42\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"clearRecentDocuments:\" target=\"-1\" id=\"Daa-9d-B3U\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"m54-Is-iLE\"/>\n                            <menuItem title=\"Close\" keyEquivalent=\"w\" id=\"DVo-aG-piG\">\n                                <connections>\n                                    <action selector=\"performClose:\" target=\"-1\" id=\"HmO-Ls-i7Q\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Save…\" keyEquivalent=\"s\" id=\"pxx-59-PXV\">\n                                <connections>\n                                    <action selector=\"saveDocument:\" target=\"-1\" id=\"teZ-XB-qJY\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Save As…\" keyEquivalent=\"S\" id=\"Bw7-FT-i3A\">\n                                <connections>\n                                    <action selector=\"saveDocumentAs:\" target=\"-1\" id=\"mDf-zr-I0C\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Revert to Saved\" id=\"KaW-ft-85H\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"revertDocumentToSaved:\" target=\"-1\" id=\"iJ3-Pv-kwq\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"aJh-i4-bef\"/>\n                            <menuItem title=\"Page Setup…\" keyEquivalent=\"P\" id=\"qIS-W8-SiK\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" shift=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"runPageLayout:\" target=\"-1\" id=\"Din-rz-gC5\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Print…\" keyEquivalent=\"p\" id=\"aTl-1u-JFS\">\n                                <connections>\n                                    <action selector=\"print:\" target=\"-1\" id=\"qaZ-4w-aoO\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Edit\" id=\"5QF-Oa-p0T\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Edit\" id=\"W48-6f-4Dl\">\n                        <items>\n                            <menuItem title=\"Undo\" keyEquivalent=\"z\" id=\"dRJ-4n-Yzg\">\n                                <connections>\n                                    <action selector=\"undo:\" target=\"-1\" id=\"M6e-cu-g7V\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Redo\" keyEquivalent=\"Z\" id=\"6dh-zS-Vam\">\n                                <connections>\n                                    <action selector=\"redo:\" target=\"-1\" id=\"oIA-Rs-6OD\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"WRV-NI-Exz\"/>\n                            <menuItem title=\"Cut\" keyEquivalent=\"x\" id=\"uRl-iY-unG\">\n                                <connections>\n                                    <action selector=\"cut:\" target=\"-1\" id=\"YJe-68-I9s\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Copy\" keyEquivalent=\"c\" id=\"x3v-GG-iWU\">\n                                <connections>\n                                    <action selector=\"copy:\" target=\"-1\" id=\"G1f-GL-Joy\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste\" keyEquivalent=\"v\" id=\"gVA-U4-sdL\">\n                                <connections>\n                                    <action selector=\"paste:\" target=\"-1\" id=\"UvS-8e-Qdg\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Paste and Match Style\" keyEquivalent=\"v\" id=\"WeT-3V-zwk\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" shift=\"YES\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"pasteAsPlainText:\" target=\"-1\" id=\"cEh-KX-wJQ\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Delete\" id=\"pa3-QI-u2k\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"delete:\" target=\"-1\" id=\"0Mk-Ml-PaM\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Select All\" keyEquivalent=\"a\" id=\"Ruw-6m-B2m\">\n                                <connections>\n                                    <action selector=\"selectAll:\" target=\"-1\" id=\"VNm-Mi-diN\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"uyl-h8-XO2\"/>\n                            <menuItem title=\"Find\" id=\"4EN-yA-p0u\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Find\" id=\"1b7-l0-nxx\">\n                                    <items>\n                                        <menuItem title=\"Find…\" tag=\"1\" keyEquivalent=\"f\" id=\"Xz5-n4-O0W\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"cD7-Qs-BN4\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Find and Replace…\" tag=\"12\" keyEquivalent=\"f\" id=\"YEy-JH-Tfz\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"WD3-Gg-5AJ\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Find Next\" tag=\"2\" keyEquivalent=\"g\" id=\"q09-fT-Sye\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"NDo-RZ-v9R\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Find Previous\" tag=\"3\" keyEquivalent=\"G\" id=\"OwM-mh-QMV\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"HOh-sY-3ay\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Use Selection for Find\" tag=\"7\" keyEquivalent=\"e\" id=\"buJ-ug-pKt\">\n                                            <connections>\n                                                <action selector=\"performFindPanelAction:\" target=\"-1\" id=\"U76-nv-p5D\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Jump to Selection\" keyEquivalent=\"j\" id=\"S0p-oC-mLd\">\n                                            <connections>\n                                                <action selector=\"centerSelectionInVisibleArea:\" target=\"-1\" id=\"IOG-6D-g5B\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Spelling and Grammar\" id=\"Dv1-io-Yv7\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Spelling\" id=\"3IN-sU-3Bg\">\n                                    <items>\n                                        <menuItem title=\"Show Spelling and Grammar\" keyEquivalent=\":\" id=\"HFo-cy-zxI\">\n                                            <connections>\n                                                <action selector=\"showGuessPanel:\" target=\"-1\" id=\"vFj-Ks-hy3\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Check Document Now\" keyEquivalent=\";\" id=\"hz2-CU-CR7\">\n                                            <connections>\n                                                <action selector=\"checkSpelling:\" target=\"-1\" id=\"fz7-VC-reM\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"bNw-od-mp5\"/>\n                                        <menuItem title=\"Check Spelling While Typing\" id=\"rbD-Rh-wIN\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleContinuousSpellChecking:\" target=\"-1\" id=\"7w6-Qz-0kB\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Check Grammar With Spelling\" id=\"mK6-2p-4JG\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleGrammarChecking:\" target=\"-1\" id=\"muD-Qn-j4w\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Correct Spelling Automatically\" id=\"78Y-hA-62v\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticSpellingCorrection:\" target=\"-1\" id=\"2lM-Qi-WAP\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Substitutions\" id=\"9ic-FL-obx\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Substitutions\" id=\"FeM-D8-WVr\">\n                                    <items>\n                                        <menuItem title=\"Show Substitutions\" id=\"z6F-FW-3nz\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"orderFrontSubstitutionsPanel:\" target=\"-1\" id=\"oku-mr-iSq\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"gPx-C9-uUO\"/>\n                                        <menuItem title=\"Smart Copy/Paste\" id=\"9yt-4B-nSM\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleSmartInsertDelete:\" target=\"-1\" id=\"3IJ-Se-DZD\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smart Quotes\" id=\"hQb-2v-fYv\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticQuoteSubstitution:\" target=\"-1\" id=\"ptq-xd-QOA\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smart Dashes\" id=\"rgM-f4-ycn\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticDashSubstitution:\" target=\"-1\" id=\"oCt-pO-9gS\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smart Links\" id=\"cwL-P1-jid\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticLinkDetection:\" target=\"-1\" id=\"Gip-E3-Fov\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Data Detectors\" id=\"tRr-pd-1PS\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticDataDetection:\" target=\"-1\" id=\"R1I-Nq-Kbl\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Text Replacement\" id=\"HFQ-gK-NFA\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleAutomaticTextReplacement:\" target=\"-1\" id=\"DvP-Fe-Py6\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Transformations\" id=\"2oI-Rn-ZJC\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Transformations\" id=\"c8a-y6-VQd\">\n                                    <items>\n                                        <menuItem title=\"Make Upper Case\" id=\"vmV-6d-7jI\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"uppercaseWord:\" target=\"-1\" id=\"sPh-Tk-edu\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Make Lower Case\" id=\"d9M-CD-aMd\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"lowercaseWord:\" target=\"-1\" id=\"iUZ-b5-hil\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Capitalize\" id=\"UEZ-Bs-lqG\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"capitalizeWord:\" target=\"-1\" id=\"26H-TL-nsh\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Speech\" id=\"xrE-MZ-jX0\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Speech\" id=\"3rS-ZA-NoH\">\n                                    <items>\n                                        <menuItem title=\"Start Speaking\" id=\"Ynk-f8-cLZ\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"startSpeaking:\" target=\"-1\" id=\"654-Ng-kyl\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Stop Speaking\" id=\"Oyz-dy-DGm\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"stopSpeaking:\" target=\"-1\" id=\"dX8-6p-jy9\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Format\" id=\"jxT-CU-nIS\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Format\" id=\"GEO-Iw-cKr\">\n                        <items>\n                            <menuItem title=\"Font\" id=\"Gi5-1S-RQB\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Font\" systemMenu=\"font\" id=\"aXa-aM-Jaq\">\n                                    <items>\n                                        <menuItem title=\"Show Fonts\" keyEquivalent=\"t\" id=\"Q5e-8K-NDq\">\n                                            <connections>\n                                                <action selector=\"orderFrontFontPanel:\" target=\"YLy-65-1bz\" id=\"WHr-nq-2xA\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Bold\" tag=\"2\" keyEquivalent=\"b\" id=\"GB9-OM-e27\">\n                                            <connections>\n                                                <action selector=\"addFontTrait:\" target=\"YLy-65-1bz\" id=\"hqk-hr-sYV\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Italic\" tag=\"1\" keyEquivalent=\"i\" id=\"Vjx-xi-njq\">\n                                            <connections>\n                                                <action selector=\"addFontTrait:\" target=\"YLy-65-1bz\" id=\"IHV-OB-c03\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Underline\" keyEquivalent=\"u\" id=\"WRG-CD-K1S\">\n                                            <connections>\n                                                <action selector=\"underline:\" target=\"-1\" id=\"FYS-2b-JAY\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"5gT-KC-WSO\"/>\n                                        <menuItem title=\"Bigger\" tag=\"3\" keyEquivalent=\"+\" id=\"Ptp-SP-VEL\">\n                                            <connections>\n                                                <action selector=\"modifyFont:\" target=\"YLy-65-1bz\" id=\"Uc7-di-UnL\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Smaller\" tag=\"4\" keyEquivalent=\"-\" id=\"i1d-Er-qST\">\n                                            <connections>\n                                                <action selector=\"modifyFont:\" target=\"YLy-65-1bz\" id=\"HcX-Lf-eNd\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"kx3-Dk-x3B\"/>\n                                        <menuItem title=\"Kern\" id=\"jBQ-r6-VK2\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <menu key=\"submenu\" title=\"Kern\" id=\"tlD-Oa-oAM\">\n                                                <items>\n                                                    <menuItem title=\"Use Default\" id=\"GUa-eO-cwY\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"useStandardKerning:\" target=\"-1\" id=\"6dk-9l-Ckg\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem title=\"Use None\" id=\"cDB-IK-hbR\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"turnOffKerning:\" target=\"-1\" id=\"U8a-gz-Maa\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem title=\"Tighten\" id=\"46P-cB-AYj\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"tightenKerning:\" target=\"-1\" id=\"hr7-Nz-8ro\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem title=\"Loosen\" id=\"ogc-rX-tC1\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"loosenKerning:\" target=\"-1\" id=\"8i4-f9-FKE\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                </items>\n                                            </menu>\n                                        </menuItem>\n                                        <menuItem title=\"Ligatures\" id=\"o6e-r0-MWq\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <menu key=\"submenu\" title=\"Ligatures\" id=\"w0m-vy-SC9\">\n                                                <items>\n                                                    <menuItem title=\"Use Default\" id=\"agt-UL-0e3\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"useStandardLigatures:\" target=\"-1\" id=\"7uR-wd-Dx6\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem title=\"Use None\" id=\"J7y-lM-qPV\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"turnOffLigatures:\" target=\"-1\" id=\"iX2-gA-Ilz\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem title=\"Use All\" id=\"xQD-1f-W4t\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"useAllLigatures:\" target=\"-1\" id=\"KcB-kA-TuK\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                </items>\n                                            </menu>\n                                        </menuItem>\n                                        <menuItem title=\"Baseline\" id=\"OaQ-X3-Vso\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <menu key=\"submenu\" title=\"Baseline\" id=\"ijk-EB-dga\">\n                                                <items>\n                                                    <menuItem title=\"Use Default\" id=\"3Om-Ey-2VK\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"unscript:\" target=\"-1\" id=\"0vZ-95-Ywn\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem title=\"Superscript\" id=\"Rqc-34-cIF\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"superscript:\" target=\"-1\" id=\"3qV-fo-wpU\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem title=\"Subscript\" id=\"I0S-gh-46l\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"subscript:\" target=\"-1\" id=\"Q6W-4W-IGz\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem title=\"Raise\" id=\"2h7-ER-AoG\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"raiseBaseline:\" target=\"-1\" id=\"4sk-31-7Q9\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem title=\"Lower\" id=\"1tx-W0-xDw\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"lowerBaseline:\" target=\"-1\" id=\"OF1-bc-KW4\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                </items>\n                                            </menu>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"Ndw-q3-faq\"/>\n                                        <menuItem title=\"Show Colors\" keyEquivalent=\"C\" id=\"bgn-CT-cEk\">\n                                            <connections>\n                                                <action selector=\"orderFrontColorPanel:\" target=\"-1\" id=\"mSX-Xz-DV3\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"iMs-zA-UFJ\"/>\n                                        <menuItem title=\"Copy Style\" keyEquivalent=\"c\" id=\"5Vv-lz-BsD\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                            <connections>\n                                                <action selector=\"copyFont:\" target=\"-1\" id=\"GJO-xA-L4q\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Paste Style\" keyEquivalent=\"v\" id=\"vKC-jM-MkH\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                            <connections>\n                                                <action selector=\"pasteFont:\" target=\"-1\" id=\"JfD-CL-leO\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                            <menuItem title=\"Text\" id=\"Fal-I4-PZk\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <menu key=\"submenu\" title=\"Text\" id=\"d9c-me-L2H\">\n                                    <items>\n                                        <menuItem title=\"Align Left\" keyEquivalent=\"{\" id=\"ZM1-6Q-yy1\">\n                                            <connections>\n                                                <action selector=\"alignLeft:\" target=\"-1\" id=\"zUv-R1-uAa\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Center\" keyEquivalent=\"|\" id=\"VIY-Ag-zcb\">\n                                            <connections>\n                                                <action selector=\"alignCenter:\" target=\"-1\" id=\"spX-mk-kcS\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Justify\" id=\"J5U-5w-g23\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"alignJustified:\" target=\"-1\" id=\"ljL-7U-jND\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Align Right\" keyEquivalent=\"}\" id=\"wb2-vD-lq4\">\n                                            <connections>\n                                                <action selector=\"alignRight:\" target=\"-1\" id=\"r48-bG-YeY\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"4s2-GY-VfK\"/>\n                                        <menuItem title=\"Writing Direction\" id=\"H1b-Si-o9J\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <menu key=\"submenu\" title=\"Writing Direction\" id=\"8mr-sm-Yjd\">\n                                                <items>\n                                                    <menuItem title=\"Paragraph\" enabled=\"NO\" id=\"ZvO-Gk-QUH\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                    </menuItem>\n                                                    <menuItem id=\"YGs-j5-SAR\">\n                                                        <string key=\"title\">\tDefault</string>\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"makeBaseWritingDirectionNatural:\" target=\"-1\" id=\"qtV-5e-UBP\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem id=\"Lbh-J2-qVU\">\n                                                        <string key=\"title\">\tLeft to Right</string>\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"makeBaseWritingDirectionLeftToRight:\" target=\"-1\" id=\"S0X-9S-QSf\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem id=\"jFq-tB-4Kx\">\n                                                        <string key=\"title\">\tRight to Left</string>\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"makeBaseWritingDirectionRightToLeft:\" target=\"-1\" id=\"5fk-qB-AqJ\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem isSeparatorItem=\"YES\" id=\"swp-gr-a21\"/>\n                                                    <menuItem title=\"Selection\" enabled=\"NO\" id=\"cqv-fj-IhA\">\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                    </menuItem>\n                                                    <menuItem id=\"Nop-cj-93Q\">\n                                                        <string key=\"title\">\tDefault</string>\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"makeTextWritingDirectionNatural:\" target=\"-1\" id=\"lPI-Se-ZHp\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem id=\"BgM-ve-c93\">\n                                                        <string key=\"title\">\tLeft to Right</string>\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"makeTextWritingDirectionLeftToRight:\" target=\"-1\" id=\"caW-Bv-w94\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                    <menuItem id=\"RB4-Sm-HuC\">\n                                                        <string key=\"title\">\tRight to Left</string>\n                                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                        <connections>\n                                                            <action selector=\"makeTextWritingDirectionRightToLeft:\" target=\"-1\" id=\"EXD-6r-ZUu\"/>\n                                                        </connections>\n                                                    </menuItem>\n                                                </items>\n                                            </menu>\n                                        </menuItem>\n                                        <menuItem isSeparatorItem=\"YES\" id=\"fKy-g9-1gm\"/>\n                                        <menuItem title=\"Show Ruler\" id=\"vLm-3I-IUL\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                            <connections>\n                                                <action selector=\"toggleRuler:\" target=\"-1\" id=\"FOx-HJ-KwY\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Copy Ruler\" keyEquivalent=\"c\" id=\"MkV-Pr-PK5\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\" control=\"YES\" command=\"YES\"/>\n                                            <connections>\n                                                <action selector=\"copyRuler:\" target=\"-1\" id=\"71i-fW-3W2\"/>\n                                            </connections>\n                                        </menuItem>\n                                        <menuItem title=\"Paste Ruler\" keyEquivalent=\"v\" id=\"LVM-kO-fVI\">\n                                            <modifierMask key=\"keyEquivalentModifierMask\" control=\"YES\" command=\"YES\"/>\n                                            <connections>\n                                                <action selector=\"pasteRuler:\" target=\"-1\" id=\"cSh-wd-qM2\"/>\n                                            </connections>\n                                        </menuItem>\n                                    </items>\n                                </menu>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"View\" id=\"H8h-7b-M4v\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"View\" id=\"HyV-fh-RgO\">\n                        <items>\n                            <menuItem title=\"Show Toolbar\" keyEquivalent=\"t\" id=\"snW-S8-Cw5\">\n                                <modifierMask key=\"keyEquivalentModifierMask\" option=\"YES\" command=\"YES\"/>\n                                <connections>\n                                    <action selector=\"toggleToolbarShown:\" target=\"-1\" id=\"BXY-wc-z0C\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Customize Toolbar…\" id=\"1UK-8n-QPP\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"runToolbarCustomizationPalette:\" target=\"-1\" id=\"pQI-g3-MTW\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Window\" id=\"aUF-d1-5bR\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Window\" systemMenu=\"window\" id=\"Td7-aD-5lo\">\n                        <items>\n                            <menuItem title=\"Minimize\" keyEquivalent=\"m\" id=\"OY7-WF-poV\">\n                                <connections>\n                                    <action selector=\"performMiniaturize:\" target=\"-1\" id=\"VwT-WD-YPe\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem title=\"Zoom\" id=\"R4o-n2-Eq4\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"performZoom:\" target=\"-1\" id=\"DIl-cC-cCs\"/>\n                                </connections>\n                            </menuItem>\n                            <menuItem isSeparatorItem=\"YES\" id=\"eu3-7i-yIM\"/>\n                            <menuItem title=\"Bring All to Front\" id=\"LE2-aR-0XJ\">\n                                <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                <connections>\n                                    <action selector=\"arrangeInFront:\" target=\"-1\" id=\"DRN-fu-gQh\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n                <menuItem title=\"Help\" id=\"wpr-3q-Mcd\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Help\" systemMenu=\"help\" id=\"F2S-fz-NVQ\">\n                        <items>\n                            <menuItem title=\"V2RayX Help\" keyEquivalent=\"?\" id=\"FKE-Sm-Kum\">\n                                <connections>\n                                    <action selector=\"showHelp:\" target=\"-1\" id=\"y7X-2Q-9no\"/>\n                                </connections>\n                            </menuItem>\n                        </items>\n                    </menu>\n                </menuItem>\n            </items>\n            <point key=\"canvasLocation\" x=\"308\" y=\"-330\"/>\n        </menu>\n        <menu id=\"yZm-2L-r3v\">\n            <items>\n                <menuItem title=\"core status\" enabled=\"NO\" id=\"EFa-yl-fQC\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                </menuItem>\n                <menuItem title=\"load/unload core\" id=\"I9I-uu-xak\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"didChangeStatus:\" target=\"Voe-Tx-rLC\" id=\"fLo-9H-9XD\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"View current config.json...\" id=\"C53-wG-wMg\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"viewConfigJson:\" target=\"Voe-Tx-rLC\" id=\"8EX-Wb-G5H\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"View log\" id=\"5Vg-qU-2V2\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"viewLog:\" target=\"Voe-Tx-rLC\" id=\"6j0-df-F3G\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"Zce-eo-WsH\"/>\n                <menuItem title=\"PAC Mode\" id=\"Cm9-3e-L2z\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"pac file\" id=\"yno-KX-HOj\"/>\n                    <connections>\n                        <action selector=\"didChangeMode:\" target=\"Voe-Tx-rLC\" id=\"1eE-WI-EUp\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Global Mode\" id=\"12u-76-Ytb\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"didChangeMode:\" target=\"Voe-Tx-rLC\" id=\"yeL-Gb-C6p\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Manual Mode\" id=\"P4q-kj-6fs\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"didChangeMode:\" target=\"Voe-Tx-rLC\" id=\"jH0-sn-1XU\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"A8t-NG-v92\"/>\n                <menuItem title=\"Server\" id=\"3wi-Co-2Kd\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Server\" id=\"eqU-gH-G4L\"/>\n                </menuItem>\n                <menuItem title=\"Routing Rule\" id=\"bUi-AV-IfA\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <menu key=\"submenu\" title=\"Routing Rule\" id=\"8Ld-d4-m0U\"/>\n                </menuItem>\n                <menuItem title=\"Configure...\" id=\"0hJ-Jo-rS2\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"showConfigWindow:\" target=\"Voe-Tx-rLC\" id=\"jVU-tA-mPz\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Backup/Export\" id=\"oZx-KW-OLs\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"backupConfigs:\" target=\"Voe-Tx-rLC\" id=\"gpZ-of-hI0\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"1ve-pA-4fu\"/>\n                <menuItem title=\"Copy HTTP Proxy Shell Export Line\" id=\"2fK-AZ-akH\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"copyExportCmd:\" target=\"Voe-Tx-rLC\" id=\"OMz-Lv-Wmr\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Reset pac file\" id=\"oGZ-uP-dny\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"resetPac:\" target=\"Voe-Tx-rLC\" id=\"WUw-A2-aU5\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Authorize v2rayx_sysconf...\" id=\"mOc-zi-Beb\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"authorizeV2sys:\" target=\"Voe-Tx-rLC\" id=\"ycW-j1-Sv7\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"YAD-DW-T91\"/>\n                <menuItem title=\"Upgrade\" id=\"29h-Cl-9kt\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"openReleasePage:\" target=\"Voe-Tx-rLC\" id=\"gMF-8x-ynd\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Help\" id=\"Yq1-i5-ecF\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"showHelp:\" target=\"Voe-Tx-rLC\" id=\"S0S-9o-8U5\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"About\" id=\"esg-xy-8ve\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"orderFrontStandardAboutPanel:\" target=\"-1\" id=\"5zv-YX-e5a\"/>\n                    </connections>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"Dsn-rn-Ieo\"/>\n                <menuItem title=\"Quit\" id=\"8f2-cF-RxH\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"terminate:\" target=\"-2\" id=\"Clz-zf-6So\"/>\n                    </connections>\n                </menuItem>\n            </items>\n            <point key=\"canvasLocation\" x=\"-152\" y=\"-193\"/>\n        </menu>\n        <menuItem title=\"Edit pac file\" id=\"3NY-51-bgh\">\n            <modifierMask key=\"keyEquivalentModifierMask\"/>\n            <connections>\n                <action selector=\"editPac:\" target=\"Voe-Tx-rLC\" id=\"4jX-Hv-SpU\"/>\n            </connections>\n        </menuItem>\n        <menuItem title=\"Update subscription\" id=\"C3a-eC-bFQ\">\n            <modifierMask key=\"keyEquivalentModifierMask\"/>\n            <connections>\n                <action selector=\"updateSubscriptions:\" target=\"Voe-Tx-rLC\" id=\"V21-6O-1ca\"/>\n            </connections>\n        </menuItem>\n        <menu id=\"vXy-mo-Nh0\">\n            <items>\n                <menuItem title=\"Input password...\" id=\"h9O-kv-Vd7\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"inputPassword:\" target=\"Voe-Tx-rLC\" id=\"hYb-wG-V4T\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Quit\" id=\"2N5-MP-9vf\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"terminate:\" target=\"-1\" id=\"xMQ-ZH-N94\"/>\n                    </connections>\n                </menuItem>\n            </items>\n            <point key=\"canvasLocation\" x=\"120\" y=\"-141\"/>\n        </menu>\n    </objects>\n</document>\n"
  },
  {
    "path": "V2RayX/ConfigImporter.h",
    "content": "//\n//  ConfigImporter.h\n//  V2RayX\n//\n//\n\n#import <Foundation/Foundation.h>\n#import \"ServerProfile.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface ConfigImporter : NSObject\n+ (NSDictionary*)parseStandardSSLink:(NSString*)link;\n+ (NSMutableDictionary*)ssOutboundFromSSLink:(NSString*)link;\n+ (NSMutableDictionary*)ssOutboundFromSSConfig:(NSDictionary*)jsonObject;\n+ (ServerProfile*)importFromVmessOfV2RayN:(NSString*)vmessStr;\n+ (NSMutableDictionary*)importFromHTTPSubscription:(NSString*)httpLink;\n+ (NSMutableDictionary*)importFromStandardConfigFiles:(NSArray*)files;\n+ (NSMutableDictionary*)validateRuleSet:(NSMutableDictionary*)set;\n+ (NSMutableDictionary* _Nonnull)importFromSubscriptionOfSSD: (NSString* _Nonnull)ssdLink;\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "V2RayX/ConfigImporter.m",
    "content": "//\n//  ConfigImporter.m\n//  V2RayX\n//\n//\n\n#import \"ConfigImporter.h\"\n#import \"utilities.h\"\n\n@implementation ConfigImporter\n\n+ (NSString* _Nonnull)decodeBase64String:(NSString*)encoded {\n    if (!encoded || ![encoded isKindOfClass:[NSString class]] || encoded.length == 0) {\n        return @\"\";\n    }\n    NSMutableString* fixed = [encoded mutableCopy];\n    NSInteger numAdd = (4 - encoded.length % 4) % 4;\n    for (int i = 0; i < numAdd; i += 1) {\n        [fixed appendString:@\"=\"];\n    }\n    @try {\n        NSData* decodedData = [[NSData alloc] initWithBase64EncodedString:fixed options:NSDataBase64DecodingIgnoreUnknownCharacters];\n        NSString* decodedString = [[NSString alloc] initWithData:decodedData encoding:NSUTF8StringEncoding];\n        assert(decodedString != nil);\n        return decodedString;\n    } @catch (NSException *exception) {\n        return @\"\";\n    }\n}\n\n+ (NSDictionary*)parseLegacySSLink:(NSString*)link {\n    //http://shadowsocks.org/en/config/quick-guide.html\n    @try {\n        NSString* encoded = [[link stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] substringFromIndex:5];\n        NSArray* hashTagSeperatedParts = [encoded componentsSeparatedByString:@\"#\"];\n        NSString* encodedRemoveTag = hashTagSeperatedParts[0];\n        NSString* decoded = [ConfigImporter decodeBase64String:encodedRemoveTag];\n        NSArray* parts = [decoded componentsSeparatedByString:@\"@\"];\n        NSArray* addressAndPort = [parts[1] componentsSeparatedByString:@\":\"];\n        NSMutableArray* methodAndPassword = [[parts[0] componentsSeparatedByString:@\":\"] mutableCopy];\n        NSString* method = methodAndPassword[0];\n        [methodAndPassword removeObjectAtIndex:0];\n        \n        NSNumberFormatter* f = [[NSNumberFormatter alloc] init];\n        f.numberStyle = NSNumberFormatterDecimalStyle;\n        NSNumber *port = [f numberFromString:addressAndPort[1]];\n        \n        if (hashTagSeperatedParts.count == 1) {\n            return @{\n                     @\"server\":addressAndPort[0],\n                     @\"server_port\":port,\n                     @\"password\": [methodAndPassword componentsJoinedByString:@\":\"],\n                     @\"method\":method};\n        } else {\n            return @{\n                     @\"server\":addressAndPort[0],\n                     @\"server_port\":port,\n                     @\"password\": [methodAndPassword componentsJoinedByString:@\":\"],\n                     @\"method\":method,\n                     @\"tag\":hashTagSeperatedParts[1]\n                     };\n        }\n    } @catch (NSException *exception) {\n        return nil;\n    }\n}\n\n\n+ (NSDictionary*)parseStandardSSLink:(NSString*)link {\n    //https://shadowsocks.org/en/spec/SIP002-URI-Scheme.html\n    if (![@\"ss://\" isEqualToString: [link substringToIndex:5]]) {\n        return nil;\n    }\n    @try {\n        NSURL* ssurl = [[NSURL alloc] initWithString:link];\n        NSNumber* enableOTA;\n        if ([@\"ota=false\" isEqualToString:[ssurl.query lowercaseString]]) {\n            enableOTA = @(NO);\n        } else if ([@\"ota=true\" isEqualToString:[ssurl.query lowercaseString]]) {\n            enableOTA = @(YES);\n        } else if (ssurl.query.length > 0) {\n            return nil; // only support ota\n        }\n        NSString* userinfoDecoded = [ConfigImporter decodeBase64String:ssurl.user];\n        NSArray* userinfo = [userinfoDecoded componentsSeparatedByString:@\":\"];\n        if(enableOTA == nil) {\n            return @{\n                     @\"server\":ssurl.host,\n                     @\"server_port\":ssurl.port,\n                     @\"password\": userinfo[1],\n                     @\"method\":userinfo[0],\n                     @\"tag\":ssurl.fragment\n                     };\n        } else {\n            return @{\n                     @\"server\":ssurl.host,\n                     @\"server_port\":ssurl.port,\n                     @\"password\": userinfo[1],\n                     @\"method\":userinfo[0],\n                     @\"tag\":ssurl.fragment,\n                     @\"ota\":enableOTA\n                     };\n        }\n    } @catch (NSException *exception) {\n        NSLog(@\"%@\", exception);\n        return nil;\n    }\n}\n\n+ (NSMutableDictionary* )ssOutboundFromSSLink:(NSString*)link {\n    NSDictionary* parsed = [ConfigImporter parseStandardSSLink:link];\n    if (parsed) {\n        return [ConfigImporter ssOutboundFromSSConfig:parsed];\n    } else {\n        parsed = [ConfigImporter parseLegacySSLink:link];\n        if (parsed) {\n            return [ConfigImporter ssOutboundFromSSConfig:parsed];\n        }\n    }\n    return nil;\n}\n\n+ (NSMutableDictionary*)ssOutboundFromSSConfig:(NSDictionary*)jsonObject {\n    if (jsonObject && jsonObject[@\"server\"] && jsonObject[@\"server_port\"] && jsonObject[@\"password\"] && jsonObject[@\"method\"] && [SUPPORTED_SS_SECURITY indexOfObject:jsonObject[@\"method\"]] != NSNotFound) {\n        NSMutableDictionary* ssOutbound =\n        [@{\n             @\"sendThrough\": @\"0.0.0.0\",\n             @\"protocol\": @\"shadowsocks\",\n             @\"settings\": @{\n                     @\"servers\": @[\n                             @{\n                                 @\"address\": jsonObject[@\"server\"],\n                                 @\"port\": jsonObject[@\"server_port\"],\n                                 @\"method\": jsonObject[@\"method\"],\n                                 @\"password\": jsonObject[@\"password\"],\n                                 }\n                             ]\n                     },\n             @\"tag\": [NSString stringWithFormat:@\"%@:%@\",jsonObject[@\"server\"],jsonObject[@\"server_port\"]],\n             @\"streamSettings\": @{},\n             @\"mux\": @{}\n         } mutableDeepCopy];\n        if (jsonObject[@\"ota\"]) {\n            ssOutbound[@\"settings\"][@\"servers\"][0][@\"ota\"] = jsonObject[@\"ota\"];\n        }\n        if (jsonObject[@\"tag\"] && [jsonObject[@\"tag\"] isKindOfClass:[NSString class]] && [jsonObject[@\"tag\"] length] ) {\n            ssOutbound[@\"tag\"] = jsonObject[@\"tag\"];\n        }\n        if ([jsonObject[@\"fast_open\"] isKindOfClass:[NSNumber class]]) {\n            ssOutbound[@\"streamSettings\"] =[@{ @\"sockopt\": @{\n                                                       @\"tcpFastOpen\": jsonObject[@\"fast_open\"]\n                                                       }} mutableDeepCopy];\n        }\n        return ssOutbound;\n    }\n    return nil;\n}\n\n+ (NSMutableDictionary*)validateRuleSet:(NSMutableDictionary*)set {\n    if (![set isKindOfClass:[NSMutableDictionary class]]) {\n        NSLog(@\"not a mutable dictionary class, %@\", [set className]);\n        return nil;\n    }\n    if (!set[@\"rules\"] || ![set[@\"rules\"] isKindOfClass:[NSMutableArray class]] || ![set count] ) {\n        NSLog(@\"no rules\");\n        return  nil;\n    }\n    if (![@\"0-65535\" isEqualToString: [set[@\"rules\"] lastObject][@\"port\"]]) {\n        NSMutableDictionary *lastRule = [@{\n                                           @\"type\" : @\"field\",\n                                           @\"outboundTag\" : @\"main\",\n                                           @\"port\" : @\"0-65535\"\n                                           } mutableDeepCopy];\n        [set[@\"rules\"] addObject:lastRule];\n    }\n    NSMutableArray* ruleToRemove = [[NSMutableArray alloc] init];\n    NSArray* notSupported = NOT_SUPPORTED_ROUTING;\n    NSArray* supported = SUPPORTED_ROUTING;\n    // currently, source/user/inboundTag/protocol are not supported\n    for (NSMutableDictionary* aRule in set[@\"rules\"]) {\n        [aRule removeObjectsForKeys:notSupported];\n        BOOL shouldRemove = true;\n        for (NSString* supportedKey in supported) {\n            if (aRule[supportedKey]) {\n                shouldRemove = false;\n                break;\n            }\n        }\n        if (shouldRemove) {\n            [ruleToRemove addObject:aRule];\n            continue;\n        }\n        aRule[@\"type\"] = @\"field\";\n        if (!aRule[@\"outboundTag\"] && !aRule[@\"balancerTag\"]) {\n            aRule[@\"outboundTag\"] = @\"main\";\n        }\n        if (aRule[@\"outboundTag\"] && aRule[@\"balancerTag\"]) {\n            [aRule removeObjectForKey:@\"balancerTag\"];\n        }\n    }\n    for (NSMutableDictionary* aRule in ruleToRemove) {\n        [set[@\"rules\"] removeObject:aRule];\n    }\n    if (!set[@\"name\"]) {\n        set[@\"name\"] = @\"some rule set\";\n    }\n    return set;\n}\n\n+ (NSMutableDictionary*)importFromStandardConfigFiles:(NSArray*)files {\n    NSMutableDictionary* result = [@{@\"vmess\": @[], @\"other\": @[], @\"rules\":@[]} mutableDeepCopy];\n    for (NSURL* file in files) {\n        NSError* error;\n        id jsonObject = [NSJSONSerialization JSONObjectWithData:\n                         [NSData dataWithContentsOfURL:file] options:0 error:&error];\n        if (error) continue;\n        if (![jsonObject isKindOfClass:[NSDictionary class]]) continue;\n        NSMutableArray* outboundJSONs = [[NSMutableArray alloc] init];\n        NSMutableArray* routingJSONs = [[NSMutableArray alloc] init];\n        if ([[jsonObject objectForKey:@\"outbound\"] isKindOfClass:[NSDictionary class]]) {\n            [outboundJSONs addObject:jsonObject[@\"outbound\"]];\n        }\n        if ([[jsonObject objectForKey:@\"outboundDetour\"] isKindOfClass:[NSArray class]]) {\n            [outboundJSONs addObjectsFromArray:jsonObject[@\"outboundDetour\"]];\n        }\n        if ([[jsonObject objectForKey:@\"outbounds\"] isKindOfClass:[NSArray class]]) {\n            [outboundJSONs addObjectsFromArray:jsonObject[@\"outbounds\"]];\n        }\n        for (NSDictionary* outboundJSON in outboundJSONs) {\n            NSString* protocol = outboundJSON[@\"protocol\"];\n            if (!protocol) {\n                continue;\n            }\n            if ([@\"vmess\" isEqualToString:outboundJSON[@\"protocol\"]]) {\n                [result[@\"vmess\"] addObject:[ServerProfile profilesFromJson:outboundJSON][0]];\n            } else {\n                [result[@\"other\"] addObject:outboundJSON];\n            }\n        }\n        if ([[jsonObject objectForKey:@\"routing\"] isKindOfClass:[NSDictionary class]]) {\n            [routingJSONs addObject:[jsonObject objectForKey:@\"routing\"]];\n        }\n        if ([[jsonObject objectForKey:@\"routings\"] isKindOfClass:[NSArray class]]) {\n            [routingJSONs addObjectsFromArray:[jsonObject objectForKey:@\"routings\"]];\n        }\n        for (NSDictionary* routingSet in routingJSONs) {\n            NSMutableDictionary* set = [routingSet mutableDeepCopy];\n            if (set[@\"settings\"]) { // compatibal with previous config file format\n                set = set[@\"settings\"];\n            }\n            NSMutableDictionary* validatedSet = [ConfigImporter validateRuleSet:set];\n            if (validatedSet) {\n                [result[@\"rules\"] addObject:validatedSet];\n            }\n        }\n        if (jsonObject[@\"server\"] && jsonObject[@\"server_port\"] && jsonObject[@\"password\"] && jsonObject[@\"method\"] && [SUPPORTED_SS_SECURITY indexOfObject:jsonObject[@\"method\"]] != NSNotFound) {\n            NSMutableDictionary* ssOutbound = [@{\n                                                 @\"sendThrough\": @\"0.0.0.0\",\n                                                 @\"protocol\": @\"shadowsocks\",\n                                                 @\"settings\": @{\n                                                         @\"servers\": @[\n                                                                 @{\n                                                                     @\"address\": jsonObject[@\"server\"],\n                                                                     @\"port\": jsonObject[@\"server_port\"],\n                                                                     @\"method\": jsonObject[@\"method\"],\n                                                                     @\"password\": jsonObject[@\"password\"],\n                                                                     }\n                                                                 ]\n                                                         },\n                                                 @\"tag\": [NSString stringWithFormat:@\"%@:%@\",jsonObject[@\"server\"],jsonObject[@\"server_port\"]],\n                                                 @\"streamSettings\": @{},\n                                                 @\"mux\": @{}\n                                                 } mutableDeepCopy];\n            if ([jsonObject[@\"fast_open\"] isKindOfClass:[NSNumber class]]) {\n                ssOutbound[@\"streamSettings\"] =[@{ @\"sockopt\": @{\n                                                           @\"tcpFastOpen\": jsonObject[@\"fast_open\"]\n                                                           }} mutableDeepCopy];\n            }\n            [result[@\"other\"] addObject:ssOutbound];\n        }\n    }\n    return result;\n}\n\n+ (NSMutableDictionary*)importFromHTTPSubscription: (NSString*)httpLink {\n    // https://blog.csdn.net/yi_zz32/article/details/48769487\n    NSMutableDictionary* result = [@{@\"vmess\": @[], @\"other\": @[]} mutableDeepCopy];\n    if ([httpLink length] < 4) {\n        return nil;\n    }\n    if (![@\"http\" isEqualToString:[httpLink substringToIndex:4]]) {\n        return nil;\n    }\n    NSURL *url = [NSURL URLWithString:httpLink];\n    NSError *urlError = nil;\n    NSString *urlStr = [NSString stringWithContentsOfURL:url encoding:NSUTF8StringEncoding error:&urlError];\n    if (!urlError) {\n        NSString *decodedDataStr = [ConfigImporter decodeBase64String:urlStr];\n        if ([decodedDataStr length] == 0) {\n            return nil;\n        }\n        decodedDataStr = [decodedDataStr stringByReplacingOccurrencesOfString:@\"\\r\" withString:@\"\"];\n        NSArray *decodedDataArray = [decodedDataStr componentsSeparatedByString:@\"\\n\"];\n        for (id linkStr in decodedDataArray) {\n            if ([linkStr length] != 0) {\n                ServerProfile* p = [ConfigImporter importFromVmessOfV2RayN:linkStr];\n                if (p) {\n                    [result[@\"vmess\"] addObject:p];\n                    continue;\n                }\n                NSMutableDictionary* outbound = [ConfigImporter ssOutboundFromSSLink:linkStr];\n                if (outbound) {\n                    [result[@\"other\"] addObject:outbound];\n                    continue;\n                }\n                NSMutableDictionary* ssdResults = [ConfigImporter importFromSubscriptionOfSSD:linkStr];\n                [result[@\"other\"] addObjectsFromArray:ssdResults[@\"other\"]];\n            }\n        }\n        return result;\n    }\n    return nil;\n}\n\n+ (ServerProfile*)importFromVmessOfV2RayN:(NSString*)vmessStr {\n    if ([vmessStr length] < 9 || ![[[vmessStr substringToIndex:8] lowercaseString] isEqualToString:@\"vmess://\"]) {\n        return nil;\n    }\n    NSString* decodedJsonString = [[ConfigImporter decodeBase64String:[vmessStr substringFromIndex:8]] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];\n    NSData* decodedData = [decodedJsonString dataUsingEncoding:NSUTF8StringEncoding];\n    NSError* jsonParseError;\n    NSDictionary *sharedServer = [NSJSONSerialization JSONObjectWithData:\n                                  decodedData options:0 error:&jsonParseError];\n    if (jsonParseError) {\n        return nil;\n    }\n    ServerProfile* newProfile = [[ServerProfile alloc] init];\n    newProfile.outboundTag = nilCoalescing([sharedServer objectForKey:@\"ps\"], @\"imported From QR\");\n    newProfile.address = nilCoalescing([sharedServer objectForKey:@\"add\"], @\"\");\n    newProfile.port = [nilCoalescing([sharedServer objectForKey:@\"port\"], @0) intValue];\n    newProfile.userId = nilCoalescing([sharedServer objectForKey:@\"id\"], newProfile.userId);\n    newProfile.alterId = [nilCoalescing([sharedServer objectForKey:@\"aid\"], @0) intValue];\n    NSDictionary *netWorkDict = @{@\"tcp\": @0, @\"kcp\": @1, @\"ws\":@2, @\"h2\":@3 };\n    if ([sharedServer objectForKey:@\"net\"] && [netWorkDict objectForKey:[sharedServer objectForKey:@\"net\"]]) {\n        newProfile.network = [netWorkDict[sharedServer[@\"net\"]] intValue];\n    }\n    NSMutableDictionary* streamSettings = [newProfile.streamSettings mutableDeepCopy];\n    switch (newProfile.network) {\n        case tcp:\n            if (![sharedServer objectForKey:@\"type\"] || !([sharedServer[@\"type\"] isEqualToString:@\"none\"] || [sharedServer[@\"type\"] isEqualToString:@\"http\"])) {\n                break;\n            }\n            streamSettings[@\"tcpSettings\"][@\"header\"][@\"type\"] = sharedServer[@\"type\"];\n            if ([streamSettings[@\"tcpSettings\"][@\"header\"][@\"type\"] isEqualToString:@\"http\"]) {\n                if ([sharedServer objectForKey:@\"host\"]) {\n                    streamSettings[@\"tcpSettings\"][@\"header\"][@\"host\"] = [sharedServer[@\"host\"] componentsSeparatedByString:@\",\"];\n                }\n            }\n            break;\n        case kcp:\n            if (![sharedServer objectForKey:@\"type\"]) {\n                break;\n            }\n            if (![@{@\"none\": @0, @\"srtp\": @1, @\"utp\": @2, @\"wechat-video\":@3, @\"dtls\":@4, @\"wireguard\":@5} objectForKey:sharedServer[@\"type\"]]) {\n                break;\n            }\n            streamSettings[@\"kcpSettings\"][@\"header\"][@\"type\"] = sharedServer[@\"type\"];\n            break;\n        case ws:\n            if ([[sharedServer objectForKey:@\"host\"] containsString:@\";\"]) {\n                NSArray *tempPathHostArray = [[sharedServer objectForKey:@\"host\"] componentsSeparatedByString:@\";\"];\n                streamSettings[@\"wsSettings\"][@\"path\"] = tempPathHostArray[0];\n                streamSettings[@\"wsSettings\"][@\"headers\"][@\"Host\"] = tempPathHostArray[1];\n            }\n            else {\n                streamSettings[@\"wsSettings\"][@\"path\"] = nilCoalescing([sharedServer objectForKey:@\"path\"], @\"\");\n                streamSettings[@\"wsSettings\"][@\"headers\"][@\"Host\"] = nilCoalescing([sharedServer objectForKey:@\"host\"], @\"\");\n            }\n            break;\n        case http:\n            if ([[sharedServer objectForKey:@\"host\"] containsString:@\";\"]) {\n                NSArray *tempPathHostArray = [[sharedServer objectForKey:@\"host\"] componentsSeparatedByString:@\";\"];\n                streamSettings[@\"wsSettings\"][@\"path\"] = tempPathHostArray[0];\n                streamSettings[@\"wsSettings\"][@\"headers\"][@\"Host\"] = [tempPathHostArray[1] componentsSeparatedByString:@\",\"];\n            }\n            else {\n                streamSettings[@\"httpSettings\"][@\"path\"] = nilCoalescing([sharedServer objectForKey:@\"path\"], @\"\");\n                if (![sharedServer objectForKey:@\"host\"]) {\n                    break;\n                };\n                if ([[sharedServer objectForKey:@\"host\"] length] > 0) {\n                    streamSettings[@\"httpSettings\"][@\"host\"] = [[sharedServer objectForKey:@\"host\"] componentsSeparatedByString:@\",\"];\n                }\n            }\n            break;\n        default:\n            break;\n    }\n    if ([sharedServer objectForKey:@\"tls\"] && [sharedServer[@\"tls\"] isEqualToString:@\"tls\"]) {\n        streamSettings[@\"security\"] = @\"tls\";\n        streamSettings[@\"tlsSettings\"][@\"serverName\"] = newProfile.address;\n    }\n    newProfile.streamSettings = streamSettings;\n    return newProfile;\n}\n\n// https://github.com/CGDF-Github/SSD-Windows/wiki/订阅链接协定\n+ (NSMutableDictionary* _Nonnull)importFromSubscriptionOfSSD: (NSString* _Nonnull)ssdLink {\n    NSMutableDictionary* result = EMPTY_IMPORT_RESULT;\n    @try {\n        NSString* encodedPart;\n        if (![[ssdLink substringToIndex:6] isEqualToString:@\"ssd://\"]) {\n            return EMPTY_IMPORT_RESULT;\n        }\n        encodedPart = [ssdLink substringFromIndex:6];\n        NSString* decodedJSONStr = [ConfigImporter decodeBase64String:encodedPart];\n        NSDictionary* decodedObject = [NSJSONSerialization JSONObjectWithData:[decodedJSONStr dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil];\n        NSString* airportName = decodedObject[@\"airport\"];\n        NSNumber* defaultPort = decodedObject[@\"port\"];\n        NSString* defaultEncryption = decodedObject[@\"encryption\"];\n        NSString* defaultPassword = decodedObject[@\"password\"];\n        NSString* defaultPlutgin = decodedObject[@\"plugin\"];\n        NSInteger count = 0;\n        for (NSDictionary* server in decodedObject[@\"servers\"]) {\n            NSString* address = server[@\"server\"];\n            NSNumber* port = nilCoalescing(server[@\"port\"], defaultPort) ;\n            NSString* method = nilCoalescing(server[@\"encryption\"], defaultEncryption);\n            NSString* password = nilCoalescing(server[@\"password\"], defaultPassword);\n            NSString* plugIn = nilCoalescing(server[@\"plugin\"], defaultPlutgin);\n            if (plugIn && plugIn.length > 0) {\n                continue; // do not support plug-in yet\n            }\n            NSString* defaultServerName = [NSString stringWithFormat:@\"%lu\", count];\n            NSString* serverName = nilCoalescing(server[@\"remarks\"], defaultServerName);\n            NSString* tag = [NSString stringWithFormat:@\"%@-%@\", airportName, serverName];\n            NSMutableDictionary* ssOutbound =\n            [ConfigImporter ssOutboundFromSSConfig:@{ @\"server\":address,\n                                                      @\"server_port\":port,\n                                                      @\"password\":password,\n                                                      @\"method\":method,\n                                                      @\"tag\": tag\n             }];\n            if (ssOutbound) {\n                [result[@\"other\"] addObject:ssOutbound];\n                count += 1;\n            }\n        }\n        NSLog(@\"%@\", result);\n        return result;\n    } @catch (NSException *exception) {\n        return EMPTY_IMPORT_RESULT;\n    }\n}\n\n@end\n"
  },
  {
    "path": "V2RayX/ConfigWindow.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"14460.31\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"14460.31\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"ConfigWindowController\">\n            <connections>\n                <outlet property=\"addRemoveButton\" destination=\"Pgq-bB-pvc\" id=\"m1r-QX-zw6\"/>\n                <outlet property=\"alterIdField\" destination=\"0MA-zS-uMD\" id=\"Fgh-F0-USD\"/>\n                <outlet property=\"dnsField\" destination=\"mXE-pr-Ddc\" id=\"Eap-sE-WYI\"/>\n                <outlet property=\"globalTransportButton\" destination=\"L0C-0n-d5i\" id=\"GRx-qD-mvf\"/>\n                <outlet property=\"httpPortField\" destination=\"aVm-xn-0cZ\" id=\"9lo-hP-jbp\"/>\n                <outlet property=\"importButton\" destination=\"ubu-QM-gwn\" id=\"6cO-zl-OCm\"/>\n                <outlet property=\"importFromJsonMenu\" destination=\"R79-z8-mxK\" id=\"Crb-5l-C1R\"/>\n                <outlet property=\"importMessageField\" destination=\"fLh-mA-BaL\" id=\"lxK-xd-u7p\"/>\n                <outlet property=\"importResultView\" destination=\"jV2-ec-trE\" id=\"EUP-5w-3mr\"/>\n                <outlet property=\"localPortField\" destination=\"2do-qQ-ANK\" id=\"OIL-pR-1TG\"/>\n                <outlet property=\"logLevelButton\" destination=\"WBJ-AN-z5m\" id=\"6KR-S2-AcM\"/>\n                <outlet property=\"networkButton\" destination=\"tMD-b4-w2E\" id=\"MLa-PK-H4t\"/>\n                <outlet property=\"portField\" destination=\"vAX-58-HRK\" id=\"l6R-dx-TNq\"/>\n                <outlet property=\"profileTable\" destination=\"fje-9q-W5F\" id=\"qQT-rE-cPV\"/>\n                <outlet property=\"transportSettingsButton\" destination=\"L0C-0n-d5i\" id=\"t5T-1t-ijY\"/>\n                <outlet property=\"versionField\" destination=\"yx5-HK-GpF\" id=\"Dpi-oq-T9A\"/>\n                <outlet property=\"vmessSecurityButton\" destination=\"Dbo-ml-2p8\" id=\"sSo-w3-Yom\"/>\n                <outlet property=\"window\" destination=\"QvC-M9-y7g\" id=\"DXu-va-1Ry\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <window title=\"V2RayX\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" restorable=\"NO\" animationBehavior=\"default\" id=\"QvC-M9-y7g\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\" miniaturizable=\"YES\"/>\n            <windowPositionMask key=\"initialPositionMask\" leftStrut=\"YES\" rightStrut=\"YES\" topStrut=\"YES\" bottomStrut=\"YES\"/>\n            <rect key=\"contentRect\" x=\"196\" y=\"240\" width=\"551\" height=\"474\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1440\" height=\"877\"/>\n            <view key=\"contentView\" id=\"EiT-Mj-1SZ\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"551\" height=\"474\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n                <subviews>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"HKJ-PD-NRo\">\n                        <rect key=\"frame\" x=\"18\" y=\"434\" width=\"117\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Local Socks5 Port:\" id=\"FRd-8H-tqe\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2do-qQ-ANK\">\n                        <rect key=\"frame\" x=\"141\" y=\"431\" width=\"74\" height=\"22\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"jN0-7e-Eex\">\n                            <numberFormatter key=\"formatter\" formatterBehavior=\"default10_4\" usesGroupingSeparator=\"NO\" groupingSize=\"0\" minimumIntegerDigits=\"0\" maximumIntegerDigits=\"42\" id=\"mKI-i3-kT1\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                        <connections>\n                            <binding destination=\"-2\" name=\"value\" keyPath=\"self.localPort\" id=\"ywZ-oA-aHA\">\n                                <dictionary key=\"options\">\n                                    <bool key=\"NSContinuouslyUpdatesValue\" value=\"YES\"/>\n                                    <bool key=\"NSValidatesImmediately\" value=\"YES\"/>\n                                </dictionary>\n                            </binding>\n                        </connections>\n                    </textField>\n                    <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"aVm-xn-0cZ\">\n                        <rect key=\"frame\" x=\"141\" y=\"405\" width=\"74\" height=\"22\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"El5-ad-Gfy\">\n                            <numberFormatter key=\"formatter\" formatterBehavior=\"default10_4\" usesGroupingSeparator=\"NO\" groupingSize=\"0\" minimumIntegerDigits=\"0\" maximumIntegerDigits=\"42\" id=\"0tK-Bn-uaM\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                        <connections>\n                            <binding destination=\"-2\" name=\"value\" keyPath=\"self.httpPort\" id=\"axL-oS-ub4\">\n                                <dictionary key=\"options\">\n                                    <bool key=\"NSContinuouslyUpdatesValue\" value=\"YES\"/>\n                                    <bool key=\"NSValidatesImmediately\" value=\"YES\"/>\n                                </dictionary>\n                            </binding>\n                        </connections>\n                    </textField>\n                    <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ZkQ-S8-swW\">\n                        <rect key=\"frame\" x=\"239\" y=\"433\" width=\"102\" height=\"18\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"check\" title=\"Support UDP\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"pEW-Gw-3ph\">\n                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                        </buttonCell>\n                        <connections>\n                            <binding destination=\"-2\" name=\"value\" keyPath=\"self.udpSupport\" id=\"FMo-rg-Qyh\"/>\n                        </connections>\n                    </button>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"749\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"reb-n0-jKg\">\n                        <rect key=\"frame\" x=\"18\" y=\"379\" width=\"382\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"If the local port is changed, the pac file also needs manual modification.\" id=\"nRL-kf-uam\">\n                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                            <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"lgk-bl-Vga\">\n                        <rect key=\"frame\" x=\"18\" y=\"354\" width=\"35\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"DNS:\" id=\"sKs-KL-14B\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"mXE-pr-Ddc\">\n                        <rect key=\"frame\" x=\"59\" y=\"352\" width=\"401\" height=\"22\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"jCM-1U-byE\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                        <connections>\n                            <binding destination=\"-2\" name=\"value\" keyPath=\"self.dnsString\" id=\"VQy-DX-fDA\"/>\n                        </connections>\n                    </textField>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"749\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ecy-ho-llN\">\n                        <rect key=\"frame\" x=\"18\" y=\"329\" width=\"382\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"seperated by comma(,)\" id=\"5N8-C0-QJV\">\n                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                            <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"tIh-r8-4RU\">\n                        <rect key=\"frame\" x=\"18\" y=\"304\" width=\"99\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"VMess Servers:\" id=\"UpZ-NV-drp\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"19\" horizontalPageScroll=\"10\" verticalLineScroll=\"19\" verticalPageScroll=\"10\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"18l-QB-TVo\">\n                        <rect key=\"frame\" x=\"20\" y=\"113\" width=\"140\" height=\"183\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <clipView key=\"contentView\" ambiguous=\"YES\" drawsBackground=\"NO\" id=\"0kH-bt-ahk\">\n                            <rect key=\"frame\" x=\"1\" y=\"1\" width=\"138\" height=\"181\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                            <subviews>\n                                <tableView verticalHuggingPriority=\"750\" allowsExpansionToolTips=\"YES\" columnAutoresizingStyle=\"lastColumnOnly\" alternatingRowBackgroundColors=\"YES\" columnReordering=\"NO\" columnResizing=\"NO\" multipleSelection=\"NO\" emptySelection=\"NO\" autosaveColumns=\"NO\" typeSelect=\"NO\" id=\"fje-9q-W5F\">\n                                    <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"138\" height=\"181\"/>\n                                    <autoresizingMask key=\"autoresizingMask\"/>\n                                    <size key=\"intercellSpacing\" width=\"3\" height=\"2\"/>\n                                    <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    <color key=\"gridColor\" name=\"gridColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    <tableColumns>\n                                        <tableColumn width=\"135\" minWidth=\"40\" maxWidth=\"1000\" id=\"KrX-3H-19h\">\n                                            <tableHeaderCell key=\"headerCell\" lineBreakMode=\"truncatingTail\" borderStyle=\"border\" title=\"Server list\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <color key=\"textColor\" name=\"headerTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"headerColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </tableHeaderCell>\n                                            <textFieldCell key=\"dataCell\" lineBreakMode=\"truncatingTail\" title=\"Text Cell\" usesSingleLineMode=\"YES\" id=\"OSC-ac-Duc\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                            <tableColumnResizingMask key=\"resizingMask\" resizeWithTable=\"YES\" userResizable=\"YES\"/>\n                                        </tableColumn>\n                                    </tableColumns>\n                                    <connections>\n                                        <outlet property=\"dataSource\" destination=\"-2\" id=\"zPy-M4-rHB\"/>\n                                        <outlet property=\"delegate\" destination=\"-2\" id=\"OXx-Nl-yOx\"/>\n                                    </connections>\n                                </tableView>\n                            </subviews>\n                            <nil key=\"backgroundColor\"/>\n                        </clipView>\n                        <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"YES\" id=\"8nv-2V-qEa\">\n                            <rect key=\"frame\" x=\"1\" y=\"-15\" width=\"0.0\" height=\"16\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                        </scroller>\n                        <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" horizontal=\"NO\" id=\"wk1-qk-5lt\">\n                            <rect key=\"frame\" x=\"-15\" y=\"1\" width=\"16\" height=\"0.0\"/>\n                            <autoresizingMask key=\"autoresizingMask\"/>\n                        </scroller>\n                    </scrollView>\n                    <box fixedFrame=\"YES\" borderType=\"line\" title=\"Box\" titlePosition=\"noTitle\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"2Sy-sC-XkW\">\n                        <rect key=\"frame\" x=\"169\" y=\"90\" width=\"365\" height=\"208\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <view key=\"contentView\" ambiguous=\"YES\" id=\"de9-ID-Jky\">\n                            <rect key=\"frame\" x=\"3\" y=\"3\" width=\"359\" height=\"202\"/>\n                            <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                            <subviews>\n                                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"XHG-za-9d2\">\n                                    <rect key=\"frame\" x=\"11\" y=\"173\" width=\"58\" height=\"17\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Address:\" id=\"c8I-Ek-z9X\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"bGc-CW-7cv\">\n                                    <rect key=\"frame\" x=\"16\" y=\"141\" width=\"53\" height=\"17\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"User ID:\" id=\"mWH-Q7-PYV\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"J8L-nE-VrJ\">\n                                    <rect key=\"frame\" x=\"22\" y=\"109\" width=\"47\" height=\"17\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"alterId:\" id=\"MGr-Dc-svg\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"XC6-zg-zm1\">\n                                    <rect key=\"frame\" x=\"39\" y=\"45\" width=\"30\" height=\"17\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Tag:\" id=\"qUb-Rh-lCr\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"zHS-yd-apG\">\n                                    <rect key=\"frame\" x=\"75\" y=\"170\" width=\"177\" height=\"22\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"Sdo-aB-kgW\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <allowedInputSourceLocales>\n                                            <string>NSAllRomanInputSourcesLocaleIdentifier</string>\n                                        </allowedInputSourceLocales>\n                                    </textFieldCell>\n                                    <connections>\n                                        <binding destination=\"-2\" name=\"value\" keyPath=\"self.selectedProfile.address\" id=\"rHw-1V-R0W\">\n                                            <dictionary key=\"options\">\n                                                <bool key=\"NSContinuouslyUpdatesValue\" value=\"YES\"/>\n                                            </dictionary>\n                                        </binding>\n                                    </connections>\n                                </textField>\n                                <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vAX-58-HRK\">\n                                    <rect key=\"frame\" x=\"272\" y=\"170\" width=\"56\" height=\"22\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"cWx-3U-moO\">\n                                        <numberFormatter key=\"formatter\" formatterBehavior=\"default10_4\" numberStyle=\"decimal\" minimumIntegerDigits=\"1\" maximumIntegerDigits=\"2000000000\" maximumFractionDigits=\"3\" id=\"dod-T5-gUk\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <allowedInputSourceLocales>\n                                            <string>NSAllRomanInputSourcesLocaleIdentifier</string>\n                                        </allowedInputSourceLocales>\n                                    </textFieldCell>\n                                    <connections>\n                                        <binding destination=\"-2\" name=\"value\" keyPath=\"self.selectedProfile.port\" id=\"eB0-ty-FH5\">\n                                            <dictionary key=\"options\">\n                                                <bool key=\"NSContinuouslyUpdatesValue\" value=\"YES\"/>\n                                            </dictionary>\n                                        </binding>\n                                    </connections>\n                                </textField>\n                                <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"0MA-zS-uMD\">\n                                    <rect key=\"frame\" x=\"75\" y=\"106\" width=\"56\" height=\"22\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"MDU-Fi-AKN\">\n                                        <numberFormatter key=\"formatter\" formatterBehavior=\"default10_4\" numberStyle=\"decimal\" minimumIntegerDigits=\"1\" maximumIntegerDigits=\"2000000000\" maximumFractionDigits=\"3\" id=\"B3u-Qt-1mi\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <allowedInputSourceLocales>\n                                            <string>NSAllRomanInputSourcesLocaleIdentifier</string>\n                                        </allowedInputSourceLocales>\n                                    </textFieldCell>\n                                    <connections>\n                                        <binding destination=\"-2\" name=\"value\" keyPath=\"self.selectedProfile.alterId\" id=\"6df-SA-vmn\">\n                                            <dictionary key=\"options\">\n                                                <bool key=\"NSContinuouslyUpdatesValue\" value=\"YES\"/>\n                                            </dictionary>\n                                        </binding>\n                                    </connections>\n                                </textField>\n                                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"fuj-Rp-O27\">\n                                    <rect key=\"frame\" x=\"145\" y=\"109\" width=\"36\" height=\"17\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"level:\" id=\"dET-23-6A4\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"JLl-jc-bFO\">\n                                    <rect key=\"frame\" x=\"75\" y=\"138\" width=\"275\" height=\"22\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"yuC-0S-AxC\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <allowedInputSourceLocales>\n                                            <string>NSAllRomanInputSourcesLocaleIdentifier</string>\n                                        </allowedInputSourceLocales>\n                                    </textFieldCell>\n                                    <connections>\n                                        <binding destination=\"-2\" name=\"value\" keyPath=\"self.selectedProfile.userId\" id=\"8sl-wI-VGX\">\n                                            <dictionary key=\"options\">\n                                                <bool key=\"NSContinuouslyUpdatesValue\" value=\"YES\"/>\n                                            </dictionary>\n                                        </binding>\n                                    </connections>\n                                </textField>\n                                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Gsb-v6-rXE\">\n                                    <rect key=\"frame\" x=\"258\" y=\"173\" width=\"8\" height=\"17\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\":\" id=\"MdF-cg-Cxu\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vgc-tL-8Ue\">\n                                    <rect key=\"frame\" x=\"75\" y=\"42\" width=\"211\" height=\"22\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"n8h-lr-Ao1\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                    <connections>\n                                        <binding destination=\"-2\" name=\"value\" keyPath=\"self.selectedProfile.outboundTag\" id=\"v1N-ZQ-mcZ\">\n                                            <dictionary key=\"options\">\n                                                <bool key=\"NSContinuouslyUpdatesValue\" value=\"YES\"/>\n                                            </dictionary>\n                                        </binding>\n                                    </connections>\n                                </textField>\n                                <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"tMD-b4-w2E\">\n                                    <rect key=\"frame\" x=\"230\" y=\"8\" width=\"123\" height=\"26\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <popUpButtonCell key=\"cell\" type=\"push\" title=\"tcp\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"Jhw-Hk-xHQ\" id=\"07T-9g-FQm\">\n                                        <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"menu\"/>\n                                        <menu key=\"menu\" id=\"OwV-ph-tBz\">\n                                            <items>\n                                                <menuItem title=\"tcp\" state=\"on\" id=\"Jhw-Hk-xHQ\"/>\n                                                <menuItem title=\"kcp\" id=\"5Eb-2c-mug\"/>\n                                                <menuItem title=\"WebSocket\" id=\"PPM-JS-9Su\"/>\n                                                <menuItem title=\"http/2\" id=\"PLv-I0-cbi\">\n                                                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                </menuItem>\n                                                <menuItem title=\"quic\" id=\"54R-sf-YVo\">\n                                                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                </menuItem>\n                                            </items>\n                                        </menu>\n                                        <connections>\n                                            <binding destination=\"-2\" name=\"selectedIndex\" keyPath=\"self.selectedProfile.network\" id=\"75g-Vf-9I5\"/>\n                                        </connections>\n                                    </popUpButtonCell>\n                                    <connections>\n                                        <action selector=\"chooseNetwork:\" target=\"-2\" id=\"iEL-P5-UOS\"/>\n                                    </connections>\n                                </popUpButton>\n                                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"pjH-rG-hNQ\">\n                                    <rect key=\"frame\" x=\"11\" y=\"77\" width=\"58\" height=\"17\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Security:\" id=\"Yal-OT-vUv\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                                <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Dbo-ml-2p8\">\n                                    <rect key=\"frame\" x=\"73\" y=\"71\" width=\"214\" height=\"26\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <popUpButtonCell key=\"cell\" type=\"push\" title=\"aes-128-gcm\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"92F-Fh-RHW\" id=\"Jfz-Zt-LZn\">\n                                        <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"menu\"/>\n                                        <menu key=\"menu\" id=\"Ziq-n1-gks\">\n                                            <items>\n                                                <menuItem title=\"aes-128-gcm\" state=\"on\" id=\"92F-Fh-RHW\"/>\n                                                <menuItem title=\"chacha20-poly1305\" id=\"1SH-Qb-KKl\"/>\n                                                <menuItem title=\"auto (suggested)\" id=\"clS-ih-hzy\">\n                                                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                </menuItem>\n                                                <menuItem title=\"none\" id=\"gAx-gn-R2X\">\n                                                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                                </menuItem>\n                                            </items>\n                                        </menu>\n                                    </popUpButtonCell>\n                                    <connections>\n                                        <binding destination=\"-2\" name=\"selectedIndex\" keyPath=\"self.selectedProfile.security\" id=\"baN-RF-Z55\"/>\n                                    </connections>\n                                </popUpButton>\n                                <button horizontalHuggingPriority=\"750\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"L0C-0n-d5i\">\n                                    <rect key=\"frame\" x=\"7\" y=\"4\" width=\"160\" height=\"32\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <buttonCell key=\"cell\" type=\"push\" title=\"transport settings...\" bezelStyle=\"rounded\" alignment=\"center\" state=\"on\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"az9-1y-OFB\">\n                                        <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                    </buttonCell>\n                                    <connections>\n                                        <action selector=\"showTransportSettings:\" target=\"-2\" id=\"XZJ-IV-UYE\"/>\n                                    </connections>\n                                </button>\n                                <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"6tp-vX-b46\">\n                                    <rect key=\"frame\" x=\"187\" y=\"106\" width=\"56\" height=\"22\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"AFJ-Ob-fyN\">\n                                        <numberFormatter key=\"formatter\" formatterBehavior=\"default10_4\" numberStyle=\"decimal\" minimumIntegerDigits=\"1\" maximumIntegerDigits=\"2000000000\" maximumFractionDigits=\"3\" id=\"VUD-g0-3qe\"/>\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <allowedInputSourceLocales>\n                                            <string>NSAllRomanInputSourcesLocaleIdentifier</string>\n                                        </allowedInputSourceLocales>\n                                    </textFieldCell>\n                                    <connections>\n                                        <binding destination=\"-2\" name=\"value\" keyPath=\"self.selectedProfile.level\" id=\"Alm-mJ-QTO\">\n                                            <dictionary key=\"options\">\n                                                <bool key=\"NSContinuouslyUpdatesValue\" value=\"YES\"/>\n                                            </dictionary>\n                                        </binding>\n                                    </connections>\n                                </textField>\n                                <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"c51-zU-mXj\">\n                                    <rect key=\"frame\" x=\"167\" y=\"13\" width=\"59\" height=\"17\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                    <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Network:\" id=\"Dkz-gS-91s\">\n                                        <font key=\"font\" metaFont=\"system\"/>\n                                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                        <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                    </textFieldCell>\n                                </textField>\n                            </subviews>\n                        </view>\n                    </box>\n                    <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"HGo-i2-l4d\">\n                        <rect key=\"frame\" x=\"371\" y=\"433\" width=\"119\" height=\"18\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"check\" title=\"Share Over LAN\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"TXX-VD-4P4\">\n                            <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                        </buttonCell>\n                        <connections>\n                            <binding destination=\"-2\" name=\"value\" keyPath=\"self.shareOverLan\" id=\"rkH-wq-0DJ\"/>\n                        </connections>\n                    </button>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Jbe-gs-AvT\">\n                        <rect key=\"frame\" x=\"18\" y=\"408\" width=\"100\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Local Http Port:\" id=\"eGi-xf-mFk\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"WBJ-AN-z5m\">\n                        <rect key=\"frame\" x=\"84\" y=\"17\" width=\"113\" height=\"26\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <popUpButtonCell key=\"cell\" type=\"push\" title=\"none\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"foI-bt-EyF\" id=\"7bE-Sh-fzE\">\n                            <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"menu\"/>\n                            <menu key=\"menu\" id=\"Dum-Z8-5vL\">\n                                <items>\n                                    <menuItem title=\"none\" state=\"on\" id=\"foI-bt-EyF\"/>\n                                    <menuItem title=\"error\" id=\"tFp-yp-GMw\"/>\n                                    <menuItem title=\"warning\" id=\"Qko-Qu-7CT\">\n                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                    </menuItem>\n                                    <menuItem title=\"info\" id=\"O9h-My-OpK\"/>\n                                    <menuItem title=\"debug\" id=\"hRW-dz-Ls3\">\n                                        <modifierMask key=\"keyEquivalentModifierMask\"/>\n                                    </menuItem>\n                                </items>\n                            </menu>\n                        </popUpButtonCell>\n                        <connections>\n                            <binding destination=\"-2\" name=\"selectedIndex\" keyPath=\"self.logLevel\" id=\"W2U-Kc-adG\"/>\n                        </connections>\n                    </popUpButton>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"FaF-dM-uPs\">\n                        <rect key=\"frame\" x=\"18\" y=\"22\" width=\"62\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Log level:\" id=\"Vo6-Qu-ybt\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"3p9-Ay-GbW\">\n                        <rect key=\"frame\" x=\"425\" y=\"49\" width=\"112\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Advanced...\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"MOG-35-OP1\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"showAdvancedWindow:\" target=\"-2\" id=\"1El-Bd-DKf\"/>\n                        </connections>\n                    </button>\n                    <button toolTip=\"Restart V2Ray and connected to the selected server above\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"fnz-Bw-lGu\">\n                        <rect key=\"frame\" x=\"455\" y=\"13\" width=\"82\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"OK\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"OfO-BZ-76k\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"okSave:\" target=\"-2\" id=\"zFa-Gq-Tbd\"/>\n                        </connections>\n                    </button>\n                    <button toolTip=\"Discard all the changes\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"sO7-Gh-BBo\">\n                        <rect key=\"frame\" x=\"373\" y=\"13\" width=\"82\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"mkg-dU-bRq\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"cancel:\" target=\"-2\" id=\"blN-np-Jtr\"/>\n                        </connections>\n                    </button>\n                    <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"yx5-HK-GpF\">\n                        <rect key=\"frame\" x=\"18\" y=\"59\" width=\"355\" height=\"14\"/>\n                        <autoresizingMask key=\"autoresizingMask\"/>\n                        <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"Label\" id=\"Eo2-Yu-0N0\">\n                            <font key=\"font\" metaFont=\"smallSystem\"/>\n                            <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                            <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        </textFieldCell>\n                    </textField>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ubu-QM-gwn\">\n                        <rect key=\"frame\" x=\"333\" y=\"49\" width=\"92\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Import...\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"0Vd-cX-tz4\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"importConfigs:\" target=\"-2\" id=\"etz-5i-H5p\"/>\n                        </connections>\n                    </button>\n                    <segmentedControl verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsExpansionToolTips=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Pgq-bB-pvc\">\n                        <rect key=\"frame\" x=\"20\" y=\"92\" width=\"140\" height=\"23\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <segmentedCell key=\"cell\" borderStyle=\"border\" alignment=\"left\" style=\"smallSquare\" trackingMode=\"momentary\" id=\"TAd-3w-qoq\">\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <segments>\n                                <segment image=\"NSAddTemplate\" width=\"30\"/>\n                                <segment image=\"NSRemoveTemplate\" width=\"30\" tag=\"1\"/>\n                                <segment image=\"NSShareTemplate\" width=\"30\" enabled=\"NO\"/>\n                                <segment image=\"config_duplicate\" width=\"30\"/>\n                                <segment width=\"14\"/>\n                            </segments>\n                        </segmentedCell>\n                        <connections>\n                            <action selector=\"addRemoveServer:\" target=\"-2\" id=\"o8X-ua-ltZ\"/>\n                        </connections>\n                    </segmentedControl>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Uv6-cA-e87\">\n                        <rect key=\"frame\" x=\"207\" y=\"21\" width=\"62\" height=\"17\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"inline\" title=\"show log\" bezelStyle=\"inline\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"gkD-dq-Peq\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"smallSystemBold\"/>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"showLog:\" target=\"-2\" id=\"y4o-h5-PjK\"/>\n                        </connections>\n                    </button>\n                </subviews>\n            </view>\n            <point key=\"canvasLocation\" x=\"73.5\" y=\"128\"/>\n        </window>\n        <userDefaultsController representsSharedInstance=\"YES\" id=\"I7n-bF-Cph\"/>\n        <menuItem title=\"Item\" id=\"tLs-gB-gFx\">\n            <modifierMask key=\"keyEquivalentModifierMask\"/>\n        </menuItem>\n        <menu id=\"R79-z8-mxK\">\n            <items>\n                <menuItem title=\"Import from standard JSON files...\" id=\"eze-Oh-vyD\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"importFromJSONFiles:\" target=\"-2\" id=\"bWI-hd-Wef\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Import from standard share links...\" id=\"CTZ-Lq-X8f\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"importFromStandardLink:\" target=\"-2\" id=\"prN-IG-Awe\"/>\n                    </connections>\n                </menuItem>\n                <menuItem title=\"Import from pastboard...\" hidden=\"YES\" id=\"EQb-nS-Lf9\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                </menuItem>\n                <menuItem isSeparatorItem=\"YES\" id=\"HUE-ih-p3S\"/>\n                <menuItem title=\"Import from other links...\" id=\"8rA-16-mml\">\n                    <modifierMask key=\"keyEquivalentModifierMask\"/>\n                    <connections>\n                        <action selector=\"importFromMiscLinks:\" target=\"-2\" id=\"ZeY-9p-gY8\"/>\n                    </connections>\n                </menuItem>\n            </items>\n            <point key=\"canvasLocation\" x=\"-56\" y=\"476\"/>\n        </menu>\n        <customView id=\"jV2-ec-trE\">\n            <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"163\" height=\"96\"/>\n            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n            <subviews>\n                <textField verticalHuggingPriority=\"750\" horizontalCompressionResistancePriority=\"250\" fixedFrame=\"YES\" preferredMaxLayoutWidth=\"136\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"fLh-mA-BaL\">\n                    <rect key=\"frame\" x=\"11\" y=\"10\" width=\"140\" height=\"76\"/>\n                    <autoresizingMask key=\"autoresizingMask\"/>\n                    <textFieldCell key=\"cell\" selectable=\"YES\" title=\"Multiline Label\" id=\"fni-U3-ufg\">\n                        <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                        <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                    </textFieldCell>\n                </textField>\n            </subviews>\n            <point key=\"canvasLocation\" x=\"257.5\" y=\"579\"/>\n        </customView>\n    </objects>\n    <resources>\n        <image name=\"NSAddTemplate\" width=\"11\" height=\"11\"/>\n        <image name=\"NSRemoveTemplate\" width=\"11\" height=\"11\"/>\n        <image name=\"NSShareTemplate\" width=\"11\" height=\"16\"/>\n        <image name=\"config_duplicate\" width=\"24\" height=\"24\"/>\n    </resources>\n</document>\n"
  },
  {
    "path": "V2RayX/ConfigWindowController.h",
    "content": "//\n//  ConfigWindowController.h\n//  V2RayX\n//\n//  Copyright © 2016年 Cenmrev. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n#import \"ServerProfile.h\"\n\n@interface ConfigWindowController : NSWindowController <NSTableViewDataSource, NSTableViewDelegate>\n- (IBAction)chooseNetwork:(NSPopUpButton *)sender;\n@property (weak) IBOutlet NSPopUpButton *networkButton;\n@property (weak) IBOutlet NSPopUpButton *vmessSecurityButton;\n- (IBAction)addRemoveServer:(id)sender;\n- (IBAction)cancel:(id)sender;\n- (IBAction)okSave:(id)sender;\n@property (weak) IBOutlet NSButton *importButton;\n@property (weak) IBOutlet NSTableView *profileTable;\n@property (weak) IBOutlet NSSegmentedControl *addRemoveButton;\n@property (weak) IBOutlet NSView *importResultView;\n@property (weak) IBOutlet NSTextField *importMessageField;\n\n@property (weak) IBOutlet NSTextField *localPortField;\n@property (weak) IBOutlet NSTextField *httpPortField;\n@property (weak) IBOutlet NSTextField *portField;\n@property (weak) IBOutlet NSTextField *alterIdField;\n@property (weak) IBOutlet NSTextField *dnsField;\n@property (weak) IBOutlet NSButton *globalTransportButton;\n@property (weak) IBOutlet NSPopUpButton *logLevelButton;\n@property (weak) IBOutlet NSMenu *importFromJsonMenu;\n@property (weak) IBOutlet NSButton *transportSettingsButton;\n\n@property (weak) AppDelegate* appDelegate;\n@property (nonatomic) ServerProfile* selectedProfile;\n@property (nonatomic) NSInteger logLevel;\n@property (nonatomic) NSInteger selectedServerIndex;\n@property (nonatomic) NSInteger selectedCusServerIndex;\n@property (nonatomic) NSInteger localPort;\n@property (nonatomic) NSInteger httpPort;\n@property (nonatomic) BOOL udpSupport;\n@property (nonatomic) BOOL shareOverLan;\n@property (nonatomic) NSString* dnsString;\n@property (nonatomic) NSMutableArray *profiles;\n@property (nonatomic) NSMutableArray *outbounds; // except than vmess\n@property (nonatomic) NSMutableArray *subscriptions;\n@property NSMutableArray* routingRuleSets;\n@property (nonatomic) NSMutableArray *cusProfiles;\n@property BOOL enableRestore;\n@property BOOL enableEncryption;\n@property NSString* encryptionKey;\n\n@property (weak) IBOutlet NSTextField *versionField;\n\n@end\n"
  },
  {
    "path": "V2RayX/ConfigWindowController.m",
    "content": "//\n//  ConfigWindowController.m\n//  V2RayX\n//\n//  Copyright © 2016年 Cenmrev. All rights reserved.\n//\n\n#import \"ConfigWindowController.h\"\n#import \"AppDelegate.h\"\n#import \"MutableDeepCopying.h\"\n#import \"TransportWindowController.h\"\n#import \"AdvancedWindowController.h\"\n#import \"ConfigImporter.h\"\n\n@interface ConfigWindowController ()\n\n@property (strong) TransportWindowController* transportWindowController;\n@property (strong) AdvancedWindowController* advancedWindowController;\n@property (strong) NSPopover* popover;\n@end\n\n@implementation ConfigWindowController\n\n- (void)windowDidLoad {\n    [super windowDidLoad];\n    \n    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{\n        NSString* v2rayPath = [self.appDelegate getV2rayPath];\n        \n        NSTask *task = [[NSTask alloc] init];\n        if (@available(macOS 10.13, *)) {\n            [task setExecutableURL:[NSURL fileURLWithPath:v2rayPath]];\n        } else {\n            [task setLaunchPath:v2rayPath];\n        }\n        [task setArguments:@[@\"-version\"]];\n        NSPipe *stdoutpipe = [NSPipe pipe];\n        [task setStandardOutput:stdoutpipe];\n        [task launch];\n        [task waitUntilExit];\n        NSFileHandle *file = [stdoutpipe fileHandleForReading];\n        NSData *data = [file readDataToEndOfFile];\n        NSString *string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];\n        dispatch_async(dispatch_get_main_queue(), ^{\n            [self->_versionField setStringValue:[string componentsSeparatedByString:@\"\\n\"][0]];\n             });\n        \n    });\n    \n    [_networkButton removeAllItems];\n    for(NSString* network in NETWORK_LIST) {\n        [_networkButton addItemWithTitle:network];\n    }\n    [_vmessSecurityButton removeAllItems];\n    for(NSString* security in VMESS_SECURITY_LIST) {\n        [_vmessSecurityButton addItemWithTitle:security];\n    }\n    \n    //set textField Display\n    [_profileTable setFocusRingType:NSFocusRingTypeNone];\n    NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];\n    [formatter setNumberStyle:NSNumberFormatterNoStyle];\n    [_portField setFormatter:formatter];\n    [_alterIdField setFormatter:formatter];\n    [_localPortField setFormatter:formatter];\n    [_httpPortField setFormatter:formatter];\n//    [_addRemoveButton setMenu:_importFromJsonMenu forSegment:2];\n    \n    // copy data\n    _profiles = [[NSMutableArray alloc] init];\n    _outbounds = [[NSMutableArray alloc] init];\n    for (NSDictionary *p in _appDelegate.profiles) {\n        if ([@\"vmess\" isEqualToString:p[@\"protocol\"]] && [p[@\"settings\"][@\"vnext\"] count] == 1) {\n            [_profiles addObject:[ServerProfile profilesFromJson:p][0]];\n        } else {\n            [_outbounds addObject:p];\n        }\n    }\n    _cusProfiles = [_appDelegate.cusProfiles mutableDeepCopy];\n    _subscriptions = [_appDelegate.subscriptions mutableCopy];\n    \n    _routingRuleSets = [_appDelegate.routingRuleSets mutableCopy];\n    //\n    [_profileTable reloadData];\n    self.selectedServerIndex = 0;\n    self.selectedCusServerIndex = 0;\n    self.httpPort = _appDelegate.httpPort;\n    self.localPort = _appDelegate.localPort;\n    self.udpSupport = _appDelegate.udpSupport;\n    self.shareOverLan = _appDelegate.shareOverLan;\n    self.dnsString = _appDelegate.dnsString;\n    self.enableRestore = _appDelegate.enableRestore;\n    self.enableEncryption = _appDelegate.enableEncryption;\n    self.encryptionKey = [NSString stringWithString:_appDelegate.encryptionKey];\n    NSDictionary *logLevelDic = @{\n                               @\"debug\": @4,\n                               @\"info\": @3,\n                               @\"warning\": @2,\n                               @\"error\":@1,\n                               @\"none\":@0\n                               };\n    self.logLevel = [logLevelDic[_appDelegate.logLevel] integerValue];\n    \n    [_profileTable selectRowIndexes:[NSIndexSet indexSetWithIndex:self.selectedServerIndex] byExtendingSelection:NO];\n    [[self window] makeFirstResponder:_profileTable];\n}\n\n// set controller as profilesTable's datasource\n- (NSInteger)numberOfRowsInTableView:(NSTableView *)tableView {\n    if (tableView == _profileTable) {\n        return [_profiles count];\n    }\n    return 0;\n}\n\n- (id) tableView:(NSTableView *)tableView objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row {\n    if (tableView == _profileTable) {\n        if ([_profiles count] > 0) {\n            ServerProfile* p = [_profiles objectAtIndex:row];\n            return [[p outboundTag] length] > 0 ? [p outboundTag] : [NSString stringWithFormat:@\"%@:%ld\", [p address], [p port]];\n        } else {\n            return nil;\n        }\n    }\n    return nil;\n}\n\n-(void)tableViewSelectionDidChange:(NSNotification *)notification{\n    if ([notification object] == _profileTable) {\n        if ([_profiles count] > 0) {\n            [self setSelectedServerIndex:[_profileTable selectedRow]];\n//            NSLog(@\"selectef p =  %@\", _profiles[_selectedServerIndex]);\n            [self setSelectedProfile:_profiles[_selectedServerIndex]];\n        }\n    }\n}\n\n- (IBAction)chooseNetwork:(NSPopUpButton *)sender {\n    if (_selectedServerIndex >= 0 && _selectedServerIndex < [_profiles count]) {\n        [self checkTLSforHttp2];\n    }\n}\n\n- (BOOL)checkTLSforHttp2 {\n    if ([_networkButton indexOfSelectedItem] == 3) { // selected http/2\n        BOOL tlsEnabled = [self.selectedProfile.streamSettings[@\"security\"] isEqual: @\"tls\"];\n        if (!tlsEnabled) {\n            NSAlert *httpTlsAlerm = [[NSAlert alloc] init];\n            [httpTlsAlerm addButtonWithTitle:@\"Close\"];\n            [httpTlsAlerm addButtonWithTitle:@\"Help\"];\n            [httpTlsAlerm setMessageText:@\"Both client and server must enable TLS to use HTTP/2 network! Enbale TLS in transport settings. Click \\\"Help\\\" if you need more information\"];\n            [httpTlsAlerm beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) {\n                if (returnCode == NSAlertSecondButtonReturn) {\n                    [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@\"https://www.v2ray.com/chapter_02/transport/h2.html#tips\"]];\n                }\n            }];\n            [_networkButton selectItemAtIndex:0];\n            return NO; // does not pass checking\n        }\n    }\n    return true; //  pass checking\n}\n\n- (IBAction)addRemoveServer:(id)sender {\n    [[self window] makeFirstResponder:_profileTable];\n    if ([sender selectedSegment] == 0) {\n        ServerProfile* newProfile = [[ServerProfile alloc] init];\n        [_profiles addObject:newProfile];\n        [_profileTable reloadData];\n        [_profileTable selectRowIndexes:[NSIndexSet indexSetWithIndex:([_profiles count] - 1)] byExtendingSelection:NO];\n    } else if ([sender selectedSegment] == 1 && [_profiles count] > 0) {\n        NSInteger originalSelectedServerIndex = [_profileTable selectedRow];\n        [_profiles removeObjectAtIndex:originalSelectedServerIndex];\n        if ([_profiles count] > 0) {\n            if (originalSelectedServerIndex == [_profiles count]) {//deleted the last server\n                //select the last server of the remains\n                [self setSelectedServerIndex:[_profiles count] - 1];\n            }\n            [_profileTable selectRowIndexes:[NSIndexSet indexSetWithIndex:_selectedServerIndex] byExtendingSelection:NO];\n            [self setSelectedProfile:_profiles[_selectedServerIndex]];\n        } else { // all the profiles are deleted;\n            [self setSelectedServerIndex:-1];\n            [self setSelectedProfile:nil];\n        }\n        [_profileTable reloadData];\n    }\n    else if ([sender selectedSegment] == 2) {\n        // share server\n    } else if ([sender selectedSegment] == 3) {\n        // duplicate\n        if (_selectedServerIndex >= 0 && _selectedServerIndex < [_profiles count]) {\n            [_profiles addObject:[_profiles[_selectedServerIndex] deepCopy]];\n            [_profileTable reloadData];\n        }\n    }\n}\n\n- (IBAction)importConfigs:(id)sender {\n    [NSMenu popUpContextMenu:_importFromJsonMenu withEvent:[NSApp currentEvent] forView:sender];\n}\n\n- (IBAction)cancel:(id)sender {\n    [[self window] close];\n}\n\n- (NSString*)firstFewLines:(NSDictionary*)dict {\n    NSInteger limit = 13;\n    NSString* str = [dict description];\n    NSArray* lines = [str componentsSeparatedByString:@\"\\n\"];\n    if (lines.count < limit) {\n        return str;\n    } else {\n        NSString* r = [[lines subarrayWithRange:NSMakeRange(0, limit)] componentsJoinedByString:@\"\\n\"];\n        return [NSString stringWithFormat:@\"%@\\n...\", r];\n    }\n}\n\n- (IBAction)okSave:(id)sender {\n    if (![self checkTLSforHttp2]) {\n        return;\n    }\n    NSMutableArray *allOutbounds = [[NSMutableArray alloc] init];\n    for (ServerProfile* p in _profiles) {\n        [allOutbounds addObject:[p outboundProfile]];\n    }\n    for (NSMutableDictionary* p in _outbounds) {\n        [allOutbounds addObject:p];\n    }\n    NSMutableDictionary *allOutboundDict =[[NSMutableDictionary alloc] init];\n    for (NSMutableDictionary* outbound in allOutbounds) {\n        if (!outbound[@\"tag\"] || ![outbound[@\"tag\"] isKindOfClass:[NSString class]] || [outbound[@\"tag\"] length] == 0) {\n            [self showAlert: [NSString stringWithFormat:@\"%@\\ntag is not valid!\", [self firstFewLines:outbound]]];\n            return;\n        }\n        if ([RESERVED_TAGS indexOfObject:outbound[@\"tag\"]] != NSNotFound) {\n            [self showAlert: [NSString stringWithFormat:@\"tag %@ is reserved, please use another one!\", outbound[@\"tag\"]]];\n            return;\n        }\n        if (allOutboundDict[outbound[@\"tag\"]]) {\n            [self showAlert: [NSString stringWithFormat:@\"The two outbounds share the same tag: %@\\n%@\\nAND\\n%@\",outbound[@\"tag\"], [self firstFewLines:outbound], [self firstFewLines:allOutboundDict[outbound[@\"tag\"]]]]];\n            return;\n        }\n        allOutboundDict[outbound[@\"tag\"]] = outbound;\n    }\n    _appDelegate.profiles = allOutbounds;\n    NSString* dnsStr = [[_dnsField stringValue] stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n    if ([dnsStr length] == 0) {\n        dnsStr = @\"localhost\";\n    }\n    _appDelegate.logLevel = _logLevelButton.selectedItem.title;\n    _appDelegate.localPort = [_localPortField integerValue];\n    _appDelegate.httpPort = [_httpPortField integerValue];\n    _appDelegate.udpSupport = self.udpSupport;\n    _appDelegate.shareOverLan = self.shareOverLan;\n    _appDelegate.dnsString = dnsStr;\n    _appDelegate.cusProfiles = self.cusProfiles;\n    _appDelegate.subscriptions = self.subscriptions;\n    _appDelegate.enableRestore = self.enableRestore;\n    [_appDelegate.routingRuleSets removeAllObjects];\n    for (NSMutableDictionary* set in self.routingRuleSets) {\n        NSMutableDictionary* validatedSet = [ConfigImporter validateRuleSet:set];\n        if (validatedSet) {\n            [_appDelegate.routingRuleSets addObject:validatedSet];\n        }\n    }\n    if (_appDelegate.routingRuleSets.count == 0) {\n        [_appDelegate.routingRuleSets addObject:[ROUTING_DIRECT mutableDeepCopy]];\n    }\n    _appDelegate.enableEncryption = self.enableEncryption;\n    _appDelegate.encryptionKey = self.encryptionKey;\n    [_appDelegate saveConfigInfo];\n    [_appDelegate updateSubscriptions:self];\n    [[self window] close];\n}\n\n- (IBAction)showAdvancedWindow:(NSButton *)sender {\n    self.advancedWindowController = [[AdvancedWindowController alloc] initWithWindowNibName:@\"AdvancedWindow\" parentController:self];\n    [[self window] beginSheet:self.advancedWindowController.window completionHandler:^(NSModalResponse returnCode) {\n        if (returnCode == NSModalResponseOK) {\n            self.outbounds = self.advancedWindowController.outbounds;\n            self.cusProfiles = self.advancedWindowController.configs;\n            self.routingRuleSets = self.advancedWindowController.routingRuleSets;\n            self.subscriptions = self.advancedWindowController.subscriptions;\n            self.enableRestore = self.advancedWindowController.enableRestore;\n            self.enableEncryption = self.advancedWindowController.enableEncryption;\n            self.encryptionKey = self.advancedWindowController.encryptionKey;\n        }\n        self.advancedWindowController = nil;\n    }];\n}\n\n\n- (IBAction)showTransportSettings:(id)sender {\n    if ([_profiles count] == 0) {\n        return;\n    }\n    self.transportWindowController = [[TransportWindowController alloc] initWithWindowNibName:@\"TransportWindow\" parentController:self];\n    [[self window] beginSheet:self.transportWindowController.window completionHandler:^(NSModalResponse returnCode) {\n        if (returnCode == NSModalResponseOK) {\n            NSArray* a = [self->_transportWindowController generateSettings];\n            self.selectedProfile.streamSettings = a[0];\n            self.selectedProfile.muxSettings = a[1];\n        }\n        self.transportWindowController = nil;\n    }];\n}\n\n// https://stackoverflow.com/questions/7387341/how-to-create-and-get-return-value-from-cocoa-dialog/7387395#7387395\n- (void)askInputWithPrompt: (NSString*)prompt handler:(void (^ __nullable)(NSString* inputStr))handler {\n    \n    NSAlert *alert = [[NSAlert alloc] init];\n    alert.messageText = prompt;\n    [alert addButtonWithTitle:@\"OK\"];\n    [alert addButtonWithTitle:@\"Cancel\"];\n    NSTextField *inputField = [[NSTextField alloc] initWithFrame:NSMakeRect(0, 0, 400, 24)];\n    inputField.usesSingleLineMode = true;\n    inputField.lineBreakMode = NSLineBreakByTruncatingHead;\n    [alert setAccessoryView:inputField];\n    [alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) {\n        if (returnCode == NSAlertFirstButtonReturn) {\n            handler([inputField stringValue]);\n        }\n    }];\n}\n\n- (void)showAlert:(NSString*)text {\n    NSAlert* alert = [[NSAlert alloc] init];\n    [alert setInformativeText:text];\n    [alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) {\n        ;\n    }];\n}\n\n- (IBAction)importFromStandardLink:(id)sender {\n    [self askInputWithPrompt:@\"Support standard vmess:// and ss:// link. Standard vmess:// link is still under discussion. Use \\\"Import from other links...\\\" to import other links, for example, vmess:// invented by v2rayN.\" handler:^(NSString *inputStr) {\n        if (inputStr.length) {\n            dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{\n                NSMutableDictionary* ssOutbound = [ConfigImporter ssOutboundFromSSLink:inputStr];\n                if (ssOutbound) {\n                    [self.outbounds addObject:ssOutbound];\n                    [self presentImportResultOfVmessCount:0 otherCount:1 ruleSetCount:0];\n                } else {\n                    [self presentImportResultOfVmessCount:0 otherCount:0 ruleSetCount:0];\n                }\n            });\n        }\n    }];\n}\n\n- (void)presentImportResultOfVmessCount:(NSInteger)vmessCount otherCount:(NSInteger)otherCount  ruleSetCount:(NSInteger)ruleSetCount {\n    dispatch_async(dispatch_get_main_queue(), ^{\n        [self->_profileTable reloadData];\n        self.popover = [[NSPopover alloc] init];\n        self.importMessageField.stringValue = [NSString stringWithFormat:@\"Imported %lu vmess and %lu other protocol outbounds, %lu routing rule sets.\", vmessCount, otherCount, ruleSetCount];\n        self.popover.contentViewController = [[NSViewController alloc] init];\n        self.popover.contentViewController.view = self.importResultView;\n        self.popover.behavior = NSPopoverBehaviorTransient;\n        [self.popover showRelativeToRect:[self.importButton bounds] ofView:self.importButton preferredEdge:NSMaxYEdge];\n    });\n\n}\n\n- (IBAction)importFromMiscLinks:(id)sender {\n    [self askInputWithPrompt:@\"V2RayX will try importing ssd://, vmess:// and http(s):// links from v2rayN and SSD(may cause failure).\" handler:^(NSString *inputStr) {\n        inputStr = [inputStr stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]];\n        if ([inputStr length] != 0) {\n            dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{\n                ServerProfile* p = [ConfigImporter importFromVmessOfV2RayN:inputStr];\n                NSInteger vmessCount = 0;\n                NSInteger otherCount = 0;\n                if (p) {\n                    [self.profiles addObject:p];\n                    vmessCount = 1;\n                }\n                NSDictionary* ssdResult = [ConfigImporter importFromSubscriptionOfSSD:inputStr];\n                for (NSDictionary* d in ssdResult[@\"other\"]) {\n                    [self.outbounds addObject:[d mutableDeepCopy]];\n                    otherCount += 1;\n                }\n                NSMutableDictionary* p2 = [ConfigImporter importFromHTTPSubscription:inputStr];\n                if (p2) {\n                    [self.profiles addObjectsFromArray:p2[@\"vmess\"]];\n                    [self.outbounds addObjectsFromArray:p2[@\"other\"]];\n                    vmessCount += [p2[@\"vmess\"] count];\n                    otherCount += [p2[@\"other\"] count];\n                }\n                [self presentImportResultOfVmessCount:vmessCount otherCount:otherCount ruleSetCount:0];\n            });\n        }\n    }];\n}\n\n- (IBAction)importFromJSONFiles:(id)sender {\n    NSOpenPanel* openPanel = [NSOpenPanel openPanel];\n    [openPanel setCanChooseFiles:YES];\n    [openPanel setAllowsMultipleSelection:YES];\n    [openPanel setAllowedFileTypes:@[@\"json\"]];\n    [openPanel setDirectoryURL:[[NSFileManager defaultManager] homeDirectoryForCurrentUser]];\n\n    [openPanel beginSheetModalForWindow:[self window]  completionHandler:^(NSModalResponse result) {\n        if (result == NSModalResponseOK) {\n            dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{\n                NSArray* files = [openPanel URLs];\n                NSMutableDictionary* result = [ConfigImporter importFromStandardConfigFiles:files];\n                [self.profiles addObjectsFromArray:result[@\"vmess\"]];\n                [self.outbounds addObjectsFromArray:result[@\"other\"]];\n                [self.routingRuleSets addObjectsFromArray:result[@\"rules\"]];\n                [self presentImportResultOfVmessCount:[result[@\"vmess\"] count] otherCount:[result[@\"other\"] count] ruleSetCount:[result[@\"rules\"] count]];\n            });\n        }\n    }];\n}\n\n- (IBAction)showLog:(id)sender {\n    [_appDelegate viewLog:sender];\n}\n\n@end\n"
  },
  {
    "path": "V2RayX/Credits.rtf",
    "content": "{\\rtf1\\ansi\\ansicpg1252\\cocoartf1671\\cocoasubrtf200\n{\\fonttbl\\f0\\fswiss\\fcharset0 Helvetica;\\f1\\fswiss\\fcharset0 Arial-BoldMT;\\f2\\fswiss\\fcharset0 Helvetica-Bold;\n\\f3\\fswiss\\fcharset0 Helvetica-Oblique;}\n{\\colortbl;\\red255\\green255\\blue255;}\n{\\*\\expandedcolortbl;;}\n\\vieww9000\\viewh8400\\viewkind0\n\\pard\\tx566\\tx1133\\tx1700\\tx2267\\tx2834\\tx3401\\tx3968\\tx4535\\tx5102\\tx5669\\tx6236\\tx6803\\pardirnatural\\partightenfactor0\n\n\\f0\\fs24 \\cf0 \\\n\\pard\\pardeftab720\\qc\\partightenfactor0\n\n\\f1\\b\\fs28 \\cf0 \\expnd0\\expndtw0\\kerning0\nStand on the shoulders of giants\n\\f2\\fs24 \\kerning1\\expnd0\\expndtw0 \\\n\\\n\\pard\\tx566\\tx1133\\tx1700\\tx2267\\tx2834\\tx3401\\tx3968\\tx4535\\tx5102\\tx5669\\tx6236\\tx6803\\pardeftab720\\pardirnatural\\qc\\partightenfactor0\n\\cf0 V2RayX - GUI for V2Ray on macOS\n\\f0\\b0 \\\n\n\\f3\\i Cenmrev\n\\f0\\i0 \\\nhttps://github.com/Cenmrev/V2RayX\\\n\\\nFor information on V2Ray, visit:\\\nhttps://www.v2ray.com\\\n\\\nIcon \"copy\" made by {\\field{\\*\\fldinst{HYPERLINK \"https://www.flaticon.com/authors/freepik\"}}{\\fldrslt Freepik}} from www.flaticon.com \\\n\\pard\\tx566\\tx1133\\tx1700\\tx2267\\tx2834\\tx3401\\tx3968\\tx4535\\tx5102\\tx5669\\tx6236\\tx6803\\pardeftab720\\pardirnatural\\partightenfactor0\n\\cf0 \\\n\\\n\\\n}"
  },
  {
    "path": "V2RayX/Info.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>CFBundleDevelopmentRegion</key>\n\t<string>en</string>\n\t<key>CFBundleExecutable</key>\n\t<string>$(EXECUTABLE_NAME)</string>\n\t<key>CFBundleIconFile</key>\n\t<string></string>\n\t<key>CFBundleIdentifier</key>\n\t<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>\n\t<key>CFBundleInfoDictionaryVersion</key>\n\t<string>6.0</string>\n\t<key>CFBundleName</key>\n\t<string>$(PRODUCT_NAME)</string>\n\t<key>CFBundlePackageType</key>\n\t<string>APPL</string>\n\t<key>CFBundleShortVersionString</key>\n\t<string>1.5.1</string>\n\t<key>CFBundleSignature</key>\n\t<string>????</string>\n\t<key>CFBundleVersion</key>\n\t<string>1297</string>\n\t<key>LSMinimumSystemVersion</key>\n\t<string>$(MACOSX_DEPLOYMENT_TARGET)</string>\n\t<key>LSUIElement</key>\n\t<true/>\n\t<key>NSHumanReadableCopyright</key>\n\t<string>Copyright © 2019 Cenmrev. All rights reserved.</string>\n\t<key>NSMainNibFile</key>\n\t<string>MainMenu</string>\n\t<key>NSPrincipalClass</key>\n\t<string>NSApplication</string>\n</dict>\n</plist>\n"
  },
  {
    "path": "V2RayX/MutableDeepCopying.h",
    "content": "// https://gist.github.com/yfujiki/1664847\n\n#import <Foundation/Foundation.h>\n\n@protocol MutableDeepCopying <NSObject>\n-(id) mutableDeepCopy;\n@end\n@interface NSDictionary (MutableDeepCopy) <MutableDeepCopying>\n@end\n@interface NSArray (MutableDeepCopy) <MutableDeepCopying>\n@end\n\n// Implementation\n@implementation NSDictionary (MutableDeepCopy)\n- (NSMutableDictionary *) mutableDeepCopy {\n    NSMutableDictionary * returnDict = [[NSMutableDictionary alloc] initWithCapacity:self.count];\n    NSArray * keys = [self allKeys];\n    for(id key in keys) {\n        id aValue = [self objectForKey:key];\n        id theCopy = nil;\n        if([aValue conformsToProtocol:@protocol(MutableDeepCopying)]) {\n            theCopy = [aValue mutableDeepCopy];\n        } else if([aValue conformsToProtocol:@protocol(NSMutableCopying)]) {\n            theCopy = [aValue mutableCopy];\n        } else if([aValue conformsToProtocol:@protocol(NSCopying)]){\n            theCopy = [aValue copy];\n        } else {\n            theCopy = aValue;\n        }\n        [returnDict setValue:theCopy forKey:key];\n    }\n    return returnDict;\n}\n@end\n\n@implementation NSArray (MutableDeepCopy)\n-(NSMutableArray *)mutableDeepCopy {\n    NSMutableArray *returnArray = [[NSMutableArray alloc] initWithCapacity:self.count];\n    for(id aValue in self) {\n        id theCopy = nil;\n        if([aValue conformsToProtocol:@protocol(MutableDeepCopying)]) {\n            theCopy = [aValue mutableDeepCopy];\n        } else if([aValue conformsToProtocol:@protocol(NSMutableCopying)]) {\n            theCopy = [aValue mutableCopy];\n        } else if([aValue conformsToProtocol:@protocol(NSCopying)]){\n            theCopy = [aValue copy];\n        } else {\n            theCopy = aValue;\n        }\n        [returnArray addObject:theCopy];\n    }\n    return returnArray;\n}\n@end\n"
  },
  {
    "path": "V2RayX/NSData+AES256Encryption.h",
    "content": "//\n//  NSData+AES256Encryption.h\n//  V2RayX\n//\n//\n\n\n#import <Cocoa/Cocoa.h>\n\n@interface NSData (AES256Encryption)\n- (NSData *)encryptedDataWithKey:(NSString*)key;\n- (NSData* )decryptedDataWithKey:(NSString*)key;\n@end\n\n"
  },
  {
    "path": "V2RayX/NSData+AES256Encryption.m",
    "content": "//\n//  NSData+AES256Encryption.m\n//  V2RayX\n//\n//\n\n#import \"NSData+AES256Encryption.h\"\n#import <CommonCrypto/CommonDigest.h>\n#import <CommonCrypto/CommonCryptor.h>\n\n@implementation NSData (AES256Encryption)\n\n- (NSData *)encryptedDataWithKey:(NSString*)key {\n    NSUInteger dataLength = [self length];\n    size_t bufferSize = dataLength + kCCBlockSizeAES128;\n    void *buffer = malloc( bufferSize );\n    //NSLog(@\"%@, %@\", key);\n    size_t numBytesEncrypted = 0;\n    CCCryptorStatus cryptStatus = CCCrypt(kCCEncrypt, kCCAlgorithmAES, kCCOptionPKCS7Padding|kCCOptionECBMode,\n                                          [key cStringUsingEncoding:NSUTF8StringEncoding], kCCKeySizeAES256,\n                                          NULL /* initialization vector */,\n                                          [self bytes], dataLength, /* input */\n                                          buffer, bufferSize, /* output */\n                                          &numBytesEncrypted);\n    if(cryptStatus == kCCSuccess) {\n        return [NSData dataWithBytesNoCopy:buffer length:numBytesEncrypted];\n    }\n    free(buffer);\n    return nil;\n}\n\n-(NSData* )decryptedDataWithKey:(NSString*)key {\n    NSUInteger dataLength = [self length];\n    size_t bufferSize = dataLength + kCCBlockSizeAES128;\n    void *buffer = malloc( bufferSize );\n    size_t numBytesDecrypted = 0;\n    CCCryptorStatus cryptStatus = CCCrypt(kCCDecrypt, kCCAlgorithmAES, kCCOptionPKCS7Padding|kCCOptionECBMode,\n                                          [key cStringUsingEncoding:NSUTF8StringEncoding], kCCKeySizeAES256,\n                                          NULL /* initialization vector */,\n                                          [self bytes], dataLength, /* input */\n                                          buffer, bufferSize, /* output */\n                                          &numBytesDecrypted);\n    if(cryptStatus == kCCSuccess) {\n        return [NSData dataWithBytesNoCopy:buffer length:numBytesDecrypted];\n    }\n    return nil;\n}\n\n@end\n"
  },
  {
    "path": "V2RayX/ServerProfile.h",
    "content": "//\n//  ServerProfile.h\n//  V2RayX\n//\n//  Copyright © 2016年 Cenmrev. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import \"AppDelegate.h\"\n#import \"utilities.h\"\n\ntypedef enum SecurityType : NSUInteger {\n    auto_,\n    aes_128_gcm,\n    chacha20_poly130,\n    none\n} SecurityType;\n\ntypedef enum NetWorkType : NSUInteger {\n    tcp,\n    kcp,\n    ws,\n    http,\n    quic\n} NetWorkType;\n\n@interface ServerProfile : NSObject\n- (NSMutableDictionary*)outboundProfile;\n+ (ServerProfile* _Nullable )readFromAnOutboundDic:(NSDictionary*)outDict;\n+ (NSArray*)profilesFromJson:(NSDictionary*)outboundJson;\n-(ServerProfile*)deepCopy;\n\n@property (nonatomic) NSString* address;\n@property (nonatomic) NSUInteger port;\n@property (nonatomic) NSString* userId;\n@property (nonatomic) NSUInteger alterId;\n@property (nonatomic) NSUInteger level;\n@property (nonatomic) NSString* outboundTag;\n@property (nonatomic) SecurityType security;\n@property (nonatomic) NetWorkType network;\n@property (nonatomic) NSString* sendThrough;\n@property (nonatomic) NSDictionary* streamSettings; // except network type.\n@property (nonatomic) NSDictionary* muxSettings;\n@end\n"
  },
  {
    "path": "V2RayX/ServerProfile.m",
    "content": "//\n//  ServerProfile.m\n//  V2RayX\n//\n//  Copyright © 2016年 Cenmrev. All rights reserved.\n//\n\n#import \"ServerProfile.h\"\n\n@implementation ServerProfile\n\n- (ServerProfile*)init {\n    self = [super init];\n    if (self) {\n        [self setAddress:@\"server.cc\"];\n        [self setPort:10086];\n        [self setUserId:@\"00000000-0000-0000-0000-000000000000\"];\n        [self setAlterId:64];\n        [self setLevel:0];\n        [self setOutboundTag:@\"test server\"];\n        [self setSecurity:auto_];\n        [self setNetwork:tcp];\n        [self setSendThrough:@\"0.0.0.0\"];\n        [self setStreamSettings:@{\n                                  @\"security\": @\"none\",\n                                  @\"tlsSettings\": @{\n                                          @\"serverName\": @\"server.cc\",\n                                          @\"alpn\": @[@\"http/1.1\"],\n                                          @\"allowInsecure\": [NSNumber numberWithBool:NO],\n                                          @\"allowInsecureCiphers\": [NSNumber numberWithBool:NO]\n                                          },\n                                  @\"tcpSettings\": @{\n                                          @\"header\": @{\n                                                  @\"type\": @\"none\"\n                                                  }\n                                          },\n                                  @\"kcpSettings\": @{\n                                          @\"mtu\": @1350,\n                                          @\"tti\": @20,\n                                          @\"uplinkCapacity\": @5,\n                                          @\"downlinkCapacity\": @20,\n                                          @\"congestion\": [NSNumber numberWithBool:NO],\n                                          @\"readBufferSize\": @1,\n                                          @\"writeBufferSize\": @1,\n                                          @\"header\": @{\n                                                  @\"type\": @\"none\"\n                                                  }\n                                          },\n                                  @\"wsSettings\": @{\n                                          @\"path\": @\"\",\n                                          @\"headers\": @{}\n                                          },\n                                  @\"httpSettings\": @{\n                                          @\"host\": @[@\"\"],\n                                          @\"path\": @\"\"\n                                          },\n                                  @\"quicSettings\": @{\n                                          @\"security\": @\"none\",\n                                          @\"key\": @\"\",\n                                          @\"header\": @{ @\"type\": @\"none\" }\n                                          },\n                                  @\"sockopt\": @{}\n                                  }];\n        [self setMuxSettings:@{\n                               @\"enabled\": [NSNumber numberWithBool:NO],\n                               @\"concurrency\": @8\n                               }];\n    }\n    return self;\n}\n\n- (NSString*)description {\n    return [[self outboundProfile] description];\n}\n\n+ (NSArray*)profilesFromJson:(NSDictionary*)outboundJson {\n    if (![outboundJson[@\"protocol\"] isKindOfClass:[NSString class]]\n        || ![outboundJson[@\"protocol\"] isEqualToString:@\"vmess\"] ) {\n        return @[];\n    }\n    NSMutableArray* profiles = [[NSMutableArray alloc] init];\n    NSString* sendThrough = nilCoalescing(outboundJson[@\"sendThrough\"], @\"0.0.0.0\");\n    if (![[outboundJson valueForKeyPath:@\"settings.vnext\"] isKindOfClass:[NSArray class]]) {\n        return @[];\n    }\n    for (NSDictionary* vnext in [outboundJson valueForKeyPath:@\"settings.vnext\"]) {\n        ServerProfile* profile = [[ServerProfile alloc] init];\n        profile.address = nilCoalescing(vnext[@\"address\"], @\"127.0.0.1\");\n        profile.outboundTag = nilCoalescing(outboundJson[@\"tag\"], @\"\");\n        profile.port = [vnext[@\"port\"] unsignedIntegerValue];\n        if (![vnext[@\"users\"] isKindOfClass:[NSArray class]] || [vnext[@\"users\"] count] == 0) {\n            continue;\n        }\n        profile.userId = nilCoalescing(vnext[@\"users\"][0][@\"id\"], @\"23ad6b10-8d1a-40f7-8ad0-e3e35cd38287\");\n        profile.alterId = [vnext[@\"users\"][0][@\"alterId\"] unsignedIntegerValue];\n        profile.level = [vnext[@\"users\"][0][@\"level\"] unsignedIntegerValue];\n        profile.security = searchInArray(vnext[@\"users\"][0][@\"security\"], VMESS_SECURITY_LIST);\n        if (outboundJson[@\"streamSettings\"] != nil) {\n            profile.streamSettings = outboundJson[@\"streamSettings\"];\n            profile.network = searchInArray(outboundJson[@\"streamSettings\"][@\"network\"], NETWORK_LIST);\n        }\n        if (outboundJson[@\"mux\"] != nil) {\n            profile.muxSettings = outboundJson[@\"mux\"];\n        }\n        profile.sendThrough = sendThrough;\n        [profiles addObject:profile];\n    }\n    return profiles;\n}\n\n+ (ServerProfile* _Nullable )readFromAnOutboundDic:(NSDictionary*)outDict {\n    NSArray *allProfiles = [self profilesFromJson:outDict];\n    if ([allProfiles count] > 0) {\n        return allProfiles[0];\n    } else {\n        return NULL;\n    }\n}\n\n-(ServerProfile*)deepCopy {\n    ServerProfile* aCopy = [[ServerProfile alloc] init];\n    aCopy.address = [NSString stringWithString:nilCoalescing(self.address, @\"\")];\n    aCopy.port = self.port;\n    aCopy.userId = [NSString stringWithString:nilCoalescing(self.userId, @\"\")];\n    aCopy.alterId = self.alterId;\n    aCopy.level = self.level;\n    aCopy.outboundTag = [NSString stringWithString:nilCoalescing(self.outboundTag, @\"\")];\n    aCopy.security = self.security;\n    aCopy.network = self.network;\n    aCopy.sendThrough = [NSString stringWithString:nilCoalescing(self.sendThrough, @\"\")];\n    aCopy.streamSettings = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:self.streamSettings]];\n    aCopy.muxSettings = [NSKeyedUnarchiver unarchiveObjectWithData:[NSKeyedArchiver archivedDataWithRootObject:self.muxSettings]];\n    return aCopy;\n}\n\n- (NSMutableDictionary*)outboundProfile {\n    NSMutableDictionary* fullStreamSettings = [NSMutableDictionary dictionaryWithDictionary:streamSettings];\n    fullStreamSettings[@\"network\"] = NETWORK_LIST[network];\n    NSDictionary* result =\n    @{\n      @\"sendThrough\": sendThrough,\n      @\"tag\": nilCoalescing(outboundTag, @\"\"),\n      @\"protocol\": @\"vmess\",\n      @\"settings\": [@{\n              @\"vnext\": @[\n                      @{\n                          @\"address\": nilCoalescing([address stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] , @\"\"),\n                          @\"port\": [NSNumber numberWithUnsignedInteger:port],\n                          @\"users\": @[\n                                  @{\n                                      @\"id\": userId != nil ? [userId stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]]: @\"\",\n                                      @\"alterId\": [NSNumber numberWithUnsignedInteger:alterId],\n                                      @\"security\": VMESS_SECURITY_LIST[security],\n                                      @\"level\": [NSNumber numberWithUnsignedInteger:level]\n                                      }\n                                  ]\n                          }\n                      ]\n              } mutableCopy],\n      @\"streamSettings\": fullStreamSettings,\n      @\"mux\": muxSettings,\n      };\n    return [result mutableCopy];\n}\n\n@synthesize address;\n@synthesize port;\n@synthesize userId;\n@synthesize alterId;\n@synthesize level;\n@synthesize outboundTag;\n@synthesize security;\n@synthesize network;\n@synthesize sendThrough;\n@synthesize muxSettings;\n@synthesize streamSettings;\n@end\n"
  },
  {
    "path": "V2RayX/TransportWindow.xib",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<document type=\"com.apple.InterfaceBuilder3.Cocoa.XIB\" version=\"3.0\" toolsVersion=\"14460.31\" targetRuntime=\"MacOSX.Cocoa\" propertyAccessControl=\"none\" useAutolayout=\"YES\" customObjectInstantitationMethod=\"direct\">\n    <dependencies>\n        <deployment identifier=\"macosx\"/>\n        <plugIn identifier=\"com.apple.InterfaceBuilder.CocoaPlugin\" version=\"14460.31\"/>\n        <capability name=\"documents saved in the Xcode 8 format\" minToolsVersion=\"8.0\"/>\n    </dependencies>\n    <objects>\n        <customObject id=\"-2\" userLabel=\"File's Owner\" customClass=\"TransportWindowController\">\n            <connections>\n                <outlet property=\"httpHostsField\" destination=\"Plk-Mg-LyC\" id=\"cQM-TX-wT7\"/>\n                <outlet property=\"httpPathField\" destination=\"gQZ-V1-coF\" id=\"HTe-LZ-IuC\"/>\n                <outlet property=\"kcpCongestionButton\" destination=\"qto-Yo-ddA\" id=\"yX1-AC-ezO\"/>\n                <outlet property=\"kcpDcField\" destination=\"daz-dm-6LM\" id=\"AgB-Hg-4JL\"/>\n                <outlet property=\"kcpHeaderTypeButton\" destination=\"Zir-lP-MdA\" id=\"qKW-sN-WaO\"/>\n                <outlet property=\"kcpMtuField\" destination=\"jck-72-mqP\" id=\"cBy-OA-jVO\"/>\n                <outlet property=\"kcpRbField\" destination=\"cMj-Pa-ouZ\" id=\"erp-yA-fr3\"/>\n                <outlet property=\"kcpTtiField\" destination=\"lqc-ek-WFd\" id=\"YgP-hz-8ub\"/>\n                <outlet property=\"kcpUcField\" destination=\"nST-JV-7LV\" id=\"YGL-2t-vwi\"/>\n                <outlet property=\"kcpWbField\" destination=\"jAB-DD-QBA\" id=\"KeR-dU-eCC\"/>\n                <outlet property=\"muxConcurrencyField\" destination=\"L11-Bf-Eib\" id=\"dw8-Un-XXK\"/>\n                <outlet property=\"muxEnableButton\" destination=\"cS2-9s-JTH\" id=\"GBo-yz-SAs\"/>\n                <outlet property=\"quicHeaderButton\" destination=\"b8A-oK-EAg\" id=\"sbK-Rr-Zfj\"/>\n                <outlet property=\"quicKeyField\" destination=\"Qf8-bK-NW8\" id=\"Ofe-mV-WQY\"/>\n                <outlet property=\"quicSecurityButton\" destination=\"22G-X8-sRf\" id=\"KVn-cm-Tqn\"/>\n                <outlet property=\"tcpHeaderCusButton\" destination=\"WPK-rs-FWC\" id=\"Vre-bZ-1eV\"/>\n                <outlet property=\"tcpHeaderField\" destination=\"dcF-wv-cmU\" id=\"tRU-Pf-5Lr\"/>\n                <outlet property=\"tfoEnableButton\" destination=\"Y7H-QP-cdh\" id=\"BoE-Rp-ruq\"/>\n                <outlet property=\"tlsAiButton\" destination=\"l3Z-uk-KBr\" id=\"MYh-qr-nK9\"/>\n                <outlet property=\"tlsAllowInsecureCiphersButton\" destination=\"L3V-ES-nEc\" id=\"MX1-ru-Gh3\"/>\n                <outlet property=\"tlsAlpnField\" destination=\"ueg-ns-8xA\" id=\"IMc-ov-OVs\"/>\n                <outlet property=\"tlsServerNameField\" destination=\"86t-of-f5p\" id=\"Vz7-wn-aWD\"/>\n                <outlet property=\"tlsUseButton\" destination=\"n0X-Fy-rS1\" id=\"IyU-l4-N9i\"/>\n                <outlet property=\"window\" destination=\"QvC-M9-y7g\" id=\"7Ko-FQ-AUD\"/>\n                <outlet property=\"wsHeaderField\" destination=\"5WV-Rv-Aia\" id=\"2d2-93-ebM\"/>\n                <outlet property=\"wsPathField\" destination=\"Z6z-dK-Tz0\" id=\"n4l-RN-PRN\"/>\n            </connections>\n        </customObject>\n        <customObject id=\"-1\" userLabel=\"First Responder\" customClass=\"FirstResponder\"/>\n        <customObject id=\"-3\" userLabel=\"Application\" customClass=\"NSObject\"/>\n        <window title=\"Window\" allowsToolTipsWhenApplicationIsInactive=\"NO\" autorecalculatesKeyViewLoop=\"NO\" releasedWhenClosed=\"NO\" visibleAtLaunch=\"NO\" animationBehavior=\"default\" id=\"QvC-M9-y7g\">\n            <windowStyleMask key=\"styleMask\" titled=\"YES\" closable=\"YES\" miniaturizable=\"YES\" resizable=\"YES\"/>\n            <windowPositionMask key=\"initialPositionMask\" leftStrut=\"YES\" rightStrut=\"YES\" topStrut=\"YES\" bottomStrut=\"YES\"/>\n            <rect key=\"contentRect\" x=\"196\" y=\"240\" width=\"523\" height=\"246\"/>\n            <rect key=\"screenRect\" x=\"0.0\" y=\"0.0\" width=\"1440\" height=\"877\"/>\n            <view key=\"contentView\" wantsLayer=\"YES\" id=\"EiT-Mj-1SZ\">\n                <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"523\" height=\"246\"/>\n                <autoresizingMask key=\"autoresizingMask\"/>\n                <subviews>\n                    <tabView fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"rL2-3i-nWp\">\n                        <rect key=\"frame\" x=\"13\" y=\"51\" width=\"497\" height=\"181\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <font key=\"font\" metaFont=\"system\"/>\n                        <tabViewItems>\n                            <tabViewItem label=\"KCP\" identifier=\"1\" id=\"jR2-p0-bjc\">\n                                <view key=\"view\" id=\"GiR-b0-lvV\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"477\" height=\"135\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ds9-qZ-rnY\">\n                                            <rect key=\"frame\" x=\"99\" y=\"112\" width=\"28\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"mtu\" id=\"BOl-9E-v9O\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"dST-kk-KYa\">\n                                            <rect key=\"frame\" x=\"33\" y=\"81\" width=\"95\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"uplink capacity\" id=\"a88-Re-zzm\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"jck-72-mqP\">\n                                            <rect key=\"frame\" x=\"133\" y=\"110\" width=\"76\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"f0d-RQ-MhV\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"nST-JV-7LV\">\n                                            <rect key=\"frame\" x=\"133\" y=\"78\" width=\"76\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"660-S4-iKd\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"cMj-Pa-ouZ\">\n                                            <rect key=\"frame\" x=\"133\" y=\"46\" width=\"76\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"MrL-AX-LEF\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"MRF-eM-y6O\">\n                                            <rect key=\"frame\" x=\"318\" y=\"110\" width=\"17\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"tti\" id=\"X10-mD-ytG\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ygi-Kq-CuS\">\n                                            <rect key=\"frame\" x=\"233\" y=\"49\" width=\"102\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"write buffer size\" id=\"vY4-qQ-mjc\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"RkK-g3-gNi\">\n                                            <rect key=\"frame\" x=\"258\" y=\"19\" width=\"77\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"header type\" id=\"Uwv-C4-vWW\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"bQB-9q-DiA\">\n                                            <rect key=\"frame\" x=\"222\" y=\"81\" width=\"113\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"downlink capacity\" id=\"RrO-iQ-y0q\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Zir-lP-MdA\">\n                                            <rect key=\"frame\" x=\"339\" y=\"13\" width=\"124\" height=\"26\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"Orp-hc-gh2\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" id=\"NYb-U4-j3y\"/>\n                                            </popUpButtonCell>\n                                        </popUpButton>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"lqc-ek-WFd\">\n                                            <rect key=\"frame\" x=\"341\" y=\"110\" width=\"76\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"sgG-rP-ldf\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"daz-dm-6LM\">\n                                            <rect key=\"frame\" x=\"341\" y=\"78\" width=\"76\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"7bT-K6-GEw\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"jAB-DD-QBA\">\n                                            <rect key=\"frame\" x=\"341\" y=\"46\" width=\"76\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"4DT-Az-vX0\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"qto-Yo-ddA\">\n                                            <rect key=\"frame\" x=\"131\" y=\"12\" width=\"81\" height=\"26\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" title=\"false\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" state=\"on\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" selectedItem=\"dOx-RU-DS8\" id=\"9N4-ma-sjx\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" id=\"xOf-Zt-aS2\">\n                                                    <items>\n                                                        <menuItem title=\"false\" state=\"on\" id=\"dOx-RU-DS8\"/>\n                                                        <menuItem title=\"true\" id=\"lAh-Af-Ylj\"/>\n                                                    </items>\n                                                </menu>\n                                            </popUpButtonCell>\n                                        </popUpButton>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"oYM-JH-Fsu\">\n                                            <rect key=\"frame\" x=\"28\" y=\"48\" width=\"99\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"read buffer size\" id=\"NxV-UV-hGH\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"rxZ-kg-0ex\">\n                                            <rect key=\"frame\" x=\"55\" y=\"18\" width=\"72\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"congestion\" id=\"PeU-Y2-Tha\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"TCP\" identifier=\"2\" id=\"OFA-OY-bP4\">\n                                <view key=\"view\" id=\"5gP-w8-1Fn\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"477\" height=\"135\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"vXV-c6-ZJ3\">\n                                            <rect key=\"frame\" x=\"15\" y=\"111\" width=\"163\" height=\"18\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"Customize http-header\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"XK7-pb-uYz\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                        </button>\n                                        <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"WPK-rs-FWC\">\n                                            <rect key=\"frame\" x=\"197\" y=\"110\" width=\"84\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"inline\" title=\"See Example\" bezelStyle=\"inline\" alignment=\"center\" borderStyle=\"border\" inset=\"2\" id=\"lrs-YU-384\">\n                                                <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"smallSystemBold\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <action selector=\"showTcpHeaderExample:\" target=\"-2\" id=\"sUP-XU-yQ1\"/>\n                                            </connections>\n                                        </button>\n                                        <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Obk-Ta-w7O\">\n                                            <rect key=\"frame\" x=\"17\" y=\"17\" width=\"443\" height=\"85\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <clipView key=\"contentView\" ambiguous=\"YES\" drawsBackground=\"NO\" id=\"74S-96-NuK\">\n                                                <rect key=\"frame\" x=\"1\" y=\"1\" width=\"441\" height=\"83\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                                <subviews>\n                                                    <textView ambiguous=\"YES\" importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" allowsCharacterPickerTouchBarItem=\"NO\" allowsUndo=\"YES\" allowsNonContiguousLayout=\"YES\" textCompletion=\"NO\" id=\"dcF-wv-cmU\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"441\" height=\"83\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                        <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <size key=\"minSize\" width=\"441\" height=\"83\"/>\n                                                        <size key=\"maxSize\" width=\"463\" height=\"10000000\"/>\n                                                        <attributedString key=\"textStorage\">\n                                                            <fragment content=\"  \">\n                                                                <attributes>\n                                                                    <color key=\"NSColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <font key=\"NSFont\" metaFont=\"fixedUser\" size=\"11\"/>\n                                                                    <paragraphStyle key=\"NSParagraphStyle\" alignment=\"natural\" lineBreakMode=\"wordWrapping\" baseWritingDirection=\"natural\" tighteningFactorForTruncation=\"0.0\"/>\n                                                                </attributes>\n                                                            </fragment>\n                                                        </attributedString>\n                                                        <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                    </textView>\n                                                </subviews>\n                                            </clipView>\n                                            <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"YES\" id=\"NFh-p3-b3u\">\n                                                <rect key=\"frame\" x=\"1\" y=\"-15\" width=\"0.0\" height=\"16\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                            <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"pjr-0b-EH7\">\n                                                <rect key=\"frame\" x=\"426\" y=\"1\" width=\"16\" height=\"53\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                        </scrollView>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"WebSocket\" identifier=\"\" id=\"wRJ-HD-bnc\">\n                                <view key=\"view\" id=\"qhV-ER-N37\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"477\" height=\"135\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"WiM-Aj-a1T\">\n                                            <rect key=\"frame\" x=\"15\" y=\"113\" width=\"36\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"path:\" id=\"oah-mG-Lcv\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" allowsCharacterPickerTouchBarItem=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Z6z-dK-Tz0\">\n                                            <rect key=\"frame\" x=\"57\" y=\"110\" width=\"345\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"QRU-pr-CiA\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"eKI-at-wEK\">\n                                            <rect key=\"frame\" x=\"15\" y=\"85\" width=\"68\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"&quot;headers&quot;:\" id=\"N1a-VD-e73\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"pRh-vR-SHO\">\n                                            <rect key=\"frame\" x=\"87\" y=\"17\" width=\"157\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"{ &quot;Host&quot;: &quot;v2ray.com&quot; }\" id=\"5Nf-oY-kxe\">\n                                                <font key=\"font\" metaFont=\"fixedUser\" size=\"11\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"HcW-Pz-OML\">\n                                            <rect key=\"frame\" x=\"20\" y=\"17\" width=\"63\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Example: \" id=\"cJm-42-mob\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <scrollView fixedFrame=\"YES\" autohidesScrollers=\"YES\" horizontalLineScroll=\"10\" horizontalPageScroll=\"10\" verticalLineScroll=\"10\" verticalPageScroll=\"10\" usesPredominantAxisScrolling=\"NO\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"evX-Qa-bJl\">\n                                            <rect key=\"frame\" x=\"89\" y=\"42\" width=\"313\" height=\"60\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <clipView key=\"contentView\" ambiguous=\"YES\" drawsBackground=\"NO\" id=\"Ijl-Ha-SNR\">\n                                                <rect key=\"frame\" x=\"1\" y=\"1\" width=\"311\" height=\"58\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                                <subviews>\n                                                    <textView ambiguous=\"YES\" importsGraphics=\"NO\" richText=\"NO\" verticallyResizable=\"YES\" allowsCharacterPickerTouchBarItem=\"NO\" allowsUndo=\"YES\" allowsNonContiguousLayout=\"YES\" textCompletion=\"NO\" spellingCorrection=\"YES\" id=\"5WV-Rv-Aia\">\n                                                        <rect key=\"frame\" x=\"0.0\" y=\"0.0\" width=\"311\" height=\"58\"/>\n                                                        <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                                        <color key=\"textColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                        <size key=\"minSize\" width=\"311\" height=\"58\"/>\n                                                        <size key=\"maxSize\" width=\"463\" height=\"10000000\"/>\n                                                        <attributedString key=\"textStorage\">\n                                                            <fragment content=\"  \">\n                                                                <attributes>\n                                                                    <color key=\"NSColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                                    <font key=\"NSFont\" metaFont=\"fixedUser\" size=\"11\"/>\n                                                                    <paragraphStyle key=\"NSParagraphStyle\" alignment=\"natural\" lineBreakMode=\"wordWrapping\" baseWritingDirection=\"natural\" tighteningFactorForTruncation=\"0.0\"/>\n                                                                </attributes>\n                                                            </fragment>\n                                                        </attributedString>\n                                                        <color key=\"insertionPointColor\" name=\"textColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                    </textView>\n                                                </subviews>\n                                            </clipView>\n                                            <scroller key=\"horizontalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"YES\" id=\"qvr-My-otE\">\n                                                <rect key=\"frame\" x=\"1\" y=\"43\" width=\"311\" height=\"16\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                            <scroller key=\"verticalScroller\" hidden=\"YES\" wantsLayer=\"YES\" verticalHuggingPriority=\"750\" doubleValue=\"1\" horizontal=\"NO\" id=\"Ekv-gJ-IED\">\n                                                <rect key=\"frame\" x=\"296\" y=\"1\" width=\"16\" height=\"51\"/>\n                                                <autoresizingMask key=\"autoresizingMask\"/>\n                                            </scroller>\n                                        </scrollView>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"HTTP/2\" identifier=\"\" id=\"3a5-FH-jdA\">\n                                <view key=\"view\" id=\"Kim-Ta-kSs\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"477\" height=\"135\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Plk-Mg-LyC\">\n                                            <rect key=\"frame\" x=\"83\" y=\"87\" width=\"377\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"pwc-42-fax\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"p2V-C4-wAO\">\n                                            <rect key=\"frame\" x=\"41\" y=\"27\" width=\"36\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"path:\" id=\"KmU-8N-PNy\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"gQZ-V1-coF\">\n                                            <rect key=\"frame\" x=\"83\" y=\"24\" width=\"377\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"WZe-bn-L7h\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"eYf-dU-fUT\">\n                                            <rect key=\"frame\" x=\"81\" y=\"66\" width=\"323\" height=\"14\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Multiple hosts should be seperated by comma(,). No spaces.\" id=\"0jK-Zu-IjJ\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"kN0-e5-sVX\">\n                                            <rect key=\"frame\" x=\"42\" y=\"89\" width=\"35\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"host:\" id=\"i9E-fj-OGM\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"QUIC\" identifier=\"\" id=\"DRH-Zh-vX2\">\n                                <view key=\"view\" ambiguous=\"YES\" id=\"ana-nP-yKk\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"477\" height=\"135\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"etR-SA-yeH\">\n                                            <rect key=\"frame\" x=\"38\" y=\"101\" width=\"57\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"security:\" id=\"5jf-XH-tbH\">\n                                                <font key=\"font\" usesAppearanceFont=\"YES\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"j3S-YO-ihe\">\n                                            <rect key=\"frame\" x=\"66\" y=\"76\" width=\"29\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"key:\" id=\"pOx-5i-iHo\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Yrk-xx-SKP\">\n                                            <rect key=\"frame\" x=\"14\" y=\"51\" width=\"81\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"header type:\" id=\"AfV-VI-p2V\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"22G-X8-sRf\">\n                                            <rect key=\"frame\" x=\"99\" y=\"96\" width=\"207\" height=\"25\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"yHz-wi-Sic\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" id=\"Bvg-Ok-DnQ\"/>\n                                            </popUpButtonCell>\n                                        </popUpButton>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Qf8-bK-NW8\">\n                                            <rect key=\"frame\" x=\"101\" y=\"74\" width=\"359\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" drawsBackground=\"YES\" id=\"fii-fv-7Yc\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <popUpButton verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"b8A-oK-EAg\">\n                                            <rect key=\"frame\" x=\"99\" y=\"44\" width=\"207\" height=\"25\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <popUpButtonCell key=\"cell\" type=\"push\" bezelStyle=\"rounded\" alignment=\"left\" lineBreakMode=\"truncatingTail\" borderStyle=\"borderAndBezel\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"mPo-nT-j4u\">\n                                                <behavior key=\"behavior\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"menu\"/>\n                                                <menu key=\"menu\" id=\"fXc-My-Va9\"/>\n                                            </popUpButtonCell>\n                                        </popUpButton>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" preferredMaxLayoutWidth=\"444\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ZrD-hV-LQf\">\n                                            <rect key=\"frame\" x=\"14\" y=\"6\" width=\"448\" height=\"33\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" id=\"vZ8-pU-aE3\">\n                                                <font key=\"font\" metaFont=\"smallSystem\"/>\n                                                <string key=\"title\">QUIC is now an experiment in V2Ray. It implements IETF specification. As the spec is still being standardized, compatibility can't be guaranteed.</string>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"TLS\" identifier=\"\" id=\"sCQ-Dt-YCG\">\n                                <view key=\"view\" id=\"yce-Q2-W28\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"477\" height=\"135\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"l3Z-uk-KBr\">\n                                            <rect key=\"frame\" x=\"290\" y=\"83\" width=\"132\" height=\"18\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"TLS allowInsecure\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"Rxl-Fh-p8u\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                        </button>\n                                        <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"L3V-ES-nEc\">\n                                            <rect key=\"frame\" x=\"37\" y=\"83\" width=\"179\" height=\"18\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"TLS allowInsecureCiphers\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"tGs-7I-7qD\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                        </button>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"ueg-ns-8xA\">\n                                            <rect key=\"frame\" x=\"155\" y=\"16\" width=\"145\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"VDm-Wv-O7F\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"n0X-Fy-rS1\">\n                                            <rect key=\"frame\" x=\"15\" y=\"116\" width=\"73\" height=\"18\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"Use TLS\" bezelStyle=\"regularSquare\" imagePosition=\"left\" alignment=\"left\" state=\"on\" inset=\"2\" id=\"cY9-cQ-T9f\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                            <connections>\n                                                <action selector=\"useTLS:\" target=\"-2\" id=\"cHY-jK-D4h\"/>\n                                            </connections>\n                                        </button>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"77A-Z2-HDg\">\n                                            <rect key=\"frame\" x=\"38\" y=\"51\" width=\"109\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" lineBreakMode=\"clipping\" title=\"TLS serverName:\" id=\"etO-0e-iiM\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"86t-of-f5p\">\n                                            <rect key=\"frame\" x=\"153\" y=\"48\" width=\"223\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"fG1-3v-Xr7\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Nhc-Gl-Mct\">\n                                            <rect key=\"frame\" x=\"113\" y=\"19\" width=\"34\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"alpn:\" id=\"eb7-WI-WKe\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                            <tabViewItem label=\"···\" identifier=\"\" id=\"QwI-cq-3dE\">\n                                <view key=\"view\" id=\"qEg-0O-lVX\">\n                                    <rect key=\"frame\" x=\"10\" y=\"33\" width=\"477\" height=\"135\"/>\n                                    <autoresizingMask key=\"autoresizingMask\" widthSizable=\"YES\" heightSizable=\"YES\"/>\n                                    <subviews>\n                                        <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"cS2-9s-JTH\">\n                                            <rect key=\"frame\" x=\"28\" y=\"88\" width=\"92\" height=\"18\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"Enable Mux\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"fd8-nx-L0h\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                        </button>\n                                        <textField horizontalHuggingPriority=\"251\" verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"0xa-QH-JSG\">\n                                            <rect key=\"frame\" x=\"139\" y=\"89\" width=\"113\" height=\"17\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" sendsActionOnEndEditing=\"YES\" title=\"Mux concurrency:\" id=\"V4v-kP-BDQ\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"labelColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"controlColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <textField verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"L11-Bf-Eib\">\n                                            <rect key=\"frame\" x=\"254\" y=\"87\" width=\"96\" height=\"22\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <textFieldCell key=\"cell\" scrollable=\"YES\" lineBreakMode=\"clipping\" selectable=\"YES\" editable=\"YES\" sendsActionOnEndEditing=\"YES\" state=\"on\" borderStyle=\"bezel\" drawsBackground=\"YES\" usesSingleLineMode=\"YES\" id=\"UVv-qh-s3w\">\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                                <color key=\"textColor\" name=\"controlTextColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                                <color key=\"backgroundColor\" name=\"textBackgroundColor\" catalog=\"System\" colorSpace=\"catalog\"/>\n                                            </textFieldCell>\n                                        </textField>\n                                        <button fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Y7H-QP-cdh\">\n                                            <rect key=\"frame\" x=\"28\" y=\"51\" width=\"147\" height=\"18\"/>\n                                            <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                                            <buttonCell key=\"cell\" type=\"check\" title=\"Force Tcp Fast Open\" bezelStyle=\"regularSquare\" imagePosition=\"left\" state=\"on\" inset=\"2\" id=\"Rjq-TS-APs\">\n                                                <behavior key=\"behavior\" changeContents=\"YES\" doesNotDimImage=\"YES\" lightByContents=\"YES\"/>\n                                                <font key=\"font\" metaFont=\"system\"/>\n                                            </buttonCell>\n                                        </button>\n                                    </subviews>\n                                </view>\n                            </tabViewItem>\n                        </tabViewItems>\n                    </tabView>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"QRs-SR-kcx\">\n                        <rect key=\"frame\" x=\"14\" y=\"13\" width=\"82\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Help\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"Khe-UB-CcP\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"transportHelp:\" target=\"-2\" id=\"dcZ-so-oFS\"/>\n                        </connections>\n                    </button>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"Ait-b2-HTf\">\n                        <rect key=\"frame\" x=\"427\" y=\"13\" width=\"82\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"OK\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"eeS-8U-mHp\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nDQ\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"ok:\" target=\"-2\" id=\"aBG-Ry-Zje\"/>\n                        </connections>\n                    </button>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"z4Y-bC-9GF\">\n                        <rect key=\"frame\" x=\"345\" y=\"13\" width=\"82\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Cancel\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"2Tc-I8-c1W\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                            <string key=\"keyEquivalent\" base64-UTF8=\"YES\">\nGw\n</string>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"tCancel:\" target=\"-2\" id=\"NOS-nk-9FM\"/>\n                        </connections>\n                    </button>\n                    <button verticalHuggingPriority=\"750\" fixedFrame=\"YES\" translatesAutoresizingMaskIntoConstraints=\"NO\" id=\"uSe-Ud-fzO\">\n                        <rect key=\"frame\" x=\"252\" y=\"13\" width=\"93\" height=\"32\"/>\n                        <autoresizingMask key=\"autoresizingMask\" flexibleMaxX=\"YES\" flexibleMinY=\"YES\"/>\n                        <buttonCell key=\"cell\" type=\"push\" title=\"Reset All\" bezelStyle=\"rounded\" alignment=\"center\" borderStyle=\"border\" imageScaling=\"proportionallyDown\" inset=\"2\" id=\"FgQ-ns-dS8\">\n                            <behavior key=\"behavior\" pushIn=\"YES\" lightByBackground=\"YES\" lightByGray=\"YES\"/>\n                            <font key=\"font\" metaFont=\"system\"/>\n                        </buttonCell>\n                        <connections>\n                            <action selector=\"tReset:\" target=\"-2\" id=\"BaQ-HZ-svz\"/>\n                        </connections>\n                    </button>\n                </subviews>\n            </view>\n            <connections>\n                <outlet property=\"delegate\" destination=\"-2\" id=\"G4k-U8-KL0\"/>\n            </connections>\n            <point key=\"canvasLocation\" x=\"140.5\" y=\"151\"/>\n        </window>\n        <userDefaultsController representsSharedInstance=\"YES\" id=\"LgD-MM-gbb\"/>\n    </objects>\n</document>\n"
  },
  {
    "path": "V2RayX/TransportWindowController.h",
    "content": "//\n//  TransportWindowController.h\n//  V2RayX\n//\n//\n\n#import <Cocoa/Cocoa.h>\n#import \"ConfigWindowController.h\"\n#import \"utilities.h\"\n\nNS_ASSUME_NONNULL_BEGIN\n\n@interface TransportWindowController : NSWindowController\n\n- (instancetype)initWithWindowNibName:(NSNibName)windowNibName parentController:(ConfigWindowController*)parent;\n\n- (BOOL)checkInputs;\n- (NSArray*)generateSettings;\n\n//kcp fields\n@property (weak) IBOutlet NSTextField *kcpMtuField;\n@property (weak) IBOutlet NSTextField *kcpTtiField;\n@property (weak) IBOutlet NSTextField *kcpUcField;\n@property (weak) IBOutlet NSTextField *kcpDcField;\n@property (weak) IBOutlet NSTextField *kcpRbField;\n@property (weak) IBOutlet NSTextField *kcpWbField;\n@property (weak) IBOutlet NSPopUpButton *kcpCongestionButton;\n@property (weak) IBOutlet NSPopUpButton *kcpHeaderTypeButton;\n//tcp fields\n@property (weak) IBOutlet NSButton *tcpHeaderCusButton;\n@property (unsafe_unretained) IBOutlet NSTextView *tcpHeaderField;\n\n\n//ws fields\n@property (weak) IBOutlet NSTextField *wsPathField;\n@property (unsafe_unretained) IBOutlet NSTextView *wsHeaderField;\n//https fields\n@property (weak) IBOutlet NSTextField *httpHostsField;\n@property (weak) IBOutlet NSTextField *httpPathField;\n\n// quic fields\n@property (weak) IBOutlet NSPopUpButton *quicSecurityButton;\n@property (weak) IBOutlet NSTextField *quicKeyField;\n@property (weak) IBOutlet NSPopUpButton *quicHeaderButton;\n\n\n//tls fields\n@property (weak) IBOutlet NSButton *tlsUseButton;\n@property (weak) IBOutlet NSButton *tlsAiButton;\n@property (weak) IBOutlet NSButton *tlsAllowInsecureCiphersButton;\n@property (weak) IBOutlet NSTextField *tlsAlpnField;\n@property (weak) IBOutlet NSTextField *tlsServerNameField;\n\n//mux fields\n@property (weak) IBOutlet NSButton *muxEnableButton;\n@property (weak) IBOutlet NSTextField *muxConcurrencyField;\n\n//tcp fast open\n@property (weak) IBOutlet NSButton *tfoEnableButton;\n\n@end\n\nNS_ASSUME_NONNULL_END\n"
  },
  {
    "path": "V2RayX/TransportWindowController.m",
    "content": "//\n//  TransportWindowController.m\n//  V2RayX\n//\n//\n\n#import \"TransportWindowController.h\"\n\n@interface TransportWindowController () {\n    ConfigWindowController* configWindowController;\n}\n\n@end\n\n@implementation TransportWindowController\n\n- (instancetype)initWithWindowNibName:(NSNibName)windowNibName parentController:(ConfigWindowController*)parent {\n    self = [super initWithWindowNibName:windowNibName];\n    if (self) {\n        configWindowController = parent;\n    }\n    return self;\n}\n\n- (void)windowDidLoad {\n    [super windowDidLoad];\n    \n    //add UI items\n    [_kcpHeaderTypeButton removeAllItems];\n    [_quicHeaderButton removeAllItems];\n    for (NSString* header in OBFU_LIST) {\n        [_kcpHeaderTypeButton addItemWithTitle:header];\n        [_quicHeaderButton addItemWithTitle:header];\n    }\n    [_quicSecurityButton removeAllItems];\n    for (NSString* security in QUIC_SECURITY_LIST) {\n        [_quicSecurityButton addItemWithTitle:security];\n    }\n    \n    //set display\n    NSNumberFormatter *formatter = [[NSNumberFormatter alloc] init];\n    [formatter setNumberStyle:NSNumberFormatterNoStyle];\n    [_kcpMtuField setFormatter:formatter];\n    [_kcpTtiField setFormatter:formatter];\n    [_kcpUcField setFormatter:formatter];\n    [_kcpDcField setFormatter:formatter];\n    [_kcpRbField setFormatter:formatter];\n    [_kcpWbField setFormatter:formatter];\n    [_muxConcurrencyField setFormatter:formatter];\n//    _tcpHdField setautomatcic\n    [_tcpHeaderField setAutomaticQuoteSubstitutionEnabled:false];\n    [_wsHeaderField setAutomaticQuoteSubstitutionEnabled:false];\n    \n    //read settings\n    [self fillStream:configWindowController.selectedProfile.streamSettings andMuxSettings:configWindowController.selectedProfile.muxSettings];\n    \n}\n\n- (void)fillStream:(NSDictionary*)streamSettings andMuxSettings:(NSDictionary*)muxSettings {\n    //kcp\n    [_kcpMtuField setIntegerValue:[streamSettings[@\"kcpSettings\"][@\"mtu\"] integerValue]];\n    [_kcpTtiField setIntegerValue:[streamSettings[@\"kcpSettings\"][@\"tti\"] integerValue]];\n    [_kcpUcField setIntegerValue:[streamSettings[@\"kcpSettings\"][@\"uplinkCapacity\"] integerValue]];\n    [_kcpDcField setIntegerValue:[streamSettings[@\"kcpSettings\"][@\"downlinkCapacity\"] integerValue]];\n    [_kcpRbField setIntegerValue:[streamSettings[@\"kcpSettings\"][@\"readBufferSize\"] integerValue]];\n    [_kcpWbField setIntegerValue:[streamSettings[@\"kcpSettings\"][@\"writeBufferSize\"] integerValue]];\n    [_kcpCongestionButton selectItemAtIndex:[streamSettings[@\"kcpSettings\"][@\"congestion\"] boolValue] ? 1 : 0];\n    [_kcpHeaderTypeButton selectItemAtIndex:searchInArray(streamSettings[@\"kcpSettings\"][@\"header\"][@\"type\"], OBFU_LIST)];\n    \n    //tcp\n    [_tcpHeaderCusButton setState:[streamSettings[@\"tcpSettings\"][@\"header\"][@\"type\"] isEqualToString:@\"http\"] ? 1 : 0];\n    if ([_tcpHeaderCusButton state]) {\n        [_tcpHeaderField setString:\n         [[NSString alloc]initWithData:[NSJSONSerialization dataWithJSONObject:streamSettings[@\"tcpSettings\"][@\"header\"] options:NSJSONWritingPrettyPrinted error:nil] encoding:NSUTF8StringEncoding]];\n    } else {\n        [_tcpHeaderField setString:@\"{\\\"type\\\": \\\"none\\\"}\"];\n    }\n    //websocket\n    NSString *savedWsPath = streamSettings[@\"wsSettings\"][@\"path\"];\n    [_wsPathField setStringValue: savedWsPath != nil ? savedWsPath : @\"\"];\n    if (streamSettings[@\"wsSettings\"][@\"headers\"] != nil) {\n        [_wsHeaderField setString:[[NSString alloc] initWithData:[NSJSONSerialization dataWithJSONObject:streamSettings[@\"wsSettings\"][@\"headers\"] options:NSJSONWritingPrettyPrinted error:nil] encoding:NSUTF8StringEncoding]];\n    } else {\n        [_wsHeaderField setString:@\"{}\"];\n    }\n    //http/2\n    [_httpPathField setStringValue:nilCoalescing(streamSettings[@\"httpSettings\"][@\"path\"], @\"\")];\n    NSString* hostString = @\"\";\n    if ([streamSettings[@\"httpSettings\"] objectForKey:@\"host\"]) {\n        NSArray* hostArray = streamSettings[@\"httpSettings\"][@\"host\"];\n        if([hostArray isKindOfClass:[NSArray class]] && [hostArray count] > 0) {\n            hostString = [hostArray componentsJoinedByString:@\",\"];\n        }\n    }\n    [_httpHostsField setStringValue:hostString];\n    //quic\n    [_quicKeyField setStringValue:nilCoalescing(streamSettings[@\"quicSettings\"][@\"key\"], @\"\")];\n    [_quicSecurityButton selectItemAtIndex:searchInArray(streamSettings[@\"quicSettings\"][@\"security\"], QUIC_SECURITY_LIST)];\n    [_quicHeaderButton selectItemAtIndex:searchInArray(streamSettings[@\"quicSettings\"][@\"header\"][@\"type\"], OBFU_LIST)];\n    \n    //tls\n    [_tlsUseButton setState:[[streamSettings objectForKey:@\"security\"] boolValue]];\n    NSDictionary* tlsSettings = [streamSettings objectForKey:@\"tlsSettings\"];\n    [_tlsAiButton setState:[tlsSettings[@\"allowInsecure\"] boolValue]];\n    [_tlsAllowInsecureCiphersButton setState:[tlsSettings[@\"allowInsecureCiphers\"] boolValue]];\n    NSArray* alpnArray = streamSettings[@\"tlsSettings\"][@\"alpn\"];\n    NSString* alpnString = [alpnArray componentsJoinedByString:@\",\"];\n    [_tlsAlpnField setStringValue:nilCoalescing(alpnString, @\"http/1.1\")];\n    [_tlsServerNameField setStringValue:streamSettings[@\"tlsSettings\"][@\"serverName\"]];\n    \n    [self useTLS:nil];\n    // mux\n    [_muxEnableButton setState:[nilCoalescing(muxSettings[@\"enabled\"], @NO) boolValue]];\n    [_muxConcurrencyField setIntegerValue:[nilCoalescing(muxSettings[@\"concurrency\"], @8) integerValue]];\n    // tcp fast open\n    NSDictionary* tfoSettings = [streamSettings objectForKey:@\"sockopt\"];\n    [_tfoEnableButton setState:[tfoSettings[@\"tcpFastOpen\"] boolValue]];\n}\n\n- (IBAction)useTLS:(id)sender {\n    [_tlsAiButton setEnabled:[_tlsUseButton state]];\n    [_tlsAllowInsecureCiphersButton setEnabled:[_tlsUseButton state]];\n}\n\n- (IBAction)tReset:(id)sender {\n    ServerProfile *p = [[ServerProfile alloc] init];\n    [self fillStream:p.streamSettings andMuxSettings:p.muxSettings];\n}\n\n- (IBAction)showTcpHeaderExample:(id)sender {\n    runCommandLine(@\"/usr/bin/open\", @[[[NSBundle mainBundle] pathForResource:@\"tcp_http_header_example\" ofType:@\"txt\"], @\"-a\", @\"/Applications/TextEdit.app\"]);\n}\n\n- (IBAction)tCancel:(id)sender {\n    [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseCancel];\n}\n\n- (IBAction)ok:(id)sender {\n    NSLog(@\"%@\", [_httpPathField stringValue]);\n    if ([self checkInputs]) {\n        [self.window.sheetParent endSheet:self.window returnCode:NSModalResponseOK];\n    }\n}\n\n- (IBAction)transportHelp:(id)sender {\n    [[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@\"https://v2ray.com/chapter_02/05_transport.html\"]];\n}\n\n- (BOOL)checkInputs {\n    NSError* httpHeaderParseError;\n    if ([[_tcpHeaderField string] length] == 0) {\n        [_tcpHeaderField setString:TCP_NONE_HEADER_OBJECT];\n    }\n    [NSJSONSerialization JSONObjectWithData:[[_tcpHeaderField string] dataUsingEncoding:NSUTF8StringEncoding] options:0 error:&httpHeaderParseError];\n    if (httpHeaderParseError) {\n        NSAlert* parseAlert = [[NSAlert alloc] init];\n        [parseAlert setMessageText:@\"Error in parsing customized tcp http header!\"];\n        [parseAlert beginSheetModalForWindow:[self window] completionHandler:^(NSModalResponse returnCode) { }];\n        return NO;\n    }\n    \n    NSError* wsHeaderParseError;\n    if ([[_wsHeaderField string] length] == 0) {\n        [_wsHeaderField setString:@\"{}\"];\n    }\n    [NSJSONSerialization JSONObjectWithData:[[_wsHeaderField string] dataUsingEncoding:NSUTF8StringEncoding] options:0 error:&wsHeaderParseError];\n    if(wsHeaderParseError) {\n        NSAlert* parseAlert = [[NSAlert alloc] init];\n        [parseAlert setMessageText:@\"Error in parsing customized WebSocket headers!\"];\n        [parseAlert beginSheetModalForWindow:[self window] completionHandler:^(NSModalResponse returnCode) { }];\n        return NO;\n    }\n    return YES;\n}\n\n- (NSArray*)generateSettings {\n    NSString* tcpHttpHeaderString = TCP_NONE_HEADER_OBJECT;\n    if ([_tcpHeaderCusButton state]) {\n        tcpHttpHeaderString = [_tcpHeaderField string];\n    }\n    NSDictionary* tcpHttpHeader = [NSJSONSerialization JSONObjectWithData:[tcpHttpHeaderString dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil];\n    \n    NSDictionary* wsHeader = [NSJSONSerialization JSONObjectWithData:[[_wsHeaderField string] dataUsingEncoding:NSUTF8StringEncoding] options:0 error:nil];\n    \n    NSArray* httpHosts;\n    if ([[[_httpHostsField stringValue] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] length] == 0) {\n        httpHosts = @[];\n    } else {\n        NSString* hostsString = [[_httpHostsField stringValue] stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"];\n        httpHosts = [hostsString componentsSeparatedByString:@\",\"];\n    }\n    NSDictionary *httpSettings;\n    if ([httpHosts count] > 0) {\n        httpSettings = @{ @\"host\": httpHosts,\n                          @\"path\": [self->_httpPathField stringValue]\n                          };\n    } else {\n        httpSettings = @{ @\"path\": [self->_httpPathField stringValue] };\n    }\n    NSDictionary *streamSettingsImmutable =\n    @{@\"kcpSettings\":\n          @{@\"mtu\":[NSNumber numberWithInteger:[self->_kcpMtuField integerValue]],\n            @\"tti\":[NSNumber numberWithInteger:[self->_kcpTtiField integerValue]],\n            @\"uplinkCapacity\":[NSNumber numberWithInteger:[self->_kcpUcField integerValue]],\n            @\"downlinkCapacity\":[NSNumber numberWithInteger:[self->_kcpDcField integerValue]],\n            @\"readBufferSize\":[NSNumber numberWithInteger:[self->_kcpRbField integerValue]],\n            @\"writeBufferSize\":[NSNumber numberWithInteger:[self->_kcpWbField integerValue]],\n            @\"congestion\":[NSNumber numberWithBool:[self->_kcpCongestionButton indexOfSelectedItem] != 0],\n            @\"header\":@{@\"type\":[[self->_kcpHeaderTypeButton selectedItem] title]}\n            },\n      @\"tcpSettings\":@{@\"header\": tcpHttpHeader},\n      @\"wsSettings\": @{\n              @\"path\": [[_wsPathField stringValue] stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]],\n              @\"headers\": nilCoalescing(wsHeader, @{})\n              },\n      @\"quicSettings\": @{\n              @\"security\": [[self->_quicSecurityButton selectedItem] title],\n              @\"key\": [_quicKeyField stringValue],\n              @\"header\": @{\n                      @\"type\": [[self->_quicHeaderButton selectedItem] title]\n                      }\n              },\n      @\"security\": [self->_tlsUseButton state] ? @\"tls\" : @\"none\",\n      @\"tlsSettings\": @{\n              @\"serverName\": [_tlsServerNameField stringValue],\n              @\"allowInsecure\": [NSNumber numberWithBool:[self->_tlsAiButton state]==1],\n              @\"allowInsecureCiphers\": [NSNumber numberWithBool:[self->_tlsAllowInsecureCiphersButton state]==1],\n              @\"alpn\": [[[_tlsAlpnField stringValue] stringByReplacingOccurrencesOfString:@\" \" withString:@\"\"] componentsSeparatedByString:@\",\"]\n              },\n      @\"httpSettings\": httpSettings\n      };\n    NSMutableDictionary *streamSettings = [streamSettingsImmutable mutableCopy];\n    if ([self->_tfoEnableButton state]) {\n        streamSettings[@\"sockopt\"] = @{\n                                      @\"tcpFastOpen\": @(YES)\n                                      };\n    }\n    NSDictionary* muxSettings = @{\n                                  @\"enabled\":[NSNumber numberWithBool:[self->_muxEnableButton state]==1],\n                                  @\"concurrency\":[NSNumber numberWithInteger:[self->_muxConcurrencyField integerValue]]\n                                  };\n    return @[streamSettings, muxSettings];\n}\n\n\n@end\n"
  },
  {
    "path": "V2RayX/config-sample.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>inboundDetour</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>allocate</key>\n\t\t\t<dict>\n\t\t\t\t<key>concurrency</key>\n\t\t\t\t<integer>3</integer>\n\t\t\t\t<key>refresh</key>\n\t\t\t\t<integer>5</integer>\n\t\t\t\t<key>strategy</key>\n\t\t\t\t<string>always</string>\n\t\t\t</dict>\n\t\t\t<key>domainOverride</key>\n\t\t\t<array>\n\t\t\t\t<string>http</string>\n\t\t\t\t<string>tls</string>\n\t\t\t</array>\n\t\t\t<key>listen</key>\n\t\t\t<string>127.0.0.1</string>\n\t\t\t<key>port</key>\n\t\t\t<string>8001</string>\n\t\t\t<key>protocol</key>\n\t\t\t<string>http</string>\n\t\t\t<key>settings</key>\n\t\t\t<dict>\n\t\t\t\t<key>timeout</key>\n\t\t\t\t<integer>0</integer>\n\t\t\t</dict>\n\t\t\t<key>streamSettings</key>\n\t\t\t<dict/>\n\t\t\t<key>tag</key>\n\t\t\t<string>httpDetour</string>\n\t\t</dict>\n\t</array>\n\t<key>dns</key>\n\t<dict>\n\t\t<key>servers</key>\n\t\t<array>\n\t\t\t<string>8.8.8.8</string>\n\t\t\t<string>8.8.4.4</string>\n\t\t\t<string>localhost</string>\n\t\t</array>\n\t</dict>\n\t<key>inbound</key>\n\t<dict>\n\t\t<key>listen</key>\n\t\t<string>127.0.0.1</string>\n\t\t<key>port</key>\n\t\t<integer>1080</integer>\n\t\t<key>protocol</key>\n\t\t<string>socks</string>\n\t\t<key>settings</key>\n\t\t<dict>\n\t\t\t<key>auth</key>\n\t\t\t<string>noauth</string>\n\t\t\t<key>ip</key>\n\t\t\t<string>127.0.0.1</string>\n\t\t\t<key>udp</key>\n\t\t\t<false/>\n\t\t</dict>\n\t</dict>\n\t<key>log</key>\n\t<dict>\n\t\t<key>error</key>\n\t\t<string></string>\n\t\t<key>access</key>\n\t\t<string></string>\n\t\t<key>loglevel</key>\n\t\t<string>warning</string>\n\t</dict>\n\t<key>outbound</key>\n\t<dict>\n\t\t<key>mux</key>\n\t\t<dict>\n\t\t\t<key>enabled</key>\n\t\t\t<true/>\n\t\t</dict>\n\t\t<key>protocol</key>\n\t\t<string>vmess</string>\n\t\t<key>settings</key>\n\t\t<dict>\n\t\t\t<key>vnext</key>\n\t\t\t<array>\n\t\t\t\t<dict>\n\t\t\t\t\t<key>address</key>\n\t\t\t\t\t<string>192.168.1.9</string>\n\t\t\t\t\t<key>port</key>\n\t\t\t\t\t<integer>10086</integer>\n\t\t\t\t\t<key>users</key>\n\t\t\t\t\t<array>\n\t\t\t\t\t\t<dict>\n\t\t\t\t\t\t\t<key>alterId</key>\n\t\t\t\t\t\t\t<integer>64</integer>\n\t\t\t\t\t\t\t<key>id</key>\n\t\t\t\t\t\t\t<string>23ad6b10-8d1a-40f7-8ad0-e3e35cd38297</string>\n\t\t\t\t\t\t\t<key>security</key>\n\t\t\t\t\t\t\t<string>auto</string>\n\t\t\t\t\t\t</dict>\n\t\t\t\t\t</array>\n\t\t\t\t</dict>\n\t\t\t</array>\n\t\t</dict>\n\t\t<key>streamSettings</key>\n\t\t<dict>\n\t\t\t<key>network</key>\n\t\t\t<string>tcp</string>\n\t\t\t<key>security</key>\n\t\t\t<string>none</string>\n\t\t\t<key>tlsSettings</key>\n\t\t\t<dict>\n\t\t\t\t<key>allowInsecure</key>\n\t\t\t\t<true/>\n\t\t\t\t<key>serverName</key>\n\t\t\t\t<string>v2ray.cool</string>\n\t\t\t</dict>\n\t\t\t<key>wsSettings</key>\n\t\t\t<dict>\n\t\t\t\t<key>path</key>\n\t\t\t\t<string>/v2ray.cool/</string>\n\t\t\t</dict>\n\t\t</dict>\n\t</dict>\n\t<key>outboundDetour</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>protocol</key>\n\t\t\t<string>freedom</string>\n\t\t\t<key>settings</key>\n\t\t\t<dict/>\n\t\t\t<key>tag</key>\n\t\t\t<string>direct</string>\n\t\t</dict>\n\t</array>\n\t<key>policy</key>\n\t<dict>\n\t\t<key>levels</key>\n\t\t<dict>\n\t\t\t<key>0</key>\n\t\t\t<dict>\n\t\t\t\t<key>uplinkOnly</key>\n\t\t\t\t<integer>0</integer>\n\t\t\t</dict>\n\t\t</dict>\n\t</dict>\n\t<key>routing</key>\n\t<dict>\n\t\t<key>settings</key>\n\t\t<dict>\n\t\t\t<key>domainStrategy</key>\n\t\t\t<string>IPIfNonMatch</string>\n\t\t\t<key>rules</key>\n\t\t\t<array>\n\t\t\t\t<dict>\n\t\t\t\t\t<key>type</key>\n\t\t\t\t\t<string>field</string>\n\t\t\t\t\t<key>outboundTag</key>\n\t\t\t\t\t<string>direct</string>\n\t\t\t\t\t<key>domain</key>\n\t\t\t\t\t<array>\n\t\t\t\t\t\t<string>localhost</string>\n\t\t\t\t\t\t<string>domain:me.com</string>\n\t\t\t\t\t\t<string>domain:lookup-api.apple.com</string>\n\t\t\t\t\t\t<string>domain:icloud-content.com</string>\n\t\t\t\t\t\t<string>domain:icloud.com</string>\n\t\t\t\t\t\t<string>domain:cdn-apple.com</string>\n\t\t\t\t\t\t<string>domain:apple-cloudkit.com</string>\n\t\t\t\t\t\t<string>domain:apple.com</string>\n\t\t\t\t\t\t<string>domain:apple.co</string>\n\t\t\t\t\t\t<string>domain:aaplimg.com</string>\n\t\t\t\t\t\t<string>domain:guzzoni.apple.com</string>\n\t\t\t\t\t</array>\n\t\t\t\t</dict>\n\t\t\t\t<dict>\n\t\t\t\t\t<key>type</key>\n\t\t\t\t\t<string>field</string>\n\t\t\t\t\t<key>outboundTag</key>\n\t\t\t\t\t<string>direct</string>\n\t\t\t\t\t<key>ip</key>\n\t\t\t\t\t<array>\n\t\t\t\t\t\t<string>geoip:private</string>\n\t\t\t\t\t</array>\n\t\t\t\t</dict>\n\t\t\t</array>\n\t\t</dict>\n\t\t<key>strategy</key>\n\t\t<string>rules</string>\n\t</dict>\n</dict>\n</plist>\n"
  },
  {
    "path": "V2RayX/config-sample_new.plist",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE plist PUBLIC \"-//Apple//DTD PLIST 1.0//EN\" \"http://www.apple.com/DTDs/PropertyList-1.0.dtd\">\n<plist version=\"1.0\">\n<dict>\n\t<key>dns</key>\n\t<dict>\n\t\t<key>servers</key>\n\t\t<array>\n\t\t\t<string>localhost</string>\n\t\t</array>\n\t</dict>\n\t<key>inbounds</key>\n\t<array>\n\t\t<dict>\n\t\t\t<key>listen</key>\n\t\t\t<string>127.0.0.1</string>\n\t\t\t<key>port</key>\n\t\t\t<integer>1081</integer>\n\t\t\t<key>protocol</key>\n\t\t\t<string>socks</string>\n\t\t\t<key>settings</key>\n\t\t\t<dict>\n\t\t\t\t<key>auth</key>\n\t\t\t\t<string>noauth</string>\n\t\t\t\t<key>ip</key>\n\t\t\t\t<string>127.0.0.1</string>\n\t\t\t\t<key>udp</key>\n\t\t\t\t<false/>\n\t\t\t</dict>\n\t\t\t<key>tag</key>\n\t\t\t<string>socksinbound</string>\n\t\t</dict>\n\t\t<dict>\n\t\t\t<key>listen</key>\n\t\t\t<string>127.0.0.1</string>\n\t\t\t<key>port</key>\n\t\t\t<integer>8001</integer>\n\t\t\t<key>protocol</key>\n\t\t\t<string>http</string>\n\t\t\t<key>settings</key>\n\t\t\t<dict>\n\t\t\t\t<key>timeout</key>\n\t\t\t\t<integer>0</integer>\n\t\t\t</dict>\n\t\t\t<key>tag</key>\n\t\t\t<string>httpinbound</string>\n\t\t</dict>\n\t</array>\n\t<key>log</key>\n\t<dict/>\n\t<key>outbounds</key>\n\t<array/>\n\t<key>routing</key>\n\t<dict/>\n</dict>\n</plist>\n"
  },
  {
    "path": "V2RayX/dlcore.sh",
    "content": "VERSION=\"4.18.0\"\nRED='\\033[0;31m'\nGREEN='\\033[0;32m'\nBOLD='\\033[1m'\nNORMAL='\\033[0m'\n\ncd \"$SRCROOT\"\noutput=\"v0\"\nif [[ -f ./v2ray-core-bin/v2ray ]]; then\n    output=$(./v2ray-core-bin/v2ray --version)\nfi\nexistingVersion=${output:6:${#VERSION}}\nif [ \"$VERSION\" != \"$existingVersion\" ]; then\n    getCore=0\n    mkdir -p v2ray-core-bin\n    cd v2ray-core-bin\n    curl -s -L -o v2ray-macos.zip https://github.com/v2ray/v2ray-core/releases/download/v${VERSION}/v2ray-macos.zip\n    if [[ $? == 0 ]]; then\n        unzip -o v2ray-macos.zip\n        getCore=1\n    else\n        unzip -o ~/Downloads/v2ray-macos.zip\n        if [[ $? != 0 ]]; then\n            getCore=0\n        else\n            chmod +x v2ray-${VERSION}-macos/v2ray\n            output=$(v2ray-${VERSION}-macos/v2ray --version)\n            existingVersion=${output:6:${#VERSION}}\n            if [ \"$VERSION\" != \"$existingVersion\" ]; then\n                echo \"${RED}v2ray-macos.zip in the Downloads folder does not contain version ${VERSION}.\"\n                echo \"下载文件夹里的v2ray-macos.zip不是${VERSION}版本。${NORMAL}\"\n                getCore=0\n            else\n                getCore=1\n            fi\n        fi\n    fi\n    if [[ $getCore == 0 ]]; then\n        echo \"${RED}download failed!\"\n        echo \"Use whatever method you can think of, get v2ray-macos.zip of version ${VERSION} from v2ray.com, and put it in the folder 'Downloads' and try this script again.\"\n        echo \"用你能想到任何办法，从 v2ray.com 下载好${VERSION}版本的 v2ray-macos.zip，放在“下载”文件夹里面，然后再次运行这个脚本。${NORMAL}\"\n        exit 1\n    fi\n    chmod +x ./v2ray\n    chmod +x ./v2ctl\n    rm -r v2ray-*\nelse\n    exit 0\nfi\n\n"
  },
  {
    "path": "V2RayX/install_helper.sh",
    "content": "#!/bin/sh\n\n#  install_helper.sh\n#  V2RayX\n#\n#  Copyright © 2016年 Cenmrev. All rights reserved.\n\ncd `dirname \"${BASH_SOURCE[0]}\"`\nsudo mkdir -p \"/Library/Application Support/V2RayX/\"\nsudo cp v2rayx_sysconf \"/Library/Application Support/V2RayX/\"\nsudo chown root:admin \"/Library/Application Support/V2RayX/v2rayx_sysconf\"\nsudo chmod +s \"/Library/Application Support/V2RayX/v2rayx_sysconf\"\n\necho done\n"
  },
  {
    "path": "V2RayX/main.m",
    "content": "//\n//  main.m\n//  V2RayX\n//\n//  Copyright © 2016年 Cenmrev. All rights reserved.\n//\n\n#import <Cocoa/Cocoa.h>\n\nint main(int argc, const char * argv[]) {\n    return NSApplicationMain(argc, argv);\n}\n"
  },
  {
    "path": "V2RayX/simple.pac",
    "content": "var V2Ray = \"SOCKS5 127.0.0.1:1081; SOCKS 127.0.0.1:1081; DIRECT;\";\n\nvar domains = [\n\t\"vpngate.net\",\n\t\"greatfire.org\",\n\t\"tox.im\",\n\t\"proxifier.com\",\n\t\"dnscrypt.org\",\n\t\"atgfw.org\",\n\t\"chinagfw.org\",\n\t\"whatismyip.com\",\n\t\"goagentplus.com\",\n\t\"shadowsocks.org\",\n\t\"falcop.com\",\n\t\"getlantern.org\",\n\t\"furbo.org\",\n\t\"goagentx.com\",\n\t\"github.com\",\n\t\"sourceforge.net\",\n\t\"torproject.org\",\n\t\"hideme.io\",\n\t\"mozilla.org\",\n\t\"shadowx.work\",\n\t\"v2ray.com\",\n\t\"astrill.com\",\n\n\t//Design\n\t\"deviantart.com\",\n\n\t\"disqus.com\",\n\t\"disquscdn.com\",\n\t\"tumblr.com\", \n\t\"flickr.com\",\n\t\"imgur.com\",\n\n\t\"evozi.com\",\n\t\"live.com\",\n\t\"1drv.com\",\n\t\"evernote.com\",\n\n\t//blog\n\t\"wp.com\",\n\t\"yam.com\",\n\t\"ashchan.com\",\n\t\"zuckclub.com\",\n\t\"blogspot.com\",\n\t\"blogspot.jp\",\n\t\"zalex2014.tk\",\n\t\"coreygilmore.com\",\n\t\"wordpress.com\",\n\t\"blogimg.jp\",\n\t\"leaskh.com\",\n\t\"blogger.com\",\n\t\"hexo.io\",\n\t\"medium.com\",\n\n\t//GeneralNews\n\t\"rfi.my\",\n\t\"rfi.fr\",\n\t\"washingtonpost.com\",\n\t\"tmagazine.com\",\n\t\"nytimes.com\",\n\t\"nytimg.com\",\n\t\"imrworldwide.com\",\n\t\"rankingsandreviews.com\",\n\t\"usnews.com\",\n\t\"bbc.co.uk\",\n\t\"bbci.co.uk\",\n\t\"bbc.com\",\n\t\"on-match.com\",\n\t\"solidot.org\",\n\n\t//TechNews\n\t\"engadget.com\", \n\n\t//Network\n\t\"amazonaws.com\",\n\t\"fastly.net\",\n\t\"akamaihd.net\", \n\t\"blogsmithmedia.com\", \n\t\"bit.ly\",\n\t\"d.pr\",\n\t\"ow.ly\",\n\t\"ift.tt\",\n\n\t\"nateparrott.com\",\n\t\n\t\"stacksocial.com\",\n\t\"feedly.com\",\n\t\"acgtea.com\",\n\n\t//academy and develop\n\t\"ieee.org\",\n\t\"mathoverflow.net\",\n\t\"tex.stackexchange.com\",\n\t\"academia.edu\",\n\t\"geogebra.org\",\n\t\"golang.org\",\n\t\"netspeak.org\",\n\t\"endreslab.com\",\n\n\t//Universities\n\t\"illinois.edu\",\n\t\"berkeley.edu\",\n\t\"wisc.edu\",\n\t\"cmu.edu\",\n\t\"rochester.edu\",\n\t\"purdue.edu\",\n\t\"technolutions.net\",\n\n\t\"netflix.com\",\n\n\t//Online Dictionary\n\t\"ldoceonline.com\",\n\t\"freedicts.com\",\n\n\t//Softwares\n\t\"formacx.com\",\n\t\"trionworlds.com\",\n\t\"line.me\",\n\n\t//otaku\n\t\"e-hentai.org\",\n\t\"nhentai.net\",\n\t\"nicovideo.jp\",\n\t\"nimg.jp\",\n\t\"pixnet.net\",\n\t\"fc2.com\",\n\t\"nyaatorrents.org\",\n\t\"nyaa.se\",\n\t\"share.dmhy.org\",\n\t\"loli.us\",\n\n\t//facebook\n\t\"facebook.net\",\n\t\"instagram.com\",\n\t\"facebook.com\",\n\t\"fb.me\", \n\t\"cdninstagram.com\",\n\t\"fbcdn.net\", \n\n\t\"booth.pm\",\n\n\t\"telegram.org\",\n\t\"telegram.me\",\n\n\t\"wikipedia.org\",\n\t\"pixiv.net\",\n\t\"twitch.tv\",\n\n\t//Twitter\n\t\"twitter.com\",  \n\t\"t.co\", \n\t\"twimg.com\",\n\n\t//Google\n\t\"gmail.com\", \n\t\"googlemail.com\",\n\t\"mailchimp.com\", \n\t\"mail-archive.com\", \n\t\"google.com\", \n\t\"goo.gl\",\n\t\"google.com.hk\", \n\t\"google.com.tw\", \n\t\"google.co.jp\",\n\t\"googlecode.com\",\n\t\"googleapis.com\", \n\t\"ggpht.com\",\n\t\"youtube.com\", \n\t\"youtu.be\",\n\t\"ytimg.com\",\n\t\"youtube-nocookie.com\",\n\t\"googlevideo.com\",\n\t\"sketchup.com\",\n\t\"gstatic.com\",\n\t\"google-analytics.com\",\n\t\"googleusercontent.com\",\n\t\"chrome.com\", \n\t\"g.co\", \n\t\"googledrive.com\", \n\t\"googletagmanager.com\", \n\t\"googleadservices.com\",\n\t\"abc.xyz\",\n\n\t//Dropbox\n\t\"dropbox.com\",\n\t\"dropboxusercontent.com\",\n\t\"dropboxwiki.com\",\n\n\t//iTuens\n\t\"mzstatic.com\",\n\t\"itunes.apple.com\",\n\n\t//cdn\n\t\"cloudfront.net\",\n\t\"colwiz.com\"\n];\n\nfunction FindProxyForURL(url, host) {\n    for (var i = domains.length - 1; i >= 0; i--) {\n    \tif (dnsDomainIs(host, domains[i])) {\n            return V2Ray;\n    \t}\n    }\n    return \"DIRECT\";\n}\n"
  },
  {
    "path": "V2RayX/tcp_http_header_example.txt",
    "content": "{\n  \"type\": \"http\",\n  \"request\": {\n    \"version\": \"1.1\",\n    \"method\": \"GET\",\n    \"path\": [\"/\"],\n    \"headers\": {\n      \"Host\": [\"www.baidu.com\", \"www.bing.com\"],\n      \"User-Agent\": [\n        \"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36\",\n        \"Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/601.1 (KHTML, like Gecko) CriOS/53.0.2785.109 Mobile/14A456 Safari/601.1.46\"\n      ],\n      \"Accept-Encoding\": [\"gzip, deflate\"],\n      \"Connection\": [\"keep-alive\"],\n      \"Pragma\": \"no-cache\"\n    }\n  },\n  \"response\": {\n    \"version\": \"1.1\",\n    \"status\": \"200\",\n    \"reason\": \"OK\",\n    \"headers\": {\n      \"Content-Type\": [\"application/octet-stream\", \"video/mpeg\"],\n      \"Transfer-Encoding\": [\"chunked\"],\n      \"Connection\": [\"keep-alive\"],\n      \"Pragma\": \"no-cache\"\n    }\n  }\n}"
  },
  {
    "path": "V2RayX/utilities.h",
    "content": "//\n//  utilities.h\n//  V2RayX\n//\n//\n\n#ifndef utilities_h\n#define utilities_h\n\n#import <Cocoa/Cocoa.h>\n#import \"MutableDeepCopying.h\"\n\n#define DOMAIN_STRATEGY_LIST (@[@\"AsIs\", @\"IPIfNonMatch\", @\"IPOnDemand\"])\n#define ROUTING_NETWORK_LIST (@[@\"tcp\", @\"udp\", @\"tcp,udp\"])\n\n#define OBFU_LIST (@[@\"none\", @\"srtp\", @\"utp\", @\"wechat-video\", @\"dtls\", @\"wireguard\"])\n#define VMESS_SECURITY_LIST (@[@\"auto\", @\"aes-128-gcm\", @\"chacha20-poly1305\", @\"none\"])\n#define NETWORK_LIST (@[@\"tcp\", @\"kcp\", @\"ws\", @\"http\", @\"quic\"])\n#define QUIC_SECURITY_LIST (@[@\"none\", @\"aes-128-gcm\", @\"chacha20-poly1305\"])\n#define nilCoalescing(a,b) ( (a != nil) ? (a) : (b) ) // equivalent to ?? operator in Swift\n\n#define TCP_NONE_HEADER_OBJECT (@\"{\\\"type\\\": \\\"none\\\"}\")\n\n#define ROUTING_DIRECT (@{@\"name\": @\"all_to_direct\",@\"domainStrategy\": @\"AsIs\",@\"rules\": @[@{@\"type\": @\"field\",@\"port\": @\"0-65535\",@\"outboundTag\": @\"direct\"}]})\n#define ROUTING_GLOBAL (@{@\"name\": @\"all_to_main\",@\"domainStrategy\": @\"AsIs\",@\"rules\": @[@{@\"type\": @\"field\",@\"port\": @\"0-65535\",@\"outboundTag\": @\"main\"}]})\n#define ROUTING_BYPASSCN_PRIVATE_APPLE (@{@\"name\": @\"bypasscn_private_apple\",@\"domainStrategy\":@\"IPIfNonMatch\",@\"rules\":@[@{@\"domain\":@[@\"localhost\",@\"domain:me.com\",@\"domain:lookup-api.apple.com\",@\"domain:icloud-content.com\",@\"domain:icloud.com\",@\"domain:cdn-apple.com\",@\"domain:apple-cloudkit.com\",@\"domain:apple.com\",@\"domain:apple.co\",@\"domain:aaplimg.com\",@\"domain:guzzoni.apple.com\",@\"geosite:cn\"],@\"type\":@\"field\",@\"outboundTag\":@\"direct\"},@{@\"type\":@\"field\",@\"outboundTag\":@\"direct\",@\"ip\":@[@\"geoip:private\",@\"geoip:cn\"]},@{@\"type\":@\"field\",@\"outboundTag\":@\"main\",@\"port\":@\"0-65535\"}]})\n\n#define OUTBOUND_DIRECT (@{@\"protocol\":@\"freedom\",@\"tag\":@\"direct\",@\"settings\":@{}})\n#define OUTBOUND_DECLINE (@{@\"protocol\":@\"blackhole\",@\"tag\":@\"decline\",@\"settings\": @{}})\n\n#define RESERVED_TAGS (@[@\"main\", @\"direct\", @\"decline\", @\"balance\"])\n\n#define SUPPORTED_SS_SECURITY (@[@\"aes-256-cfb\",@\"aes-128-cfb\",@\"chacha20\",@\"chacha20-ietf\",@\"aes-256-gcm\",@\"aes-128-gcm\",@\"chacha20-poly1305\", @\"chacha20-ietf-poly1305\"])\n\n#define EMPTY_DICT ([[NSMutableDictionary alloc] init])\n#define EMPTY_IMPORT_RESULT ([@{@\"vmess\": @[], @\"other\": @[], @\"rules\":@[]} mutableDeepCopy])\n#define SNIFFING_PROTOCOL (@[@\"http\", @\"tls\", @\"bittorrent\"])\n\n\n#define NOT_SUPPORTED_ROUTING (@[@\"source\", @\"user\"])\n#define SUPPORTED_ROUTING (@[@\"domain\", @\"ip\", @\"network\", @\"port\", @\"inboundTag\", @\"protocol\"])\n\nNSUInteger searchInArray(NSString* str, NSArray* array);\n\n\n#endif /* utilities_h */\n"
  },
  {
    "path": "V2RayX/utilities.m",
    "content": "//\n//  utilities.m\n//  V2RayX\n//\n//\n\n#import \"utilities.h\"\n\nNSUInteger searchInArray(NSString* str, NSArray* array) {\n    if ([str isKindOfClass:[NSString class]]) {\n        NSUInteger index = 0;\n        for (NSString* s in array) {\n            if ([s isKindOfClass:[NSString class]] && [s isEqualToString:str]) {\n                return index;\n            }\n            index += 1;\n        }\n    }\n    return 0;\n}\n"
  },
  {
    "path": "V2RayX.xcodeproj/project.pbxproj",
    "content": "// !$*UTF8*$!\n{\n\tarchiveVersion = 1;\n\tclasses = {\n\t};\n\tobjectVersion = 46;\n\tobjects = {\n\n/* Begin PBXBuildFile section */\n\t\t9504C07D1C662C3000352520 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 9504C07C1C662C3000352520 /* AppDelegate.m */; };\n\t\t9504C0801C662C3000352520 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9504C07F1C662C3000352520 /* main.m */; };\n\t\t9504C0821C662C3000352520 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9504C0811C662C3000352520 /* Assets.xcassets */; };\n\t\t9504C0851C662C3000352520 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9504C0831C662C3000352520 /* MainMenu.xib */; };\n\t\t9504C08D1C662C9100352520 /* ConfigWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9504C08C1C662C9100352520 /* ConfigWindow.xib */; };\n\t\t9504C0901C662CBF00352520 /* ConfigWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9504C08F1C662CBF00352520 /* ConfigWindowController.m */; };\n\t\t9504C0C11C662D9400352520 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 9504C0C01C662D9400352520 /* libz.tbd */; };\n\t\t9504C0C91C662DB500352520 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9504C0C81C662DB500352520 /* main.m */; };\n\t\t9504C0CF1C662DE300352520 /* v2rayx_sysconf in Resources */ = {isa = PBXBuildFile; fileRef = 9504C0C61C662DB400352520 /* v2rayx_sysconf */; };\n\t\t9504C0D11C66373400352520 /* install_helper.sh in Resources */ = {isa = PBXBuildFile; fileRef = 9504C0D01C662E0800352520 /* install_helper.sh */; };\n\t\t9504C0D41C66511B00352520 /* ServerProfile.m in Sources */ = {isa = PBXBuildFile; fileRef = 9504C0D31C66511B00352520 /* ServerProfile.m */; };\n\t\t9565E28B1DB25C010082658C /* TransportWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9565E28A1DB25C010082658C /* TransportWindow.xib */; };\n\t\t9577E1B21C6B065E00093BD3 /* GCDWebServer.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1951C6B065D00093BD3 /* GCDWebServer.m */; };\n\t\t9577E1B31C6B065E00093BD3 /* GCDWebServerConnection.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1971C6B065D00093BD3 /* GCDWebServerConnection.m */; };\n\t\t9577E1B41C6B065E00093BD3 /* GCDWebServerFunctions.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1991C6B065D00093BD3 /* GCDWebServerFunctions.m */; };\n\t\t9577E1B51C6B065E00093BD3 /* GCDWebServerRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E19D1C6B065D00093BD3 /* GCDWebServerRequest.m */; };\n\t\t9577E1B61C6B065E00093BD3 /* GCDWebServerResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E19F1C6B065D00093BD3 /* GCDWebServerResponse.m */; };\n\t\t9577E1B71C6B065E00093BD3 /* GCDWebServerDataRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1A21C6B065D00093BD3 /* GCDWebServerDataRequest.m */; };\n\t\t9577E1B81C6B065E00093BD3 /* GCDWebServerFileRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1A41C6B065D00093BD3 /* GCDWebServerFileRequest.m */; };\n\t\t9577E1B91C6B065E00093BD3 /* GCDWebServerMultiPartFormRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1A61C6B065D00093BD3 /* GCDWebServerMultiPartFormRequest.m */; };\n\t\t9577E1BA1C6B065E00093BD3 /* GCDWebServerURLEncodedFormRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1A81C6B065D00093BD3 /* GCDWebServerURLEncodedFormRequest.m */; };\n\t\t9577E1BB1C6B065E00093BD3 /* GCDWebServerDataResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1AB1C6B065E00093BD3 /* GCDWebServerDataResponse.m */; };\n\t\t9577E1BC1C6B065E00093BD3 /* GCDWebServerErrorResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1AD1C6B065E00093BD3 /* GCDWebServerErrorResponse.m */; };\n\t\t9577E1BD1C6B065E00093BD3 /* GCDWebServerFileResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1AF1C6B065E00093BD3 /* GCDWebServerFileResponse.m */; };\n\t\t9577E1BE1C6B065E00093BD3 /* GCDWebServerStreamedResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 9577E1B11C6B065E00093BD3 /* GCDWebServerStreamedResponse.m */; };\n\t\t95A143CC1C87FCDC008756B9 /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 95A143CA1C87FC6E008756B9 /* Cocoa.framework */; };\n\t\t95E524CB1C674CC80008BB12 /* simple.pac in Resources */ = {isa = PBXBuildFile; fileRef = 95E524CA1C674CC80008BB12 /* simple.pac */; };\n\t\t9D24863421CD9EC100C529AB /* config-sample_new.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9D24863321CD9EC000C529AB /* config-sample_new.plist */; };\n\t\t9D3CEE6F209E070F0077CCFE /* AdvancedWindow.xib in Resources */ = {isa = PBXBuildFile; fileRef = 9D3CEE6E209E070F0077CCFE /* AdvancedWindow.xib */; };\n\t\t9D5EAC151FDCD70300C14B46 /* geoip.dat in Resources */ = {isa = PBXBuildFile; fileRef = 9D5EAC101FDCD54700C14B46 /* geoip.dat */; };\n\t\t9D5EAC161FDCD70300C14B46 /* geosite.dat in Resources */ = {isa = PBXBuildFile; fileRef = 9D5EAC0F1FDCD54600C14B46 /* geosite.dat */; };\n\t\t9D5EAC171FDCD70300C14B46 /* v2ctl in Resources */ = {isa = PBXBuildFile; fileRef = 9D5EAC0E1FDCD54600C14B46 /* v2ctl */; };\n\t\t9D5EAC181FDCD70300C14B46 /* v2ray in Resources */ = {isa = PBXBuildFile; fileRef = 953B60571DB3F6B700D40654 /* v2ray */; };\n\t\t9D7109611E0F43BD008A6362 /* Credits.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 9D7109601E0F43BD008A6362 /* Credits.rtf */; };\n\t\t9D71D61721D06006007DA052 /* ConfigImporter.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D71D61621D06006007DA052 /* ConfigImporter.m */; };\n\t\t9D7DFE541EBEC947001FECBD /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 9D7DFE531EBEC947001FECBD /* main.m */; };\n\t\t9DA4A84120C14178000FF35D /* tcp_http_header_example.txt in Resources */ = {isa = PBXBuildFile; fileRef = 9DA4A84020C14178000FF35D /* tcp_http_header_example.txt */; };\n\t\t9DB4FE951F205BEB00CCEE5F /* config-sample.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9DB4FE941F205BEB00CCEE5F /* config-sample.plist */; };\n\t\t9DBF54CF221615AD00B61D55 /* NSData+AES256Encryption.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DBF54CE221615AD00B61D55 /* NSData+AES256Encryption.m */; };\n\t\t9DDC059121CA8CFF00C6C2D7 /* TransportWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DDC059021CA8CFF00C6C2D7 /* TransportWindowController.m */; };\n\t\t9DDC059621CA8EAD00C6C2D7 /* utilities.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DDC059521CA8EAD00C6C2D7 /* utilities.m */; };\n\t\t9DEB294D21CB64CF0052D2BB /* AdvancedWindowController.m in Sources */ = {isa = PBXBuildFile; fileRef = 9DEB294C21CB64CF0052D2BB /* AdvancedWindowController.m */; };\n/* End PBXBuildFile section */\n\n/* Begin PBXContainerItemProxy section */\n\t\t9504C0CD1C662DC500352520 /* PBXContainerItemProxy */ = {\n\t\t\tisa = PBXContainerItemProxy;\n\t\t\tcontainerPortal = 9504C0701C662C3000352520 /* Project object */;\n\t\t\tproxyType = 1;\n\t\t\tremoteGlobalIDString = 9504C0C51C662DB400352520;\n\t\t\tremoteInfo = v2rayx_sysconf;\n\t\t};\n/* End PBXContainerItemProxy section */\n\n/* Begin PBXCopyFilesBuildPhase section */\n\t\t9504C0C41C662DB400352520 /* CopyFiles */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = /usr/share/man/man1/;\n\t\t\tdstSubfolderSpec = 0;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 1;\n\t\t};\n\t\t9D7DFE4F1EBEC947001FECBD /* CopyFiles */ = {\n\t\t\tisa = PBXCopyFilesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tdstPath = /usr/share/man/man1/;\n\t\t\tdstSubfolderSpec = 0;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 1;\n\t\t};\n/* End PBXCopyFilesBuildPhase section */\n\n/* Begin PBXFileReference section */\n\t\t9504C0781C662C3000352520 /* V2RayX.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = V2RayX.app; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t9504C07B1C662C3000352520 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = \"<group>\"; };\n\t\t9504C07C1C662C3000352520 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = \"<group>\"; };\n\t\t9504C07F1C662C3000352520 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\t9504C0811C662C3000352520 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = \"<group>\"; };\n\t\t9504C0841C662C3000352520 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = \"<group>\"; };\n\t\t9504C0861C662C3000352520 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = \"<group>\"; };\n\t\t9504C08C1C662C9100352520 /* ConfigWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = ConfigWindow.xib; sourceTree = \"<group>\"; };\n\t\t9504C08E1C662CBF00352520 /* ConfigWindowController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ConfigWindowController.h; sourceTree = \"<group>\"; };\n\t\t9504C08F1C662CBF00352520 /* ConfigWindowController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ConfigWindowController.m; sourceTree = \"<group>\"; };\n\t\t9504C0C01C662D9400352520 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = \"sourcecode.text-based-dylib-definition\"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };\n\t\t9504C0C61C662DB400352520 /* v2rayx_sysconf */ = {isa = PBXFileReference; explicitFileType = \"compiled.mach-o.executable\"; includeInIndex = 0; path = v2rayx_sysconf; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t9504C0C81C662DB500352520 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\t9504C0D01C662E0800352520 /* install_helper.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = install_helper.sh; sourceTree = \"<group>\"; };\n\t\t9504C0D21C66511B00352520 /* ServerProfile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ServerProfile.h; sourceTree = \"<group>\"; };\n\t\t9504C0D31C66511B00352520 /* ServerProfile.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ServerProfile.m; sourceTree = \"<group>\"; };\n\t\t953B60551DB3F65A00D40654 /* dlcore.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = dlcore.sh; sourceTree = \"<group>\"; };\n\t\t953B60571DB3F6B700D40654 /* v2ray */ = {isa = PBXFileReference; lastKnownFileType = \"compiled.mach-o.executable\"; name = v2ray; path = \"../v2ray-core-bin/v2ray\"; sourceTree = \"<group>\"; };\n\t\t9565E28A1DB25C010082658C /* TransportWindow.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = TransportWindow.xib; sourceTree = \"<group>\"; };\n\t\t9577E1941C6B065D00093BD3 /* GCDWebServer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServer.h; sourceTree = \"<group>\"; };\n\t\t9577E1951C6B065D00093BD3 /* GCDWebServer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServer.m; sourceTree = \"<group>\"; };\n\t\t9577E1961C6B065D00093BD3 /* GCDWebServerConnection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerConnection.h; sourceTree = \"<group>\"; };\n\t\t9577E1971C6B065D00093BD3 /* GCDWebServerConnection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerConnection.m; sourceTree = \"<group>\"; };\n\t\t9577E1981C6B065D00093BD3 /* GCDWebServerFunctions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerFunctions.h; sourceTree = \"<group>\"; };\n\t\t9577E1991C6B065D00093BD3 /* GCDWebServerFunctions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerFunctions.m; sourceTree = \"<group>\"; };\n\t\t9577E19A1C6B065D00093BD3 /* GCDWebServerHTTPStatusCodes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerHTTPStatusCodes.h; sourceTree = \"<group>\"; };\n\t\t9577E19B1C6B065D00093BD3 /* GCDWebServerPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerPrivate.h; sourceTree = \"<group>\"; };\n\t\t9577E19C1C6B065D00093BD3 /* GCDWebServerRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerRequest.h; sourceTree = \"<group>\"; };\n\t\t9577E19D1C6B065D00093BD3 /* GCDWebServerRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerRequest.m; sourceTree = \"<group>\"; };\n\t\t9577E19E1C6B065D00093BD3 /* GCDWebServerResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerResponse.h; sourceTree = \"<group>\"; };\n\t\t9577E19F1C6B065D00093BD3 /* GCDWebServerResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerResponse.m; sourceTree = \"<group>\"; };\n\t\t9577E1A11C6B065D00093BD3 /* GCDWebServerDataRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerDataRequest.h; sourceTree = \"<group>\"; };\n\t\t9577E1A21C6B065D00093BD3 /* GCDWebServerDataRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerDataRequest.m; sourceTree = \"<group>\"; };\n\t\t9577E1A31C6B065D00093BD3 /* GCDWebServerFileRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerFileRequest.h; sourceTree = \"<group>\"; };\n\t\t9577E1A41C6B065D00093BD3 /* GCDWebServerFileRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerFileRequest.m; sourceTree = \"<group>\"; };\n\t\t9577E1A51C6B065D00093BD3 /* GCDWebServerMultiPartFormRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerMultiPartFormRequest.h; sourceTree = \"<group>\"; };\n\t\t9577E1A61C6B065D00093BD3 /* GCDWebServerMultiPartFormRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerMultiPartFormRequest.m; sourceTree = \"<group>\"; };\n\t\t9577E1A71C6B065D00093BD3 /* GCDWebServerURLEncodedFormRequest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerURLEncodedFormRequest.h; sourceTree = \"<group>\"; };\n\t\t9577E1A81C6B065D00093BD3 /* GCDWebServerURLEncodedFormRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerURLEncodedFormRequest.m; sourceTree = \"<group>\"; };\n\t\t9577E1AA1C6B065E00093BD3 /* GCDWebServerDataResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerDataResponse.h; sourceTree = \"<group>\"; };\n\t\t9577E1AB1C6B065E00093BD3 /* GCDWebServerDataResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerDataResponse.m; sourceTree = \"<group>\"; };\n\t\t9577E1AC1C6B065E00093BD3 /* GCDWebServerErrorResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerErrorResponse.h; sourceTree = \"<group>\"; };\n\t\t9577E1AD1C6B065E00093BD3 /* GCDWebServerErrorResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerErrorResponse.m; sourceTree = \"<group>\"; };\n\t\t9577E1AE1C6B065E00093BD3 /* GCDWebServerFileResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerFileResponse.h; sourceTree = \"<group>\"; };\n\t\t9577E1AF1C6B065E00093BD3 /* GCDWebServerFileResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerFileResponse.m; sourceTree = \"<group>\"; };\n\t\t9577E1B01C6B065E00093BD3 /* GCDWebServerStreamedResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = GCDWebServerStreamedResponse.h; sourceTree = \"<group>\"; };\n\t\t9577E1B11C6B065E00093BD3 /* GCDWebServerStreamedResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GCDWebServerStreamedResponse.m; sourceTree = \"<group>\"; };\n\t\t95862BD41DB2862E00F4A9CA /* compilefromsource.sh */ = {isa = PBXFileReference; lastKnownFileType = text.script.sh; path = compilefromsource.sh; sourceTree = \"<group>\"; };\n\t\t95A143CA1C87FC6E008756B9 /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };\n\t\t95E524CA1C674CC80008BB12 /* simple.pac */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = simple.pac; sourceTree = \"<group>\"; };\n\t\t9D24863321CD9EC000C529AB /* config-sample_new.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = \"config-sample_new.plist\"; sourceTree = \"<group>\"; };\n\t\t9D3CEE6E209E070F0077CCFE /* AdvancedWindow.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = AdvancedWindow.xib; sourceTree = \"<group>\"; };\n\t\t9D5EAC0E1FDCD54600C14B46 /* v2ctl */ = {isa = PBXFileReference; lastKnownFileType = \"compiled.mach-o.executable\"; name = v2ctl; path = \"v2ray-core-bin/v2ctl\"; sourceTree = SOURCE_ROOT; };\n\t\t9D5EAC0F1FDCD54600C14B46 /* geosite.dat */ = {isa = PBXFileReference; lastKnownFileType = file; name = geosite.dat; path = \"v2ray-core-bin/geosite.dat\"; sourceTree = SOURCE_ROOT; };\n\t\t9D5EAC101FDCD54700C14B46 /* geoip.dat */ = {isa = PBXFileReference; lastKnownFileType = file; name = geoip.dat; path = \"v2ray-core-bin/geoip.dat\"; sourceTree = SOURCE_ROOT; };\n\t\t9D7109601E0F43BD008A6362 /* Credits.rtf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.rtf; path = Credits.rtf; sourceTree = \"<group>\"; };\n\t\t9D71D61521D06006007DA052 /* ConfigImporter.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ConfigImporter.h; sourceTree = \"<group>\"; };\n\t\t9D71D61621D06006007DA052 /* ConfigImporter.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ConfigImporter.m; sourceTree = \"<group>\"; };\n\t\t9D7DFE511EBEC947001FECBD /* jsonplist */ = {isa = PBXFileReference; explicitFileType = \"compiled.mach-o.executable\"; includeInIndex = 0; path = jsonplist; sourceTree = BUILT_PRODUCTS_DIR; };\n\t\t9D7DFE531EBEC947001FECBD /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = \"<group>\"; };\n\t\t9DA398B5209ECED400784947 /* sysconf_version.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = sysconf_version.h; sourceTree = \"<group>\"; };\n\t\t9DA4A84020C14178000FF35D /* tcp_http_header_example.txt */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = tcp_http_header_example.txt; sourceTree = \"<group>\"; };\n\t\t9DB4FE941F205BEB00CCEE5F /* config-sample.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = \"config-sample.plist\"; sourceTree = \"<group>\"; };\n\t\t9DBF3AA3213E1921008C7249 /* MutableDeepCopying.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MutableDeepCopying.h; sourceTree = \"<group>\"; };\n\t\t9DBF54CD221615AD00B61D55 /* NSData+AES256Encryption.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = \"NSData+AES256Encryption.h\"; sourceTree = \"<group>\"; };\n\t\t9DBF54CE221615AD00B61D55 /* NSData+AES256Encryption.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = \"NSData+AES256Encryption.m\"; sourceTree = \"<group>\"; };\n\t\t9DDC058F21CA8CFF00C6C2D7 /* TransportWindowController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TransportWindowController.h; sourceTree = \"<group>\"; };\n\t\t9DDC059021CA8CFF00C6C2D7 /* TransportWindowController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = TransportWindowController.m; sourceTree = \"<group>\"; };\n\t\t9DDC059421CA8DE900C6C2D7 /* utilities.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = utilities.h; sourceTree = \"<group>\"; };\n\t\t9DDC059521CA8EAD00C6C2D7 /* utilities.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = utilities.m; sourceTree = \"<group>\"; };\n\t\t9DEB294B21CB64CF0052D2BB /* AdvancedWindowController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AdvancedWindowController.h; sourceTree = \"<group>\"; };\n\t\t9DEB294C21CB64CF0052D2BB /* AdvancedWindowController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AdvancedWindowController.m; sourceTree = \"<group>\"; };\n/* End PBXFileReference section */\n\n/* Begin PBXFrameworksBuildPhase section */\n\t\t9504C0751C662C3000352520 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t95A143CC1C87FCDC008756B9 /* Cocoa.framework in Frameworks */,\n\t\t\t\t9504C0C11C662D9400352520 /* libz.tbd in Frameworks */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t9504C0C31C662DB400352520 /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t9D7DFE4E1EBEC947001FECBD /* Frameworks */ = {\n\t\t\tisa = PBXFrameworksBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXFrameworksBuildPhase section */\n\n/* Begin PBXGroup section */\n\t\t9504C06F1C662C3000352520 = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t95862BD41DB2862E00F4A9CA /* compilefromsource.sh */,\n\t\t\t\t9D7DFE521EBEC947001FECBD /* jsonplist */,\n\t\t\t\t95FCB2451C688BB20081B6FD /* Frameworks */,\n\t\t\t\t9504C07A1C662C3000352520 /* V2RayX */,\n\t\t\t\t9504C0C71C662DB500352520 /* v2rayx_sysconf */,\n\t\t\t\t9504C0791C662C3000352520 /* Products */,\n\t\t\t);\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9504C0791C662C3000352520 /* Products */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9504C0781C662C3000352520 /* V2RayX.app */,\n\t\t\t\t9504C0C61C662DB400352520 /* v2rayx_sysconf */,\n\t\t\t\t9D7DFE511EBEC947001FECBD /* jsonplist */,\n\t\t\t);\n\t\t\tname = Products;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9504C07A1C662C3000352520 /* V2RayX */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9DBF54CD221615AD00B61D55 /* NSData+AES256Encryption.h */,\n\t\t\t\t9DBF54CE221615AD00B61D55 /* NSData+AES256Encryption.m */,\n\t\t\t\t9577E1921C6B065D00093BD3 /* GCDWebServer */,\n\t\t\t\t9504C07B1C662C3000352520 /* AppDelegate.h */,\n\t\t\t\t9504C07C1C662C3000352520 /* AppDelegate.m */,\n\t\t\t\t9504C0811C662C3000352520 /* Assets.xcassets */,\n\t\t\t\t9504C0831C662C3000352520 /* MainMenu.xib */,\n\t\t\t\t9504C08C1C662C9100352520 /* ConfigWindow.xib */,\n\t\t\t\t9D71D61521D06006007DA052 /* ConfigImporter.h */,\n\t\t\t\t9D71D61621D06006007DA052 /* ConfigImporter.m */,\n\t\t\t\t9D3CEE6E209E070F0077CCFE /* AdvancedWindow.xib */,\n\t\t\t\t9DEB294B21CB64CF0052D2BB /* AdvancedWindowController.h */,\n\t\t\t\t9DEB294C21CB64CF0052D2BB /* AdvancedWindowController.m */,\n\t\t\t\t9565E28A1DB25C010082658C /* TransportWindow.xib */,\n\t\t\t\t9DDC058F21CA8CFF00C6C2D7 /* TransportWindowController.h */,\n\t\t\t\t9DDC059021CA8CFF00C6C2D7 /* TransportWindowController.m */,\n\t\t\t\t9504C08E1C662CBF00352520 /* ConfigWindowController.h */,\n\t\t\t\t9504C08F1C662CBF00352520 /* ConfigWindowController.m */,\n\t\t\t\t9504C0D21C66511B00352520 /* ServerProfile.h */,\n\t\t\t\t9504C0D31C66511B00352520 /* ServerProfile.m */,\n\t\t\t\t9504C0861C662C3000352520 /* Info.plist */,\n\t\t\t\t9504C07E1C662C3000352520 /* Supporting Files */,\n\t\t\t);\n\t\t\tpath = V2RayX;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9504C07E1C662C3000352520 /* Supporting Files */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9DDC059421CA8DE900C6C2D7 /* utilities.h */,\n\t\t\t\t9DDC059521CA8EAD00C6C2D7 /* utilities.m */,\n\t\t\t\t9DBF3AA3213E1921008C7249 /* MutableDeepCopying.h */,\n\t\t\t\t9DB4FE941F205BEB00CCEE5F /* config-sample.plist */,\n\t\t\t\t9D24863321CD9EC000C529AB /* config-sample_new.plist */,\n\t\t\t\t9DA4A84020C14178000FF35D /* tcp_http_header_example.txt */,\n\t\t\t\t95E524CA1C674CC80008BB12 /* simple.pac */,\n\t\t\t\t9504C0D01C662E0800352520 /* install_helper.sh */,\n\t\t\t\t953B60551DB3F65A00D40654 /* dlcore.sh */,\n\t\t\t\t9D5EAC111FDCD54F00C14B46 /* v2ray-core */,\n\t\t\t\t9D7109601E0F43BD008A6362 /* Credits.rtf */,\n\t\t\t\t9504C07F1C662C3000352520 /* main.m */,\n\t\t\t);\n\t\t\tname = \"Supporting Files\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9504C0C71C662DB500352520 /* v2rayx_sysconf */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9504C0C81C662DB500352520 /* main.m */,\n\t\t\t\t9DA398B5209ECED400784947 /* sysconf_version.h */,\n\t\t\t);\n\t\t\tpath = v2rayx_sysconf;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9577E1921C6B065D00093BD3 /* GCDWebServer */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9577E1931C6B065D00093BD3 /* Core */,\n\t\t\t\t9577E1A01C6B065D00093BD3 /* Requests */,\n\t\t\t\t9577E1A91C6B065E00093BD3 /* Responses */,\n\t\t\t);\n\t\t\tname = GCDWebServer;\n\t\t\tpath = GCDWebServer/GCDWebServer;\n\t\t\tsourceTree = SOURCE_ROOT;\n\t\t};\n\t\t9577E1931C6B065D00093BD3 /* Core */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9577E1941C6B065D00093BD3 /* GCDWebServer.h */,\n\t\t\t\t9577E1951C6B065D00093BD3 /* GCDWebServer.m */,\n\t\t\t\t9577E1961C6B065D00093BD3 /* GCDWebServerConnection.h */,\n\t\t\t\t9577E1971C6B065D00093BD3 /* GCDWebServerConnection.m */,\n\t\t\t\t9577E1981C6B065D00093BD3 /* GCDWebServerFunctions.h */,\n\t\t\t\t9577E1991C6B065D00093BD3 /* GCDWebServerFunctions.m */,\n\t\t\t\t9577E19A1C6B065D00093BD3 /* GCDWebServerHTTPStatusCodes.h */,\n\t\t\t\t9577E19B1C6B065D00093BD3 /* GCDWebServerPrivate.h */,\n\t\t\t\t9577E19C1C6B065D00093BD3 /* GCDWebServerRequest.h */,\n\t\t\t\t9577E19D1C6B065D00093BD3 /* GCDWebServerRequest.m */,\n\t\t\t\t9577E19E1C6B065D00093BD3 /* GCDWebServerResponse.h */,\n\t\t\t\t9577E19F1C6B065D00093BD3 /* GCDWebServerResponse.m */,\n\t\t\t);\n\t\t\tpath = Core;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9577E1A01C6B065D00093BD3 /* Requests */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9577E1A11C6B065D00093BD3 /* GCDWebServerDataRequest.h */,\n\t\t\t\t9577E1A21C6B065D00093BD3 /* GCDWebServerDataRequest.m */,\n\t\t\t\t9577E1A31C6B065D00093BD3 /* GCDWebServerFileRequest.h */,\n\t\t\t\t9577E1A41C6B065D00093BD3 /* GCDWebServerFileRequest.m */,\n\t\t\t\t9577E1A51C6B065D00093BD3 /* GCDWebServerMultiPartFormRequest.h */,\n\t\t\t\t9577E1A61C6B065D00093BD3 /* GCDWebServerMultiPartFormRequest.m */,\n\t\t\t\t9577E1A71C6B065D00093BD3 /* GCDWebServerURLEncodedFormRequest.h */,\n\t\t\t\t9577E1A81C6B065D00093BD3 /* GCDWebServerURLEncodedFormRequest.m */,\n\t\t\t);\n\t\t\tpath = Requests;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9577E1A91C6B065E00093BD3 /* Responses */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9577E1AA1C6B065E00093BD3 /* GCDWebServerDataResponse.h */,\n\t\t\t\t9577E1AB1C6B065E00093BD3 /* GCDWebServerDataResponse.m */,\n\t\t\t\t9577E1AC1C6B065E00093BD3 /* GCDWebServerErrorResponse.h */,\n\t\t\t\t9577E1AD1C6B065E00093BD3 /* GCDWebServerErrorResponse.m */,\n\t\t\t\t9577E1AE1C6B065E00093BD3 /* GCDWebServerFileResponse.h */,\n\t\t\t\t9577E1AF1C6B065E00093BD3 /* GCDWebServerFileResponse.m */,\n\t\t\t\t9577E1B01C6B065E00093BD3 /* GCDWebServerStreamedResponse.h */,\n\t\t\t\t9577E1B11C6B065E00093BD3 /* GCDWebServerStreamedResponse.m */,\n\t\t\t);\n\t\t\tpath = Responses;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t95FCB2451C688BB20081B6FD /* Frameworks */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t95A143CA1C87FC6E008756B9 /* Cocoa.framework */,\n\t\t\t\t9504C0C01C662D9400352520 /* libz.tbd */,\n\t\t\t);\n\t\t\tname = Frameworks;\n\t\t\tpath = V2RayX;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9D5EAC111FDCD54F00C14B46 /* v2ray-core */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9D5EAC101FDCD54700C14B46 /* geoip.dat */,\n\t\t\t\t9D5EAC0F1FDCD54600C14B46 /* geosite.dat */,\n\t\t\t\t9D5EAC0E1FDCD54600C14B46 /* v2ctl */,\n\t\t\t\t953B60571DB3F6B700D40654 /* v2ray */,\n\t\t\t);\n\t\t\tname = \"v2ray-core\";\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n\t\t9D7DFE521EBEC947001FECBD /* jsonplist */ = {\n\t\t\tisa = PBXGroup;\n\t\t\tchildren = (\n\t\t\t\t9D7DFE531EBEC947001FECBD /* main.m */,\n\t\t\t);\n\t\t\tpath = jsonplist;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXGroup section */\n\n/* Begin PBXNativeTarget section */\n\t\t9504C0771C662C3000352520 /* V2RayX */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 9504C0891C662C3000352520 /* Build configuration list for PBXNativeTarget \"V2RayX\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t9504C0741C662C3000352520 /* Sources */,\n\t\t\t\t9504C0751C662C3000352520 /* Frameworks */,\n\t\t\t\t9DB94D77209D273A0001E9DD /* Run Script */,\n\t\t\t\t953B60541DB3E31D00D40654 /* Run Script */,\n\t\t\t\t9504C0761C662C3000352520 /* Resources */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t\t9504C0CE1C662DC500352520 /* PBXTargetDependency */,\n\t\t\t);\n\t\t\tname = V2RayX;\n\t\t\tproductName = V2RayX;\n\t\t\tproductReference = 9504C0781C662C3000352520 /* V2RayX.app */;\n\t\t\tproductType = \"com.apple.product-type.application\";\n\t\t};\n\t\t9504C0C51C662DB400352520 /* v2rayx_sysconf */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 9504C0CA1C662DB500352520 /* Build configuration list for PBXNativeTarget \"v2rayx_sysconf\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t9504C0C21C662DB400352520 /* Sources */,\n\t\t\t\t9504C0C31C662DB400352520 /* Frameworks */,\n\t\t\t\t9504C0C41C662DB400352520 /* CopyFiles */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = v2rayx_sysconf;\n\t\t\tproductName = v2rayx_sysconf;\n\t\t\tproductReference = 9504C0C61C662DB400352520 /* v2rayx_sysconf */;\n\t\t\tproductType = \"com.apple.product-type.tool\";\n\t\t};\n\t\t9D7DFE501EBEC947001FECBD /* jsonplist */ = {\n\t\t\tisa = PBXNativeTarget;\n\t\t\tbuildConfigurationList = 9D7DFE571EBEC947001FECBD /* Build configuration list for PBXNativeTarget \"jsonplist\" */;\n\t\t\tbuildPhases = (\n\t\t\t\t9D7DFE4D1EBEC947001FECBD /* Sources */,\n\t\t\t\t9D7DFE4E1EBEC947001FECBD /* Frameworks */,\n\t\t\t\t9D7DFE4F1EBEC947001FECBD /* CopyFiles */,\n\t\t\t);\n\t\t\tbuildRules = (\n\t\t\t);\n\t\t\tdependencies = (\n\t\t\t);\n\t\t\tname = jsonplist;\n\t\t\tproductName = jsonplist;\n\t\t\tproductReference = 9D7DFE511EBEC947001FECBD /* jsonplist */;\n\t\t\tproductType = \"com.apple.product-type.tool\";\n\t\t};\n/* End PBXNativeTarget section */\n\n/* Begin PBXProject section */\n\t\t9504C0701C662C3000352520 /* Project object */ = {\n\t\t\tisa = PBXProject;\n\t\t\tattributes = {\n\t\t\t\tLastUpgradeCheck = 0930;\n\t\t\t\tORGANIZATIONNAME = \"Project V2Ray\";\n\t\t\t\tTargetAttributes = {\n\t\t\t\t\t9504C0771C662C3000352520 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.2.1;\n\t\t\t\t\t};\n\t\t\t\t\t9504C0C51C662DB400352520 = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 7.2.1;\n\t\t\t\t\t};\n\t\t\t\t\t9D7DFE501EBEC947001FECBD = {\n\t\t\t\t\t\tCreatedOnToolsVersion = 8.3.2;\n\t\t\t\t\t\tProvisioningStyle = Automatic;\n\t\t\t\t\t};\n\t\t\t\t};\n\t\t\t};\n\t\t\tbuildConfigurationList = 9504C0731C662C3000352520 /* Build configuration list for PBXProject \"V2RayX\" */;\n\t\t\tcompatibilityVersion = \"Xcode 3.2\";\n\t\t\tdevelopmentRegion = English;\n\t\t\thasScannedForEncodings = 0;\n\t\t\tknownRegions = (\n\t\t\t\ten,\n\t\t\t\tBase,\n\t\t\t);\n\t\t\tmainGroup = 9504C06F1C662C3000352520;\n\t\t\tproductRefGroup = 9504C0791C662C3000352520 /* Products */;\n\t\t\tprojectDirPath = \"\";\n\t\t\tprojectRoot = \"\";\n\t\t\ttargets = (\n\t\t\t\t9504C0771C662C3000352520 /* V2RayX */,\n\t\t\t\t9504C0C51C662DB400352520 /* v2rayx_sysconf */,\n\t\t\t\t9D7DFE501EBEC947001FECBD /* jsonplist */,\n\t\t\t);\n\t\t};\n/* End PBXProject section */\n\n/* Begin PBXResourcesBuildPhase section */\n\t\t9504C0761C662C3000352520 /* Resources */ = {\n\t\t\tisa = PBXResourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t9D5EAC151FDCD70300C14B46 /* geoip.dat in Resources */,\n\t\t\t\t9D5EAC161FDCD70300C14B46 /* geosite.dat in Resources */,\n\t\t\t\t9D3CEE6F209E070F0077CCFE /* AdvancedWindow.xib in Resources */,\n\t\t\t\t9D5EAC171FDCD70300C14B46 /* v2ctl in Resources */,\n\t\t\t\t9D5EAC181FDCD70300C14B46 /* v2ray in Resources */,\n\t\t\t\t9DB4FE951F205BEB00CCEE5F /* config-sample.plist in Resources */,\n\t\t\t\t95E524CB1C674CC80008BB12 /* simple.pac in Resources */,\n\t\t\t\t9504C0D11C66373400352520 /* install_helper.sh in Resources */,\n\t\t\t\t9504C0CF1C662DE300352520 /* v2rayx_sysconf in Resources */,\n\t\t\t\t9DA4A84120C14178000FF35D /* tcp_http_header_example.txt in Resources */,\n\t\t\t\t9504C0821C662C3000352520 /* Assets.xcassets in Resources */,\n\t\t\t\t9D7109611E0F43BD008A6362 /* Credits.rtf in Resources */,\n\t\t\t\t9504C0851C662C3000352520 /* MainMenu.xib in Resources */,\n\t\t\t\t9565E28B1DB25C010082658C /* TransportWindow.xib in Resources */,\n\t\t\t\t9504C08D1C662C9100352520 /* ConfigWindow.xib in Resources */,\n\t\t\t\t9D24863421CD9EC100C529AB /* config-sample_new.plist in Resources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXResourcesBuildPhase section */\n\n/* Begin PBXShellScriptBuildPhase section */\n\t\t953B60541DB3E31D00D40654 /* Run Script */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Run Script\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"\\\"$SRCROOT\\\"/V2RayX/dlcore.sh\\n\";\n\t\t};\n\t\t9DB94D77209D273A0001E9DD /* Run Script */ = {\n\t\t\tisa = PBXShellScriptBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t);\n\t\t\tinputPaths = (\n\t\t\t);\n\t\t\tname = \"Run Script\";\n\t\t\toutputPaths = (\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t\tshellPath = /bin/sh;\n\t\t\tshellScript = \"buildNumber=$(/usr/libexec/PlistBuddy -c \\\"Print CFBundleVersion\\\" \\\"$INFOPLIST_FILE\\\")\\nbuildNumber=$(($buildNumber + 1))\\n/usr/libexec/PlistBuddy -c \\\"Set :CFBundleVersion $buildNumber\\\" \\\"$INFOPLIST_FILE\\\"\\n\";\n\t\t};\n/* End PBXShellScriptBuildPhase section */\n\n/* Begin PBXSourcesBuildPhase section */\n\t\t9504C0741C662C3000352520 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t9DDC059621CA8EAD00C6C2D7 /* utilities.m in Sources */,\n\t\t\t\t9504C0901C662CBF00352520 /* ConfigWindowController.m in Sources */,\n\t\t\t\t9577E1B81C6B065E00093BD3 /* GCDWebServerFileRequest.m in Sources */,\n\t\t\t\t9577E1BE1C6B065E00093BD3 /* GCDWebServerStreamedResponse.m in Sources */,\n\t\t\t\t9DDC059121CA8CFF00C6C2D7 /* TransportWindowController.m in Sources */,\n\t\t\t\t9504C0801C662C3000352520 /* main.m in Sources */,\n\t\t\t\t9577E1BB1C6B065E00093BD3 /* GCDWebServerDataResponse.m in Sources */,\n\t\t\t\t9577E1BA1C6B065E00093BD3 /* GCDWebServerURLEncodedFormRequest.m in Sources */,\n\t\t\t\t9577E1B71C6B065E00093BD3 /* GCDWebServerDataRequest.m in Sources */,\n\t\t\t\t9577E1BC1C6B065E00093BD3 /* GCDWebServerErrorResponse.m in Sources */,\n\t\t\t\t9577E1BD1C6B065E00093BD3 /* GCDWebServerFileResponse.m in Sources */,\n\t\t\t\t9DBF54CF221615AD00B61D55 /* NSData+AES256Encryption.m in Sources */,\n\t\t\t\t9DEB294D21CB64CF0052D2BB /* AdvancedWindowController.m in Sources */,\n\t\t\t\t9577E1B31C6B065E00093BD3 /* GCDWebServerConnection.m in Sources */,\n\t\t\t\t9504C07D1C662C3000352520 /* AppDelegate.m in Sources */,\n\t\t\t\t9577E1B51C6B065E00093BD3 /* GCDWebServerRequest.m in Sources */,\n\t\t\t\t9577E1B91C6B065E00093BD3 /* GCDWebServerMultiPartFormRequest.m in Sources */,\n\t\t\t\t9577E1B61C6B065E00093BD3 /* GCDWebServerResponse.m in Sources */,\n\t\t\t\t9577E1B21C6B065E00093BD3 /* GCDWebServer.m in Sources */,\n\t\t\t\t9D71D61721D06006007DA052 /* ConfigImporter.m in Sources */,\n\t\t\t\t9504C0D41C66511B00352520 /* ServerProfile.m in Sources */,\n\t\t\t\t9577E1B41C6B065E00093BD3 /* GCDWebServerFunctions.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t9504C0C21C662DB400352520 /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t9504C0C91C662DB500352520 /* main.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n\t\t9D7DFE4D1EBEC947001FECBD /* Sources */ = {\n\t\t\tisa = PBXSourcesBuildPhase;\n\t\t\tbuildActionMask = 2147483647;\n\t\t\tfiles = (\n\t\t\t\t9D7DFE541EBEC947001FECBD /* main.m in Sources */,\n\t\t\t);\n\t\t\trunOnlyForDeploymentPostprocessing = 0;\n\t\t};\n/* End PBXSourcesBuildPhase section */\n\n/* Begin PBXTargetDependency section */\n\t\t9504C0CE1C662DC500352520 /* PBXTargetDependency */ = {\n\t\t\tisa = PBXTargetDependency;\n\t\t\ttarget = 9504C0C51C662DB400352520 /* v2rayx_sysconf */;\n\t\t\ttargetProxy = 9504C0CD1C662DC500352520 /* PBXContainerItemProxy */;\n\t\t};\n/* End PBXTargetDependency section */\n\n/* Begin PBXVariantGroup section */\n\t\t9504C0831C662C3000352520 /* MainMenu.xib */ = {\n\t\t\tisa = PBXVariantGroup;\n\t\t\tchildren = (\n\t\t\t\t9504C0841C662C3000352520 /* Base */,\n\t\t\t);\n\t\t\tname = MainMenu.xib;\n\t\t\tsourceTree = \"<group>\";\n\t\t};\n/* End PBXVariantGroup section */\n\n/* Begin XCBuildConfiguration section */\n\t\t9504C0871C662C3000352520 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = dwarf;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tENABLE_TESTABILITY = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_DYNAMIC_NO_PIC = NO;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_OPTIMIZATION_LEVEL = 0;\n\t\t\t\tGCC_PREPROCESSOR_DEFINITIONS = (\n\t\t\t\t\t\"DEBUG=1\",\n\t\t\t\t\t\"$(inherited)\",\n\t\t\t\t);\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.12;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = YES;\n\t\t\t\tONLY_ACTIVE_ARCH = YES;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t9504C0881C662C3000352520 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tALWAYS_SEARCH_USER_PATHS = NO;\n\t\t\t\tCLANG_CXX_LANGUAGE_STANDARD = \"gnu++0x\";\n\t\t\t\tCLANG_CXX_LIBRARY = \"libc++\";\n\t\t\t\tCLANG_ENABLE_MODULES = YES;\n\t\t\t\tCLANG_ENABLE_OBJC_ARC = YES;\n\t\t\t\tCLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;\n\t\t\t\tCLANG_WARN_BOOL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_COMMA = YES;\n\t\t\t\tCLANG_WARN_CONSTANT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;\n\t\t\t\tCLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;\n\t\t\t\tCLANG_WARN_EMPTY_BODY = YES;\n\t\t\t\tCLANG_WARN_ENUM_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_INFINITE_RECURSION = YES;\n\t\t\t\tCLANG_WARN_INT_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;\n\t\t\t\tCLANG_WARN_OBJC_LITERAL_CONVERSION = YES;\n\t\t\t\tCLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;\n\t\t\t\tCLANG_WARN_RANGE_LOOP_ANALYSIS = YES;\n\t\t\t\tCLANG_WARN_STRICT_PROTOTYPES = YES;\n\t\t\t\tCLANG_WARN_SUSPICIOUS_MOVE = YES;\n\t\t\t\tCLANG_WARN_UNREACHABLE_CODE = YES;\n\t\t\t\tCLANG_WARN__DUPLICATE_METHOD_MATCH = YES;\n\t\t\t\tCODE_SIGN_IDENTITY = \"-\";\n\t\t\t\tCOPY_PHASE_STRIP = NO;\n\t\t\t\tDEBUG_INFORMATION_FORMAT = \"dwarf-with-dsym\";\n\t\t\t\tENABLE_NS_ASSERTIONS = NO;\n\t\t\t\tENABLE_STRICT_OBJC_MSGSEND = YES;\n\t\t\t\tGCC_C_LANGUAGE_STANDARD = gnu99;\n\t\t\t\tGCC_NO_COMMON_BLOCKS = YES;\n\t\t\t\tGCC_WARN_64_TO_32_BIT_CONVERSION = YES;\n\t\t\t\tGCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;\n\t\t\t\tGCC_WARN_UNDECLARED_SELECTOR = YES;\n\t\t\t\tGCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;\n\t\t\t\tGCC_WARN_UNUSED_FUNCTION = YES;\n\t\t\t\tGCC_WARN_UNUSED_VARIABLE = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.12;\n\t\t\t\tMTL_ENABLE_DEBUG_INFO = NO;\n\t\t\t\tSDKROOT = macosx;\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t9504C08A1C662C3000352520 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tINFOPLIST_FILE = V2RayX/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = cenmrev.V2RayX;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t9504C08B1C662C3000352520 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;\n\t\t\t\tCOMBINE_HIDPI_IMAGES = YES;\n\t\t\t\tINFOPLIST_FILE = V2RayX/Info.plist;\n\t\t\t\tLD_RUNPATH_SEARCH_PATHS = \"$(inherited) @executable_path/../Frameworks\";\n\t\t\t\tPRODUCT_BUNDLE_IDENTIFIER = cenmrev.V2RayX;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t9504C0CB1C662DB500352520 /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t9504C0CC1C662DB500352520 /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n\t\t9D7DFE551EBEC947001FECBD /* Debug */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.12;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Debug;\n\t\t};\n\t\t9D7DFE561EBEC947001FECBD /* Release */ = {\n\t\t\tisa = XCBuildConfiguration;\n\t\t\tbuildSettings = {\n\t\t\t\tCLANG_ANALYZER_NONNULL = YES;\n\t\t\t\tCLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;\n\t\t\t\tCLANG_WARN_DOCUMENTATION_COMMENTS = YES;\n\t\t\t\tMACOSX_DEPLOYMENT_TARGET = 10.12;\n\t\t\t\tPRODUCT_NAME = \"$(TARGET_NAME)\";\n\t\t\t};\n\t\t\tname = Release;\n\t\t};\n/* End XCBuildConfiguration section */\n\n/* Begin XCConfigurationList section */\n\t\t9504C0731C662C3000352520 /* Build configuration list for PBXProject \"V2RayX\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t9504C0871C662C3000352520 /* Debug */,\n\t\t\t\t9504C0881C662C3000352520 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t9504C0891C662C3000352520 /* Build configuration list for PBXNativeTarget \"V2RayX\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t9504C08A1C662C3000352520 /* Debug */,\n\t\t\t\t9504C08B1C662C3000352520 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t9504C0CA1C662DB500352520 /* Build configuration list for PBXNativeTarget \"v2rayx_sysconf\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t9504C0CB1C662DB500352520 /* Debug */,\n\t\t\t\t9504C0CC1C662DB500352520 /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n\t\t9D7DFE571EBEC947001FECBD /* Build configuration list for PBXNativeTarget \"jsonplist\" */ = {\n\t\t\tisa = XCConfigurationList;\n\t\t\tbuildConfigurations = (\n\t\t\t\t9D7DFE551EBEC947001FECBD /* Debug */,\n\t\t\t\t9D7DFE561EBEC947001FECBD /* Release */,\n\t\t\t);\n\t\t\tdefaultConfigurationIsVisible = 0;\n\t\t\tdefaultConfigurationName = Release;\n\t\t};\n/* End XCConfigurationList section */\n\t};\n\trootObject = 9504C0701C662C3000352520 /* Project object */;\n}\n"
  },
  {
    "path": "compilefromsource.sh",
    "content": "#!/bin/sh\n\n#  compilefromsource.sh\n#  V2RayX\n#\n#  Created by Cenmrev on 10/15/16.\n#  Copyright © 2016 Cenmrev. All rights reserved.\n\n# http://apple.stackexchange.com/questions/50844/how-to-move-files-to-trash-from-command-line\nfunction moveToTrash () {\n  local path\n  for path in \"$@\"; do\n    # ignore any arguments\n    if [[ \"$path\" = -* ]]; then :\n    else\n      # remove trailing slash\n      local mindtrailingslash=${path%/}\n      # remove preceding directory path\n      local dst=${mindtrailingslash##*/}\n      # append the time if necessary\n      while [ -e ~/.Trash/\"$dst\" ]; do\n        dst=\"`expr \"$dst\" : '\\(.*\\)\\.[^.]*'` `date +%H-%M-%S`.`expr \"$dst\" : '.*\\.\\([^.]*\\)'`\"\n      done\n      mv \"$path\" ~/.Trash/\"$dst\"\n    fi\n  done\n}\n\nRED='\\033[0;31m'\nGREEN='\\033[0;32m'\nBOLD='\\033[1m'\nNORMAL='\\033[0m'\ndatetime=$(date \"+%Y-%m-%dTIME%H%M%S\")\nif [[ ! -f /Applications/Xcode.app/Contents/MacOS/Xcode ]]; then\n    echo \"${RED}Xcode is needed to build V2RayX, Please install Xcode from App Store!${NORMAL}\"\n    echo \"${RED}编译 V2RayX 需要 Xcode.app，请从 App Store 里安装 Xcode.${NORMAL}\"\nelse\n    echo \"${BOLD}-- Downloading source code --${NORMAL}\"\n    echo \"${BOLD}-- 正在下载源码 --${NORMAL}\"\n    git clone --recursive https://github.com/Cenmrev/V2RayX.git \"V2RayX${datetime}\"\n    cd \"V2RayX${datetime}\"\n    echo \"${BOLD}-- Start building V2RayX --${NORMAL}\"\n    echo \"${BOLD}-- 开始编译 V2RayX --${NORMAL}\"\n    xcodebuild -project V2RayX.xcodeproj -target V2RayX -configuration Release\n    if [[ $? == 0 ]]; then\n        echo \"${GREEN}-- Build succeeded --${NORMAL}\"\n        echo \"${GREEN}-- 编译成功 --${NORMAL}\"\n        echo \"${BOLD}V2RayX.app: $(pwd)/build/Release/V2RayX.app${NORMAL}\"\n    else\n        echo \"${RED}-- Build failed --${NORMAL}\"\n        echo \"${RED}-- 编译失败 --${NORMAL}\"\n    fi\nfi\n\n\n"
  },
  {
    "path": "jsonplist/main.m",
    "content": "//\n//  main.m\n//  jsonplist\n//\n//  Copyright © 2017 Project V2Ray. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n\nint main(int argc, const char * argv[]) {\n    @autoreleasepool {\n        if (argc < 2) {\n            printf(\"Please provide at least one input file!\\n\");\n            return 1;\n        }\n        NSString* imputFile = [NSString stringWithFormat:@\"%s\", argv[1]];\n        NSInteger length = [imputFile length];\n        if ([[[imputFile substringFromIndex:length - 4] lowercaseString] isEqualToString:@\"json\"]) {\n            NSDictionary* dict = [NSJSONSerialization JSONObjectWithData:\n                                  [NSData dataWithContentsOfFile:imputFile] options:NSJSONReadingMutableLeaves error:nil];\n            NSString* targetFile = [[imputFile substringToIndex:length - 4] stringByAppendingString:@\"plist\"];\n            [dict writeToFile:targetFile  atomically:NO];\n            printf(\"%s\\n\", [targetFile cStringUsingEncoding:NSUTF8StringEncoding]);\n            return 0;\n        } else if ([[[imputFile substringFromIndex:length - 5] lowercaseString] isEqualToString:@\"plist\"]) {\n            NSDictionary* dict = [[NSDictionary alloc] initWithContentsOfFile:imputFile];\n            NSData* jsonData = [NSJSONSerialization dataWithJSONObject:dict options:NSJSONWritingPrettyPrinted error:nil];\n            NSString* targetFile = [[imputFile substringToIndex:length - 5] stringByAppendingString:@\".plist\"];\n            [jsonData writeToFile:targetFile atomically:NO];\n            printf(\"%s\\n\", [targetFile cStringUsingEncoding:NSUTF8StringEncoding]);\n            return 0;\n        } else {\n            printf(\"Only json and plist are supported!\\n\");\n            return 1;\n        }\n        \n    }\n    return 0;\n}\n"
  },
  {
    "path": "prepare_zip.sh",
    "content": "isbeta=$(git describe --abbrev=0 --tags | grep beta)\nif [[ \"$isbeta\" != \"\" ]] \nthen \n    xcodebuild -project V2RayX.xcodeproj -target V2RayX -configuration Debug -s\n    cd build/Debug/\nelse\n    cd build/Release/\nfi\nzip -r V2RayX.app.zip V2RayX.app\ncd ../.."
  },
  {
    "path": "v2rayx_sysconf/main.m",
    "content": "//\n//  main.m\n//  v2rayx_sysconf\n//\n//  Copyright © 2016年 Cenmrev. All rights reserved.\n//\n\n#import <Foundation/Foundation.h>\n#import <SystemConfiguration/SystemConfiguration.h>\n#import \"sysconf_version.h\"\n\n#define INFO \"v2rayx_sysconf\\n the helper tool for V2RayX, modified from clowwindy's shadowsocks_sysconf.\\nusage: v2rayx_sysconf [options]\\noff\\t turn off proxy\\nauto\\t auto proxy change\\nglobal port \\t global proxy at the specified port number\\n\"\n\nint main(int argc, const char * argv[])\n{\n    if (argc < 2 || argc >4) {\n        printf(INFO);\n        return 1;\n    }\n    @autoreleasepool {\n        NSString *mode = [NSString stringWithUTF8String:argv[1]];\n        \n        NSSet *support_args = [NSSet setWithObjects:@\"off\", @\"auto\", @\"global\", @\"save\", @\"restore\", @\"-v\", nil];\n        if (![support_args containsObject:mode]) {\n            printf(INFO);\n            return 1;\n        }\n        \n        if ([mode isEqualToString:@\"-v\"]) {\n            printf(\"%s\", [VERSION UTF8String]);\n            return 0;\n        }\n        \n        static AuthorizationRef authRef;\n        static AuthorizationFlags authFlags;\n        authFlags = kAuthorizationFlagDefaults\n        | kAuthorizationFlagExtendRights\n        | kAuthorizationFlagInteractionAllowed\n        | kAuthorizationFlagPreAuthorize;\n        OSStatus authErr = AuthorizationCreate(nil, kAuthorizationEmptyEnvironment, authFlags, &authRef);\n        if (authErr != noErr) {\n            authRef = nil;\n        } else {\n            if (authRef == NULL) {\n                NSLog(@\"No authorization has been granted to modify network configuration\");\n                return 1;\n            }\n            \n            SCPreferencesRef prefRef = SCPreferencesCreateWithAuthorization(nil, CFSTR(\"V2RayX\"), nil, authRef);\n            \n            NSDictionary *sets = (__bridge NSDictionary *)SCPreferencesGetValue(prefRef, kSCPrefNetworkServices);\n            \n            NSDictionary* originalSets;\n            if ([mode isEqualToString:@\"save\"]) {\n                [sets writeToURL:[NSURL fileURLWithPath:[NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/system_proxy_backup.plist\",NSHomeDirectory()]] atomically:NO];\n                return 0;\n            }\n            \n            // 遍历系统中的网络设备列表，设置 AirPort 和 Ethernet 的代理\n            if([mode isEqualToString:@\"restore\"]) {\n                originalSets = [NSDictionary dictionaryWithContentsOfURL:[NSURL fileURLWithPath:[NSString stringWithFormat:@\"%@/Library/Application Support/V2RayX/system_proxy_backup.plist\",NSHomeDirectory()]]];\n            }\n            for (NSString *key in [sets allKeys]) {\n                NSMutableDictionary *dict = [sets objectForKey:key];\n                NSString *hardware = [dict valueForKeyPath:@\"Interface.Hardware\"];\n                //        NSLog(@\"%@\", hardware);\n                if ([hardware isEqualToString:@\"AirPort\"] || [hardware isEqualToString:@\"Wi-Fi\"] || [hardware isEqualToString:@\"Ethernet\"]) {\n                    \n                    NSMutableDictionary *proxies = [sets[key][@\"Proxies\"] mutableCopy];\n                    [proxies setObject:[NSNumber numberWithInt:0] forKey:(NSString *)kCFNetworkProxiesHTTPEnable];\n                    [proxies setObject:[NSNumber numberWithInt:0] forKey:(NSString *)kCFNetworkProxiesHTTPSEnable];\n                    [proxies setObject:[NSNumber numberWithInt:0] forKey:(NSString *)kCFNetworkProxiesProxyAutoConfigEnable];\n                    [proxies setObject:[NSNumber numberWithInt:0] forKey:(NSString *)kCFNetworkProxiesSOCKSEnable];\n                    \n                    if ([mode isEqualToString:@\"restore\"]) {\n                        if ([originalSets objectForKey:key]){\n                            proxies = originalSets[key][@\"Proxies\"];\n                        }\n                    }\n                    \n                    if ([mode isEqualToString:@\"auto\"]) {\n                        \n                        [proxies setObject:@\"http://127.0.0.1:8070/proxy.pac\" forKey:(NSString *)kCFNetworkProxiesProxyAutoConfigURLString];\n                        [proxies setObject:[NSNumber numberWithInt:1] forKey:(NSString *)kCFNetworkProxiesProxyAutoConfigEnable];\n                        \n                    } else if ([mode isEqualToString:@\"global\"]) {\n                        int localPort = 0;\n                        int httpPort = 0;\n                        if (sscanf (argv[2], \"%i\", &localPort)!=1 || localPort > 65535 || localPort < 0) {\n                            printf (\"error - not a valid port number\");\n                            return 1;\n                        }\n                        if (sscanf (argv[3], \"%i\", &httpPort)!=1 || httpPort > 65535 || httpPort < 0) {\n                            printf (\"error - not a valid port number\");\n                            return 1;\n                        }\n                        NSLog(@\"in helper %d %d\", localPort, httpPort);\n                        if (localPort > 0) {\n                            [proxies setObject:@\"127.0.0.1\" forKey:(NSString *)\n                             kCFNetworkProxiesSOCKSProxy];\n                            [proxies setObject:[NSNumber numberWithInt:localPort] forKey:(NSString*)\n                             kCFNetworkProxiesSOCKSPort];\n                            [proxies setObject:[NSNumber numberWithInt:1] forKey:(NSString*)\n                             kCFNetworkProxiesSOCKSEnable];\n                        }\n                        if (httpPort > 0) {\n                            [proxies setObject:@\"127.0.0.1\" forKey:(NSString *)\n                             kCFNetworkProxiesHTTPProxy];\n                            [proxies setObject:@\"127.0.0.1\" forKey:(NSString *)\n                             kCFNetworkProxiesHTTPSProxy];\n                            [proxies setObject:[NSNumber numberWithInt:httpPort] forKey:(NSString*)\n                             kCFNetworkProxiesHTTPPort];\n                            [proxies setObject:[NSNumber numberWithInt:httpPort] forKey:(NSString*)\n                             kCFNetworkProxiesHTTPSPort];\n                            [proxies setObject:[NSNumber numberWithInt:1] forKey:(NSString*)\n                             kCFNetworkProxiesHTTPEnable];\n                            [proxies setObject:[NSNumber numberWithInt:1] forKey:(NSString*)\n                             kCFNetworkProxiesHTTPSEnable];\n                        }\n                    }\n                    \n                    SCPreferencesPathSetValue(prefRef, (__bridge CFStringRef)[NSString stringWithFormat:@\"/%@/%@/%@\", kSCPrefNetworkServices, key, kSCEntNetProxies], (__bridge CFDictionaryRef)proxies);\n                }\n            }\n            \n            SCPreferencesCommitChanges(prefRef);\n            SCPreferencesApplyChanges(prefRef);\n            SCPreferencesSynchronize(prefRef);\n            \n        }\n        \n        printf(\"proxy set to %s\\n\", [mode UTF8String]);\n    }\n    \n    return 0;\n}\n"
  },
  {
    "path": "v2rayx_sysconf/sysconf_version.h",
    "content": "//\n//  sysconf_version.h\n//  V2RayX\n//\n//\n\n#ifndef sysconf_version_h\n#define sysconf_version_h\n\n\n#define VERSION @\"v2rayx_sysconf 1.4.0\"\n\n#endif /* sysconf_version_h */\n"
  }
]