[
  {
    "path": ".gitignore",
    "content": "*.komodo*"
  },
  {
    "path": "AUTHORS.md",
    "content": "# Authors\n\n* Ben Curtis: <no-spam @ no-domain . com>\n\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "owncloud-ownnote (0.0.1)\n* First release\n"
  },
  {
    "path": "COPYING",
    "content": "                    GNU AFFERO GENERAL PUBLIC LICENSE\n                       Version 3, 19 November 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 Affero General Public License is a free, copyleft license for\nsoftware and other kinds of works, specifically designed to ensure\ncooperation with the community in the case of network server software.\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,\nour General Public Licenses are 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.\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  Developers that use our General Public Licenses protect your rights\nwith two steps: (1) assert copyright on the software, and (2) offer\nyou this License which gives you legal permission to copy, distribute\nand/or modify the software.\n\n  A secondary benefit of defending all users' freedom is that\nimprovements made in alternate versions of the program, if they\nreceive widespread use, become available for other developers to\nincorporate.  Many developers of free software are heartened and\nencouraged by the resulting cooperation.  However, in the case of\nsoftware used on network servers, this result may fail to come about.\nThe GNU General Public License permits making a modified version and\nletting the public access it on a server without ever releasing its\nsource code to the public.\n\n  The GNU Affero General Public License is designed specifically to\nensure that, in such cases, the modified source code becomes available\nto the community.  It requires the operator of a network server to\nprovide the source code of the modified version running there to the\nusers of that server.  Therefore, public use of a modified version, on\na publicly accessible server, gives the public access to the source\ncode of the modified version.\n\n  An older license, called the Affero General Public License and\npublished by Affero, was designed to accomplish similar goals.  This is\na different license, not a version of the Affero GPL, but Affero has\nreleased a new version of the Affero GPL which permits relicensing under\nthis license.\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 Affero 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. Remote Network Interaction; Use with the GNU General Public License.\n\n  Notwithstanding any other provision of this License, if you modify the\nProgram, your modified version must prominently offer all users\ninteracting with it remotely through a computer network (if your version\nsupports such interaction) an opportunity to receive the Corresponding\nSource of your version by providing access to the Corresponding Source\nfrom a network server at no charge, through some standard or customary\nmeans of facilitating copying of software.  This Corresponding Source\nshall include the Corresponding Source for any work covered by version 3\nof the GNU General Public License that is incorporated pursuant to the\nfollowing paragraph.\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 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 work with which it is combined will remain governed by version\n3 of the GNU General Public License.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU Affero General Public License from time to time.  Such new versions\nwill be 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 Affero 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 Affero 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 Affero 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 Affero 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 Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero 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 your software can interact with users remotely through a computer\nnetwork, you should also make sure that it provides a way for users to\nget its source.  For example, if your program is a web application, its\ninterface could display a \"Source\" link that leads users to an archive\nof the code.  There are many ways you could offer source, and different\nsolutions will be better for different programs; see section 13 for the\nspecific requirements.\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 AGPL, see\n<http://www.gnu.org/licenses/>."
  },
  {
    "path": "README.md",
    "content": "# ownNote\nThe official release information and downloads can be found at: https://apps.owncloud.com/content/show.php/ownNote+-+Notes+Application?content=168512\n\n## Installation\n- Place this app in **owncloud/apps/ownnote** (Rename the extracted ZIP to \"ownnote\" or you will receive errors)\n- Note: *custom_csp_policy* changes are no longer required\n\n## Nextcloud users\nThis app has been forked and development for Nextcloud can be found here: https://github.com/brantje/ownnote\n\n## Mobile Apps\nownNote for Android in the Google Play store: http://goo.gl/pHjQY9\n\nownNote for iOS: *In development*\n\n\n## Importing from Evernote or other html notes\nThe import process will take HTML files on your local hard drive and import the images into the notes as Base64. To import notes:\n- Export your notes from Evernote using default settings as individual *html* files\n     - If you are importing notes that are not from Evernote, ensure they use the *html* extension, not the *htm* extension. \n- Copy the *html* files and the folders created containing the images into the */Notes* folder in ownCloud\n- Load the Notes listing screen. This will import all of the images into the *html* notes, and rename them to *htm*\n- Once the rename has taken place, you can safely delete all the image folders that were copied\n     - NOTE: Windows Explorer links the *html* file to it folder of images. If you delete the folder, Windows will sometimes delete the newly renamed *htm* file as well. It is recommended you delete the folders from within the Web Interface to be safe. \n     \n"
  },
  {
    "path": "admin.php",
    "content": "<?php\n\nOCP\\User::checkAdminUser();\n\n$tmpl = new OCP\\Template('ownnote', 'admin');\n$tmpl->assign('folder', \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', ''));\n\nreturn $tmpl -> fetchPage();\n\n"
  },
  {
    "path": "appinfo/app.php",
    "content": "<?php\n/**\n * ownCloud - ownnote\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Ben Curtis <ownclouddev@nosolutions.com>\n * @copyright Ben Curtis 2015\n */\n\nnamespace OCA\\OwnNote\\AppInfo;\n\nuse \\OCP\\IURLGenerator;\n\n\\OCP\\App::registerAdmin('ownnote', 'admin');\n\n\\OC::$server->getNavigationManager()->add(array(\n    // the string under which your app will be referenced in owncloud\n    'id' => 'ownnote',\n\n    // sorting weight for the navigation. The higher the number, the higher\n    // will it be listed in the navigation\n    'order' => 10,\n\n    // the route that will be shown on startup\n    'href' => \\OC::$server->getURLGenerator()->linkToRoute('ownnote.page.index'),\n\n    // the icon that will be shown in the navigation\n    // this file needs to exist in img/\n    'icon' => \\OC::$server->getURLGenerator()->imagePath('ownnote', 'app.svg'),\n\n    // the title of your application. This will be used in the\n    // navigation or on the settings page of your app\n    'name' => \\OCP\\Util::getL10N('ownnote')->t('Notes')\n));\n"
  },
  {
    "path": "appinfo/application.php",
    "content": "<?php\n/**\n * ownCloud - ownnote\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Ben Curtis <ownclouddev@nosolutions.com>\n * @copyright Ben Curtis 2015\n */\n\nnamespace OCA\\OwnNote\\AppInfo;\n\n\nuse \\OCP\\AppFramework\\App;\nuse \\OCP\\IContainer;\n\nuse \\OCA\\OwnNote\\Controller\\PageController;\nuse \\OCA\\OwnNote\\Controller\\OwnnoteApiController;\nuse \\OCA\\OwnNote\\Controller\\OwnnoteAjaxController;\n\n\nclass Application extends App {\n\n\n\tpublic function __construct (array $urlParams=array()) {\n\t\tparent::__construct('ownnote', $urlParams);\n\n\t\t$container = $this->getContainer();\n\n\t\t/**\n\t\t * Controllers\n\t\t */\n\t\t$container->registerService('PageController', function(IContainer $c) {\n\t\t\treturn new PageController(\n\t\t\t\t$c->query('AppName'), \n\t\t\t\t$c->query('Request'),\n\t\t\t\t$c->query('UserId')\n\t\t\t);\n\t\t});\n\n                $container->registerService('OwnnoteApiController', function($c){\n                        return new OwnnoteApiController(\n                                $c->query('AppName'),\n                                $c->query('Request')\n                        );\n                });\n\n                $container->registerService('OwnnoteAjaxController', function($c){\n                        return new OwnnoteAjaxController(\n                                $c->query('AppName'),\n                                $c->query('Request')\n                        );\n                });\n\n\t\t/**\n\t\t * Core\n\t\t */\n\t\t$container->registerService('UserId', function(IContainer $c) {\n\t\t\treturn \\OCP\\User::getUser();\n\t\t});\t\t\n\t}\n}\n"
  },
  {
    "path": "appinfo/database.xml",
    "content": "<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\n<database>\n\t<name>ownnote</name>\n\t<create>true</create>\n\t<overwrite>false</overwrite>\n\t<charset>utf8</charset>\n\t<table>\n\t\t<name>*dbprefix*ownnote</name>\n\t\t<declaration>\n\t\t\t<field>\n\t\t\t\t<name>id</name>\n\t\t\t\t<type>integer</type>\n\t\t\t\t<default>0</default>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t\t<autoincrement>1</autoincrement>\n\t\t\t\t<length>32</length>\n\t\t\t</field>\n\t\t\t<field>\n\t\t\t\t<name>uid</name>\n\t\t\t\t<type>text</type>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t\t<length>255</length>\n\t\t\t</field>\n\t\t\t<field>\n\t\t\t\t<name>name</name>\n\t\t\t\t<type>text</type>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t\t<length>255</length>\n\t\t\t</field>\n\t\t\t<field>\n\t\t\t\t<name>grouping</name>\n\t\t\t\t<type>text</type>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t\t<length>255</length>\n\t\t\t</field>\n\t\t\t<field>\n\t\t\t\t<name>shared</name>\n\t\t\t\t<type>clob</type>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t\t<default></default>\n\t\t\t</field>\n\t\t\t<field>\n\t\t\t\t<name>mtime</name>\n\t\t\t\t<type>integer</type>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t\t<length>32</length>\n\t\t\t</field>\n\t\t\t<field>\n\t\t\t\t<name>deleted</name>\n\t\t\t\t<type>integer</type>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t\t<default>0</default>\n\t\t\t\t<length>1</length>\n\t\t\t</field>\n\t\t\t<field>\n\t\t\t\t<name>note</name>\n\t\t\t\t<type>clob</type>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t</field>\n\t\t</declaration>\n\t</table>\n\t<table>\n\t\t<name>*dbprefix*ownnote_parts</name>\n\t\t<declaration>\n\t\t\t<field>\n\t\t\t\t<name>pid</name>\n\t\t\t\t<type>integer</type>\n\t\t\t\t<default>0</default>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t\t<autoincrement>1</autoincrement>\n\t\t\t\t<length>32</length>\n\t\t\t</field>\n\t\t\t<field>\n\t\t\t\t<name>id</name>\n\t\t\t\t<type>integer</type>\n\t\t\t\t<default>0</default>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t\t<length>32</length>\n\t\t\t</field>\n\t\t\t<field>\n\t\t\t\t<name>note</name>\n\t\t\t\t<type>clob</type>\n\t\t\t\t<notnull>true</notnull>\n\t\t\t</field>\n\t\t</declaration>\n\t</table>\n</database>\n"
  },
  {
    "path": "appinfo/info.xml",
    "content": "<?xml version=\"1.0\"?>\n<info>\n    <id>ownnote</id>\n    <name>OwnNote</name>\n    <description></description>\n    <licence>AGPL</licence>\n    <author>Ben Curtis</author>\n    <version>1.08</version>\n    <requiremin>7.0.3</requiremin>\n    <dependencies>\n        <lib>curl</lib>\n        <owncloud min-version=\"7.0.3\" max-version=\"10.0.10\" />\n        <nextcloud min-version=\"9.1\" max-version=\"17\" />\n    </dependencies>\n</info>\n"
  },
  {
    "path": "appinfo/routes.php",
    "content": "<?php\n/**\n * ownCloud - ownnote\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Ben Curtis <ownclouddev@nosolutions.com>\n * @copyright Ben Curtis 2015\n */\n\nnamespace OCA\\OwnNote\\AppInfo;\n\n/**\n * Create your routes in here. The name is the lowercase name of the controller\n * without the controller part, the stuff after the hash is the method.\n * e.g. page#index -> PageController->index()\n *\n * The controller class has to be registered in the application.php file since\n * it's instantiated in there\n */\n$application = new Application();\n\n$application->registerRoutes($this, array('routes' => array(\n\tarray('name' => 'page#index', 'url' => '/', 'verb' => 'GET'),\n\tarray('name' => 'ownnote_ajax#ajaxsetval', 'url' => '/ajax/v0.2/ajaxsetval', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_api#index', 'url' => '/api/v0.2/ownnote', 'verb' => 'GET'),\n\tarray('name' => 'ownnote_ajax#ajaxindex', 'url' => '/ajax/v0.2/ownnote/ajaxindex', 'verb' => 'GET'),\n\tarray('name' => 'ownnote_api#remoteindex', 'url' => '/api/v0.2/ownnote/remoteindex', 'verb' => 'GET'),\n\tarray('name' => 'ownnote_api#mobileindex', 'url' => '/api/v0.2/ownnote/mobileindex', 'verb' => 'GET'),\n\tarray('name' => 'ownnote_api#announcement', 'url' => '/api/v0.2/ownnote/announcement', 'verb' => 'GET'),\n\tarray('name' => 'ownnote_ajax#ajaxannouncement', 'url' => '/ajax/v0.2/ownnote/ajaxannouncement', 'verb' => 'GET'),\n\tarray('name' => 'ownnote_api#version', 'url' => '/api/v0.2/ownnote/version', 'verb' => 'GET'),\n\tarray('name' => 'ownnote_ajax#ajaxversion', 'url' => '/ajax/v0.2/ownnote/ajaxversion', 'verb' => 'GET'),\n\tarray('name' => 'ownnote_api#ren', 'url' => '/api/v0.2/ownnote/ren', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_ajax#ajaxren', 'url' => '/ajax/v0.2/ownnote/ajaxren', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_api#edit', 'url' => '/api/v0.2/ownnote/edit', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_ajax#ajaxedit', 'url' => '/ajax/v0.2/ownnote/ajaxedit', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_api#del', 'url' => '/api/v0.2/ownnote/del', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_ajax#ajaxdel', 'url' => '/ajax/v0.2/ownnote/ajaxdel', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_api#save', 'url' => '/api/v0.2/ownnote/save', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_ajax#ajaxsave', 'url' => '/ajax/v0.2/ownnote/ajaxsave', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_api#create', 'url' => '/api/v0.2/ownnote/create', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_ajax#ajaxcreate', 'url' => '/ajax/v0.2/ownnote/ajaxcreate', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_api#delgroup', 'url' => '/api/v0.2/ownnote/delgroup', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_ajax#ajaxdelgroup', 'url' => '/ajax/v0.2/ownnote/ajaxdelgroup', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_api#rengroup', 'url' => '/api/v0.2/ownnote/rengroup', 'verb' => 'POST'),\n\tarray('name' => 'ownnote_ajax#ajaxrengroup', 'url' => '/ajax/v0.2/ownnote/ajaxrengroup', 'verb' => 'POST'),\n        array('name' => 'ownnote_api#preflighted_cors', 'url' => '/api/v0.2/{path}', 'verb' => 'OPTIONS', 'requirements' => array('path' => '.+')),\n)));\n"
  },
  {
    "path": "appinfo/version",
    "content": "1.08\n"
  },
  {
    "path": "controller/ownnoteajaxcontroller.php",
    "content": "<?php\n/**\n * ownCloud - ownnote\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Ben Curtis <ownclouddev@nosolutions.com>\n * @copyright Ben Curtis 2015\n */\n\nnamespace OCA\\OwnNote\\Controller;\n\nuse \\OCP\\AppFramework\\ApiController;\nuse \\OCP\\AppFramework\\Http\\JSONResponse;\nuse \\OCP\\AppFramework\\Http\\Response;\nuse \\OCP\\AppFramework\\Http;\nuse \\OCP\\IRequest;\nuse \\OCA\\OwnNote\\Lib\\Backend;\n\nclass OwnnoteAjaxController extends ApiController {\n\n\tprivate $backend;\n\n\n\tpublic function __construct($appName, IRequest $request){\n\t\tparent::__construct($appName, $request);\n\t\t$this->backend = new Backend();\n\t}\n\n\t/**\n\t* AJAX FUNCTIONS\n\t*/\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxindex() {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\treturn $this->backend->getListing($FOLDER, false);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxannouncement() {\n\t\treturn $this->backend->getAnnouncement();\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxcreate($name, $group) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($name) && isset($group))\n\t\t\treturn $this->backend->createNote($FOLDER, $name, $group);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxdel($name, $group) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($name) && isset($group))\n\t\t\treturn $this->backend->deleteNote($FOLDER, $name, $group);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxedit($name, $group) {\n\t\tif (isset($name) && isset($group))\n\t\t\treturn $this->backend->editNote($name, $group);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxsave($name, $group, $content) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($name) && isset($group) && isset($content))\n\t\t\treturn $this->backend->saveNote($FOLDER, $name, $group, $content, 0);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxren($name, $group, $newname, $newgroup) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($name) && isset($newname) && isset($group) && isset($newgroup))\n\t\t\treturn $this->backend->renameNote($FOLDER, $name, $group, $newname, $newgroup);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxdelgroup($group) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($group))\n\t\t\treturn $this->backend->deleteGroup($FOLDER, $group);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxrengroup($group, $newgroup) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($group) && isset($newgroup))\n\t\t\treturn $this->backend->renameGroup($FOLDER, $group, $newgroup);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t*/\n\tpublic function ajaxversion() {\n\t\treturn $this->backend->getVersion();\n\t}\n\n\t/**\n\t*/\n\tpublic function ajaxsetval($field, $value) {\n\t\treturn $this->backend->setAdminVal($field, $value);\n\t}\n}\n"
  },
  {
    "path": "controller/ownnoteapicontroller.php",
    "content": "<?php\n/**\n * ownCloud - ownnote\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Ben Curtis <ownclouddev@nosolutions.com>\n * @copyright Ben Curtis 2015\n */\n\nnamespace OCA\\OwnNote\\Controller;\n\nuse \\OCP\\AppFramework\\ApiController;\nuse \\OCP\\AppFramework\\Http\\JSONResponse;\nuse \\OCP\\AppFramework\\Http\\Response;\nuse \\OCP\\AppFramework\\Http;\nuse \\OCP\\IRequest;\nuse \\OCA\\OwnNote\\Lib\\Backend;\n\nclass OwnnoteApiController extends ApiController {\n\n\tprivate $backend;\n\n\n\tpublic function __construct($appName, IRequest $request){\n\t\tparent::__construct($appName, $request);\n\t\t$this->backend = new Backend();\n\t}\n\n\t/**\n\t* MOBILE FUNCTIONS\n\t*/\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function index() {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\treturn $this->backend->getListing($FOLDER, false);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function mobileindex() {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\treturn $this->backend->getListing($FOLDER, true);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function remoteindex() {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\treturn json_encode($this->backend->getListing($FOLDER, true));\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function create($name, $group) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($name) && isset($group))\n\t\t\treturn $this->backend->createNote($FOLDER, $name, $group);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function del($name, $group) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($name) && isset($group))\n\t\t\treturn $this->backend->deleteNote($FOLDER, $name, $group);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function edit($name, $group) {\n\t\tif (isset($name) && isset($group))\n\t\t\treturn $this->backend->editNote($name, $group);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function save($name, $group, $content) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($name) && isset($group) && isset($content))\n\t\t\treturn $this->backend->saveNote($FOLDER, $name, $group, $content, 0);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function ren($name, $group, $newname, $newgroup) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($name) && isset($newname) && isset($group) && isset($newgroup))\n\t\t\treturn $this->backend->renameNote($FOLDER, $name, $group, $newname, $newgroup);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function delgroup($group) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($group))\n\t\t\treturn $this->backend->deleteGroup($FOLDER, $group);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function rengroup($group, $newgroup) {\n\t\t$FOLDER = \\OC::$server->getConfig()->getAppValue('ownnote', 'folder', '');\n\t\tif (isset($group) && isset($newgroup))\n\t\t\treturn $this->backend->renameGroup($FOLDER, $group, $newgroup);\n\t}\n\n\t/**\n\t* @NoAdminRequired\n\t* @NoCSRFRequired\n\t*/\n\tpublic function version() {\n\t\treturn $this->backend->getVersion();\n\t}\n}\n"
  },
  {
    "path": "controller/pagecontroller.php",
    "content": "<?php\n/**\n * ownCloud - ownnote\n *\n * This file is licensed under the Affero General Public License version 3 or\n * later. See the COPYING file.\n *\n * @author Ben Curtis <ownclouddev@nosolutions.com>\n * @copyright Ben Curtis 2015\n */\n\nnamespace OCA\\OwnNote\\Controller;\n\n\nuse \\OCP\\IRequest;\nuse \\OCP\\AppFramework\\Http\\TemplateResponse;\nuse \\OCP\\AppFramework\\Controller;\nuse \\OCP\\AppFramework\\Http\\ContentSecurityPolicy;\nuse \\OCP\\Util;\n\nclass PageController extends Controller {\n\n    private $userId;\n\n    public function __construct($appName, IRequest $request, $userId){\n        parent::__construct($appName, $request);\n        $this->userId = $userId;\n    }\n\n\n    /**\n     * CAUTION: the @Stuff turn off security checks, for this page no admin is\n     *          required and no CSRF check. If you don't know what CSRF is, read\n     *          it up in the docs or you might create a security hole. This is\n     *          basically the only required method to add this exemption, don't\n     *          add it to any other method if you don't exactly know what it does\n     *\n     * @NoAdminRequired\n     * @NoCSRFRequired\n     */\n    public function index() {\n\t$params = array('user' => $this->userId);\n\t$response = new TemplateResponse('ownnote', 'main', $params);\n\t$ocVersion = \\OCP\\Util::getVersion();\n\tif ($ocVersion[0] > 8 || ($ocVersion[0] == 8 && $ocVersion[1] >= 1)) {\n\t\t$csp = new \\OCP\\AppFramework\\Http\\ContentSecurityPolicy();\n\t\t$csp->addAllowedImageDomain('data:');\n\t\t$response->setContentSecurityPolicy($csp);\n\t}\n\treturn $response;\n    }\n}\n"
  },
  {
    "path": "css/style.css",
    "content": "#app, #ownnote, #controls, #createform {\n\twidth: 100%;\n}\n\n.listing {\n\theight: 40pt;\n\tfont-style: normal;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0pt;\n\tfont-size: 100%;\n\tfont-family: inherit;\n\tline-height: 40pt;\n\twhite-space: nowrap;\n\tpadding: 0pt 15pt;\n\tborder-bottom: 1pt solid #EEE;\n\twidth: 100%;\n}\n\n.listingSort {\n\theight: 40pt;\n\tfont-style: normal;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0pt;\n\tfont-size: 100%;\n\tfont-family: inherit;\n\tline-height: 40pt;\n\twhite-space: nowrap;\n\tpadding: 0pt 15pt;\n\tborder-bottom: 1pt solid #EEE;\n\twidth: 100%;\n}\n\n.listingBlank {\n\theight: 40pt;\n\tfont-style: normal;\n\toverflow: hidden;\n\ttext-overflow: ellipsis;\n\tmargin: 0pt;\n\tfont-size: 100%;\n\tfont-family: inherit;\n\tline-height: 40pt;\n\twhite-space: nowrap;\n\tpadding: 0pt 15pt;\n\twidth: 100%;\n}\n\n.listing:hover {\n\tbackground-color: #EEE;\n}\n\n.pointer {\n\tcursor: pointer;\n}\n\n.file {\n\tfloat: left;\n\tfont-weight: bold;\n\twidth: 60%;\n}\n\n.filesort {\n\tfloat: left;\n\twidth: 60%;\n}\n\n.info {\n\tfloat: right;\n\tcolor: #A0A0A0;\n\twidth: 30%;\n}\n\n.modified {\n\tfloat: left;\n\tcolor: #A0A0A0;\n\twidth: 60%;\n}\n\n.button {\n\tdisplay: inline-block;\n}\n\n.buttons {\n\tfloat: right;\n\twidth: 40%;\n\tbackground-repeat:no-repeat;\n\tbackground-position: center center;\n}\n\n.edit {\n\topacity: 0.3;\n}\n\n.edit:hover {\n\topacity: 1;\n}\n\n.delete {\n\tbackground-image: url('../img/delete.png');\n\topacity: 0.3;\n}\n\n.delete:hover {\n\tbackground-image: url('../img/delete-hover.png');\n\topacity: 1;\n}\n\n.indent {\n\tmargin-left: 10pt;\n}\n\n.notesort {\n\tfont-weight: normal;\n\tcolor: #A0A0A0;\n}\n\n.sortarrow {\n\tbackground-repeat:no-repeat;\n\tbackground-position: center center;\n\twidth: 20pt;\n\theight: 20pt;\n\tfloat: left;\n\tmargin-top: 10pt;\n\topacity: 0.3;\n}\n\n.sortup {\n\tbackground-image: url('../img/triangle-n.svg');\n}\n\n.sortdown {\n\tbackground-image: url('../img/triangle-s.svg');\n}\n\n.sorttitle {\n\tfloat: left;\n}\n\n.newfile, #controls .note-title-form .newgroupinput {\n\tdisplay: none;\n}\n\n.fileinput {\n\twidth: 80pt;\n\theight: 36px;\n\tdisplay: inline-block;\n\tcolor: #A0A0A0;\n}\n\n.newfileinput {\n\twidth: 80pt;\n\theight: 36px;\n\tdisplay: inline-block;\n}\n\n.latestfile {\n\tcolor: green;\n}\n\n#grouplist {\n        /*z-index: 100;*/\n}\n#grouplist .add-note:before {\n    content: \"+\";\n    font-size: 150%;\n    font-weight: bold;\n    left: 12px;\n    position: absolute;\n}\n#grouplist .add-note {\n    padding: 0 31px;\n}\n#grouplist > li {\n    height: 44px;\n}\n\n#app-navigation .active {\n    font-weight: bold;\n}\n\n#app-navigation .utils {\n    bottom: 0;\n    font-size: 12px;\n    padding: 7px 7px 0 0;\n    position: absolute;\n    right: 0;\n    top: 0;\n}\n\n.action:not(.text), .icon:not(.text), [class^=\"icon-\"]:not(.text), [class*=\" icon-\"]:not(.text) {\n    display: inline-block;\n    height: 16px;\n    margin: 0;\n    padding: 0;\n    width: 16px;\n}\n\n#app-navigation li > .utils > .numnotes {\n    padding-right: 10px;\n    text-align: right;\n}\n\n#app-navigation li > .utils > * {\n    background-size: auto auto;\n    float: left;\n    height: 44px;\n    line-height: 44px;\n    width: 44px;\n}\n\n[class^=\"icon-\"], [class*=\" icon-\"], .action, .icon {\n    background-repeat: no-repeat;\n    cursor: pointer;\n}\n\n#content li {\n    cursor: default;\n}\n\n#app-navigation li > .utils > *:not(.numnotes):not(.starred) {\n    display: none;\n}\n\n#app-navigation .utils {\n    bottom: 0;\n    margin: 0;\n    padding: 0;\n    position: absolute;\n    right: 0;\n    top: 0;\n}\n\n#app-navigation li.active[data-type=\"category\"] > .utils > * {\n    background-color: rgba(0, 0, 0, 0);\n    display: inline-block;\n    float: left;\n}\n\n.oc-addnew {\n    display: block !important;\n    padding: 0 !important;\n}\n\n\n.oc-addnew {\n    display: block !important;\n    padding: 0 !important;\n}\n.oc-addnew > li {\n}\n\n#app-navigation .oc-addnew input[type=\"text\"] {\n    height: 34px !important;\n    margin-left: 6px;\n    margin-top: 5px;\n}\n#app-navigation input[type=\"text\"] {\n    width: 180px;\n}\n.oc-addnew input, .oc-addnew select {\n    border-bottom-right-radius: 0;\n    border-right: 0 none;\n    border-top-right-radius: 0;\n    display: inline-block;\n    float: left;\n    margin: 0 0 5px;\n}\n\n#app-navigation .oc-addnew .new-button {\n    background-position: center center;\n    background-repeat: no-repeat;\n    background-size: 16px auto;\n    margin-top: 5px;\n    width: 32px;\n}\n\n.oc-addnew button {\n    border-bottom-left-radius: 0;\n    border-top-left-radius: 0;\n    display: inline-block;\n    float: left;\n    height: 34px !important;\n    margin: 5px 0;\n}\n\n.editing {\n\tdisplay: none;\n}\n\n#announcement {\n\tpadding: 10px;\n}\n\n#announcement h1 {\n\tcolor: #1D2D44;\n\tfont-weight: bold;\n\tfont-style: italic;\n\tfont-size: 12pt;\n}\n\n#announcement a {\n\tcolor: #1D2D44;\n\ttext-decoration: underline;\n\tfont-weight: bold;\n}\n\n#announcement-dismiss {\n\tpadding: 10px;\n}\n\n#announcement-dismiss a {\n\tcolor: #1D2D44;\n\ttext-decoration: underline;\n\tfont-weight: bold;\n}\n\n#ownnote-l10n {\n\tdisplay: none;\n}\n"
  },
  {
    "path": "js/admin.js",
    "content": "function ocOwnnoteUrl(url) {\n\tvar newurl = OC.linkTo(\"ownnote\",url).replace(\"apps/ownnote\",\"index.php/apps/ownnote\");\n\treturn newurl;\n}\n\n$(document).ready(function() {\n\t$('#ownnote-folder').change(function() {\n\t\tvar val = $(this).val();\n\t        $.post(ocOwnnoteUrl(\"ajax/v0.2/ajaxsetval\"), { field: 'folder', value: val }, function (data) {\n\t\t\t console.log('response', data);\n        \t});\n\t});\n\t$('#ownnote-type').change(function() {\n\t\tvar val = $(this).val();\n\t\tif (val == \"\") {\n\t\t\t$('#ownnote-folder').val('');\n\t\t\t$('#ownnote-folder-settings').css('display', 'none');\n\t\t\t$.post(ocOwnnoteUrl(\"ajax/v0.2/ajaxsetval\"), { field: 'folder', value: '' }, function (data) {\n\t\t\t\tconsole.log('response', data);\n\t\t\t});\n\t\t} else\n\t\t\t$('#ownnote-folder-settings').css('display', 'block');\n\t});\n\t$('#ownnote-disableannouncement').change(function() {\n\t\tvar da = \"\";\n\t\tvar c = $(this).is(':checked');\n\t\tif (c)\n\t\t\tda = \"checked\";\n\t        $.post(ocOwnnoteUrl(\"ajax/v0.2/ajaxsetval\"), { field: 'disableAnnouncement', val: da }, function (data) {\n\t\t\t console.log('response', data);\n        \t});\n\t});\n});\n\n"
  },
  {
    "path": "js/script.js",
    "content": "\n\tfunction tinymceInit() {\n\t\ttinymce.init({\n\t\t\tselector: \"div.editable\",\n\t\t\tmenubar: false,\n\t\t\tplugins: [\n\t\t\t\t\"textcolor advlist autolink lists link charmap print preview anchor\",\n\t\t\t\t\"searchreplace visualblocks code fullscreen\",\n\t\t\t\t\"insertdatetime media table contextmenu bdesk_photo autoresize\"\n\t\t\t],\n\t\t\textended_valid_elements: \"form[name|id|action|method|enctype|accept-charset|onsubmit|onreset|target],input[id|name|type|value|size|maxlength|checked|accept|src|width|height|disabled|readonly|tabindex|accesskey|onfocus|onblur|onchange|onselect|onclick|onkeyup|onkeydown|required|style],textarea[id|name|rows|cols|maxlength|disabled|readonly|tabindex|accesskey|onfocus|onblur|onchange|onselect|onclick|onkeyup|onkeydown|required|style],option[name|id|value|selected|style],select[id|name|type|value|size|maxlength|checked|width|height|disabled|readonly|tabindex|accesskey|onfocus|onblur|onchange|onselect|onclick|multiple|style]\",\n\t\t\ttoolbar: \"insertfile undo redo | styleselect | bold italic strikethrough | alignleft aligncenter alignright alignjustify | forecolor backcolor | bullist numlist outdent indent | link bdesk_photo\",\n\t\t\tallow_html_data_urls: true,\n\t\t\tallow_script_urls: true,\n\t\t\tpaste_data_images: true,\n\t\t\twidth: '100%',\n  \t\t\theight: h-130,\n\t\t\tautoresize_min_height: h-130,\n\t\t\tautoresize_max_height: h-130,\n\t\t\tinit_instance_callback : function(editor) {\n\t\t\t\tresizeFont(\"13\");\n\t\t\t\tstartTimer();\n\t\t\t}\n\t\t});\n\t}\n\n\tfunction ocUrl(url) {\n\t\tvar newurl = OC.generateUrl(\"/apps/ownnote/\") + url;\n\t\treturn newurl;\n\t}\n\n\tfunction resizeFont(s) {\n\t\t$('#editable_ifr').contents().find(\"head\").append($(\"<style type='text/css'>  body{font-size:\"+s+\"px;}  </style>\"));\n\t}\n\n\tvar l10n = new Array();\n\tfunction translate() {\n\t\tl10n[\"# day ago\"] = document.getElementById(\"l10n # day ago\").value;\n\t\tl10n[\"# days ago\"] = document.getElementById(\"l10n # days ago\").value;\n\t\tl10n[\"# hour ago\"] = document.getElementById(\"l10n # hour ago\").value;\n\t\tl10n[\"# hours ago\"] = document.getElementById(\"l10n # hours ago\").value;\n\t\tl10n[\"# minute ago\"] = document.getElementById(\"l10n # minute ago\").value;\n\t\tl10n[\"# minutes ago\"] = document.getElementById(\"l10n # minutes ago\").value;\n\t\tl10n[\"# month ago\"] = document.getElementById(\"l10n # month ago\").value;\n\t\tl10n[\"# months ago\"] = document.getElementById(\"l10n # months ago\").value;\n\t\tl10n[\"# second ago\"] = document.getElementById(\"l10n # second ago\").value;\n\t\tl10n[\"# seconds ago\"] = document.getElementById(\"l10n # seconds ago\").value;\n\t\tl10n[\"# week ago\"] = document.getElementById(\"l10n # week ago\").value;\n\t\tl10n[\"# weeks ago\"] = document.getElementById(\"l10n # weeks ago\").value;\n\t\tl10n[\"# year ago\"] = document.getElementById(\"l10n # year ago\").value;\n\t\tl10n[\"# years ago\"] = document.getElementById(\"l10n # years ago\").value;\n\t\tl10n[\"All\"] = document.getElementById(\"l10n All\").value;\n\t\tl10n[\"An ungrouped file has the same name as a file in this group.\"] = document.getElementById(\"l10n An ungrouped file has the same name as a file in this group\").value;\n\t\tl10n[\"Cancel\"] = document.getElementById(\"l10n Cancel\").value;\n\t\tl10n[\"Create\"] = document.getElementById(\"l10n Create\").value;\n\t\tl10n[\"Dismiss\"] = document.getElementById(\"l10n Dismiss\").value;\n\t\tl10n[\"Filename/group already exists.\"] = document.getElementById(\"l10n Filename/group already exists\").value;\n\t\tl10n[\"Group\"] = document.getElementById(\"l10n Group\").value;\n\t\tl10n[\"Group already exists.\"] = document.getElementById(\"l10n Group already exists\").value;\n\t\tl10n[\"Just now\"] = document.getElementById(\"l10n Just now\").value;\n\t\tl10n[\"Modified\"] = document.getElementById(\"l10n Modified\").value;\n\t\tl10n[\"Name\"] = document.getElementById(\"l10n Name\").value;\n\t\tl10n[\"New\"] = document.getElementById(\"l10n New\").value;\n\t\tl10n[\"Not grouped\"] = document.getElementById(\"l10n Not grouped\").value;\n\t\tl10n[\"Note\"] = document.getElementById(\"l10n Note\").value;\n\t\tl10n[\"Notes\"] = document.getElementById(\"l10n Notes\").value;\n\t\tl10n[\"Quick Save\"] = document.getElementById(\"l10n Quick Save\").value;\n\t\tl10n[\"Save\"] = document.getElementById(\"l10n Save\").value;\n\t}\n\n\tfunction trans(s) {\n\t\tif (l10n[s])\n\t\t\treturn l10n[s];\n\t\telse\n\t\t\treturn s;\n\t}\n\n\tfunction deleteNote(id) {\n\t\tvar n = $(this).attr('n');\n\t\tvar g = $(this).attr('g');\n\t\t$.post(ocUrl(\"ajax/v0.2/ownnote/ajaxdel\"), { name: n, group: g }, function (data) {\n\t\t\tloadListing();\n\t\t});\n\t}\n\n\tfunction editNote(id) {\n\t\tvar n = $(this).attr('n');\n\t\tvar g = $(this).attr('g');\n\t\t$.post(ocUrl(\"ajax/v0.2/ownnote/ajaxedit\"), { name: n, group: g }, function (data) {\n\t\t\tbuildEdit(n, g, data);\n\t\t});\n\t}\n\n\tfunction addNote() {\n\t\t$('#newfile').css('display','inline-block');\n\t\t$('#new').css('display','none');\n                $('#newfilename').focus();\n\t}\n\n\tfunction cancelNote() {\n\t\t$('#newfile').css('display','none');\n\t\t$('#new').css('display','inline-block');\n\t\t$('#newfilename').css('color', '#A0A0A0');\n\t\t$('#newfilename').val('note title');\n\t}\n\n\tvar h = 200;\n\tfunction resizeContainer() {\n\t\tvar o = $('#ownnote').offset();\n\t\th = $(window).height() - o.top;\n\t}\n\n\tfunction buildEdit(n, g, data) {\n\t\tresizeContainer();\n\t\tvar name = htmlQuotes(n);\n\t\tvar group = htmlQuotes(g);\n\t\tvar html = \"\";\n\t\thtml += \"<div id='controls'>\";\n\t\thtml += \"\t<div id='newfile' class='indent'>\";\n\t\thtml += \"\t\t<form id='editform' class='note-title-form'>\";\n\t\thtml += \"\t\t\t\"+trans(\"Name\")+\": <input type='text' class='fileinput' id='editfilename' value='\"+name+\"'>\";\n\t\thtml += \"\t\t\t&nbsp;&nbsp;\"+trans(\"Group\")+\": <select id='groupname'></select>\";\n\t\thtml += \"\t\t\t<input type='text' class='newgroupinput' id='newgroupname' placeholder='group title'>\";\n\t\thtml += \"\t\t\t<input type='hidden' id='originalfilename' value='\"+name+\"'>\";\n\t\thtml += \"\t\t\t<input type='hidden' id='originalgroup' value='\"+group+\"'>\";\n\t\thtml += \"\t\t\t<div id='quicksave' class='button'>\"+trans(\"Quick Save\")+\"</div>\";\n\t\thtml += \"\t\t\t<div id='save' class='button'>\"+trans(\"Save\")+\"</div>\";\n\t\thtml += \"\t\t\t<div id='canceledit' class='button'>\"+trans(\"Cancel\")+\"</div>\";\n\t\thtml += \"\t\t</form>\";\n\t\thtml += \"\t</div>\";\n\t\thtml += \"</div>\";\n\t\thtml += \"<div class='listingBlank'><!-- --></div>\";\n\t\thtml += \"<div id='editable' class='editable'>\";\n\t\thtml += data;\n\t\thtml += \"</div>\";\n\t\tdocument.getElementById(\"ownnote\").innerHTML = html;\n\t\ttinymceInit();\n\t\tbuildGroupSelectOptions(g);\n\t\tbindEdit();\n\t}\n\n\tvar idle = false;\n\tvar idleTime = 0;\n\tvar idleInterval;\n\tvar origNote;\n\tvar checkDuration = 20;\n\tvar saveTime = 60;\n\tfunction startTimer() {\n\t\torigNote = tinymce.activeEditor.getContent();\n\t\tidleIterval = setInterval(timerIncrement, checkDuration*1000);\n\t\t$(document).mousemove(function (e) { notIdle(); });\n\t\t$(document).keypress(function (e) { notIdle(); });\n\t\t$('#editable_ifr').contents().find(\"body\").mousemove(function (e) { notIdle(); });\n\t\ttinymce.activeEditor.on('keyup', function(e) { notIdle(); });\n\t}\n\n\tfunction notIdle() {\n\t\tidle = false;\n\t\tidleTime = 0;\n\t}\n\n\tfunction timerIncrement() {\n\t\tidleTime = idleTime + checkDuration;\n\t\tif ($('#editable_ifr') && $('#editable_ifr').css('display') == 'block') {\n\t\t\tif (!idle && idleTime >= saveTime) {\n\t\t\t\tvar content = tinymce.activeEditor.getContent();\n\t\t\t\tif (content != origNote) {\n\t\t\t\t\torigNote = content;\n\t\t\t\t\tsaveNote(true);\n\t\t\t\t}\n\t\t\t\tidle = true;\n\t\t\t}\n\t\t} else {\n\t\t\tclearInterval(idleInterval);\n\t\t}\n\t}\n\n\tfunction bindEdit() {\n\t\t$(\"#editform\").bind(\"submit\", function() { saveNote(false); });\n\t\t$(\"#quicksave\").bind(\"click\", function() { saveNote(true); });\n\t\t$(\"#save\").bind(\"click\", function() { saveNote(false); });\n\t\t$(\"#canceledit\").bind(\"click\", buildListing);\n\t\t$(\"#groupname\").bind(\"change\", checkNewGroup);\n\t\t$(\"#editfilename\").bind(\"change\", disableQuickSave);\n\t}\n\n\tfunction disableQuickSave() {\n\t\t$('#quicksave').css('background-color','white');\n\t\t$('#quicksave').css('color','#888888');\n\t\t$(\"#quicksave\").off(\"click\");\n\t}\n\n\tfunction saveNote(stayinnote) {\n\t\tif (stayinnote) {\n\t\t\t$('#quicksave').css('background-color','green');\n\t\t\t$('#quicksave').css('color','white');\n\t\t}\n\t\t$('#editfilename').val($('#editfilename').val().replace(/\\\\/g, '-').replace(/\\//g, '-'));\n\t\tvar editfilename = $('#editfilename').val();\n\t\tvar editgroup = $('#groupname').val();\n\t\tvar originalfilename = $('#originalfilename').val();\n\t\tvar originalgroup = $('#originalgroup').val();\n\t\tvar content = tinymce.activeEditor.getContent();\n\t\tif (editgroup.toLowerCase() == \"all\" || editgroup.toLowerCase() == \"not grouped\") {\n\t\t\teditgroup = \"\";\n\t\t} else if (editgroup == '_new') {\n\t\t\t$('#newgroupname').val($('#newgroupname').val().replace(/\\\\/g, '-').replace(/\\//g, '-'));\n\t\t\teditgroup = $('#newgroupname').val();\n\t\t}\n\t\tif (editfilename != originalfilename || editgroup != originalgroup) {\n\t\t\tvar c = listing.length;\n\t\t\tvar exists = false;\n\t\t\tfor (i = 0; i < c; i++) {\n\t\t\t\tif (listing[i].deleted == 0)\n\t\t\t\t\tif (listing[i].group == editgroup && listing[i].name == editfilename) {\n\t\t\t\t\t\texists = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t\tif (exists) {\n\t\t\t\talert(trans(\"Filename/group already exists.\"));\n\t\t\t} else\n\t\t\t\t$.post(ocUrl(\"ajax/v0.2/ownnote/ajaxren\"), { name: originalfilename, group: originalgroup, newname: editfilename, newgroup: editgroup }, function (data) {\n\t\t\t\t\tif (data == \"DONE\") {\n\t\t\t\t\t\t$.post(ocUrl(\"ajax/v0.2/ownnote/ajaxsave\"), { name: editfilename, group: editgroup, content: content }, function (data) {\n\t\t\t\t\t\t\tif (!stayinnote)\n\t\t\t\t\t\t\t\tloadListing();\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t$('#quicksave').css('background-color','rgba(240, 240, 240, 0.9)');\n\t\t\t\t\t\t\t\t$('#quicksave').css('color','#555');\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t} else {\n\t\t\t$.post(ocUrl(\"ajax/v0.2/ownnote/ajaxsave\"), { name: editfilename, group: editgroup, content: content }, function (data) {\n\t\t\t\tif (!stayinnote)\n\t\t\t\t\tloadListing();\n\t\t\t\telse {\n\t\t\t\t\t$('#quicksave').css('background-color','rgba(240, 240, 240, 0.9)');\n\t\t\t\t\t$('#quicksave').css('color','#555');\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn false;\n\t}\n\n\tvar listing;\n\tvar listingtype = \"All\";\n\tvar sortby = \"name\";\n\tvar sortorder = \"ascending\";\n\n\tfunction htmlQuotes(value, reverse){\n\t\tif (!reverse) {\n\t\t\tvar r = value;\n\t\t\tr = r.replace(/\\'/g, '&#39;');\n\t\t\tr = r.replace(/\\\"/g, '&quot;');\n\t\t\treturn r;\n\t\t} else {\n\t\t\tvar r = value;\n\t\t\tr = r.replace(/&#39;/g, \"'\");\n\t\t\tr = r.replace(/&quot;/g, '\"');\n\t\t\treturn r;\n\t\t}\n\t}\n\n\tfunction loadListing() {\n\t\tvar url = ocUrl(\"ajax/v0.2/ownnote/ajaxindex\");\n\t\t$.get(url, function(data) {\n\t\t\tlisting = data;\n\t\t\tbuildNav(listingtype);\n\t\t\tbuildListing();\n\t\t\tif (switchgroup != \"\") {\n\t\t\t\t$(\"[id='link-\"+switchgroup+\"']\").click();\n\t\t\t\tswitchgroup = \"\";\n\t\t\t}\n\t\t});\n\t}\n\n\tvar sort_by = function(field, reverse, primer){\n\t\tvar key = primer ? \n\t\tfunction(x) {return primer(x[field])} : \n\t\tfunction(x) {return x[field]};\n\t\treverse = [-1, 1][+!!reverse];\n\t\treturn function (a, b) {\n\t\t\treturn a = key(a), b = key(b), reverse * ((a > b) - (b > a));\n\t\t} \n\t}\n\n\tfunction buildListing() {\n\t\tvar html = \"\";\n\t\thtml += \"<div id='controls'>\";\n\t\thtml += \"\t<div id='new' class='button indent'>\"+trans(\"New\")+\"</div>\";\n\t\thtml += \"\t<div id='newfile' class='newfile indent'>\";\n\t\thtml += \"\t\t<form id='createform' class='note-title-form'>\";\n\t\thtml += \"\t\t\t<input type='text' class='newfileinput' id='newfilename' value='note title'>\";\n\t\thtml += \"\t\t\t<select id='groupname'></select>\";\n\t\thtml += \"\t\t\t<input type='text' class='newgroupinput' id='newgroupname' placeholder='group title'>\";\n\t\thtml += \"\t\t\t<button id='create' class='button'>\"+trans(\"Create\")+\"</button>\";\n\t\thtml += \"\t\t\t<div id='cancel' class='button'>\"+trans(\"Cancel\")+\"</div>\";\n\t\thtml += \"\t\t</form>\";\n\t\thtml += \"\t</div>\";\n\t\thtml += \"</div>\";\n\t\thtml += \"<div class='listingBlank'><!-- --></div>\";\n\t\tvar c = listing.length;\n\t\tif (c == 0) {\n\t\t\thtml += \"<div class='listingSort'>\";\n\t\t\thtml += trans(\"You have no notes to display.\");\n\t\t\thtml += \"</div>\";\n\t\t} else {\n\t\t\thtml += \"<div class='listingSort'>\";\n\t\t\tif (sortby == \"name\" && sortorder == \"ascending\") {\n\t\t\t\thtml += \"\t<div class='filesort notesort'>\";\n\t\t\t\thtml += \"\t\t<div class='pointer sorttitle' id='sortname'>\"+trans(\"Name\")+\"</div>\";\n\t\t\t\thtml += \"\t\t<div class='sortarrow sortup'><!-- --></div>\";\n\t\t\t\thtml += \"\t</div>\";\n\t\t\t\thtml += \"\t<div class='info'>\";\n\t\t\t\thtml += \"\t\t<div class='modified notesort'><span class='pointer' id='sortmod'>\"+trans(\"Modified\")+\"</span></div>\";\n\t\t\t\thtml += \"\t</div>\";\n\t\t\t\tlisting.sort(sort_by('name', true, function(a){return a.toUpperCase()}));\n\t\t\t} else if (sortby == \"name\" && sortorder == \"descending\") {\n\t\t\t\thtml += \"\t<div class='filesort notesort'>\";\n\t\t\t\thtml += \"\t\t<div class='pointer sorttitle' id='sortname'>\"+trans(\"Name\")+\"</div>\";\n\t\t\t\thtml += \"\t\t<div class='sortarrow sortdown'><!-- --></div>\";\n\t\t\t\thtml += \"\t</div>\";\n\t\t\t\thtml += \"\t<div class='info'>\";\n\t\t\t\thtml += \"\t\t<div class='modified notesort'><span class='pointer' id='sortmod'>\"+trans(\"Modified\")+\"</span></div>\";\n\t\t\t\thtml += \"\t</div>\";\n\t\t\t\tlisting.sort(sort_by('name', false, function(a){return a.toUpperCase()}));\n\t\t\t} else if (sortby == \"mod\" && sortorder == \"ascending\") {\n\t\t\t\thtml += \"\t<div class='filesort notesort'>\";\n\t\t\t\thtml += \"\t\t<div class='pointer sorttitle' id='sortname'>\"+trans(\"Name\")+\"</div>\";\n\t\t\t\thtml += \"\t</div>\";\n\t\t\t\thtml += \"\t<div class='info'>\";\n\t\t\t\thtml += \"\t\t<div class='modified notesort'>\";\n\t\t\t\thtml += \"\t\t\t<div class='pointer sorttitle' id='sortmod'>\"+trans(\"Modified\")+\"</div>\";\n\t\t\t\thtml += \"\t\t\t<div class='sortarrow sortup'><!-- --></div>\";\n\t\t\t\thtml += \"\t\t</div>\";\n\t\t\t\thtml += \"\t</div>\";\n\t\t\t\tlisting.sort(sort_by('mtime', false, parseInt));\n\t\t\t} else if (sortby == \"mod\" && sortorder == \"descending\") {\n\t\t\t\thtml += \"\t<div class='filesort notesort'>\";\n\t\t\t\thtml += \"\t\t<div class='pointer sorttitle' id='sortname'>\"+trans(\"Name\")+\"</div>\";\n\t\t\t\thtml += \"\t</div>\";\n\t\t\t\thtml += \"\t<div class='info'>\";\n\t\t\t\thtml += \"\t\t<div class='modified notesort'>\";\n\t\t\t\thtml += \"\t\t\t<div class='pointer sorttitle' id='sortmod'>\"+trans(\"Modified\")+\"</div>\";\n\t\t\t\thtml += \"\t\t\t<div class='sortarrow sortdown'><!-- --></div>\";\n\t\t\t\thtml += \"\t\t</div>\";\n\t\t\t\thtml += \"\t</div>\";\n\t\t\t\tlisting.sort(sort_by('mtime', true, parseInt));\n\t\t\t}\n\t\t\thtml += \"</div>\";\n\t\t\tfor (i = 0; i < c; i++) {\n\t\t\t\tif (listing[i].deleted == 0)\n\t\t\t\t\tif (listingtype == \"All\" || listing[i].group == listingtype || (listingtype == 'Not grouped' && listing[i].group == '')) {\n\t\t\t\t\t\tvar fileclass = 'modified';\n\t\t\t\t\t\tvar name = htmlQuotes(listing[i].name);\n\t\t\t\t\t\tvar group = htmlQuotes(listing[i].group);\n\t\t\t\t\t\tvar file = name;\n\t\t\t\t\t\tif (group != '')\n\t\t\t\t\t\t\tfile = \"[\"+group+\"] \"+name;\n\t\t\t\t\t\tif (listing[i].timediff < 30)\n\t\t\t\t\t\t\tfileclass = 'modified latestfile';\n\t\t\t\t\t\thtml += \"<div class='listing'>\";\n\t\t\t\t\t\thtml += \"\t<div id='\"+file+\"' i='\"+listing[i].id+\"' n='\"+name+\"' g='\"+group+\"' title='\"+name+\"' class='file pointer'>\"+name+\"</div>\";\n\t\t\t\t\t\thtml += \"\t<div class='info'>\";\n\t\t\t\t\t\tif (listing[i].timestring != '')\n\t\t\t\t\t\t\thtml += \"\t\t<div class='\"+fileclass+\"'>\"+listing[i].timestring+\"</div>\";\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\thtml += \"\t\t<div class='\"+fileclass+\"'>\"+trans(\"Just now\")+\"</div>\";\n\t\t\t\t\t\thtml += \"\t\t<div id='\"+file+\"' i='\"+listing[i].id+\"' n='\"+name+\"' g='\"+group+\"' class='buttons delete delete-note pointer'><br></div>\";\n\t\t\t\t\t\thtml += \"\t</div>\";\n\t\t\t\t\t\thtml += \"</div>\";\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tdocument.getElementById(\"ownnote\").innerHTML = html;\n\t\t$('#newfilename').css('color', '#A0A0A0');\n\t\tbuildGroupSelectOptions(listingtype);\n\t\tbindListing();\n\t}\n\n\tfunction buildGroupSelectOptions(current) {\n\t\tvar $select = $('select#groupname');\n\t\t$select.append($('<option value=\"\">Not grouped</option>'));\n\t\t$select.append($('<option>').attr('value', '_new').text('New group'));\n\t\t$(groups).each(function(i, group) {\n\t\t\tvar option = $('<option>').attr('value', group).text(group);\n\t\t\tif(group == current) {\n\t\t\t\toption.attr('selected', 'selected');\n\t\t\t}\n\t\t\t$select.append(option);\n\t\t});\n\t}\n\n\tfunction bindListing() {\n\t\t$(\".file\").bind(\"click\", editNote);\n\t\t$(\".delete-note\").bind(\"click\", deleteNote);\n\t\t$(\"#sortname\").bind(\"click\", sortName);\n\t\t$(\"#sortmod\").bind(\"click\", sortMod);\n\t\t$(\"#new\").bind(\"click\", addNote);\n\t\t$(\"#cancel\").bind(\"click\", cancelNote);\n\t\t$(\"#createform\").bind(\"submit\", createNote);\n\t\t$(\"#groupname\").bind(\"change\", checkNewGroup);\n\t\t$(\"#newfilename\").bind(\"focus\", newNote);\n\t}\n\n\tfunction checkNewGroup() {\n\t\tvar selectVal = $('select#groupname').val();\n\t\tif(selectVal == '_new') {\n\t\t\t$('#newgroupname').css('display','inline-block');\n                        $('#newgroupname').focus();\n\t\t} else {\n\t\t\t$('#newgroupname').css('display','none');\n\t\t}\n\t\tdisableQuickSave();\n\t}\n\n\tfunction newNote() {\n\t\t$('#newfilename').css('color', '#000');\n\t\tvar v = $('#newfilename').val();\n\t\tif (v == 'note title')\n\t\t\t$('#newfilename').val('');\n\t}\n\n\tfunction createNote() {\n\t\tvar name = $('#newfilename').val();\n\t\tvar group = $('#groupname').val();\n\t\tif (group == '_new') {\n\t\t\tgroup = $('#newgroupname').val();\n\t\t}\n\t\tcancelNote();\n\t\t$.post(ocUrl(\"ajax/v0.2/ownnote/ajaxcreate\"), { name: name, group: group }, function (data) {\n\t\t\tloadListing();\n\t\t});\n\t\treturn false;\n\t}\n\n\tfunction sortName() {\n\t\tif (sortby == \"name\")\n\t\t\tif (sortorder == \"ascending\")\n\t\t\t\tsortorder = \"descending\";\n\t\t\telse \n\t\t\t\tsortorder = \"ascending\";\n\t\telse {\n\t\t\tsortby = \"name\";\n\t\t\tsortorder = \"ascending\";\n\t\t}\n\t\tbuildListing();\n\t}\n\n\tfunction sortMod() {\n\t\tif (sortby == \"mod\")\n\t\t\tif (sortorder == \"ascending\")\n\t\t\t\tsortorder = \"descending\";\n\t\t\telse \n\t\t\t\tsortorder = \"ascending\";\n\t\telse {\n\t\t\tsortby = \"mod\";\n\t\t\tsortorder = \"ascending\";\n\t\t}\n\t\tbuildListing();\n\t}\n\n\tfunction buildNavItem(name, count, active) {\n\t\tvar html = '';\n\t\tvar a = ''\n\t\tvar n = htmlQuotes(name);\n\t\tif (active) a = \" active\";\n\t\tif (name == \"All\" || name == \"Not grouped\") {\n\t\t\thtml += '<li class=\"group' + a + '\" data-type=\"all\">';\n\t\t\thtml += '\t<a class=\"name\" id=\"link-'+n+'\" role=\"button\" title=\"'+n+'\">'+htmlQuotes(trans(name))+'</a>';\n\t\t} else {\n\t\t\thtml += '<li id=\"group-'+n+'-edit\" class=\"group editing\" style=\"display:none\">';\n\t\t\thtml += '\t<ul class=\"oc-addnew open\" style=\"display: inline-block; width: auto; height: auto;\" aria-disabled=\"false\">';\n\t\t\thtml += '\t\t<li>';\n\t\t\thtml += '\t\t\t<input id=\"edit-'+n+'-text\" class=\"oc-addnew-name\" type=\"text\" value=\"'+n+'\" style=\"display: inline;\">';\n\t\t\thtml += '\t\t\t<button id=\"edit-'+n+'\" class=\"new-button primary icon-checkmark-white\" style=\"display: block;\"></button>';\n\t\t\thtml += '\t\t</li>';\n\t\t\thtml += '\t</ul>';\n\t\t\thtml += '</li>';\n\t\t\thtml += '<li id=\"group-'+n+'\" class=\"group' + a + '\" data-type=\"category\">';\n\t\t\thtml += '\t<a class=\"name\" id=\"link-'+n+'\" role=\"button\" title=\"'+n+'\">'+n+'</a>';\n\t\t}\n\t\thtml += '\t<span class=\"utils\" style=\"z-index: 200\">';\n\t\thtml += '\t\t<a class=\"icon-rename action edit tooltipped rightwards\" group=\"'+n+'\" original-title=\"\"></a>';\n\t\thtml += '\t\t<a class=\"icon-delete action delete tooltipped rightwards\" group=\"'+n+'\" original-title=\"\"></a>';\n\t\thtml += '\t\t<span class=\"action numnotes\">'+count+'</span>';\n\t\thtml += '\t</span>';\n\t\thtml += '</li>';\n\t\treturn html;\n\t}\n\n\tfunction sortNav() {\n\t\tvar list = [];\n\t\tfor (var j=0; j<groups.length; j++) \n\t\t\tlist.push({'group': groups[j], 'count': counts[j]});\n\t\tlist.sort(function(a, b) {\n\t\t\treturn ((a.group < b.group) ? -1 : ((a.group == b.group) ? 0 : 1));\n\t\t});\n\t\tfor (var k=0; k<list.length; k++) {\n\t\t\tgroups[k] = list[k].group;\n\t\t\tcounts[k] = list[k].count;\n\t\t}\n\t}\n\n\tvar groups = new Array();\n\tvar counts = new Array();\n\n\tfunction buildNav(a) {\n\t\tgroups.length = 0;\n\t\tcounts.length = 0;\n\t\tvar html = '';\n\t\tvar c = listing.length;\n\t\tvar uncat = 0\n                for (i = 0; i < c; i++) {\n\t\t\tif (listing[i].group != '') {\n\t\t\t\tif ($.inArray(listing[i].group, groups) < 0) {\n\t\t\t\t\tgroups.push(listing[i].group);\n\t\t\t\t\tcounts.push(1);\n\t\t\t\t} else {\n\t\t\t\t\tcounts[$.inArray(listing[i].group, groups)] += 1;\n\t\t\t\t}\n\t\t\t} else\n\t\t\t\tuncat++;\n\t\t}\n\t\tsortNav();\n\t\tvar gc = groups.length;\n\t\tif (a == \"All\")\n\t\t\thtml += buildNavItem('All', c, true);\n\t\telse\n\t\t\thtml += buildNavItem('All', c, false);\n\t\tif (gc > 0) {\n\t\t\tif (a == \"Not grouped\")\n\t\t\t\thtml += buildNavItem('Not grouped', uncat, true);\n\t\t\telse\n\t\t\t\thtml += buildNavItem('Not grouped', uncat, false);\n\t\t}\n                for (i = 0; i < gc; i++) {\n\t\t\tif (a == groups[i])\n\t\t\t\thtml += buildNavItem(groups[i], counts[i], true);\n\t\t\telse\n\t\t\t\thtml += buildNavItem(groups[i], counts[i], false);\n\t\t}\n\t\thtml += \"<div id='announcement-container'></div>\";\n\t\t$('#grouplist').html(html);\n\t\tbindNav();\n\t\tif (disableAnnouncement == \"\")\n\t\t\tloadAnnouncement();\n\t}\n\n\tfunction loadAnnouncement() {\n\t\tvar curAnnouncement = getCookie('curAnnouncement');\n\t\tvar dismissedAnnouncement = getCookie('dismissedAnnouncement');\n\t\tif (curAnnouncement != \"\") {\n\t\t\tif (curAnnouncement != dismissedAnnouncement) {\n\t\t\t\tvar html = \"<div id='app-settings'><div id='app-settings-header'><div id='announcement'>\"+curAnnouncement+\"</div><div id='announcement-dismiss'><a id='dismissButton' href='javascript:dismissAnnouncement()'>\"+trans(\"Dismiss\")+\"</a></div></div><div>\";\n\t\t\t\t$('#announcement-container').html(html);\n\t\t\t\t$('#dismissButton').click(dismissAnnouncement);\n\t\t\t}\n\t\t} else {\n\t\t\tvar url = ocUrl(\"ajax/v0.2/ownnote/ajaxannouncement\");\n\t\t\t$.ajax({\n\t\t\t\turl: url,\n\t\t\t\tsuccess: function(data) {\n\t\t\t\t\tif (data != '') {\n\t\t\t\t\t\tif (data.replace(/\\n/g,'') != 'NONE') {\n\t\t\t\t\t\t\tif (data.replace(/\\n/g,'') != dismissedAnnouncement) {\n\t\t\t\t\t\t\t\tvar html = \"<div id='app-settings'><div id='app-settings-header'><div id='announcement'>\"+data+\"</div><div id='announcement-dismiss'><a id='dismissButton' href='javascript:dismissAnnouncement()'>\"+trans(\"Dismiss\")+\"</a></div></div><div>\";\n\t\t\t\t\t\t\t\t$('#announcement-container').html(html);\n\t\t\t\t\t\t\t\t$('#dismissButton').click(dismissAnnouncement);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsetCookie(\"curAnnouncement\", data.replace(/\\n/g,''), 7);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tsetCookie(\"curAnnouncement\", data.replace(/\\n/g,''), 7);\n\t\t\t\t\t\t\tsetCookie(\"dismissedAnnouncement\", data.replace(/\\n/g,''), 7);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t},\n\t\t\t\tcache: false\n\t\t\t});\n\t\t}\n\t}\n\n\tfunction setCookie(cname, cvalue, exdays) {\n\t\tvar d = new Date();\n\t\td.setTime(d.getTime() + (exdays*24*60*60*1000));\n\t\tvar expires = \"expires=\"+d.toUTCString();\n\t\tdocument.cookie = cname + \"=\" + cvalue + \"; \" + expires;\n\t}\n\n\tfunction getCookie(cname) {\n\t\tvar name = cname + \"=\";\n\t\tvar ca = document.cookie.split(';');\n\t\tfor(var i=0; i<ca.length; i++) {\n\t\t\tvar c = ca[i];\n\t\t\twhile (c.charAt(0)==' ') c = c.substring(1);\n\t\t\tif (c.indexOf(name) == 0) return c.substring(name.length,c.length);\n\t\t}\n\t\treturn \"\";\n\t} \n\n\tfunction dismissAnnouncement() {\n\t\tsetCookie(\"dismissedAnnouncement\", $('#announcement').html().replace(/\\n/g,''), 30);\n\t\t$('#announcement-container').html('');\n\t}\n\n\tfunction selectGroup() {\n\t\tbuildNav(this.title);\n\t\tlistingtype = this.title;\n\t\tbuildListing();\n\t\tif ($(\"#app-navigation-toggle\").css(\"display\") == \"block\") {\n\t\t\tsetTimeout(closeNav, 250);\n\t\t}\n\t}\n\n\tfunction closeNav() {\n\t\tif ($(\"#app-navigation-toggle\").css(\"display\") == \"block\") {\n\t\t\t$(\"#app-navigation-toggle\").click();\n\t\t}\n\t}\n\n\tfunction bindNav() {\n\t\t$(\".name\").bind(\"click\", selectGroup);\n\t\t$(\".icon-delete\").bind(\"click\", deleteGroup);\n\t\t$(\".icon-rename\").bind(\"click\", editGroup);\n\t\t$(\".new-button\").bind(\"click\", saveGroup);\n\t}\n\n\tfunction deleteGroup() {\n\t\tvar g = $(this).attr('group');\n\t\tvar c = listing.length;\n\t\tvar exists = false;\n\t\tfor (i = 0; i < c; i++)\n\t\t\tif (listing[i].deleted == 0)\n\t\t\t\tif (listing[i].group.toLowerCase() == g.toLowerCase())\n\t\t\t\t\tfor (j = 0; j < c; j++)\n\t\t\t\t\t\tif (listing[j].deleted == 0)\n\t\t\t\t\t\t\tif (listing[j].group == '' && listing[i].name.toLowerCase() == listing[j].name.toLowerCase()) {\n\t\t\t\t\t\t\t\texists = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\tif (exists)\n\t\t\talert(trans(\"An ungrouped file has the same name as a file in this group.\"));\n\t\telse\n\t\t\t$.post(ocUrl(\"ajax/v0.2/ownnote/ajaxdelgroup\"), { group: g }, function (data) {\n\t\t\t\tswitchgroup = \"All\";\n\t\t\t\tloadListing();\n\t\t\t});\n\t}\n\n\tvar cg = \"\";\n\tvar switchgroup = \"\";\n\n\tfunction editGroup() {\n\t\tvar g = $(this).attr('group');\n\t\tcg = g;\n\t\tvar i = 'group-'+g;\n\t\t$(\"[id='\"+i+\"']\").css(\"display\", \"none\");\n\t\t$(\"[id='\"+i+\"-edit']\").css(\"display\", \"inline-block\");\n\t}\n\n\tfunction saveGroup() {\n\t\tvar v = $(\"[id='\"+this.id+\"-text']\").val();\n\t\tvar c = listing.length;\n\t\tif (v != cg && v.toLowerCase() != \"all\" && v.toLowerCase() != \"not grouped\") {\n\t\t\tvar exists = false;\n\t\t\tfor (i = 0; i < c; i++)\n\t\t\t\tif (listing[i].deleted == 0)\n\t\t\t\t\tif (listing[i].group.toLowerCase() == v.toLowerCase()) {\n\t\t\t\t\t\texists = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\tif (exists)\n\t\t\t\talert(trans(\"Group already exists.\"));\n\t\t\telse\n\t\t\t\t$.post(ocUrl(\"ajax/v0.2/ownnote/ajaxrengroup\"), { group: cg, newgroup: v }, function (data) {\n\t\t\t\t\tswitchgroup = v;\n\t\t\t\t\tcg = \"\";\n\t\t\t\t\tloadListing();\n\t\t\t\t});\n\t\t} else {\n\t\t\tswitchgroup = v;\n\t\t\tcg = \"\";\n\t\t\tloadListing();\n\t\t}\n\t}\n\n\tvar disableAnnouncement = \"\";\n\tfunction getSettings() {\n\t\tdisableAnnouncement = $('#disableAnnouncement').val();\n\t}\n\n\t$(document).ready(function() {\n\t\t$.ajaxSetup ({ cache: false });\n\t\ttranslate();\n\t\tgetSettings();\n\t\tloadListing();\n\t});\n\t\n\n"
  },
  {
    "path": "js/tinymce/langs/readme.md",
    "content": "This is where language files should be placed.\n\nPlease DO NOT translate these directly use this service: https://www.transifex.com/projects/p/tinymce/\n"
  },
  {
    "path": "js/tinymce/license.txt",
    "content": "\t\t  GNU LESSER GENERAL PUBLIC LICENSE\n\t\t       Version 2.1, February 1999\n\n Copyright (C) 1991, 1999 Free Software Foundation, Inc.\n 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n[This is the first released version of the Lesser GPL.  It also counts\n as the successor of the GNU Library Public License, version 2, hence\n the version number 2.1.]\n\n\t\t\t    Preamble\n\n  The licenses for most software are designed to take away your\nfreedom to share and change it.  By contrast, the GNU General Public\nLicenses are intended to guarantee your freedom to share and change\nfree software--to make sure the software is free for all its users.\n\n  This license, the Lesser General Public License, applies to some\nspecially designated software packages--typically libraries--of the\nFree Software Foundation and other authors who decide to use it.  You\ncan use it too, but we suggest you first think carefully about whether\nthis license or the ordinary General Public License is the better\nstrategy to use in any particular case, based on the explanations below.\n\n  When we speak of free software, we are referring to freedom of use,\nnot price.  Our General Public Licenses are designed to make sure that\nyou have the freedom to distribute copies of free software (and charge\nfor this service if you wish); that you receive source code or can get\nit if you want it; that you can change the software and use pieces of\nit in new free programs; and that you are informed that you can do\nthese things.\n\n  To protect your rights, we need to make restrictions that forbid\ndistributors to deny you these rights or to ask you to surrender these\nrights.  These restrictions translate to certain responsibilities for\nyou if you distribute copies of the library or if you modify it.\n\n  For example, if you distribute copies of the library, whether gratis\nor for a fee, you must give the recipients all the rights that we gave\nyou.  You must make sure that they, too, receive or can get the source\ncode.  If you link other code with the library, you must provide\ncomplete object files to the recipients, so that they can relink them\nwith the library after making changes to the library and recompiling\nit.  And you must show them these terms so they know their rights.\n\n  We protect your rights with a two-step method: (1) we copyright the\nlibrary, and (2) we offer you this license, which gives you legal\npermission to copy, distribute and/or modify the library.\n\n  To protect each distributor, we want to make it very clear that\nthere is no warranty for the free library.  Also, if the library is\nmodified by someone else and passed on, the recipients should know\nthat what they have is not the original version, so that the original\nauthor's reputation will not be affected by problems that might be\nintroduced by others.\n\n  Finally, software patents pose a constant threat to the existence of\nany free program.  We wish to make sure that a company cannot\neffectively restrict the users of a free program by obtaining a\nrestrictive license from a patent holder.  Therefore, we insist that\nany patent license obtained for a version of the library must be\nconsistent with the full freedom of use specified in this license.\n\n  Most GNU software, including some libraries, is covered by the\nordinary GNU General Public License.  This license, the GNU Lesser\nGeneral Public License, applies to certain designated libraries, and\nis quite different from the ordinary General Public License.  We use\nthis license for certain libraries in order to permit linking those\nlibraries into non-free programs.\n\n  When a program is linked with a library, whether statically or using\na shared library, the combination of the two is legally speaking a\ncombined work, a derivative of the original library.  The ordinary\nGeneral Public License therefore permits such linking only if the\nentire combination fits its criteria of freedom.  The Lesser General\nPublic License permits more lax criteria for linking other code with\nthe library.\n\n  We call this license the \"Lesser\" General Public License because it\ndoes Less to protect the user's freedom than the ordinary General\nPublic License.  It also provides other free software developers Less\nof an advantage over competing non-free programs.  These disadvantages\nare the reason we use the ordinary General Public License for many\nlibraries.  However, the Lesser license provides advantages in certain\nspecial circumstances.\n\n  For example, on rare occasions, there may be a special need to\nencourage the widest possible use of a certain library, so that it becomes\na de-facto standard.  To achieve this, non-free programs must be\nallowed to use the library.  A more frequent case is that a free\nlibrary does the same job as widely used non-free libraries.  In this\ncase, there is little to gain by limiting the free library to free\nsoftware only, so we use the Lesser General Public License.\n\n  In other cases, permission to use a particular library in non-free\nprograms enables a greater number of people to use a large body of\nfree software.  For example, permission to use the GNU C Library in\nnon-free programs enables many more people to use the whole GNU\noperating system, as well as its variant, the GNU/Linux operating\nsystem.\n\n  Although the Lesser General Public License is Less protective of the\nusers' freedom, it does ensure that the user of a program that is\nlinked with the Library has the freedom and the wherewithal to run\nthat program using a modified version of the Library.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.  Pay close attention to the difference between a\n\"work based on the library\" and a \"work that uses the library\".  The\nformer contains code derived from the library, whereas the latter must\nbe combined with the library in order to run.\n\n\t\t  GNU LESSER GENERAL PUBLIC LICENSE\n   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n\n  0. This License Agreement applies to any software library or other\nprogram which contains a notice placed by the copyright holder or\nother authorized party saying it may be distributed under the terms of\nthis Lesser General Public License (also called \"this License\").\nEach licensee is addressed as \"you\".\n\n  A \"library\" means a collection of software functions and/or data\nprepared so as to be conveniently linked with application programs\n(which use some of those functions and data) to form executables.\n\n  The \"Library\", below, refers to any such software library or work\nwhich has been distributed under these terms.  A \"work based on the\nLibrary\" means either the Library or any derivative work under\ncopyright law: that is to say, a work containing the Library or a\nportion of it, either verbatim or with modifications and/or translated\nstraightforwardly into another language.  (Hereinafter, translation is\nincluded without limitation in the term \"modification\".)\n\n  \"Source code\" for a work means the preferred form of the work for\nmaking modifications to it.  For a library, complete source code means\nall the source code for all modules it contains, plus any associated\ninterface definition files, plus the scripts used to control compilation\nand installation of the library.\n\n  Activities other than copying, distribution and modification are not\ncovered by this License; they are outside its scope.  The act of\nrunning a program using the Library is not restricted, and output from\nsuch a program is covered only if its contents constitute a work based\non the Library (independent of the use of the Library in a tool for\nwriting it).  Whether that is true depends on what the Library does\nand what the program that uses the Library does.\n  \n  1. You may copy and distribute verbatim copies of the Library's\ncomplete source code as you receive it, in any medium, provided that\nyou conspicuously and appropriately publish on each copy an\nappropriate copyright notice and disclaimer of warranty; keep intact\nall the notices that refer to this License and to the absence of any\nwarranty; and distribute a copy of this License along with the\nLibrary.\n\n  You may charge a fee for the physical act of transferring a copy,\nand you may at your option offer warranty protection in exchange for a\nfee.\n\n  2. You may modify your copy or copies of the Library or any portion\nof it, thus forming a work based on the Library, and copy and\ndistribute such modifications or work under the terms of Section 1\nabove, provided that you also meet all of these conditions:\n\n    a) The modified work must itself be a software library.\n\n    b) You must cause the files modified to carry prominent notices\n    stating that you changed the files and the date of any change.\n\n    c) You must cause the whole of the work to be licensed at no\n    charge to all third parties under the terms of this License.\n\n    d) If a facility in the modified Library refers to a function or a\n    table of data to be supplied by an application program that uses\n    the facility, other than as an argument passed when the facility\n    is invoked, then you must make a good faith effort to ensure that,\n    in the event an application does not supply such function or\n    table, the facility still operates, and performs whatever part of\n    its purpose remains meaningful.\n\n    (For example, a function in a library to compute square roots has\n    a purpose that is entirely well-defined independent of the\n    application.  Therefore, Subsection 2d requires that any\n    application-supplied function or table used by this function must\n    be optional: if the application does not supply it, the square\n    root function must still compute square roots.)\n\nThese requirements apply to the modified work as a whole.  If\nidentifiable sections of that work are not derived from the Library,\nand can be reasonably considered independent and separate works in\nthemselves, then this License, and its terms, do not apply to those\nsections when you distribute them as separate works.  But when you\ndistribute the same sections as part of a whole which is a work based\non the Library, the distribution of the whole must be on the terms of\nthis License, whose permissions for other licensees extend to the\nentire whole, and thus to each and every part regardless of who wrote\nit.\n\nThus, it is not the intent of this section to claim rights or contest\nyour rights to work written entirely by you; rather, the intent is to\nexercise the right to control the distribution of derivative or\ncollective works based on the Library.\n\nIn addition, mere aggregation of another work not based on the Library\nwith the Library (or with a work based on the Library) on a volume of\na storage or distribution medium does not bring the other work under\nthe scope of this License.\n\n  3. You may opt to apply the terms of the ordinary GNU General Public\nLicense instead of this License to a given copy of the Library.  To do\nthis, you must alter all the notices that refer to this License, so\nthat they refer to the ordinary GNU General Public License, version 2,\ninstead of to this License.  (If a newer version than version 2 of the\nordinary GNU General Public License has appeared, then you can specify\nthat version instead if you wish.)  Do not make any other change in\nthese notices.\n\n  Once this change is made in a given copy, it is irreversible for\nthat copy, so the ordinary GNU General Public License applies to all\nsubsequent copies and derivative works made from that copy.\n\n  This option is useful when you wish to copy part of the code of\nthe Library into a program that is not a library.\n\n  4. You may copy and distribute the Library (or a portion or\nderivative of it, under Section 2) in object code or executable form\nunder the terms of Sections 1 and 2 above provided that you accompany\nit with the complete corresponding machine-readable source code, which\nmust be distributed under the terms of Sections 1 and 2 above on a\nmedium customarily used for software interchange.\n\n  If distribution of object code is made by offering access to copy\nfrom a designated place, then offering equivalent access to copy the\nsource code from the same place satisfies the requirement to\ndistribute the source code, even though third parties are not\ncompelled to copy the source along with the object code.\n\n  5. A program that contains no derivative of any portion of the\nLibrary, but is designed to work with the Library by being compiled or\nlinked with it, is called a \"work that uses the Library\".  Such a\nwork, in isolation, is not a derivative work of the Library, and\ntherefore falls outside the scope of this License.\n\n  However, linking a \"work that uses the Library\" with the Library\ncreates an executable that is a derivative of the Library (because it\ncontains portions of the Library), rather than a \"work that uses the\nlibrary\".  The executable is therefore covered by this License.\nSection 6 states terms for distribution of such executables.\n\n  When a \"work that uses the Library\" uses material from a header file\nthat is part of the Library, the object code for the work may be a\nderivative work of the Library even though the source code is not.\nWhether this is true is especially significant if the work can be\nlinked without the Library, or if the work is itself a library.  The\nthreshold for this to be true is not precisely defined by law.\n\n  If such an object file uses only numerical parameters, data\nstructure layouts and accessors, and small macros and small inline\nfunctions (ten lines or less in length), then the use of the object\nfile is unrestricted, regardless of whether it is legally a derivative\nwork.  (Executables containing this object code plus portions of the\nLibrary will still fall under Section 6.)\n\n  Otherwise, if the work is a derivative of the Library, you may\ndistribute the object code for the work under the terms of Section 6.\nAny executables containing that work also fall under Section 6,\nwhether or not they are linked directly with the Library itself.\n\n  6. As an exception to the Sections above, you may also combine or\nlink a \"work that uses the Library\" with the Library to produce a\nwork containing portions of the Library, and distribute that work\nunder terms of your choice, provided that the terms permit\nmodification of the work for the customer's own use and reverse\nengineering for debugging such modifications.\n\n  You must give prominent notice with each copy of the work that the\nLibrary is used in it and that the Library and its use are covered by\nthis License.  You must supply a copy of this License.  If the work\nduring execution displays copyright notices, you must include the\ncopyright notice for the Library among them, as well as a reference\ndirecting the user to the copy of this License.  Also, you must do one\nof these things:\n\n    a) Accompany the work with the complete corresponding\n    machine-readable source code for the Library including whatever\n    changes were used in the work (which must be distributed under\n    Sections 1 and 2 above); and, if the work is an executable linked\n    with the Library, with the complete machine-readable \"work that\n    uses the Library\", as object code and/or source code, so that the\n    user can modify the Library and then relink to produce a modified\n    executable containing the modified Library.  (It is understood\n    that the user who changes the contents of definitions files in the\n    Library will not necessarily be able to recompile the application\n    to use the modified definitions.)\n\n    b) Use a suitable shared library mechanism for linking with the\n    Library.  A suitable mechanism is one that (1) uses at run time a\n    copy of the library already present on the user's computer system,\n    rather than copying library functions into the executable, and (2)\n    will operate properly with a modified version of the library, if\n    the user installs one, as long as the modified version is\n    interface-compatible with the version that the work was made with.\n\n    c) Accompany the work with a written offer, valid for at\n    least three years, to give the same user the materials\n    specified in Subsection 6a, above, for a charge no more\n    than the cost of performing this distribution.\n\n    d) If distribution of the work is made by offering access to copy\n    from a designated place, offer equivalent access to copy the above\n    specified materials from the same place.\n\n    e) Verify that the user has already received a copy of these\n    materials or that you have already sent this user a copy.\n\n  For an executable, the required form of the \"work that uses the\nLibrary\" must include any data and utility programs needed for\nreproducing the executable from it.  However, as a special exception,\nthe materials to be distributed need not include anything that is\nnormally distributed (in either source or binary form) with the major\ncomponents (compiler, kernel, and so on) of the operating system on\nwhich the executable runs, unless that component itself accompanies\nthe executable.\n\n  It may happen that this requirement contradicts the license\nrestrictions of other proprietary libraries that do not normally\naccompany the operating system.  Such a contradiction means you cannot\nuse both them and the Library together in an executable that you\ndistribute.\n\n  7. You may place library facilities that are a work based on the\nLibrary side-by-side in a single library together with other library\nfacilities not covered by this License, and distribute such a combined\nlibrary, provided that the separate distribution of the work based on\nthe Library and of the other library facilities is otherwise\npermitted, and provided that you do these two things:\n\n    a) Accompany the combined library with a copy of the same work\n    based on the Library, uncombined with any other library\n    facilities.  This must be distributed under the terms of the\n    Sections above.\n\n    b) Give prominent notice with the combined library of the fact\n    that part of it is a work based on the Library, and explaining\n    where to find the accompanying uncombined form of the same work.\n\n  8. You may not copy, modify, sublicense, link with, or distribute\nthe Library except as expressly provided under this License.  Any\nattempt otherwise to copy, modify, sublicense, link with, or\ndistribute the Library is void, and will automatically terminate your\nrights under this License.  However, parties who have received copies,\nor rights, from you under this License will not have their licenses\nterminated so long as such parties remain in full compliance.\n\n  9. You are not required to accept this License, since you have not\nsigned it.  However, nothing else grants you permission to modify or\ndistribute the Library or its derivative works.  These actions are\nprohibited by law if you do not accept this License.  Therefore, by\nmodifying or distributing the Library (or any work based on the\nLibrary), you indicate your acceptance of this License to do so, and\nall its terms and conditions for copying, distributing or modifying\nthe Library or works based on it.\n\n  10. Each time you redistribute the Library (or any work based on the\nLibrary), the recipient automatically receives a license from the\noriginal licensor to copy, distribute, link with or modify the Library\nsubject to these terms and conditions.  You may not impose any further\nrestrictions on the recipients' exercise of the rights granted herein.\nYou are not responsible for enforcing compliance by third parties with\nthis License.\n\n  11. If, as a consequence of a court judgment or allegation of patent\ninfringement or for any other reason (not limited to patent issues),\nconditions 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\ndistribute so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you\nmay not distribute the Library at all.  For example, if a patent\nlicense would not permit royalty-free redistribution of the Library by\nall those who receive copies directly or indirectly through you, then\nthe only way you could satisfy both it and this License would be to\nrefrain entirely from distribution of the Library.\n\nIf any portion of this section is held invalid or unenforceable under any\nparticular circumstance, the balance of the section is intended to apply,\nand the section as a whole is intended to apply in other circumstances.\n\nIt is not the purpose of this section to induce you to infringe any\npatents or other property right claims or to contest validity of any\nsuch claims; this section has the sole purpose of protecting the\nintegrity of the free software distribution system which is\nimplemented by public license practices.  Many people have made\ngenerous contributions to the wide range of software distributed\nthrough that system in reliance on consistent application of that\nsystem; it is up to the author/donor to decide if he or she is willing\nto distribute software through any other system and a licensee cannot\nimpose that choice.\n\nThis section is intended to make thoroughly clear what is believed to\nbe a consequence of the rest of this License.\n\n  12. If the distribution and/or use of the Library is restricted in\ncertain countries either by patents or by copyrighted interfaces, the\noriginal copyright holder who places the Library under this License may add\nan explicit geographical distribution limitation excluding those countries,\nso that distribution is permitted only in or among countries not thus\nexcluded.  In such case, this License incorporates the limitation as if\nwritten in the body of this License.\n\n  13. The Free Software Foundation may publish revised and/or new\nversions of the Lesser General Public License from time to time.\nSuch new versions will be similar in spirit to the present version,\nbut may differ in detail to address new problems or concerns.\n\nEach version is given a distinguishing version number.  If the Library\nspecifies a version number of this License which applies to it and\n\"any later version\", you have the option of following the terms and\nconditions either of that version or of any later version published by\nthe Free Software Foundation.  If the Library does not specify a\nlicense version number, you may choose any version ever published by\nthe Free Software Foundation.\n\n  14. If you wish to incorporate parts of the Library into other free\nprograms whose distribution conditions are incompatible with these,\nwrite to the author to ask for permission.  For software which is\ncopyrighted by the Free Software Foundation, write to the Free\nSoftware Foundation; we sometimes make exceptions for this.  Our\ndecision will be guided by the two goals of preserving the free status\nof all derivatives of our free software and of promoting the sharing\nand reuse of software generally.\n\n\t\t\t    NO WARRANTY\n\n  15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO\nWARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.\nEXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR\nOTHER PARTIES PROVIDE THE LIBRARY \"AS IS\" WITHOUT WARRANTY OF ANY\nKIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE\nIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE\nLIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME\nTHE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN\nWRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY\nAND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU\nFOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR\nCONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE\nLIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING\nRENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A\nFAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF\nSUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH\nDAMAGES.\n\n\t\t     END OF TERMS AND CONDITIONS\n\n           How to Apply These Terms to Your New Libraries\n\n  If you develop a new library, and you want it to be of the greatest\npossible use to the public, we recommend making it free software that\neveryone can redistribute and change.  You can do so by permitting\nredistribution under these terms (or, alternatively, under the terms of the\nordinary General Public License).\n\n  To apply these terms, attach the following notices to the library.  It is\nsafest to attach them to the start of each source file to most effectively\nconvey the exclusion of warranty; and each file should have at least the\n\"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the library's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This library is free software; you can redistribute it and/or\n    modify it under the terms of the GNU Lesser General Public\n    License as published by the Free Software Foundation; either\n    version 2.1 of the License, or (at your option) any later version.\n\n    This library 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 GNU\n    Lesser General Public License for more details.\n\n    You should have received a copy of the GNU Lesser General Public\n    License along with this library; if not, write to the Free Software\n    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA\n\nAlso add information on how to contact you by electronic and paper mail.\n\nYou should also get your employer (if you work as a programmer) or your\nschool, if any, to sign a \"copyright disclaimer\" for the library, if\nnecessary.  Here is a sample; alter the names:\n\n  Yoyodyne, Inc., hereby disclaims all copyright interest in the\n  library `Frob' (a library for tweaking knobs) written by James Random Hacker.\n\n  <signature of Ty Coon>, 1 April 1990\n  Ty Coon, President of Vice\n\nThat's all there is to it!\n\n\n"
  },
  {
    "path": "js/tinymce/plugins/bdesk_photo/README.md",
    "content": "BDESK PHOTO\n============\n\nBdesk Photo is a tinymce plugin for BuddyexpressDesk to allow administrator to embed image in post as a base64 encode image.\n\nThere are some restrictions in plugin like:\n 1. The image must be equal to or less then 500KB\n 2. The image must be equal to or less then 800x800 in dimensions.\n\nNote: If you want to remove restriction replace plugin.min.js with the code found here https://gist.github.com/arsalanshah/10623688\n\nLast Edit README.md : Leonard Walter\n\nCOPYRIGHT 2014 Informatikon Technologies informatikon.com\n"
  },
  {
    "path": "js/tinymce/plugins/example/dialog.html",
    "content": "<!DOCTYPE html>\n<html>\n<body>\n\t<h3>Custom dialog</h3>\n\tInput some text: <input id=\"content\">\n\t<button onclick=\"top.tinymce.activeEditor.windowManager.getWindows()[0].close();\">Close window</button>\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/.gitattributes",
    "content": "# Auto detect text files and perform LF normalization\n* text=auto\n\n# Custom for Visual Studio\n*.cs     diff=csharp\n*.sln    merge=union\n*.csproj merge=union\n*.vbproj merge=union\n*.fsproj merge=union\n*.dbproj merge=union\n\n# Standard to msysgit\n*.doc\t diff=astextplain\n*.DOC\t diff=astextplain\n*.docx diff=astextplain\n*.DOCX diff=astextplain\n*.dot  diff=astextplain\n*.DOT  diff=astextplain\n*.pdf  diff=astextplain\n*.PDF\t diff=astextplain\n*.rtf\t diff=astextplain\n*.RTF\t diff=astextplain\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/.gitignore",
    "content": "# Windows image file caches\r\nThumbs.db\r\nehthumbs.db\r\n\r\n# Folder config file\r\nDesktop.ini\r\n\r\n# Recycle Bin used on file shares\r\n$RECYCLE.BIN/\r\n\r\n# Windows Installer files\r\n*.cab\r\n*.msi\r\n*.msm\r\n*.msp\r\n\r\n# =========================\r\n# Operating System Files\r\n# =========================\r\n\r\n# OSX\r\n# =========================\r\n\r\n.DS_Store\n.AppleDouble\n.LSOverride\n\n# Icon must end with two \\r\nIcon\r\r\n\n# Thumbnails\n._*\n\n# Files that might appear on external disk\n.Spotlight-V100\n.Trashes\n\n# Directories potentially created on remote AFP share\n.AppleDB\n.AppleDesktop\nNetwork Trash Folder\nTemporary Items\n.apdisk\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/.htaccess",
    "content": "Deny from all"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/autoload.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------\n| AUTO-LOADER\n| -------------------------------------------------------------------\n| This file specifies which systems should be loaded by default.\n|\n| In order to keep the framework as light-weight as possible only the\n| absolute minimal resources are loaded by default. For example,\n| the database is not connected to automatically since no assumption\n| is made regarding whether you intend to use it.  This file lets\n| you globally define which systems you would like loaded with every\n| request.\n|\n| -------------------------------------------------------------------\n| Instructions\n| -------------------------------------------------------------------\n|\n| These are the things you can load automatically:\n|\n| 1. Packages\n| 2. Libraries\n| 3. Helper files\n| 4. Custom config files\n| 5. Language files\n| 6. Models\n|\n*/\n\n/*\n| -------------------------------------------------------------------\n|  Auto-load Packges\n| -------------------------------------------------------------------\n| Prototype:\n|\n|  $autoload['packages'] = array(APPPATH.'third_party', '/usr/local/shared');\n|\n*/\n\n$autoload['packages'] = array();\n\n\n/*\n| -------------------------------------------------------------------\n|  Auto-load Libraries\n| -------------------------------------------------------------------\n| These are the classes located in the system/libraries folder\n| or in your application/libraries folder.\n|\n| Prototype:\n|\n|\t$autoload['libraries'] = array('database', 'session', 'xmlrpc');\n*/\n\n$autoload['libraries'] = array();\n\n\n/*\n| -------------------------------------------------------------------\n|  Auto-load Helper Files\n| -------------------------------------------------------------------\n| Prototype:\n|\n|\t$autoload['helper'] = array('url', 'file');\n*/\n\n$autoload['helper'] = array();\n\n\n/*\n| -------------------------------------------------------------------\n|  Auto-load Config files\n| -------------------------------------------------------------------\n| Prototype:\n|\n|\t$autoload['config'] = array('config1', 'config2');\n|\n| NOTE: This item is intended for use ONLY if you have created custom\n| config files.  Otherwise, leave it blank.\n|\n*/\n\n$autoload['config'] = array();\n\n\n/*\n| -------------------------------------------------------------------\n|  Auto-load Language files\n| -------------------------------------------------------------------\n| Prototype:\n|\n|\t$autoload['language'] = array('lang1', 'lang2');\n|\n| NOTE: Do not include the \"_lang\" part of your file.  For example\n| \"codeigniter_lang.php\" would be referenced as array('codeigniter');\n|\n*/\n\n$autoload['language'] = array();\n\n\n/*\n| -------------------------------------------------------------------\n|  Auto-load Models\n| -------------------------------------------------------------------\n| Prototype:\n|\n|\t$autoload['model'] = array('model1', 'model2');\n|\n*/\n\n$autoload['model'] = array();\n\n\n/* End of file autoload.php */\n/* Location: ./application/config/autoload.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/config.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\n/*\n|--------------------------------------------------------------------------\n| Base Site URL\n|--------------------------------------------------------------------------\n|\n| URL to your CodeIgniter root. Typically this will be your base URL,\n| WITH a trailing slash:\n|\n|\thttp://example.com/\n|\n| If this is not set then CodeIgniter will guess the protocol, domain and\n| path to your installation.\n|\n*/\n$config['base_url']\t= '';\n\n/*\n|--------------------------------------------------------------------------\n| Index File\n|--------------------------------------------------------------------------\n|\n| Typically this will be your index.php file, unless you've renamed it to\n| something else. If you are using mod_rewrite to remove the page set this\n| variable so that it is blank.\n|\n*/\n$config['index_page'] = 'index.php';\n\n/*\n|--------------------------------------------------------------------------\n| URI PROTOCOL\n|--------------------------------------------------------------------------\n|\n| This item determines which server global should be used to retrieve the\n| URI string.  The default setting of 'AUTO' works for most servers.\n| If your links do not seem to work, try one of the other delicious flavors:\n|\n| 'AUTO'\t\t\tDefault - auto detects\n| 'PATH_INFO'\t\tUses the PATH_INFO\n| 'QUERY_STRING'\tUses the QUERY_STRING\n| 'REQUEST_URI'\t\tUses the REQUEST_URI\n| 'ORIG_PATH_INFO'\tUses the ORIG_PATH_INFO\n|\n*/\n$config['uri_protocol']\t= 'QUERY_STRING';\n\n/*\n|--------------------------------------------------------------------------\n| URL suffix\n|--------------------------------------------------------------------------\n|\n| This option allows you to add a suffix to all URLs generated by CodeIgniter.\n| For more information please see the user guide:\n|\n| http://codeigniter.com/user_guide/general/urls.html\n*/\n\n$config['url_suffix'] = '';\n\n/*\n|--------------------------------------------------------------------------\n| Default Language\n|--------------------------------------------------------------------------\n|\n| This determines which set of language files should be used. Make sure\n| there is an available translation if you intend to use something other\n| than english.\n|\n*/\n$config['language']\t= 'english';\n\n/*\n|--------------------------------------------------------------------------\n| Default Character Set\n|--------------------------------------------------------------------------\n|\n| This determines which character set is used by default in various methods\n| that require a character set to be provided.\n|\n*/\n$config['charset'] = 'UTF-8';\n\n/*\n|--------------------------------------------------------------------------\n| Enable/Disable System Hooks\n|--------------------------------------------------------------------------\n|\n| If you would like to use the 'hooks' feature you must enable it by\n| setting this variable to TRUE (boolean).  See the user guide for details.\n|\n*/\n$config['enable_hooks'] = FALSE;\n\n\n/*\n|--------------------------------------------------------------------------\n| Class Extension Prefix\n|--------------------------------------------------------------------------\n|\n| This item allows you to set the filename/classname prefix when extending\n| native libraries.  For more information please see the user guide:\n|\n| http://codeigniter.com/user_guide/general/core_classes.html\n| http://codeigniter.com/user_guide/general/creating_libraries.html\n|\n*/\n$config['subclass_prefix'] = 'MY_';\n\n\n/*\n|--------------------------------------------------------------------------\n| Allowed URL Characters\n|--------------------------------------------------------------------------\n|\n| This lets you specify with a regular expression which characters are permitted\n| within your URLs.  When someone tries to submit a URL with disallowed\n| characters they will get a warning message.\n|\n| As a security measure you are STRONGLY encouraged to restrict URLs to\n| as few characters as possible.  By default only these are allowed: a-z 0-9~%.:_-\n|\n| Leave blank to allow all characters -- but only if you are insane.\n|\n| DO NOT CHANGE THIS UNLESS YOU FULLY UNDERSTAND THE REPERCUSSIONS!!\n|\n*/\n$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\\-';\n\n\n/*\n|--------------------------------------------------------------------------\n| Enable Query Strings\n|--------------------------------------------------------------------------\n|\n| By default CodeIgniter uses search-engine friendly segment based URLs:\n| example.com/who/what/where/\n|\n| By default CodeIgniter enables access to the $_GET array.  If for some\n| reason you would like to disable it, set 'allow_get_array' to FALSE.\n|\n| You can optionally enable standard query string based URLs:\n| example.com?who=me&what=something&where=here\n|\n| Options are: TRUE or FALSE (boolean)\n|\n| The other items let you set the query string 'words' that will\n| invoke your controllers and its functions:\n| example.com/index.php?c=controller&m=function\n|\n| Please note that some of the helpers won't work as expected when\n| this feature is enabled, since CodeIgniter is designed primarily to\n| use segment based URLs.\n|\n*/\n$config['allow_get_array']\t\t\t= FALSE;\n$config['enable_query_strings'] = FALSE;\n$config['controller_trigger']\t= 'c';\n$config['function_trigger']\t\t= 'm';\n$config['directory_trigger']\t= 'd'; // experimental not currently in use\n\n/*\n|--------------------------------------------------------------------------\n| Error Logging Threshold\n|--------------------------------------------------------------------------\n|\n| If you have enabled error logging, you can set an error threshold to\n| determine what gets logged. Threshold options are:\n| You can enable error logging by setting a threshold over zero. The\n| threshold determines what gets logged. Threshold options are:\n|\n|\t0 = Disables logging, Error logging TURNED OFF\n|\t1 = Error Messages (including PHP errors)\n|\t2 = Debug Messages\n|\t3 = Informational Messages\n|\t4 = All Messages\n|\n| For a live site you'll usually only enable Errors (1) to be logged otherwise\n| your log files will fill up very fast.\n|\n*/\n$config['log_threshold'] = 0;\n\n/*\n|--------------------------------------------------------------------------\n| Error Logging Directory Path\n|--------------------------------------------------------------------------\n|\n| Leave this BLANK unless you would like to set something other than the default\n| application/logs/ folder. Use a full server path with trailing slash.\n|\n*/\n$config['log_path'] = '';\n\n/*\n|--------------------------------------------------------------------------\n| Date Format for Logs\n|--------------------------------------------------------------------------\n|\n| Each item that is logged has an associated date. You can use PHP date\n| codes to set your own date formatting\n|\n*/\n$config['log_date_format'] = 'Y-m-d H:i:s';\n\n/*\n|--------------------------------------------------------------------------\n| Cache Directory Path\n|--------------------------------------------------------------------------\n|\n| Leave this BLANK unless you would like to set something other than the default\n| system/cache/ folder.  Use a full server path with trailing slash.\n|\n*/\n$config['cache_path'] = '';\n\n/*\n|--------------------------------------------------------------------------\n| Encryption Key\n|--------------------------------------------------------------------------\n|\n| If you use the Encryption class or the Session class you\n| MUST set an encryption key.  See the user guide for info.\n|\n*/\n$config['encryption_key'] = '';\n\n/*\n|--------------------------------------------------------------------------\n| Session Variables\n|--------------------------------------------------------------------------\n|\n| 'sess_cookie_name'\t\t= the name you want for the cookie\n| 'sess_expiration'\t\t\t= the number of SECONDS you want the session to last.\n|   by default sessions last 7200 seconds (two hours).  Set to zero for no expiration.\n| 'sess_expire_on_close'\t= Whether to cause the session to expire automatically\n|   when the browser window is closed\n| 'sess_encrypt_cookie'\t\t= Whether to encrypt the cookie\n| 'sess_use_database'\t\t= Whether to save the session data to a database\n| 'sess_table_name'\t\t\t= The name of the session database table\n| 'sess_match_ip'\t\t\t= Whether to match the user's IP address when reading the session data\n| 'sess_match_useragent'\t= Whether to match the User Agent when reading the session data\n| 'sess_time_to_update'\t\t= how many seconds between CI refreshing Session Information\n|\n*/\n$config['sess_cookie_name']\t\t= 'ci_session';\n$config['sess_expiration']\t\t= 7200;\n$config['sess_expire_on_close']\t= FALSE;\n$config['sess_encrypt_cookie']\t= FALSE;\n$config['sess_use_database']\t= FALSE;\n$config['sess_table_name']\t\t= 'ci_sessions';\n$config['sess_match_ip']\t\t= FALSE;\n$config['sess_match_useragent']\t= TRUE;\n$config['sess_time_to_update']\t= 300;\n\n/*\n|--------------------------------------------------------------------------\n| Cookie Related Variables\n|--------------------------------------------------------------------------\n|\n| 'cookie_prefix' = Set a prefix if you need to avoid collisions\n| 'cookie_domain' = Set to .your-domain.com for site-wide cookies\n| 'cookie_path'   =  Typically will be a forward slash\n| 'cookie_secure' =  Cookies will only be set if a secure HTTPS connection exists.\n|\n*/\n$config['cookie_prefix']\t= \"\";\n$config['cookie_domain']\t= \"\";\n$config['cookie_path']\t\t= \"/\";\n$config['cookie_secure']\t= FALSE;\n\n/*\n|--------------------------------------------------------------------------\n| Global XSS Filtering\n|--------------------------------------------------------------------------\n|\n| Determines whether the XSS filter is always active when GET, POST or\n| COOKIE data is encountered\n|\n*/\n$config['global_xss_filtering'] = FALSE;\n\n/*\n|--------------------------------------------------------------------------\n| Cross Site Request Forgery\n|--------------------------------------------------------------------------\n| Enables a CSRF cookie token to be set. When set to TRUE, token will be\n| checked on a submitted form. If you are accepting user data, it is strongly\n| recommended CSRF protection be enabled.\n|\n| 'csrf_token_name' = The token name\n| 'csrf_cookie_name' = The cookie name\n| 'csrf_expire' = The number in seconds the token should expire.\n*/\n$config['csrf_protection'] = FALSE;\n$config['csrf_token_name'] = 'csrf_test_name';\n$config['csrf_cookie_name'] = 'csrf_cookie_name';\n$config['csrf_expire'] = 7200;\n\n/*\n|--------------------------------------------------------------------------\n| Output Compression\n|--------------------------------------------------------------------------\n|\n| Enables Gzip output compression for faster page loads.  When enabled,\n| the output class will test whether your server supports Gzip.\n| Even if it does, however, not all browsers support compression\n| so enable only if you are reasonably sure your visitors can handle it.\n|\n| VERY IMPORTANT:  If you are getting a blank page when compression is enabled it\n| means you are prematurely outputting something to your browser. It could\n| even be a line of whitespace at the end of one of your scripts.  For\n| compression to work, nothing can be sent before the output buffer is called\n| by the output class.  Do not 'echo' any values with compression enabled.\n|\n*/\n$config['compress_output'] = FALSE;\n\n/*\n|--------------------------------------------------------------------------\n| Master Time Reference\n|--------------------------------------------------------------------------\n|\n| Options are 'local' or 'gmt'.  This pref tells the system whether to use\n| your server's local time as the master 'now' reference, or convert it to\n| GMT.  See the 'date helper' page of the user guide for information\n| regarding date handling.\n|\n*/\n$config['time_reference'] = 'local';\n\n\n/*\n|--------------------------------------------------------------------------\n| Rewrite PHP Short Tags\n|--------------------------------------------------------------------------\n|\n| If your PHP installation does not have short tag support enabled CI\n| can rewrite the tags on-the-fly, enabling you to utilize that syntax\n| in your view files.  Options are TRUE or FALSE (boolean)\n|\n*/\n$config['rewrite_short_tags'] = FALSE;\n\n\n/*\n|--------------------------------------------------------------------------\n| Reverse Proxy IPs\n|--------------------------------------------------------------------------\n|\n| If your server is behind a reverse proxy, you must whitelist the proxy IP\n| addresses from which CodeIgniter should trust the HTTP_X_FORWARDED_FOR\n| header in order to properly identify the visitor's IP address.\n| Comma-delimited, e.g. '10.0.1.200,10.0.1.201'\n|\n*/\n$config['proxy_ips'] = '';\n\n\n/* End of file config.php */\n/* Location: ./application/config/config.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/constants.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\n/*\n|--------------------------------------------------------------------------\n| File and Directory Modes\n|--------------------------------------------------------------------------\n|\n| These prefs are used when checking and setting modes when working\n| with the file system.  The defaults are fine on servers with proper\n| security, but you may wish (or even need) to change the values in\n| certain environments (Apache running a separate process for each\n| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should\n| always be used to set the mode correctly.\n|\n*/\ndefine('FILE_READ_MODE', 0644);\ndefine('FILE_WRITE_MODE', 0666);\ndefine('DIR_READ_MODE', 0755);\ndefine('DIR_WRITE_MODE', 0777);\n\n/*\n|--------------------------------------------------------------------------\n| File Stream Modes\n|--------------------------------------------------------------------------\n|\n| These modes are used when working with fopen()/popen()\n|\n*/\n\ndefine('FOPEN_READ',\t\t\t\t\t\t\t'rb');\ndefine('FOPEN_READ_WRITE',\t\t\t\t\t\t'r+b');\ndefine('FOPEN_WRITE_CREATE_DESTRUCTIVE',\t\t'wb'); // truncates existing file data, use with care\ndefine('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',\t'w+b'); // truncates existing file data, use with care\ndefine('FOPEN_WRITE_CREATE',\t\t\t\t\t'ab');\ndefine('FOPEN_READ_WRITE_CREATE',\t\t\t\t'a+b');\ndefine('FOPEN_WRITE_CREATE_STRICT',\t\t\t\t'xb');\ndefine('FOPEN_READ_WRITE_CREATE_STRICT',\t\t'x+b');\n\n\n/* End of file constants.php */\n/* Location: ./application/config/constants.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/database.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------\n| DATABASE CONNECTIVITY SETTINGS\n| -------------------------------------------------------------------\n| This file will contain the settings needed to access your database.\n|\n| For complete instructions please consult the 'Database Connection'\n| page of the User Guide.\n|\n| -------------------------------------------------------------------\n| EXPLANATION OF VARIABLES\n| -------------------------------------------------------------------\n|\n|\t['hostname'] The hostname of your database server.\n|\t['username'] The username used to connect to the database\n|\t['password'] The password used to connect to the database\n|\t['database'] The name of the database you want to connect to\n|\t['dbdriver'] The database type. ie: mysql.  Currently supported:\n\t\t\t\t mysql, mysqli, postgre, odbc, mssql, sqlite, oci8\n|\t['dbprefix'] You can add an optional prefix, which will be added\n|\t\t\t\t to the table name when using the  Active Record class\n|\t['pconnect'] TRUE/FALSE - Whether to use a persistent connection\n|\t['db_debug'] TRUE/FALSE - Whether database errors should be displayed.\n|\t['cache_on'] TRUE/FALSE - Enables/disables query caching\n|\t['cachedir'] The path to the folder where cache files should be stored\n|\t['char_set'] The character set used in communicating with the database\n|\t['dbcollat'] The character collation used in communicating with the database\n|\t\t\t\t NOTE: For MySQL and MySQLi databases, this setting is only used\n| \t\t\t\t as a backup if your server is running PHP < 5.2.3 or MySQL < 5.0.7\n|\t\t\t\t (and in table creation queries made with DB Forge).\n| \t\t\t\t There is an incompatibility in PHP with mysql_real_escape_string() which\n| \t\t\t\t can make your site vulnerable to SQL injection if you are using a\n| \t\t\t\t multi-byte character set and are running versions lower than these.\n| \t\t\t\t Sites using Latin-1 or UTF-8 database character set and collation are unaffected.\n|\t['swap_pre'] A default table prefix that should be swapped with the dbprefix\n|\t['autoinit'] Whether or not to automatically initialize the database.\n|\t['stricton'] TRUE/FALSE - forces 'Strict Mode' connections\n|\t\t\t\t\t\t\t- good for ensuring strict SQL while developing\n|\n| The $active_group variable lets you choose which connection group to\n| make active.  By default there is only one group (the 'default' group).\n|\n| The $active_record variables lets you determine whether or not to load\n| the active record class\n*/\n\n$active_group = 'default';\n$active_record = TRUE;\n\n$db['default']['hostname'] = 'localhost';\n$db['default']['username'] = '';\n$db['default']['password'] = '';\n$db['default']['database'] = '';\n$db['default']['dbdriver'] = 'mysql';\n$db['default']['dbprefix'] = '';\n$db['default']['pconnect'] = TRUE;\n$db['default']['db_debug'] = TRUE;\n$db['default']['cache_on'] = FALSE;\n$db['default']['cachedir'] = '';\n$db['default']['char_set'] = 'utf8';\n$db['default']['dbcollat'] = 'utf8_general_ci';\n$db['default']['swap_pre'] = '';\n$db['default']['autoinit'] = TRUE;\n$db['default']['stricton'] = FALSE;\n\n\n/* End of file database.php */\n/* Location: ./application/config/database.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/doctypes.php",
    "content": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\n$_doctypes = array(\n\t\t\t\t\t'xhtml11'\t\t=> '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">',\n\t\t\t\t\t'xhtml1-strict'\t=> '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">',\n\t\t\t\t\t'xhtml1-trans'\t=> '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">',\n\t\t\t\t\t'xhtml1-frame'\t=> '<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">',\n\t\t\t\t\t'html5'\t\t\t=> '<!DOCTYPE html>',\n\t\t\t\t\t'html4-strict'\t=> '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"http://www.w3.org/TR/html4/strict.dtd\">',\n\t\t\t\t\t'html4-trans'\t=> '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">',\n\t\t\t\t\t'html4-frame'\t=> '<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Frameset//EN\" \"http://www.w3.org/TR/html4/frameset.dtd\">'\n\t\t\t\t\t);\n\n/* End of file doctypes.php */\n/* Location: ./application/config/doctypes.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/foreign_chars.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------\n| Foreign Characters\n| -------------------------------------------------------------------\n| This file contains an array of foreign characters for transliteration\n| conversion used by the Text helper\n|\n*/\n$foreign_characters = array(\n\t'/ä|æ|ǽ/' => 'ae',\n\t'/ö|œ/' => 'oe',\n\t'/ü/' => 'ue',\n\t'/Ä/' => 'Ae',\n\t'/Ü/' => 'Ue',\n\t'/Ö/' => 'Oe',\n\t'/À|Á|Â|Ã|Ä|Å|Ǻ|Ā|Ă|Ą|Ǎ/' => 'A',\n\t'/à|á|â|ã|å|ǻ|ā|ă|ą|ǎ|ª/' => 'a',\n\t'/Ç|Ć|Ĉ|Ċ|Č/' => 'C',\n\t'/ç|ć|ĉ|ċ|č/' => 'c',\n\t'/Ð|Ď|Đ/' => 'D',\n\t'/ð|ď|đ/' => 'd',\n\t'/È|É|Ê|Ë|Ē|Ĕ|Ė|Ę|Ě/' => 'E',\n\t'/è|é|ê|ë|ē|ĕ|ė|ę|ě/' => 'e',\n\t'/Ĝ|Ğ|Ġ|Ģ/' => 'G',\n\t'/ĝ|ğ|ġ|ģ/' => 'g',\n\t'/Ĥ|Ħ/' => 'H',\n\t'/ĥ|ħ/' => 'h',\n\t'/Ì|Í|Î|Ï|Ĩ|Ī|Ĭ|Ǐ|Į|İ/' => 'I',\n\t'/ì|í|î|ï|ĩ|ī|ĭ|ǐ|į|ı/' => 'i',\n\t'/Ĵ/' => 'J',\n\t'/ĵ/' => 'j',\n\t'/Ķ/' => 'K',\n\t'/ķ/' => 'k',\n\t'/Ĺ|Ļ|Ľ|Ŀ|Ł/' => 'L',\n\t'/ĺ|ļ|ľ|ŀ|ł/' => 'l',\n\t'/Ñ|Ń|Ņ|Ň/' => 'N',\n\t'/ñ|ń|ņ|ň|ŉ/' => 'n',\n\t'/Ò|Ó|Ô|Õ|Ō|Ŏ|Ǒ|Ő|Ơ|Ø|Ǿ/' => 'O',\n\t'/ò|ó|ô|õ|ō|ŏ|ǒ|ő|ơ|ø|ǿ|º/' => 'o',\n\t'/Ŕ|Ŗ|Ř/' => 'R',\n\t'/ŕ|ŗ|ř/' => 'r',\n\t'/Ś|Ŝ|Ş|Š/' => 'S',\n\t'/ś|ŝ|ş|š|ſ/' => 's',\n\t'/Ţ|Ť|Ŧ/' => 'T',\n\t'/ţ|ť|ŧ/' => 't',\n\t'/Ù|Ú|Û|Ũ|Ū|Ŭ|Ů|Ű|Ų|Ư|Ǔ|Ǖ|Ǘ|Ǚ|Ǜ/' => 'U',\n\t'/ù|ú|û|ũ|ū|ŭ|ů|ű|ų|ư|ǔ|ǖ|ǘ|ǚ|ǜ/' => 'u',\n\t'/Ý|Ÿ|Ŷ/' => 'Y',\n\t'/ý|ÿ|ŷ/' => 'y',\n\t'/Ŵ/' => 'W',\n\t'/ŵ/' => 'w',\n\t'/Ź|Ż|Ž/' => 'Z',\n\t'/ź|ż|ž/' => 'z',\n\t'/Æ|Ǽ/' => 'AE',\n\t'/ß/'=> 'ss',\n\t'/Ĳ/' => 'IJ',\n\t'/ĳ/' => 'ij',\n\t'/Œ/' => 'OE',\n\t'/ƒ/' => 'f'\n);\n\n/* End of file foreign_chars.php */\n/* Location: ./application/config/foreign_chars.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/hooks.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------------\n| Hooks\n| -------------------------------------------------------------------------\n| This file lets you define \"hooks\" to extend CI without hacking the core\n| files.  Please see the user guide for info:\n|\n|\thttp://codeigniter.com/user_guide/general/hooks.html\n|\n*/\n\n\n\n/* End of file hooks.php */\n/* Location: ./application/config/hooks.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/migration.php",
    "content": "<?php defined('BASEPATH') OR exit('No direct script access allowed');\n/*\n|--------------------------------------------------------------------------\n| Enable/Disable Migrations\n|--------------------------------------------------------------------------\n|\n| Migrations are disabled by default but should be enabled \n| whenever you intend to do a schema migration.\n|\n*/\n$config['migration_enabled'] = FALSE;\n\n\n/*\n|--------------------------------------------------------------------------\n| Migrations version\n|--------------------------------------------------------------------------\n|\n| This is used to set migration version that the file system should be on.\n| If you run $this->migration->latest() this is the version that schema will\n| be upgraded / downgraded to.\n|\n*/\n$config['migration_version'] = 0;\n\n\n/*\n|--------------------------------------------------------------------------\n| Migrations Path\n|--------------------------------------------------------------------------\n|\n| Path to your migrations folder.\n| Typically, it will be within your application path.\n| Also, writing permission is required within the migrations path.\n|\n*/\n$config['migration_path'] = APPPATH . 'migrations/';\n\n\n/* End of file migration.php */\n/* Location: ./application/config/migration.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/mimes.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------\n| MIME TYPES\n| -------------------------------------------------------------------\n| This file contains an array of mime types.  It is used by the\n| Upload class to help identify allowed file types.\n|\n*/\n\n$mimes = array(\t'hqx'\t=>\t'application/mac-binhex40',\n\t\t\t\t'cpt'\t=>\t'application/mac-compactpro',\n\t\t\t\t'csv'\t=>\tarray('text/x-comma-separated-values', 'text/comma-separated-values', 'application/octet-stream', 'application/vnd.ms-excel', 'application/x-csv', 'text/x-csv', 'text/csv', 'application/csv', 'application/excel', 'application/vnd.msexcel'),\n\t\t\t\t'bin'\t=>\t'application/macbinary',\n\t\t\t\t'dms'\t=>\t'application/octet-stream',\n\t\t\t\t'lha'\t=>\t'application/octet-stream',\n\t\t\t\t'lzh'\t=>\t'application/octet-stream',\n\t\t\t\t'exe'\t=>\tarray('application/octet-stream', 'application/x-msdownload'),\n\t\t\t\t'class'\t=>\t'application/octet-stream',\n\t\t\t\t'psd'\t=>\t'application/x-photoshop',\n\t\t\t\t'so'\t=>\t'application/octet-stream',\n\t\t\t\t'sea'\t=>\t'application/octet-stream',\n\t\t\t\t'dll'\t=>\t'application/octet-stream',\n\t\t\t\t'oda'\t=>\t'application/oda',\n\t\t\t\t'pdf'\t=>\tarray('application/pdf', 'application/x-download'),\n\t\t\t\t'ai'\t=>\t'application/postscript',\n\t\t\t\t'eps'\t=>\t'application/postscript',\n\t\t\t\t'ps'\t=>\t'application/postscript',\n\t\t\t\t'smi'\t=>\t'application/smil',\n\t\t\t\t'smil'\t=>\t'application/smil',\n\t\t\t\t'mif'\t=>\t'application/vnd.mif',\n\t\t\t\t'xls'\t=>\tarray('application/excel', 'application/vnd.ms-excel', 'application/msexcel'),\n\t\t\t\t'ppt'\t=>\tarray('application/powerpoint', 'application/vnd.ms-powerpoint'),\n\t\t\t\t'wbxml'\t=>\t'application/wbxml',\n\t\t\t\t'wmlc'\t=>\t'application/wmlc',\n\t\t\t\t'dcr'\t=>\t'application/x-director',\n\t\t\t\t'dir'\t=>\t'application/x-director',\n\t\t\t\t'dxr'\t=>\t'application/x-director',\n\t\t\t\t'dvi'\t=>\t'application/x-dvi',\n\t\t\t\t'gtar'\t=>\t'application/x-gtar',\n\t\t\t\t'gz'\t=>\t'application/x-gzip',\n\t\t\t\t'php'\t=>\t'application/x-httpd-php',\n\t\t\t\t'php4'\t=>\t'application/x-httpd-php',\n\t\t\t\t'php3'\t=>\t'application/x-httpd-php',\n\t\t\t\t'phtml'\t=>\t'application/x-httpd-php',\n\t\t\t\t'phps'\t=>\t'application/x-httpd-php-source',\n\t\t\t\t'js'\t=>\t'application/x-javascript',\n\t\t\t\t'swf'\t=>\t'application/x-shockwave-flash',\n\t\t\t\t'sit'\t=>\t'application/x-stuffit',\n\t\t\t\t'tar'\t=>\t'application/x-tar',\n\t\t\t\t'tgz'\t=>\tarray('application/x-tar', 'application/x-gzip-compressed'),\n\t\t\t\t'xhtml'\t=>\t'application/xhtml+xml',\n\t\t\t\t'xht'\t=>\t'application/xhtml+xml',\n\t\t\t\t'zip'\t=>  array('application/x-zip', 'application/zip', 'application/x-zip-compressed'),\n\t\t\t\t'mid'\t=>\t'audio/midi',\n\t\t\t\t'midi'\t=>\t'audio/midi',\n\t\t\t\t'mpga'\t=>\t'audio/mpeg',\n\t\t\t\t'mp2'\t=>\t'audio/mpeg',\n\t\t\t\t'mp3'\t=>\tarray('audio/mpeg', 'audio/mpg', 'audio/mpeg3', 'audio/mp3'),\n\t\t\t\t'aif'\t=>\t'audio/x-aiff',\n\t\t\t\t'aiff'\t=>\t'audio/x-aiff',\n\t\t\t\t'aifc'\t=>\t'audio/x-aiff',\n\t\t\t\t'ram'\t=>\t'audio/x-pn-realaudio',\n\t\t\t\t'rm'\t=>\t'audio/x-pn-realaudio',\n\t\t\t\t'rpm'\t=>\t'audio/x-pn-realaudio-plugin',\n\t\t\t\t'ra'\t=>\t'audio/x-realaudio',\n\t\t\t\t'rv'\t=>\t'video/vnd.rn-realvideo',\n\t\t\t\t'wav'\t=>\tarray('audio/x-wav', 'audio/wave', 'audio/wav'),\n\t\t\t\t'bmp'\t=>\tarray('image/bmp', 'image/x-windows-bmp'),\n\t\t\t\t'gif'\t=>\t'image/gif',\n\t\t\t\t'jpeg'\t=>\tarray('image/jpeg', 'image/pjpeg'),\n\t\t\t\t'jpg'\t=>\tarray('image/jpeg', 'image/pjpeg'),\n\t\t\t\t'jpe'\t=>\tarray('image/jpeg', 'image/pjpeg'),\n\t\t\t\t'png'\t=>\tarray('image/png',  'image/x-png'),\n\t\t\t\t'tiff'\t=>\t'image/tiff',\n\t\t\t\t'tif'\t=>\t'image/tiff',\n\t\t\t\t'css'\t=>\t'text/css',\n\t\t\t\t'html'\t=>\t'text/html',\n\t\t\t\t'htm'\t=>\t'text/html',\n\t\t\t\t'shtml'\t=>\t'text/html',\n\t\t\t\t'txt'\t=>\t'text/plain',\n\t\t\t\t'text'\t=>\t'text/plain',\n\t\t\t\t'log'\t=>\tarray('text/plain', 'text/x-log'),\n\t\t\t\t'rtx'\t=>\t'text/richtext',\n\t\t\t\t'rtf'\t=>\t'text/rtf',\n\t\t\t\t'xml'\t=>\t'text/xml',\n\t\t\t\t'xsl'\t=>\t'text/xml',\n\t\t\t\t'mpeg'\t=>\t'video/mpeg',\n\t\t\t\t'mpg'\t=>\t'video/mpeg',\n\t\t\t\t'mpe'\t=>\t'video/mpeg',\n\t\t\t\t'qt'\t=>\t'video/quicktime',\n\t\t\t\t'mov'\t=>\t'video/quicktime',\n\t\t\t\t'avi'\t=>\t'video/x-msvideo',\n\t\t\t\t'movie'\t=>\t'video/x-sgi-movie',\n\t\t\t\t'doc'\t=>\t'application/msword',\n\t\t\t\t'docx'\t=>\tarray('application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/zip'),\n\t\t\t\t'xlsx'\t=>\tarray('application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/zip'),\n\t\t\t\t'word'\t=>\tarray('application/msword', 'application/octet-stream'),\n\t\t\t\t'xl'\t=>\t'application/excel',\n\t\t\t\t'eml'\t=>\t'message/rfc822',\n\t\t\t\t'json' => array('application/json', 'text/json')\n\t\t\t);\n\n\n/* End of file mimes.php */\n/* Location: ./application/config/mimes.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/profiler.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------------\n| Profiler Sections\n| -------------------------------------------------------------------------\n| This file lets you determine whether or not various sections of Profiler\n| data are displayed when the Profiler is enabled.\n| Please see the user guide for info:\n|\n|\thttp://codeigniter.com/user_guide/general/profiling.html\n|\n*/\n\n\n\n/* End of file profiler.php */\n/* Location: ./application/config/profiler.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/routes.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------------\n| URI ROUTING\n| -------------------------------------------------------------------------\n| This file lets you re-map URI requests to specific controller functions.\n|\n| Typically there is a one-to-one relationship between a URL string\n| and its corresponding controller class/method. The segments in a\n| URL normally follow this pattern:\n|\n|\texample.com/class/method/id/\n|\n| In some instances, however, you may want to remap this relationship\n| so that a different class/function is called than the one\n| corresponding to the URL.\n|\n| Please see the user guide for complete details:\n|\n|\thttp://codeigniter.com/user_guide/general/routing.html\n|\n| -------------------------------------------------------------------------\n| RESERVED ROUTES\n| -------------------------------------------------------------------------\n|\n| There area two reserved routes:\n|\n|\t$route['default_controller'] = 'welcome';\n|\n| This route indicates which controller class should be loaded if the\n| URI contains no data. In the above example, the \"welcome\" class\n| would be loaded.\n|\n|\t$route['404_override'] = 'errors/page_missing';\n|\n| This route will tell the Router what URI segments to use if those provided\n| in the URL cannot be matched to a valid route.\n|\n*/\n\n$route['default_controller'] = \"uploader\";\n$route['404_override'] = '';\n\n$route['(:any)'] = \"uploader/$1\";\n\n\n/* End of file routes.php */\n/* Location: ./application/config/routes.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/smileys.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------\n| SMILEYS\n| -------------------------------------------------------------------\n| This file contains an array of smileys for use with the emoticon helper.\n| Individual images can be used to replace multiple simileys.  For example:\n| :-) and :) use the same image replacement.\n|\n| Please see user guide for more info:\n| http://codeigniter.com/user_guide/helpers/smiley_helper.html\n|\n*/\n\n$smileys = array(\n\n//\tsmiley\t\t\timage name\t\t\t\t\t\twidth\theight\talt\n\n\t':-)'\t\t\t=>\tarray('grin.gif',\t\t\t'19',\t'19',\t'grin'),\n\t':lol:'\t\t\t=>\tarray('lol.gif',\t\t\t'19',\t'19',\t'LOL'),\n\t':cheese:'\t\t=>\tarray('cheese.gif',\t\t\t'19',\t'19',\t'cheese'),\n\t':)'\t\t\t=>\tarray('smile.gif',\t\t\t'19',\t'19',\t'smile'),\n\t';-)'\t\t\t=>\tarray('wink.gif',\t\t\t'19',\t'19',\t'wink'),\n\t';)'\t\t\t=>\tarray('wink.gif',\t\t\t'19',\t'19',\t'wink'),\n\t':smirk:'\t\t=>\tarray('smirk.gif',\t\t\t'19',\t'19',\t'smirk'),\n\t':roll:'\t\t=>\tarray('rolleyes.gif',\t\t'19',\t'19',\t'rolleyes'),\n\t':-S'\t\t\t=>\tarray('confused.gif',\t\t'19',\t'19',\t'confused'),\n\t':wow:'\t\t\t=>\tarray('surprise.gif',\t\t'19',\t'19',\t'surprised'),\n\t':bug:'\t\t\t=>\tarray('bigsurprise.gif',\t'19',\t'19',\t'big surprise'),\n\t':-P'\t\t\t=>\tarray('tongue_laugh.gif',\t'19',\t'19',\t'tongue laugh'),\n\t'%-P'\t\t\t=>\tarray('tongue_rolleye.gif',\t'19',\t'19',\t'tongue rolleye'),\n\t';-P'\t\t\t=>\tarray('tongue_wink.gif',\t'19',\t'19',\t'tongue wink'),\n\t':P'\t\t\t=>\tarray('raspberry.gif',\t\t'19',\t'19',\t'raspberry'),\n\t':blank:'\t\t=>\tarray('blank.gif',\t\t\t'19',\t'19',\t'blank stare'),\n\t':long:'\t\t=>\tarray('longface.gif',\t\t'19',\t'19',\t'long face'),\n\t':ohh:'\t\t\t=>\tarray('ohh.gif',\t\t\t'19',\t'19',\t'ohh'),\n\t':grrr:'\t\t=>\tarray('grrr.gif',\t\t\t'19',\t'19',\t'grrr'),\n\t':gulp:'\t\t=>\tarray('gulp.gif',\t\t\t'19',\t'19',\t'gulp'),\n\t'8-/'\t\t\t=>\tarray('ohoh.gif',\t\t\t'19',\t'19',\t'oh oh'),\n\t':down:'\t\t=>\tarray('downer.gif',\t\t\t'19',\t'19',\t'downer'),\n\t':red:'\t\t\t=>\tarray('embarrassed.gif',\t'19',\t'19',\t'red face'),\n\t':sick:'\t\t=>\tarray('sick.gif',\t\t\t'19',\t'19',\t'sick'),\n\t':shut:'\t\t=>\tarray('shuteye.gif',\t\t'19',\t'19',\t'shut eye'),\n\t':-/'\t\t\t=>\tarray('hmm.gif',\t\t\t'19',\t'19',\t'hmmm'),\n\t'>:('\t\t\t=>\tarray('mad.gif',\t\t\t'19',\t'19',\t'mad'),\n\t':mad:'\t\t\t=>\tarray('mad.gif',\t\t\t'19',\t'19',\t'mad'),\n\t'>:-('\t\t\t=>\tarray('angry.gif',\t\t\t'19',\t'19',\t'angry'),\n\t':angry:'\t\t=>\tarray('angry.gif',\t\t\t'19',\t'19',\t'angry'),\n\t':zip:'\t\t\t=>\tarray('zip.gif',\t\t\t'19',\t'19',\t'zipper'),\n\t':kiss:'\t\t=>\tarray('kiss.gif',\t\t\t'19',\t'19',\t'kiss'),\n\t':ahhh:'\t\t=>\tarray('shock.gif',\t\t\t'19',\t'19',\t'shock'),\n\t':coolsmile:'\t=>\tarray('shade_smile.gif',\t'19',\t'19',\t'cool smile'),\n\t':coolsmirk:'\t=>\tarray('shade_smirk.gif',\t'19',\t'19',\t'cool smirk'),\n\t':coolgrin:'\t=>\tarray('shade_grin.gif',\t\t'19',\t'19',\t'cool grin'),\n\t':coolhmm:'\t\t=>\tarray('shade_hmm.gif',\t\t'19',\t'19',\t'cool hmm'),\n\t':coolmad:'\t\t=>\tarray('shade_mad.gif',\t\t'19',\t'19',\t'cool mad'),\n\t':coolcheese:'\t=>\tarray('shade_cheese.gif',\t'19',\t'19',\t'cool cheese'),\n\t':vampire:'\t\t=>\tarray('vampire.gif',\t\t'19',\t'19',\t'vampire'),\n\t':snake:'\t\t=>\tarray('snake.gif',\t\t\t'19',\t'19',\t'snake'),\n\t':exclaim:'\t\t=>\tarray('exclaim.gif',\t\t'19',\t'19',\t'excaim'),\n\t':question:'\t=>\tarray('question.gif',\t\t'19',\t'19',\t'question') // no comma after last item\n\n\t\t);\n\n/* End of file smileys.php */\n/* Location: ./application/config/smileys.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/uploader_settings.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\n/* This config is a wrapper for the file below: */\n\nrequire('../config.php');\n\n\n\n/* End of file uploader_settings.php */\n/* Location: ./system/application/config/uploader_settings.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/config/user_agents.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/*\n| -------------------------------------------------------------------\n| USER AGENT TYPES\n| -------------------------------------------------------------------\n| This file contains four arrays of user agent data.  It is used by the\n| User Agent Class to help identify browser, platform, robot, and\n| mobile device data.  The array keys are used to identify the device\n| and the array values are used to set the actual name of the item.\n|\n*/\n\n$platforms = array (\n\t\t\t\t\t'windows nt 6.0'\t=> 'Windows Longhorn',\n\t\t\t\t\t'windows nt 5.2'\t=> 'Windows 2003',\n\t\t\t\t\t'windows nt 5.0'\t=> 'Windows 2000',\n\t\t\t\t\t'windows nt 5.1'\t=> 'Windows XP',\n\t\t\t\t\t'windows nt 4.0'\t=> 'Windows NT 4.0',\n\t\t\t\t\t'winnt4.0'\t\t\t=> 'Windows NT 4.0',\n\t\t\t\t\t'winnt 4.0'\t\t\t=> 'Windows NT',\n\t\t\t\t\t'winnt'\t\t\t\t=> 'Windows NT',\n\t\t\t\t\t'windows 98'\t\t=> 'Windows 98',\n\t\t\t\t\t'win98'\t\t\t\t=> 'Windows 98',\n\t\t\t\t\t'windows 95'\t\t=> 'Windows 95',\n\t\t\t\t\t'win95'\t\t\t\t=> 'Windows 95',\n\t\t\t\t\t'windows'\t\t\t=> 'Unknown Windows OS',\n\t\t\t\t\t'os x'\t\t\t\t=> 'Mac OS X',\n\t\t\t\t\t'ppc mac'\t\t\t=> 'Power PC Mac',\n\t\t\t\t\t'freebsd'\t\t\t=> 'FreeBSD',\n\t\t\t\t\t'ppc'\t\t\t\t=> 'Macintosh',\n\t\t\t\t\t'linux'\t\t\t\t=> 'Linux',\n\t\t\t\t\t'debian'\t\t\t=> 'Debian',\n\t\t\t\t\t'sunos'\t\t\t\t=> 'Sun Solaris',\n\t\t\t\t\t'beos'\t\t\t\t=> 'BeOS',\n\t\t\t\t\t'apachebench'\t\t=> 'ApacheBench',\n\t\t\t\t\t'aix'\t\t\t\t=> 'AIX',\n\t\t\t\t\t'irix'\t\t\t\t=> 'Irix',\n\t\t\t\t\t'osf'\t\t\t\t=> 'DEC OSF',\n\t\t\t\t\t'hp-ux'\t\t\t\t=> 'HP-UX',\n\t\t\t\t\t'netbsd'\t\t\t=> 'NetBSD',\n\t\t\t\t\t'bsdi'\t\t\t\t=> 'BSDi',\n\t\t\t\t\t'openbsd'\t\t\t=> 'OpenBSD',\n\t\t\t\t\t'gnu'\t\t\t\t=> 'GNU/Linux',\n\t\t\t\t\t'unix'\t\t\t\t=> 'Unknown Unix OS'\n\t\t\t\t);\n\n\n// The order of this array should NOT be changed. Many browsers return\n// multiple browser types so we want to identify the sub-type first.\n$browsers = array(\n\t\t\t\t\t'Flock'\t\t\t\t=> 'Flock',\n\t\t\t\t\t'Chrome'\t\t\t=> 'Chrome',\n\t\t\t\t\t'Opera'\t\t\t\t=> 'Opera',\n\t\t\t\t\t'MSIE'\t\t\t\t=> 'Internet Explorer',\n\t\t\t\t\t'Internet Explorer'\t=> 'Internet Explorer',\n\t\t\t\t\t'Shiira'\t\t\t=> 'Shiira',\n\t\t\t\t\t'Firefox'\t\t\t=> 'Firefox',\n\t\t\t\t\t'Chimera'\t\t\t=> 'Chimera',\n\t\t\t\t\t'Phoenix'\t\t\t=> 'Phoenix',\n\t\t\t\t\t'Firebird'\t\t\t=> 'Firebird',\n\t\t\t\t\t'Camino'\t\t\t=> 'Camino',\n\t\t\t\t\t'Netscape'\t\t\t=> 'Netscape',\n\t\t\t\t\t'OmniWeb'\t\t\t=> 'OmniWeb',\n\t\t\t\t\t'Safari'\t\t\t=> 'Safari',\n\t\t\t\t\t'Mozilla'\t\t\t=> 'Mozilla',\n\t\t\t\t\t'Konqueror'\t\t\t=> 'Konqueror',\n\t\t\t\t\t'icab'\t\t\t\t=> 'iCab',\n\t\t\t\t\t'Lynx'\t\t\t\t=> 'Lynx',\n\t\t\t\t\t'Links'\t\t\t\t=> 'Links',\n\t\t\t\t\t'hotjava'\t\t\t=> 'HotJava',\n\t\t\t\t\t'amaya'\t\t\t\t=> 'Amaya',\n\t\t\t\t\t'IBrowse'\t\t\t=> 'IBrowse'\n\t\t\t\t);\n\n$mobiles = array(\n\t\t\t\t\t// legacy array, old values commented out\n\t\t\t\t\t'mobileexplorer'\t=> 'Mobile Explorer',\n//\t\t\t\t\t'openwave'\t\t\t=> 'Open Wave',\n//\t\t\t\t\t'opera mini'\t\t=> 'Opera Mini',\n//\t\t\t\t\t'operamini'\t\t\t=> 'Opera Mini',\n//\t\t\t\t\t'elaine'\t\t\t=> 'Palm',\n\t\t\t\t\t'palmsource'\t\t=> 'Palm',\n//\t\t\t\t\t'digital paths'\t\t=> 'Palm',\n//\t\t\t\t\t'avantgo'\t\t\t=> 'Avantgo',\n//\t\t\t\t\t'xiino'\t\t\t\t=> 'Xiino',\n\t\t\t\t\t'palmscape'\t\t\t=> 'Palmscape',\n//\t\t\t\t\t'nokia'\t\t\t\t=> 'Nokia',\n//\t\t\t\t\t'ericsson'\t\t\t=> 'Ericsson',\n//\t\t\t\t\t'blackberry'\t\t=> 'BlackBerry',\n//\t\t\t\t\t'motorola'\t\t\t=> 'Motorola'\n\n\t\t\t\t\t// Phones and Manufacturers\n\t\t\t\t\t'motorola'\t\t\t=> \"Motorola\",\n\t\t\t\t\t'nokia'\t\t\t\t=> \"Nokia\",\n\t\t\t\t\t'palm'\t\t\t\t=> \"Palm\",\n\t\t\t\t\t'iphone'\t\t\t=> \"Apple iPhone\",\n\t\t\t\t\t'ipad'\t\t\t\t=> \"iPad\",\n\t\t\t\t\t'ipod'\t\t\t\t=> \"Apple iPod Touch\",\n\t\t\t\t\t'sony'\t\t\t\t=> \"Sony Ericsson\",\n\t\t\t\t\t'ericsson'\t\t\t=> \"Sony Ericsson\",\n\t\t\t\t\t'blackberry'\t\t=> \"BlackBerry\",\n\t\t\t\t\t'cocoon'\t\t\t=> \"O2 Cocoon\",\n\t\t\t\t\t'blazer'\t\t\t=> \"Treo\",\n\t\t\t\t\t'lg'\t\t\t\t=> \"LG\",\n\t\t\t\t\t'amoi'\t\t\t\t=> \"Amoi\",\n\t\t\t\t\t'xda'\t\t\t\t=> \"XDA\",\n\t\t\t\t\t'mda'\t\t\t\t=> \"MDA\",\n\t\t\t\t\t'vario'\t\t\t\t=> \"Vario\",\n\t\t\t\t\t'htc'\t\t\t\t=> \"HTC\",\n\t\t\t\t\t'samsung'\t\t\t=> \"Samsung\",\n\t\t\t\t\t'sharp'\t\t\t\t=> \"Sharp\",\n\t\t\t\t\t'sie-'\t\t\t\t=> \"Siemens\",\n\t\t\t\t\t'alcatel'\t\t\t=> \"Alcatel\",\n\t\t\t\t\t'benq'\t\t\t\t=> \"BenQ\",\n\t\t\t\t\t'ipaq'\t\t\t\t=> \"HP iPaq\",\n\t\t\t\t\t'mot-'\t\t\t\t=> \"Motorola\",\n\t\t\t\t\t'playstation portable'\t=> \"PlayStation Portable\",\n\t\t\t\t\t'hiptop'\t\t\t=> \"Danger Hiptop\",\n\t\t\t\t\t'nec-'\t\t\t\t=> \"NEC\",\n\t\t\t\t\t'panasonic'\t\t\t=> \"Panasonic\",\n\t\t\t\t\t'philips'\t\t\t=> \"Philips\",\n\t\t\t\t\t'sagem'\t\t\t\t=> \"Sagem\",\n\t\t\t\t\t'sanyo'\t\t\t\t=> \"Sanyo\",\n\t\t\t\t\t'spv'\t\t\t\t=> \"SPV\",\n\t\t\t\t\t'zte'\t\t\t\t=> \"ZTE\",\n\t\t\t\t\t'sendo'\t\t\t\t=> \"Sendo\",\n\n\t\t\t\t\t// Operating Systems\n\t\t\t\t\t'symbian'\t\t\t\t=> \"Symbian\",\n\t\t\t\t\t'SymbianOS'\t\t\t\t=> \"SymbianOS\",\n\t\t\t\t\t'elaine'\t\t\t\t=> \"Palm\",\n\t\t\t\t\t'palm'\t\t\t\t\t=> \"Palm\",\n\t\t\t\t\t'series60'\t\t\t\t=> \"Symbian S60\",\n\t\t\t\t\t'windows ce'\t\t\t=> \"Windows CE\",\n\n\t\t\t\t\t// Browsers\n\t\t\t\t\t'obigo'\t\t\t\t\t=> \"Obigo\",\n\t\t\t\t\t'netfront'\t\t\t\t=> \"Netfront Browser\",\n\t\t\t\t\t'openwave'\t\t\t\t=> \"Openwave Browser\",\n\t\t\t\t\t'mobilexplorer'\t\t\t=> \"Mobile Explorer\",\n\t\t\t\t\t'operamini'\t\t\t\t=> \"Opera Mini\",\n\t\t\t\t\t'opera mini'\t\t\t=> \"Opera Mini\",\n\n\t\t\t\t\t// Other\n\t\t\t\t\t'digital paths'\t\t\t=> \"Digital Paths\",\n\t\t\t\t\t'avantgo'\t\t\t\t=> \"AvantGo\",\n\t\t\t\t\t'xiino'\t\t\t\t\t=> \"Xiino\",\n\t\t\t\t\t'novarra'\t\t\t\t=> \"Novarra Transcoder\",\n\t\t\t\t\t'vodafone'\t\t\t\t=> \"Vodafone\",\n\t\t\t\t\t'docomo'\t\t\t\t=> \"NTT DoCoMo\",\n\t\t\t\t\t'o2'\t\t\t\t\t=> \"O2\",\n\n\t\t\t\t\t// Fallback\n\t\t\t\t\t'mobile'\t\t\t\t=> \"Generic Mobile\",\n\t\t\t\t\t'wireless'\t\t\t\t=> \"Generic Mobile\",\n\t\t\t\t\t'j2me'\t\t\t\t\t=> \"Generic Mobile\",\n\t\t\t\t\t'midp'\t\t\t\t\t=> \"Generic Mobile\",\n\t\t\t\t\t'cldc'\t\t\t\t\t=> \"Generic Mobile\",\n\t\t\t\t\t'up.link'\t\t\t\t=> \"Generic Mobile\",\n\t\t\t\t\t'up.browser'\t\t\t=> \"Generic Mobile\",\n\t\t\t\t\t'smartphone'\t\t\t=> \"Generic Mobile\",\n\t\t\t\t\t'cellphone'\t\t\t\t=> \"Generic Mobile\"\n\t\t\t\t);\n\n// There are hundreds of bots but these are the most common.\n$robots = array(\n\t\t\t\t\t'googlebot'\t\t\t=> 'Googlebot',\n\t\t\t\t\t'msnbot'\t\t\t=> 'MSNBot',\n\t\t\t\t\t'slurp'\t\t\t\t=> 'Inktomi Slurp',\n\t\t\t\t\t'yahoo'\t\t\t\t=> 'Yahoo',\n\t\t\t\t\t'askjeeves'\t\t\t=> 'AskJeeves',\n\t\t\t\t\t'fastcrawler'\t\t=> 'FastCrawler',\n\t\t\t\t\t'infoseek'\t\t\t=> 'InfoSeek Robot 1.0',\n\t\t\t\t\t'lycos'\t\t\t\t=> 'Lycos'\n\t\t\t\t);\n\n/* End of file user_agents.php */\n/* Location: ./application/config/user_agents.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/controllers/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/controllers/uploader.php",
    "content": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n\nclass Uploader extends CI_Controller {\n\t\n\t/* Constructor */\n\t\n\tpublic function __construct()\n\t{\n\t\tparent::__construct();\n\t\t$this->load->helper(array('jbimages','language'));\n\t\t\n\t\t// is_allowed is a helper function which is supposed to return False if upload operation is forbidden\n\t\t// [See jbimages/is_alllowed.php] \n\t\t\n\t\tif (is_allowed() === FALSE)\n\t\t{\n\t\t\texit;\n\t\t}\n\t\t\n\t\t// User configured settings\n\t\t$this->config->load('uploader_settings', TRUE);\n\t}\n\t\n\t/* Language set */\n\t\n\tprivate function _lang_set($lang)\n\t{\n\t\t// We accept any language set as lang_id in **_dlg.js\n\t\t// Therefore an error will occur if language file doesn't exist\n\t\t\n\t\t$this->config->set_item('language', $lang);\n\t\t$this->lang->load('jbstrings', $lang);\n\t}\n\t\n\t/* Default upload routine */\n\t\t\n\tpublic function upload ($lang='english')\n\t{\n\t\t// Set language\n\t\t$this->_lang_set($lang);\n\t\t\n\t\t// Get configuartion data (we fill up 2 arrays - $config and $conf)\n\t\t\n\t\t$conf['img_path']\t\t\t= $this->config->item('img_path',\t\t'uploader_settings');\n\t\t$conf['allow_resize']\t\t= $this->config->item('allow_resize',\t'uploader_settings');\n\t\t\n\t\t$config['allowed_types']\t= $this->config->item('allowed_types',\t'uploader_settings');\n\t\t$config['max_size']\t\t\t= $this->config->item('max_size',\t\t'uploader_settings');\n\t\t$config['encrypt_name']\t\t= $this->config->item('encrypt_name',\t'uploader_settings');\n\t\t$config['overwrite']\t\t= $this->config->item('overwrite',\t\t'uploader_settings');\n\t\t$config['upload_path']\t\t= $this->config->item('upload_path',\t'uploader_settings');\n\t\t\n\t\tif (!$conf['allow_resize'])\n\t\t{\n\t\t\t$config['max_width']\t= $this->config->item('max_width',\t\t'uploader_settings');\n\t\t\t$config['max_height']\t= $this->config->item('max_height',\t\t'uploader_settings');\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$conf['max_width']\t\t= $this->config->item('max_width',\t\t'uploader_settings');\n\t\t\t$conf['max_height']\t\t= $this->config->item('max_height',\t\t'uploader_settings');\n\t\t\t\n\t\t\tif ($conf['max_width'] == 0 and $conf['max_height'] == 0)\n\t\t\t{\n\t\t\t\t$conf['allow_resize'] = FALSE;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Load uploader\n\t\t$this->load->library('upload', $config);\n\t\t\n\t\tif ($this->upload->do_upload()) // Success\n\t\t{\n\t\t\t// General result data\n\t\t\t$result = $this->upload->data();\n\t\t\t\n\t\t\t// Shall we resize an image?\n\t\t\tif ($conf['allow_resize'] and $conf['max_width'] > 0 and $conf['max_height'] > 0 and (($result['image_width'] > $conf['max_width']) or ($result['image_height'] > $conf['max_height'])))\n\t\t\t{\t\t\t\t\n\t\t\t\t// Resizing parameters\n\t\t\t\t$resizeParams = array\n\t\t\t\t(\n\t\t\t\t\t'source_image'\t=> $result['full_path'],\n\t\t\t\t\t'new_image'\t\t=> $result['full_path'],\n\t\t\t\t\t'width'\t\t\t=> $conf['max_width'],\n\t\t\t\t\t'height'\t\t=> $conf['max_height']\n\t\t\t\t);\n\t\t\t\t\n\t\t\t\t// Load resize library\n\t\t\t\t$this->load->library('image_lib', $resizeParams);\n\t\t\t\t\n\t\t\t\t// Do resize\n\t\t\t\t$this->image_lib->resize();\n\t\t\t}\n\t\t\t\n\t\t\t// Add our stuff\n\t\t\t$result['result']\t\t= \"file_uploaded\";\n\t\t\t$result['resultcode']\t= 'ok';\n\t\t\t$result['file_name']\t= $conf['img_path'] . '/' . $result['file_name'];\n\t\t\t\n\t\t\t// Output to user\n\t\t\t$this->load->view('ajax_upload_result', $result);\n\t\t}\n\t\telse // Failure\n\t\t{\n\t\t\t// Compile data for output\n\t\t\t$result['result']\t\t= $this->upload->display_errors(' ', ' ');\n\t\t\t$result['resultcode']\t= 'failed';\n\t\t\t\n\t\t\t// Output to user\n\t\t\t$this->load->view('ajax_upload_result', $result);\n\t\t}\n\t}\n\t\n\t/* Blank Page (default source for iframe) */\n\t\n\tpublic function blank($lang='english')\n\t{\n\t\t$this->_lang_set($lang);\n\t\t$this->load->view('blank');\n\t}\n\t\n\tpublic function index($lang='english')\n\t{\n\t\t$this->blank($lang);\n\t}\n}\n\n/* End of file uploader.php */\n/* Location: ./application/controllers/uploader.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/errors/error_404.php",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<title>404 Page Not Found</title>\n<style type=\"text/css\">\n\n::selection{ background-color: #E13300; color: white; }\n::moz-selection{ background-color: #E13300; color: white; }\n::webkit-selection{ background-color: #E13300; color: white; }\n\nbody {\n\tbackground-color: #fff;\n\tmargin: 40px;\n\tfont: 13px/20px normal Helvetica, Arial, sans-serif;\n\tcolor: #4F5155;\n}\n\na {\n\tcolor: #003399;\n\tbackground-color: transparent;\n\tfont-weight: normal;\n}\n\nh1 {\n\tcolor: #444;\n\tbackground-color: transparent;\n\tborder-bottom: 1px solid #D0D0D0;\n\tfont-size: 19px;\n\tfont-weight: normal;\n\tmargin: 0 0 14px 0;\n\tpadding: 14px 15px 10px 15px;\n}\n\ncode {\n\tfont-family: Consolas, Monaco, Courier New, Courier, monospace;\n\tfont-size: 12px;\n\tbackground-color: #f9f9f9;\n\tborder: 1px solid #D0D0D0;\n\tcolor: #002166;\n\tdisplay: block;\n\tmargin: 14px 0 14px 0;\n\tpadding: 12px 10px 12px 10px;\n}\n\n#container {\n\tmargin: 10px;\n\tborder: 1px solid #D0D0D0;\n\t-webkit-box-shadow: 0 0 8px #D0D0D0;\n}\n\np {\n\tmargin: 12px 15px 12px 15px;\n}\n</style>\n</head>\n<body>\n\t<div id=\"container\">\n\t\t<h1><?php echo $heading; ?></h1>\n\t\t<?php echo $message; ?>\n\t</div>\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/errors/error_db.php",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<title>Database Error</title>\n<style type=\"text/css\">\n\n::selection{ background-color: #E13300; color: white; }\n::moz-selection{ background-color: #E13300; color: white; }\n::webkit-selection{ background-color: #E13300; color: white; }\n\nbody {\n\tbackground-color: #fff;\n\tmargin: 40px;\n\tfont: 13px/20px normal Helvetica, Arial, sans-serif;\n\tcolor: #4F5155;\n}\n\na {\n\tcolor: #003399;\n\tbackground-color: transparent;\n\tfont-weight: normal;\n}\n\nh1 {\n\tcolor: #444;\n\tbackground-color: transparent;\n\tborder-bottom: 1px solid #D0D0D0;\n\tfont-size: 19px;\n\tfont-weight: normal;\n\tmargin: 0 0 14px 0;\n\tpadding: 14px 15px 10px 15px;\n}\n\ncode {\n\tfont-family: Consolas, Monaco, Courier New, Courier, monospace;\n\tfont-size: 12px;\n\tbackground-color: #f9f9f9;\n\tborder: 1px solid #D0D0D0;\n\tcolor: #002166;\n\tdisplay: block;\n\tmargin: 14px 0 14px 0;\n\tpadding: 12px 10px 12px 10px;\n}\n\n#container {\n\tmargin: 10px;\n\tborder: 1px solid #D0D0D0;\n\t-webkit-box-shadow: 0 0 8px #D0D0D0;\n}\n\np {\n\tmargin: 12px 15px 12px 15px;\n}\n</style>\n</head>\n<body>\n\t<div id=\"container\">\n\t\t<h1><?php echo $heading; ?></h1>\n\t\t<?php echo $message; ?>\n\t</div>\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/errors/error_general.php",
    "content": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<title>Error</title>\n<style type=\"text/css\">\n\n::selection{ background-color: #E13300; color: white; }\n::moz-selection{ background-color: #E13300; color: white; }\n::webkit-selection{ background-color: #E13300; color: white; }\n\nbody {\n\tbackground-color: #fff;\n\tmargin: 40px;\n\tfont: 13px/20px normal Helvetica, Arial, sans-serif;\n\tcolor: #4F5155;\n}\n\na {\n\tcolor: #003399;\n\tbackground-color: transparent;\n\tfont-weight: normal;\n}\n\nh1 {\n\tcolor: #444;\n\tbackground-color: transparent;\n\tborder-bottom: 1px solid #D0D0D0;\n\tfont-size: 19px;\n\tfont-weight: normal;\n\tmargin: 0 0 14px 0;\n\tpadding: 14px 15px 10px 15px;\n}\n\ncode {\n\tfont-family: Consolas, Monaco, Courier New, Courier, monospace;\n\tfont-size: 12px;\n\tbackground-color: #f9f9f9;\n\tborder: 1px solid #D0D0D0;\n\tcolor: #002166;\n\tdisplay: block;\n\tmargin: 14px 0 14px 0;\n\tpadding: 12px 10px 12px 10px;\n}\n\n#container {\n\tmargin: 10px;\n\tborder: 1px solid #D0D0D0;\n\t-webkit-box-shadow: 0 0 8px #D0D0D0;\n}\n\np {\n\tmargin: 12px 15px 12px 15px;\n}\n</style>\n</head>\n<body>\n\t<div id=\"container\">\n\t\t<h1><?php echo $heading; ?></h1>\n\t\t<?php echo $message; ?>\n\t</div>\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/errors/error_php.php",
    "content": "<div style=\"border:1px solid #990000;padding-left:20px;margin:0 0 10px 0;\">\n\n<h4>A PHP Error was encountered</h4>\n\n<p>Severity: <?php echo $severity; ?></p>\n<p>Message:  <?php echo $message; ?></p>\n<p>Filename: <?php echo $filepath; ?></p>\n<p>Line Number: <?php echo $line; ?></p>\n\n</div>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/errors/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/helpers/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/helpers/jbimages_helper.php",
    "content": "<?php\n/* \t\n\tThis Helper is a wrapper of the file below\n*/\n\ninclude(\"../is_allowed.php\");"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/english/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/english/jbstrings_lang.php",
    "content": "<?php\n\n$lang['jb_blankpage_message'] = \"The Upload process had not started, or started, but had not finished yet, or your browser could not reach the remote server.\";\n\n/* End of file jbstrings_lang.php */\n/* Location: ./application/language/english/jbstrings_lang.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/french/imglib_lang.php",
    "content": "<?php defined('BASEPATH') OR exit('No direct script access allowed');\n\n$lang['imglib_source_image_required'] = \"Vous devez sp&eacute;cifier une image source dans vos pr&eacute;f&eacute;rences.\";\n$lang['imglib_gd_required'] = \"La librairie GD est requise pour cette fonctionnalit&eacute;.\";\n$lang['imglib_gd_required_for_props'] = \"Votre serveur doit supporter la librairie d\\'images GD pour d&eacute;terminer les propri&eacute;t&eacute;s de l\\'image\";\n$lang['imglib_unsupported_imagecreate'] = \"Votre serveur ne dispose pas de la fonction GD n&eacute;cessaire pour traiter ce type d\\'image.\";\n$lang['imglib_gif_not_supported'] = \"Le format GIF est souvent inutilisable du fait de restrictions de licence. Vous devriez utiliser le format JPG ou PNG &agrave; la place.\";\n$lang['imglib_jpg_not_supported'] = \"Le format JPG n\\'est pas support&eacute;.\";\n$lang['imglib_png_not_supported'] = \"Le format PNG n\\'est pas support&eacute;.\";\n$lang['imglib_jpg_or_png_required'] = \"Le protocole de redimensionnement sp&eacute;cifi&eacute; dans vos pr&eacute;f&eacute;rences ne fonctionne qu\\'avec les formats d\\'image JPG ou PNG.\";\n$lang['imglib_copy_error'] = \"Une erreur est survenue lors du remplacement du fichier. Veuillez v&eacute;rifier les permissions d\\'&eacute;criture de votre r&eacute;pertoire.\";\n$lang['imglib_rotate_unsupported'] = \"Votre serveur ne supporte apparemment pas la rotation d\\'images.\";\n$lang['imglib_libpath_invalid'] = \"Le chemin d\\'acc&egrave;s &agrave; votre librairie de traitement d\\'image n\\'est pas correct. Veuillez indiquer le chemin correct dans vos pr&eacute;f&eacute;rences.\";\n$lang['imglib_image_process_failed'] = \"Le traitement de l\\'image a &eacute;chou&eacute;. Veuillez v&eacute;rifier que votre serveur supporte le protocole choisi et que le chemin d\\'acc&egrave;s &agrave; votre librairie de traitement d\\'image est correct.\";\n$lang['imglib_rotation_angle_required'] = \"Un angle de rotation doit &ecirc;tre indiqu&eacute; pour effectuer cette transformation sur l\\'image.\";\n$lang['imglib_writing_failed_gif'] = \"Image GIF \";\n$lang['imglib_invalid_path'] = \"Le chemin d\\'acc&egrave;s &agrave; l\\'image est incorrect.\";\n$lang['imglib_copy_failed'] = \"Le processus de copie d\\'image a &eacute;chou&eacute;.\";\n$lang['imglib_missing_font'] = \"Impossible de trouver une police de caract&egrave;res utilisable.\";\n$lang['imglib_save_failed'] = \"Impossible d\\'enregistrer l\\'image. V&eacute;rifiez que l\\'image et le dossier disposent des droits d\\'&eacute;criture.\";\n\n\n/* End of file imglib_lang.php */\n/* Location: ./application/language/french/imglib_lang.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/french/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/french/jbstrings_lang.php",
    "content": "<?php\n\n$lang['jb_blankpage_message'] = \"Le processus de téléchargement n\\'a pas encore commencé\"; // Google translate))\n\n/* End of file jbstrings_lang.php */\n/* Location: ./application/language/french/jbstrings_lang.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/french/upload_lang.php",
    "content": "<?php defined('BASEPATH') OR exit('No direct script access allowed');\n\n$lang['upload_userfile_not_set'] = \"Impossible de trouver une variable de type POST nomm&eacute;e userfile.\";\n$lang['upload_file_exceeds_limit'] = \"Le fichier envoy&eacute; d&eacute;passe la taille limite d&eacute;finie dans votre fichier de configuration PHP.\";\n$lang['upload_file_exceeds_form_limit'] = \"Le fichier charg&eacute; d&eacute;passe la taille limite d&eacute;finie par le formulaire de soumission.\";\n$lang['upload_file_partial'] = \"Le fichier n\\'a &eacute;t&eacute; que partiellement envoy&eacute;.\";\n$lang['upload_no_temp_directory'] = \"Le dossier temporaire manque.\";\n$lang['upload_unable_to_write_file'] = \"Incapable d\\'&eacute;crire le fichier sur disque.\";\n$lang['upload_stopped_by_extension'] = \"Le chargement du fichier a &eacute;t&eacute; arr&ecirc;t&eacute; par une extension.\";\n$lang['upload_no_file_selected'] = \"Vous n\\'avez pas s&eacute;lectionn&eacute; de fichier &agrave; envoyer.\";\n$lang['upload_invalid_filetype'] = \"Le type de fichier que vous tentez d\\'envoyer n\\'est pas autoris&eacute;.\";\n$lang['upload_invalid_filesize'] = \"Le fichier que vous tentez d\\'envoyer est plus gros que la taille autoris&eacute;e.\";\n$lang['upload_invalid_dimensions'] = \"L\\'image que vous tentez d\\'envoyer d&eacute;passe les valeurs maximales autoris&eacute;es pour la hauteur ou la largeur.\";\n$lang['upload_destination_error'] = \"Une erreur est survenue lors du d&eacute;placement du fichier envoy&eacute; vers sa destination finale.\";\n$lang['upload_no_filepath'] = \"Le chemin de destination semble invalide.\";\n$lang['upload_no_file_types'] = \"Vous n\\'avez pas sp&eacute;cifi&eacute; les types de fichier autoris&eacute;s.\";\n$lang['upload_bad_filename'] = \"Un fichier avec le m&ecirc;me nom que celui que vous avez envoy&eacute; existe d&eacute;j&agrave; sur le serveur.\";\n$lang['upload_not_writable'] = \"Le r&eacute;pertoire de destination ne semble pas &ecirc;tre accessible en &eacute;criture.\";\n\n\n/* End of file upload_lang.php */\n/* Location: ./application/language/french/upload_lang.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/russian/imglib_lang.php",
    "content": "<?php\n\n$lang['imglib_source_image_required'] = \"You must specify a source image in your preferences.\";\n$lang['imglib_gd_required'] = \"The GD image library is required for this feature.\";\n$lang['imglib_gd_required_for_props'] = \"Your server must support the GD image library in order to determine the image properties.\";\n$lang['imglib_unsupported_imagecreate'] = \"Your server does not support the GD function required to process this type of image.\";\n$lang['imglib_gif_not_supported'] = \"GIF images are often not supported due to licensing restrictions.  You may have to use JPG or PNG images instead.\";\n$lang['imglib_jpg_not_supported'] = \"JPG images are not supported.\";\n$lang['imglib_png_not_supported'] = \"PNG images are not supported.\";\n$lang['imglib_jpg_or_png_required'] = \"The image resize protocol specified in your preferences only works with JPEG or PNG image types.\";\n$lang['imglib_copy_error'] = \"An error was encountered while attempting to replace the file.  Please make sure your file directory is writable.\";\n$lang['imglib_rotate_unsupported'] = \"Image rotation does not appear to be supported by your server.\";\n$lang['imglib_libpath_invalid'] = \"The path to your image library is not correct.  Please set the correct path in your image preferences.\";\n$lang['imglib_image_process_failed'] = \"Image processing failed.  Please verify that your server supports the chosen protocol and that the path to your image library is correct.\";\n$lang['imglib_rotation_angle_required'] = \"An angle of rotation is required to rotate the image.\";\n$lang['imglib_writing_failed_gif'] = \"GIF image.\";\n$lang['imglib_invalid_path'] = \"The path to the image is not correct.\";\n$lang['imglib_copy_failed'] = \"The image copy routine failed.\";\n$lang['imglib_missing_font'] = \"Unable to find a font to use.\";\n$lang['imglib_save_failed'] = \"Unable to save the image.  Please make sure the image and file directory are writable.\";\n\n\n/* End of file imglib_lang.php */\n/* Location: ./system/language/english/imglib_lang.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/russian/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/russian/jbstrings_lang.php",
    "content": "<?php\n\n$lang['jb_blankpage_message'] = \"Процесс загрузки еще не начался, либо начался и еще не завершился, либо просто нет связи с удаленным сервером.\";\n\n/* End of file jbstrings_lang.php */\n/* Location: ./application/language/russian/jbstrings_lang.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/language/russian/upload_lang.php",
    "content": "<?php\n\n$lang['upload_userfile_not_set'] = \"Не найдена переменная POST[userfile].\";\n$lang['upload_file_exceeds_limit'] = \"Размер файла слишком большой для загрузки.\";\n$lang['upload_file_exceeds_form_limit'] = \"Размер файла слишком большой.\";\n$lang['upload_file_partial'] = \"Файл загрузился неполностью.\";\n$lang['upload_no_temp_directory'] = \"Внутренняя ошибка. Проблемы с временной папкой.\";\n$lang['upload_unable_to_write_file'] = \"Внутренняя ошибка. Проблемы с записью на диск.\";\n$lang['upload_stopped_by_extension'] = \"Загрузка прервана по неизвестной причине.\";\n$lang['upload_no_file_selected'] = \"Пожалуйста, выберите файл для загрузки.\";\n$lang['upload_invalid_filetype'] = \"Тип файла запрещен для загрузки.\";\n$lang['upload_invalid_filesize'] = \"Ваш файл больше разрешенного размера.\";\n$lang['upload_invalid_dimensions'] = \"Изображение которое вы пытаетесь загрузить превосходит максимально допустимые ширину/высоту.\";\n$lang['upload_destination_error'] = \"Внутренняя ошибка. Проблема с переносом файла в конечную папку.\";\n$lang['upload_no_filepath'] = \"Внутренняя ошибка. Указанный путь для загрузки неверен.\";\n$lang['upload_no_file_types'] = \"Внутренняя ошибка. Не указан перечень разрешенных для загрузки типов.\";\n$lang['upload_bad_filename'] = \"Файл уже существует.\";\n$lang['upload_not_writable'] = \"Внутренняя ошибка. Конечная папка не представляется разрешенной для записи.\";\n\n\n/* End of file upload_lang.php */\n/* Location: ./application/language/russian/upload_lang.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/views/ajax_upload_result.php",
    "content": "﻿<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<title>JustBoil's Result Page</title>\n<script language=\"javascript\" type=\"text/javascript\">\n\twindow.parent.window.jbImagesDialog.uploadFinish({\n\t\tfilename:'<?php echo $file_name; ?>',\n\t\tresult: '<?php echo $result; ?>',\n\t\tresultCode: '<?php echo $resultcode; ?>'\n\t});\n</script>\n<style type=\"text/css\">\n\tbody {font-family: Courier, \"Courier New\", monospace; font-size:11px;}\n</style>\n</head>\n\n<body>\n\nResult: <?php echo $result; ?>\n\n</body>\n</html>\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/views/blank.php",
    "content": "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />\n<title>JustBoil's Blank</title>\n<style type=\"text/css\">\n\tbody {font-family: Courier, \"Courier New\", monospace; font-size:11px;}\n</style>\n</head>\n\n<body>\n\n<p><?=lang('jb_blankpage_message') ?></p>\n\n</body>\n</html>\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/application/views/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/index.php",
    "content": "<?php\n\n/*\n *---------------------------------------------------------------\n * APPLICATION ENVIRONMENT\n *---------------------------------------------------------------\n *\n * You can load different configurations depending on your\n * current environment. Setting the environment also influences\n * things like logging and error reporting.\n *\n * This can be set to anything, but default usage is:\n *\n *     development\n *     testing\n *     production\n *\n * NOTE: If you change these, also change the error_reporting() code below\n *\n */\n\tdefine('ENVIRONMENT', 'production');\n/*\n *---------------------------------------------------------------\n * ERROR REPORTING\n *---------------------------------------------------------------\n *\n * Different environments will require different levels of error reporting.\n * By default development will show errors but testing and live will hide them.\n */\n\nif (defined('ENVIRONMENT'))\n{\n\tswitch (ENVIRONMENT)\n\t{\n\t\tcase 'development':\n\t\t\terror_reporting(E_ALL);\n\t\tbreak;\n\t\n\t\tcase 'testing':\n\t\tcase 'production':\n\t\t\terror_reporting(0);\n\t\tbreak;\n\n\t\tdefault:\n\t\t\texit('The application environment is not set correctly.');\n\t}\n}\n\n/*\n *---------------------------------------------------------------\n * SYSTEM FOLDER NAME\n *---------------------------------------------------------------\n *\n * This variable must contain the name of your \"system\" folder.\n * Include the path if the folder is not in the same  directory\n * as this file.\n *\n */\n\t$system_path = 'system';\n\n/*\n *---------------------------------------------------------------\n * APPLICATION FOLDER NAME\n *---------------------------------------------------------------\n *\n * If you want this front controller to use a different \"application\"\n * folder then the default one you can set its name here. The folder\n * can also be renamed or relocated anywhere on your server.  If\n * you do, use a full server path. For more info please see the user guide:\n * http://codeigniter.com/user_guide/general/managing_apps.html\n *\n * NO TRAILING SLASH!\n *\n */\n\t$application_folder = 'application';\n\n/*\n * --------------------------------------------------------------------\n * DEFAULT CONTROLLER\n * --------------------------------------------------------------------\n *\n * Normally you will set your default controller in the routes.php file.\n * You can, however, force a custom routing by hard-coding a\n * specific controller class/function here.  For most applications, you\n * WILL NOT set your routing here, but it's an option for those\n * special instances where you might want to override the standard\n * routing in a specific front controller that shares a common CI installation.\n *\n * IMPORTANT:  If you set the routing here, NO OTHER controller will be\n * callable. In essence, this preference limits your application to ONE\n * specific controller.  Leave the function name blank if you need\n * to call functions dynamically via the URI.\n *\n * Un-comment the $routing array below to use this feature\n *\n */\n\t// The directory name, relative to the \"controllers\" folder.  Leave blank\n\t// if your controller is not in a sub-folder within the \"controllers\" folder\n\t// $routing['directory'] = '';\n\n\t// The controller class file name.  Example:  Mycontroller\n\t// $routing['controller'] = '';\n\n\t// The controller function you wish to be called.\n\t// $routing['function']\t= '';\n\n\n/*\n * -------------------------------------------------------------------\n *  CUSTOM CONFIG VALUES\n * -------------------------------------------------------------------\n *\n * The $assign_to_config array below will be passed dynamically to the\n * config class when initialized. This allows you to set custom config\n * items or override any default config values found in the config.php file.\n * This can be handy as it permits you to share one application between\n * multiple front controller files, with each file containing different\n * config values.\n *\n * Un-comment the $assign_to_config array below to use this feature\n *\n */\n\t// $assign_to_config['name_of_config_item'] = 'value of config item';\n\n\n\n// --------------------------------------------------------------------\n// END OF USER CONFIGURABLE SETTINGS.  DO NOT EDIT BELOW THIS LINE\n// --------------------------------------------------------------------\n\n/*\n * ---------------------------------------------------------------\n *  Resolve the system path for increased reliability\n * ---------------------------------------------------------------\n */\n\n\t// Set the current directory correctly for CLI requests\n\tif (defined('STDIN'))\n\t{\n\t\tchdir(dirname(__FILE__));\n\t}\n\n\tif (realpath($system_path) !== FALSE)\n\t{\n\t\t$system_path = realpath($system_path).'/';\n\t}\n\n\t// ensure there's a trailing slash\n\t$system_path = rtrim($system_path, '/').'/';\n\n\t// Is the system path correct?\n\tif ( ! is_dir($system_path))\n\t{\n\t\texit(\"Your system folder path does not appear to be set correctly. Please open the following file and correct this: \".pathinfo(__FILE__, PATHINFO_BASENAME));\n\t}\n\n/*\n * -------------------------------------------------------------------\n *  Now that we know the path, set the main path constants\n * -------------------------------------------------------------------\n */\n\t// The name of THIS file\n\tdefine('SELF', pathinfo(__FILE__, PATHINFO_BASENAME));\n\n\t// The PHP file extension\n\t// this global constant is deprecated.\n\tdefine('EXT', '.php');\n\n\t// Path to the system folder\n\tdefine('BASEPATH', str_replace(\"\\\\\", \"/\", $system_path));\n\n\t// Path to the front controller (this file)\n\tdefine('FCPATH', str_replace(SELF, '', __FILE__));\n\n\t// Name of the \"system folder\"\n\tdefine('SYSDIR', trim(strrchr(trim(BASEPATH, '/'), '/'), '/'));\n\n\n\t// The path to the \"application\" folder\n\tif (is_dir($application_folder))\n\t{\n\t\tdefine('APPPATH', $application_folder.'/');\n\t}\n\telse\n\t{\n\t\tif ( ! is_dir(BASEPATH.$application_folder.'/'))\n\t\t{\n\t\t\texit(\"Your application folder path does not appear to be set correctly. Please open the following file and correct this: \".SELF);\n\t\t}\n\n\t\tdefine('APPPATH', BASEPATH.$application_folder.'/');\n\t}\n\n/*\n * --------------------------------------------------------------------\n * LOAD THE BOOTSTRAP FILE\n * --------------------------------------------------------------------\n *\n * And away we go...\n *\n */\nrequire_once BASEPATH.'core/CodeIgniter.php';\n\n/* End of file index.php */\n/* Location: ./index.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/.htaccess",
    "content": "Deny from all"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Benchmark.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * CodeIgniter Benchmark Class\n *\n * This class enables you to mark points and calculate the time difference\n * between them.  Memory consumption can also be displayed.\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tLibraries\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/benchmark.html\n */\nclass CI_Benchmark {\n\n\t/**\n\t * List of all benchmark markers and when they were added\n\t *\n\t * @var array\n\t */\n\tvar $marker = array();\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set a benchmark marker\n\t *\n\t * Multiple calls to this function can be made so that several\n\t * execution points can be timed\n\t *\n\t * @access\tpublic\n\t * @param\tstring\t$name\tname of the marker\n\t * @return\tvoid\n\t */\n\tfunction mark($name)\n\t{\n\t\t$this->marker[$name] = microtime();\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Calculates the time difference between two marked points.\n\t *\n\t * If the first parameter is empty this function instead returns the\n\t * {elapsed_time} pseudo-variable. This permits the full system\n\t * execution time to be shown in a template. The output class will\n\t * swap the real value for this variable.\n\t *\n\t * @access\tpublic\n\t * @param\tstring\ta particular marked point\n\t * @param\tstring\ta particular marked point\n\t * @param\tinteger\tthe number of decimal places\n\t * @return\tmixed\n\t */\n\tfunction elapsed_time($point1 = '', $point2 = '', $decimals = 4)\n\t{\n\t\tif ($point1 == '')\n\t\t{\n\t\t\treturn '{elapsed_time}';\n\t\t}\n\n\t\tif ( ! isset($this->marker[$point1]))\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\tif ( ! isset($this->marker[$point2]))\n\t\t{\n\t\t\t$this->marker[$point2] = microtime();\n\t\t}\n\n\t\tlist($sm, $ss) = explode(' ', $this->marker[$point1]);\n\t\tlist($em, $es) = explode(' ', $this->marker[$point2]);\n\n\t\treturn number_format(($em + $es) - ($sm + $ss), $decimals);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Memory Usage\n\t *\n\t * This function returns the {memory_usage} pseudo-variable.\n\t * This permits it to be put it anywhere in a template\n\t * without the memory being calculated until the end.\n\t * The output class will swap the real value for this variable.\n\t *\n\t * @access\tpublic\n\t * @return\tstring\n\t */\n\tfunction memory_usage()\n\t{\n\t\treturn '{memory_usage}';\n\t}\n\n}\n\n// END CI_Benchmark class\n\n/* End of file Benchmark.php */\n/* Location: ./system/core/Benchmark.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/CodeIgniter.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * System Initialization File\n *\n * Loads the base classes and executes the request.\n *\n * @package\t\tCodeIgniter\n * @subpackage\tcodeigniter\n * @category\tFront-controller\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/\n */\n\n/**\n * CodeIgniter Version\n *\n * @var string\n *\n */\n\tdefine('CI_VERSION', '2.1.3');\n\n/**\n * CodeIgniter Branch (Core = TRUE, Reactor = FALSE)\n *\n * @var boolean\n *\n */\n\tdefine('CI_CORE', FALSE);\n\n/*\n * ------------------------------------------------------\n *  Load the global functions\n * ------------------------------------------------------\n */\n\trequire(BASEPATH.'core/Common.php');\n\n/*\n * ------------------------------------------------------\n *  Load the framework constants\n * ------------------------------------------------------\n */\n\tif (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/constants.php'))\n\t{\n\t\trequire(APPPATH.'config/'.ENVIRONMENT.'/constants.php');\n\t}\n\telse\n\t{\n\t\trequire(APPPATH.'config/constants.php');\n\t}\n\n/*\n * ------------------------------------------------------\n *  Define a custom error handler so we can log PHP errors\n * ------------------------------------------------------\n */\n\tset_error_handler('_exception_handler');\n\n\tif ( ! is_php('5.3'))\n\t{\n\t\t@set_magic_quotes_runtime(0); // Kill magic quotes\n\t}\n\n/*\n * ------------------------------------------------------\n *  Set the subclass_prefix\n * ------------------------------------------------------\n *\n * Normally the \"subclass_prefix\" is set in the config file.\n * The subclass prefix allows CI to know if a core class is\n * being extended via a library in the local application\n * \"libraries\" folder. Since CI allows config items to be\n * overriden via data set in the main index. php file,\n * before proceeding we need to know if a subclass_prefix\n * override exists.  If so, we will set this value now,\n * before any classes are loaded\n * Note: Since the config file data is cached it doesn't\n * hurt to load it here.\n */\n\tif (isset($assign_to_config['subclass_prefix']) AND $assign_to_config['subclass_prefix'] != '')\n\t{\n\t\tget_config(array('subclass_prefix' => $assign_to_config['subclass_prefix']));\n\t}\n\n/*\n * ------------------------------------------------------\n *  Set a liberal script execution time limit\n * ------------------------------------------------------\n */\n\tif (function_exists(\"set_time_limit\") == TRUE AND @ini_get(\"safe_mode\") == 0)\n\t{\n\t\t@set_time_limit(300);\n\t}\n\n/*\n * ------------------------------------------------------\n *  Start the timer... tick tock tick tock...\n * ------------------------------------------------------\n */\n\t$BM =& load_class('Benchmark', 'core');\n\t$BM->mark('total_execution_time_start');\n\t$BM->mark('loading_time:_base_classes_start');\n\n/*\n * ------------------------------------------------------\n *  Instantiate the hooks class\n * ------------------------------------------------------\n */\n\t$EXT =& load_class('Hooks', 'core');\n\n/*\n * ------------------------------------------------------\n *  Is there a \"pre_system\" hook?\n * ------------------------------------------------------\n */\n\t$EXT->_call_hook('pre_system');\n\n/*\n * ------------------------------------------------------\n *  Instantiate the config class\n * ------------------------------------------------------\n */\n\t$CFG =& load_class('Config', 'core');\n\n\t// Do we have any manually set config items in the index.php file?\n\tif (isset($assign_to_config))\n\t{\n\t\t$CFG->_assign_to_config($assign_to_config);\n\t}\n\n/*\n * ------------------------------------------------------\n *  Instantiate the UTF-8 class\n * ------------------------------------------------------\n *\n * Note: Order here is rather important as the UTF-8\n * class needs to be used very early on, but it cannot\n * properly determine if UTf-8 can be supported until\n * after the Config class is instantiated.\n *\n */\n\n\t$UNI =& load_class('Utf8', 'core');\n\n/*\n * ------------------------------------------------------\n *  Instantiate the URI class\n * ------------------------------------------------------\n */\n\t$URI =& load_class('URI', 'core');\n\n/*\n * ------------------------------------------------------\n *  Instantiate the routing class and set the routing\n * ------------------------------------------------------\n */\n\t$RTR =& load_class('Router', 'core');\n\t$RTR->_set_routing();\n\n\t// Set any routing overrides that may exist in the main index file\n\tif (isset($routing))\n\t{\n\t\t$RTR->_set_overrides($routing);\n\t}\n\n/*\n * ------------------------------------------------------\n *  Instantiate the output class\n * ------------------------------------------------------\n */\n\t$OUT =& load_class('Output', 'core');\n\n/*\n * ------------------------------------------------------\n *\tIs there a valid cache file?  If so, we're done...\n * ------------------------------------------------------\n */\n\tif ($EXT->_call_hook('cache_override') === FALSE)\n\t{\n\t\tif ($OUT->_display_cache($CFG, $URI) == TRUE)\n\t\t{\n\t\t\texit;\n\t\t}\n\t}\n\n/*\n * -----------------------------------------------------\n * Load the security class for xss and csrf support\n * -----------------------------------------------------\n */\n\t$SEC =& load_class('Security', 'core');\n\n/*\n * ------------------------------------------------------\n *  Load the Input class and sanitize globals\n * ------------------------------------------------------\n */\n\t$IN\t=& load_class('Input', 'core');\n\n/*\n * ------------------------------------------------------\n *  Load the Language class\n * ------------------------------------------------------\n */\n\t$LANG =& load_class('Lang', 'core');\n\n/*\n * ------------------------------------------------------\n *  Load the app controller and local controller\n * ------------------------------------------------------\n *\n */\n\t// Load the base controller class\n\trequire BASEPATH.'core/Controller.php';\n\n\tfunction &get_instance()\n\t{\n\t\treturn CI_Controller::get_instance();\n\t}\n\n\n\tif (file_exists(APPPATH.'core/'.$CFG->config['subclass_prefix'].'Controller.php'))\n\t{\n\t\trequire APPPATH.'core/'.$CFG->config['subclass_prefix'].'Controller.php';\n\t}\n\n\t// Load the local application controller\n\t// Note: The Router class automatically validates the controller path using the router->_validate_request().\n\t// If this include fails it means that the default controller in the Routes.php file is not resolving to something valid.\n\tif ( ! file_exists(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->fetch_class().'.php'))\n\t{\n\t\tshow_error('Unable to load your default controller. Please make sure the controller specified in your Routes.php file is valid.');\n\t}\n\n\tinclude(APPPATH.'controllers/'.$RTR->fetch_directory().$RTR->fetch_class().'.php');\n\n\t// Set a mark point for benchmarking\n\t$BM->mark('loading_time:_base_classes_end');\n\n/*\n * ------------------------------------------------------\n *  Security check\n * ------------------------------------------------------\n *\n *  None of the functions in the app controller or the\n *  loader class can be called via the URI, nor can\n *  controller functions that begin with an underscore\n */\n\t$class  = $RTR->fetch_class();\n\t$method = $RTR->fetch_method();\n\n\tif ( ! class_exists($class)\n\t\tOR strncmp($method, '_', 1) == 0\n\t\tOR in_array(strtolower($method), array_map('strtolower', get_class_methods('CI_Controller')))\n\t\t)\n\t{\n\t\tif ( ! empty($RTR->routes['404_override']))\n\t\t{\n\t\t\t$x = explode('/', $RTR->routes['404_override']);\n\t\t\t$class = $x[0];\n\t\t\t$method = (isset($x[1]) ? $x[1] : 'index');\n\t\t\tif ( ! class_exists($class))\n\t\t\t{\n\t\t\t\tif ( ! file_exists(APPPATH.'controllers/'.$class.'.php'))\n\t\t\t\t{\n\t\t\t\t\tshow_404(\"{$class}/{$method}\");\n\t\t\t\t}\n\n\t\t\t\tinclude_once(APPPATH.'controllers/'.$class.'.php');\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tshow_404(\"{$class}/{$method}\");\n\t\t}\n\t}\n\n/*\n * ------------------------------------------------------\n *  Is there a \"pre_controller\" hook?\n * ------------------------------------------------------\n */\n\t$EXT->_call_hook('pre_controller');\n\n/*\n * ------------------------------------------------------\n *  Instantiate the requested controller\n * ------------------------------------------------------\n */\n\t// Mark a start point so we can benchmark the controller\n\t$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');\n\n\t$CI = new $class();\n\n/*\n * ------------------------------------------------------\n *  Is there a \"post_controller_constructor\" hook?\n * ------------------------------------------------------\n */\n\t$EXT->_call_hook('post_controller_constructor');\n\n/*\n * ------------------------------------------------------\n *  Call the requested method\n * ------------------------------------------------------\n */\n\t// Is there a \"remap\" function? If so, we call it instead\n\tif (method_exists($CI, '_remap'))\n\t{\n\t\t$CI->_remap($method, array_slice($URI->rsegments, 2));\n\t}\n\telse\n\t{\n\t\t// is_callable() returns TRUE on some versions of PHP 5 for private and protected\n\t\t// methods, so we'll use this workaround for consistent behavior\n\t\tif ( ! in_array(strtolower($method), array_map('strtolower', get_class_methods($CI))))\n\t\t{\n\t\t\t// Check and see if we are using a 404 override and use it.\n\t\t\tif ( ! empty($RTR->routes['404_override']))\n\t\t\t{\n\t\t\t\t$x = explode('/', $RTR->routes['404_override']);\n\t\t\t\t$class = $x[0];\n\t\t\t\t$method = (isset($x[1]) ? $x[1] : 'index');\n\t\t\t\tif ( ! class_exists($class))\n\t\t\t\t{\n\t\t\t\t\tif ( ! file_exists(APPPATH.'controllers/'.$class.'.php'))\n\t\t\t\t\t{\n\t\t\t\t\t\tshow_404(\"{$class}/{$method}\");\n\t\t\t\t\t}\n\n\t\t\t\t\tinclude_once(APPPATH.'controllers/'.$class.'.php');\n\t\t\t\t\tunset($CI);\n\t\t\t\t\t$CI = new $class();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tshow_404(\"{$class}/{$method}\");\n\t\t\t}\n\t\t}\n\n\t\t// Call the requested method.\n\t\t// Any URI segments present (besides the class/function) will be passed to the method for convenience\n\t\tcall_user_func_array(array(&$CI, $method), array_slice($URI->rsegments, 2));\n\t}\n\n\n\t// Mark a benchmark end point\n\t$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_end');\n\n/*\n * ------------------------------------------------------\n *  Is there a \"post_controller\" hook?\n * ------------------------------------------------------\n */\n\t$EXT->_call_hook('post_controller');\n\n/*\n * ------------------------------------------------------\n *  Send the final rendered output to the browser\n * ------------------------------------------------------\n */\n\tif ($EXT->_call_hook('display_override') === FALSE)\n\t{\n\t\t$OUT->_display();\n\t}\n\n/*\n * ------------------------------------------------------\n *  Is there a \"post_system\" hook?\n * ------------------------------------------------------\n */\n\t$EXT->_call_hook('post_system');\n\n/*\n * ------------------------------------------------------\n *  Close the DB connection if one exists\n * ------------------------------------------------------\n */\n\tif (class_exists('CI_DB') AND isset($CI->db))\n\t{\n\t\t$CI->db->close();\n\t}\n\n\n/* End of file CodeIgniter.php */\n/* Location: ./system/core/CodeIgniter.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Common.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Common Functions\n *\n * Loads the base classes and executes the request.\n *\n * @package\t\tCodeIgniter\n * @subpackage\tcodeigniter\n * @category\tCommon Functions\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/\n */\n\n// ------------------------------------------------------------------------\n\n/**\n* Determines if the current version of PHP is greater then the supplied value\n*\n* Since there are a few places where we conditionally test for PHP > 5\n* we'll set a static variable.\n*\n* @access\tpublic\n* @param\tstring\n* @return\tbool\tTRUE if the current version is $version or higher\n*/\nif ( ! function_exists('is_php'))\n{\n\tfunction is_php($version = '5.0.0')\n\t{\n\t\tstatic $_is_php;\n\t\t$version = (string)$version;\n\n\t\tif ( ! isset($_is_php[$version]))\n\t\t{\n\t\t\t$_is_php[$version] = (version_compare(PHP_VERSION, $version) < 0) ? FALSE : TRUE;\n\t\t}\n\n\t\treturn $_is_php[$version];\n\t}\n}\n\n// ------------------------------------------------------------------------\n\n/**\n * Tests for file writability\n *\n * is_writable() returns TRUE on Windows servers when you really can't write to\n * the file, based on the read-only attribute.  is_writable() is also unreliable\n * on Unix servers if safe_mode is on.\n *\n * @access\tprivate\n * @return\tvoid\n */\nif ( ! function_exists('is_really_writable'))\n{\n\tfunction is_really_writable($file)\n\t{\n\t\t// If we're on a Unix server with safe_mode off we call is_writable\n\t\tif (DIRECTORY_SEPARATOR == '/' AND @ini_get(\"safe_mode\") == FALSE)\n\t\t{\n\t\t\treturn is_writable($file);\n\t\t}\n\n\t\t// For windows servers and safe_mode \"on\" installations we'll actually\n\t\t// write a file then read it.  Bah...\n\t\tif (is_dir($file))\n\t\t{\n\t\t\t$file = rtrim($file, '/').'/'.md5(mt_rand(1,100).mt_rand(1,100));\n\n\t\t\tif (($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE)\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\tfclose($fp);\n\t\t\t@chmod($file, DIR_WRITE_MODE);\n\t\t\t@unlink($file);\n\t\t\treturn TRUE;\n\t\t}\n\t\telseif ( ! is_file($file) OR ($fp = @fopen($file, FOPEN_WRITE_CREATE)) === FALSE)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tfclose($fp);\n\t\treturn TRUE;\n\t}\n}\n\n// ------------------------------------------------------------------------\n\n/**\n* Class registry\n*\n* This function acts as a singleton.  If the requested class does not\n* exist it is instantiated and set to a static variable.  If it has\n* previously been instantiated the variable is returned.\n*\n* @access\tpublic\n* @param\tstring\tthe class name being requested\n* @param\tstring\tthe directory where the class should be found\n* @param\tstring\tthe class name prefix\n* @return\tobject\n*/\nif ( ! function_exists('load_class'))\n{\n\tfunction &load_class($class, $directory = 'libraries', $prefix = 'CI_')\n\t{\n\t\tstatic $_classes = array();\n\n\t\t// Does the class exist?  If so, we're done...\n\t\tif (isset($_classes[$class]))\n\t\t{\n\t\t\treturn $_classes[$class];\n\t\t}\n\n\t\t$name = FALSE;\n\n\t\t// Look for the class first in the local application/libraries folder\n\t\t// then in the native system/libraries folder\n\t\tforeach (array(APPPATH, BASEPATH) as $path)\n\t\t{\n\t\t\tif (file_exists($path.$directory.'/'.$class.'.php'))\n\t\t\t{\n\t\t\t\t$name = $prefix.$class;\n\n\t\t\t\tif (class_exists($name) === FALSE)\n\t\t\t\t{\n\t\t\t\t\trequire($path.$directory.'/'.$class.'.php');\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\t// Is the request a class extension?  If so we load it too\n\t\tif (file_exists(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.'.php'))\n\t\t{\n\t\t\t$name = config_item('subclass_prefix').$class;\n\n\t\t\tif (class_exists($name) === FALSE)\n\t\t\t{\n\t\t\t\trequire(APPPATH.$directory.'/'.config_item('subclass_prefix').$class.'.php');\n\t\t\t}\n\t\t}\n\n\t\t// Did we find the class?\n\t\tif ($name === FALSE)\n\t\t{\n\t\t\t// Note: We use exit() rather then show_error() in order to avoid a\n\t\t\t// self-referencing loop with the Excptions class\n\t\t\texit('Unable to locate the specified class: '.$class.'.php');\n\t\t}\n\n\t\t// Keep track of what we just loaded\n\t\tis_loaded($class);\n\n\t\t$_classes[$class] = new $name();\n\t\treturn $_classes[$class];\n\t}\n}\n\n// --------------------------------------------------------------------\n\n/**\n* Keeps track of which libraries have been loaded.  This function is\n* called by the load_class() function above\n*\n* @access\tpublic\n* @return\tarray\n*/\nif ( ! function_exists('is_loaded'))\n{\n\tfunction &is_loaded($class = '')\n\t{\n\t\tstatic $_is_loaded = array();\n\n\t\tif ($class != '')\n\t\t{\n\t\t\t$_is_loaded[strtolower($class)] = $class;\n\t\t}\n\n\t\treturn $_is_loaded;\n\t}\n}\n\n// ------------------------------------------------------------------------\n\n/**\n* Loads the main config.php file\n*\n* This function lets us grab the config file even if the Config class\n* hasn't been instantiated yet\n*\n* @access\tprivate\n* @return\tarray\n*/\nif ( ! function_exists('get_config'))\n{\n\tfunction &get_config($replace = array())\n\t{\n\t\tstatic $_config;\n\n\t\tif (isset($_config))\n\t\t{\n\t\t\treturn $_config[0];\n\t\t}\n\n\t\t// Is the config file in the environment folder?\n\t\tif ( ! defined('ENVIRONMENT') OR ! file_exists($file_path = APPPATH.'config/'.ENVIRONMENT.'/config.php'))\n\t\t{\n\t\t\t$file_path = APPPATH.'config/config.php';\n\t\t}\n\n\t\t// Fetch the config file\n\t\tif ( ! file_exists($file_path))\n\t\t{\n\t\t\texit('The configuration file does not exist.');\n\t\t}\n\n\t\trequire($file_path);\n\n\t\t// Does the $config array exist in the file?\n\t\tif ( ! isset($config) OR ! is_array($config))\n\t\t{\n\t\t\texit('Your config file does not appear to be formatted correctly.');\n\t\t}\n\n\t\t// Are any values being dynamically replaced?\n\t\tif (count($replace) > 0)\n\t\t{\n\t\t\tforeach ($replace as $key => $val)\n\t\t\t{\n\t\t\t\tif (isset($config[$key]))\n\t\t\t\t{\n\t\t\t\t\t$config[$key] = $val;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn $_config[0] =& $config;\n\t}\n}\n\n// ------------------------------------------------------------------------\n\n/**\n* Returns the specified config item\n*\n* @access\tpublic\n* @return\tmixed\n*/\nif ( ! function_exists('config_item'))\n{\n\tfunction config_item($item)\n\t{\n\t\tstatic $_config_item = array();\n\n\t\tif ( ! isset($_config_item[$item]))\n\t\t{\n\t\t\t$config =& get_config();\n\n\t\t\tif ( ! isset($config[$item]))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\t$_config_item[$item] = $config[$item];\n\t\t}\n\n\t\treturn $_config_item[$item];\n\t}\n}\n\n// ------------------------------------------------------------------------\n\n/**\n* Error Handler\n*\n* This function lets us invoke the exception class and\n* display errors using the standard error template located\n* in application/errors/errors.php\n* This function will send the error page directly to the\n* browser and exit.\n*\n* @access\tpublic\n* @return\tvoid\n*/\nif ( ! function_exists('show_error'))\n{\n\tfunction show_error($message, $status_code = 500, $heading = 'An Error Was Encountered')\n\t{\n\t\t$_error =& load_class('Exceptions', 'core');\n\t\techo $_error->show_error($heading, $message, 'error_general', $status_code);\n\t\texit;\n\t}\n}\n\n// ------------------------------------------------------------------------\n\n/**\n* 404 Page Handler\n*\n* This function is similar to the show_error() function above\n* However, instead of the standard error template it displays\n* 404 errors.\n*\n* @access\tpublic\n* @return\tvoid\n*/\nif ( ! function_exists('show_404'))\n{\n\tfunction show_404($page = '', $log_error = TRUE)\n\t{\n\t\t$_error =& load_class('Exceptions', 'core');\n\t\t$_error->show_404($page, $log_error);\n\t\texit;\n\t}\n}\n\n// ------------------------------------------------------------------------\n\n/**\n* Error Logging Interface\n*\n* We use this as a simple mechanism to access the logging\n* class and send messages to be logged.\n*\n* @access\tpublic\n* @return\tvoid\n*/\nif ( ! function_exists('log_message'))\n{\n\tfunction log_message($level = 'error', $message, $php_error = FALSE)\n\t{\n\t\tstatic $_log;\n\n\t\tif (config_item('log_threshold') == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$_log =& load_class('Log');\n\t\t$_log->write_log($level, $message, $php_error);\n\t}\n}\n\n// ------------------------------------------------------------------------\n\n/**\n * Set HTTP Status Header\n *\n * @access\tpublic\n * @param\tint\t\tthe status code\n * @param\tstring\n * @return\tvoid\n */\nif ( ! function_exists('set_status_header'))\n{\n\tfunction set_status_header($code = 200, $text = '')\n\t{\n\t\t$stati = array(\n\t\t\t\t\t\t\t200\t=> 'OK',\n\t\t\t\t\t\t\t201\t=> 'Created',\n\t\t\t\t\t\t\t202\t=> 'Accepted',\n\t\t\t\t\t\t\t203\t=> 'Non-Authoritative Information',\n\t\t\t\t\t\t\t204\t=> 'No Content',\n\t\t\t\t\t\t\t205\t=> 'Reset Content',\n\t\t\t\t\t\t\t206\t=> 'Partial Content',\n\n\t\t\t\t\t\t\t300\t=> 'Multiple Choices',\n\t\t\t\t\t\t\t301\t=> 'Moved Permanently',\n\t\t\t\t\t\t\t302\t=> 'Found',\n\t\t\t\t\t\t\t304\t=> 'Not Modified',\n\t\t\t\t\t\t\t305\t=> 'Use Proxy',\n\t\t\t\t\t\t\t307\t=> 'Temporary Redirect',\n\n\t\t\t\t\t\t\t400\t=> 'Bad Request',\n\t\t\t\t\t\t\t401\t=> 'Unauthorized',\n\t\t\t\t\t\t\t403\t=> 'Forbidden',\n\t\t\t\t\t\t\t404\t=> 'Not Found',\n\t\t\t\t\t\t\t405\t=> 'Method Not Allowed',\n\t\t\t\t\t\t\t406\t=> 'Not Acceptable',\n\t\t\t\t\t\t\t407\t=> 'Proxy Authentication Required',\n\t\t\t\t\t\t\t408\t=> 'Request Timeout',\n\t\t\t\t\t\t\t409\t=> 'Conflict',\n\t\t\t\t\t\t\t410\t=> 'Gone',\n\t\t\t\t\t\t\t411\t=> 'Length Required',\n\t\t\t\t\t\t\t412\t=> 'Precondition Failed',\n\t\t\t\t\t\t\t413\t=> 'Request Entity Too Large',\n\t\t\t\t\t\t\t414\t=> 'Request-URI Too Long',\n\t\t\t\t\t\t\t415\t=> 'Unsupported Media Type',\n\t\t\t\t\t\t\t416\t=> 'Requested Range Not Satisfiable',\n\t\t\t\t\t\t\t417\t=> 'Expectation Failed',\n\n\t\t\t\t\t\t\t500\t=> 'Internal Server Error',\n\t\t\t\t\t\t\t501\t=> 'Not Implemented',\n\t\t\t\t\t\t\t502\t=> 'Bad Gateway',\n\t\t\t\t\t\t\t503\t=> 'Service Unavailable',\n\t\t\t\t\t\t\t504\t=> 'Gateway Timeout',\n\t\t\t\t\t\t\t505\t=> 'HTTP Version Not Supported'\n\t\t\t\t\t\t);\n\n\t\tif ($code == '' OR ! is_numeric($code))\n\t\t{\n\t\t\tshow_error('Status codes must be numeric', 500);\n\t\t}\n\n\t\tif (isset($stati[$code]) AND $text == '')\n\t\t{\n\t\t\t$text = $stati[$code];\n\t\t}\n\n\t\tif ($text == '')\n\t\t{\n\t\t\tshow_error('No status text available.  Please check your status code number or supply your own message text.', 500);\n\t\t}\n\n\t\t$server_protocol = (isset($_SERVER['SERVER_PROTOCOL'])) ? $_SERVER['SERVER_PROTOCOL'] : FALSE;\n\n\t\tif (substr(php_sapi_name(), 0, 3) == 'cgi')\n\t\t{\n\t\t\theader(\"Status: {$code} {$text}\", TRUE);\n\t\t}\n\t\telseif ($server_protocol == 'HTTP/1.1' OR $server_protocol == 'HTTP/1.0')\n\t\t{\n\t\t\theader($server_protocol.\" {$code} {$text}\", TRUE, $code);\n\t\t}\n\t\telse\n\t\t{\n\t\t\theader(\"HTTP/1.1 {$code} {$text}\", TRUE, $code);\n\t\t}\n\t}\n}\n\n// --------------------------------------------------------------------\n\n/**\n* Exception Handler\n*\n* This is the custom exception handler that is declaired at the top\n* of Codeigniter.php.  The main reason we use this is to permit\n* PHP errors to be logged in our own log files since the user may\n* not have access to server logs. Since this function\n* effectively intercepts PHP errors, however, we also need\n* to display errors based on the current error_reporting level.\n* We do that with the use of a PHP error template.\n*\n* @access\tprivate\n* @return\tvoid\n*/\nif ( ! function_exists('_exception_handler'))\n{\n\tfunction _exception_handler($severity, $message, $filepath, $line)\n\t{\n\t\t // We don't bother with \"strict\" notices since they tend to fill up\n\t\t // the log file with excess information that isn't normally very helpful.\n\t\t // For example, if you are running PHP 5 and you use version 4 style\n\t\t // class functions (without prefixes like \"public\", \"private\", etc.)\n\t\t // you'll get notices telling you that these have been deprecated.\n\t\tif ($severity == E_STRICT)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$_error =& load_class('Exceptions', 'core');\n\n\t\t// Should we display the error? We'll get the current error_reporting\n\t\t// level and add its bits with the severity bits to find out.\n\t\tif (($severity & error_reporting()) == $severity)\n\t\t{\n\t\t\t$_error->show_php_error($severity, $message, $filepath, $line);\n\t\t}\n\n\t\t// Should we log the error?  No?  We're done...\n\t\tif (config_item('log_threshold') == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$_error->log_exception($severity, $message, $filepath, $line);\n\t}\n}\n\n// --------------------------------------------------------------------\n\n/**\n * Remove Invisible Characters\n *\n * This prevents sandwiching null characters\n * between ascii characters, like Java\\0script.\n *\n * @access\tpublic\n * @param\tstring\n * @return\tstring\n */\nif ( ! function_exists('remove_invisible_characters'))\n{\n\tfunction remove_invisible_characters($str, $url_encoded = TRUE)\n\t{\n\t\t$non_displayables = array();\n\t\t\n\t\t// every control character except newline (dec 10)\n\t\t// carriage return (dec 13), and horizontal tab (dec 09)\n\t\t\n\t\tif ($url_encoded)\n\t\t{\n\t\t\t$non_displayables[] = '/%0[0-8bcef]/';\t// url encoded 00-08, 11, 12, 14, 15\n\t\t\t$non_displayables[] = '/%1[0-9a-f]/';\t// url encoded 16-31\n\t\t}\n\t\t\n\t\t$non_displayables[] = '/[\\x00-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]+/S';\t// 00-08, 11, 12, 14-31, 127\n\n\t\tdo\n\t\t{\n\t\t\t$str = preg_replace($non_displayables, '', $str, -1, $count);\n\t\t}\n\t\twhile ($count);\n\n\t\treturn $str;\n\t}\n}\n\n// ------------------------------------------------------------------------\n\n/**\n* Returns HTML escaped variable\n*\n* @access\tpublic\n* @param\tmixed\n* @return\tmixed\n*/\nif ( ! function_exists('html_escape'))\n{\n\tfunction html_escape($var)\n\t{\n\t\tif (is_array($var))\n\t\t{\n\t\t\treturn array_map('html_escape', $var);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn htmlspecialchars($var, ENT_QUOTES, config_item('charset'));\n\t\t}\n\t}\n}\n\n/* End of file Common.php */\n/* Location: ./system/core/Common.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Config.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * CodeIgniter Config Class\n *\n * This class contains functions that enable config files to be managed\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tLibraries\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/config.html\n */\nclass CI_Config {\n\n\t/**\n\t * List of all loaded config values\n\t *\n\t * @var array\n\t */\n\tvar $config = array();\n\t/**\n\t * List of all loaded config files\n\t *\n\t * @var array\n\t */\n\tvar $is_loaded = array();\n\t/**\n\t * List of paths to search when trying to load a config file\n\t *\n\t * @var array\n\t */\n\tvar $_config_paths = array(APPPATH);\n\n\t/**\n\t * Constructor\n\t *\n\t * Sets the $config data from the primary config.php file as a class variable\n\t *\n\t * @access   public\n\t * @param   string\tthe config file name\n\t * @param   boolean  if configuration values should be loaded into their own section\n\t * @param   boolean  true if errors should just return false, false if an error message should be displayed\n\t * @return  boolean  if the file was successfully loaded or not\n\t */\n\tfunction __construct()\n\t{\n\t\t$this->config =& get_config();\n\t\tlog_message('debug', \"Config Class Initialized\");\n\n\t\t// Set the base_url automatically if none was provided\n\t\tif ($this->config['base_url'] == '')\n\t\t{\n\t\t\tif (isset($_SERVER['HTTP_HOST']))\n\t\t\t{\n\t\t\t\t$base_url = isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) !== 'off' ? 'https' : 'http';\n\t\t\t\t$base_url .= '://'. $_SERVER['HTTP_HOST'];\n\t\t\t\t$base_url .= str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']);\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t\t$base_url = 'http://localhost/';\n\t\t\t}\n\n\t\t\t$this->set_item('base_url', $base_url);\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Load Config File\n\t *\n\t * @access\tpublic\n\t * @param\tstring\tthe config file name\n\t * @param   boolean  if configuration values should be loaded into their own section\n\t * @param   boolean  true if errors should just return false, false if an error message should be displayed\n\t * @return\tboolean\tif the file was loaded correctly\n\t */\n\tfunction load($file = '', $use_sections = FALSE, $fail_gracefully = FALSE)\n\t{\n\t\t$file = ($file == '') ? 'config' : str_replace('.php', '', $file);\n\t\t$found = FALSE;\n\t\t$loaded = FALSE;\n\n\t\t$check_locations = defined('ENVIRONMENT')\n\t\t\t? array(ENVIRONMENT.'/'.$file, $file)\n\t\t\t: array($file);\n\n\t\tforeach ($this->_config_paths as $path)\n\t\t{\n\t\t\tforeach ($check_locations as $location)\n\t\t\t{\n\t\t\t\t$file_path = $path.'config/'.$location.'.php';\n\n\t\t\t\tif (in_array($file_path, $this->is_loaded, TRUE))\n\t\t\t\t{\n\t\t\t\t\t$loaded = TRUE;\n\t\t\t\t\tcontinue 2;\n\t\t\t\t}\n\n\t\t\t\tif (file_exists($file_path))\n\t\t\t\t{\n\t\t\t\t\t$found = TRUE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($found === FALSE)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tinclude($file_path);\n\n\t\t\tif ( ! isset($config) OR ! is_array($config))\n\t\t\t{\n\t\t\t\tif ($fail_gracefully === TRUE)\n\t\t\t\t{\n\t\t\t\t\treturn FALSE;\n\t\t\t\t}\n\t\t\t\tshow_error('Your '.$file_path.' file does not appear to contain a valid configuration array.');\n\t\t\t}\n\n\t\t\tif ($use_sections === TRUE)\n\t\t\t{\n\t\t\t\tif (isset($this->config[$file]))\n\t\t\t\t{\n\t\t\t\t\t$this->config[$file] = array_merge($this->config[$file], $config);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->config[$file] = $config;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->config = array_merge($this->config, $config);\n\t\t\t}\n\n\t\t\t$this->is_loaded[] = $file_path;\n\t\t\tunset($config);\n\n\t\t\t$loaded = TRUE;\n\t\t\tlog_message('debug', 'Config file loaded: '.$file_path);\n\t\t\tbreak;\n\t\t}\n\n\t\tif ($loaded === FALSE)\n\t\t{\n\t\t\tif ($fail_gracefully === TRUE)\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t\tshow_error('The configuration file '.$file.'.php does not exist.');\n\t\t}\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch a config file item\n\t *\n\t *\n\t * @access\tpublic\n\t * @param\tstring\tthe config item name\n\t * @param\tstring\tthe index name\n\t * @param\tbool\n\t * @return\tstring\n\t */\n\tfunction item($item, $index = '')\n\t{\n\t\tif ($index == '')\n\t\t{\n\t\t\tif ( ! isset($this->config[$item]))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\t$pref = $this->config[$item];\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( ! isset($this->config[$index]))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\tif ( ! isset($this->config[$index][$item]))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\t$pref = $this->config[$index][$item];\n\t\t}\n\n\t\treturn $pref;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch a config file item - adds slash after item (if item is not empty)\n\t *\n\t * @access\tpublic\n\t * @param\tstring\tthe config item name\n\t * @param\tbool\n\t * @return\tstring\n\t */\n\tfunction slash_item($item)\n\t{\n\t\tif ( ! isset($this->config[$item]))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\tif( trim($this->config[$item]) == '')\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\treturn rtrim($this->config[$item], '/').'/';\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Site URL\n\t * Returns base_url . index_page [. uri_string]\n\t *\n\t * @access\tpublic\n\t * @param\tstring\tthe URI string\n\t * @return\tstring\n\t */\n\tfunction site_url($uri = '')\n\t{\n\t\tif ($uri == '')\n\t\t{\n\t\t\treturn $this->slash_item('base_url').$this->item('index_page');\n\t\t}\n\n\t\tif ($this->item('enable_query_strings') == FALSE)\n\t\t{\n\t\t\t$suffix = ($this->item('url_suffix') == FALSE) ? '' : $this->item('url_suffix');\n\t\t\treturn $this->slash_item('base_url').$this->slash_item('index_page').$this->_uri_string($uri).$suffix;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->slash_item('base_url').$this->item('index_page').'?'.$this->_uri_string($uri);\n\t\t}\n\t}\n\n\t// -------------------------------------------------------------\n\n\t/**\n\t * Base URL\n\t * Returns base_url [. uri_string]\n\t *\n\t * @access public\n\t * @param string $uri\n\t * @return string\n\t */\n\tfunction base_url($uri = '')\n\t{\n\t\treturn $this->slash_item('base_url').ltrim($this->_uri_string($uri), '/');\n\t}\n\n\t// -------------------------------------------------------------\n\n\t/**\n\t * Build URI string for use in Config::site_url() and Config::base_url()\n\t *\n\t * @access protected\n\t * @param  $uri\n\t * @return string\n\t */\n\tprotected function _uri_string($uri)\n\t{\n\t\tif ($this->item('enable_query_strings') == FALSE)\n\t\t{\n\t\t\tif (is_array($uri))\n\t\t\t{\n\t\t\t\t$uri = implode('/', $uri);\n\t\t\t}\n\t\t\t$uri = trim($uri, '/');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (is_array($uri))\n\t\t\t{\n\t\t\t\t$i = 0;\n\t\t\t\t$str = '';\n\t\t\t\tforeach ($uri as $key => $val)\n\t\t\t\t{\n\t\t\t\t\t$prefix = ($i == 0) ? '' : '&';\n\t\t\t\t\t$str .= $prefix.$key.'='.$val;\n\t\t\t\t\t$i++;\n\t\t\t\t}\n\t\t\t\t$uri = $str;\n\t\t\t}\n\t\t}\n\t    return $uri;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * System URL\n\t *\n\t * @access\tpublic\n\t * @return\tstring\n\t */\n\tfunction system_url()\n\t{\n\t\t$x = explode(\"/\", preg_replace(\"|/*(.+?)/*$|\", \"\\\\1\", BASEPATH));\n\t\treturn $this->slash_item('base_url').end($x).'/';\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set a config file item\n\t *\n\t * @access\tpublic\n\t * @param\tstring\tthe config item key\n\t * @param\tstring\tthe config item value\n\t * @return\tvoid\n\t */\n\tfunction set_item($item, $value)\n\t{\n\t\t$this->config[$item] = $value;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Assign to Config\n\t *\n\t * This function is called by the front controller (CodeIgniter.php)\n\t * after the Config class is instantiated.  It permits config items\n\t * to be assigned or overriden by variables contained in the index.php file\n\t *\n\t * @access\tprivate\n\t * @param\tarray\n\t * @return\tvoid\n\t */\n\tfunction _assign_to_config($items = array())\n\t{\n\t\tif (is_array($items))\n\t\t{\n\t\t\tforeach ($items as $key => $val)\n\t\t\t{\n\t\t\t\t$this->set_item($key, $val);\n\t\t\t}\n\t\t}\n\t}\n}\n\n// END CI_Config class\n\n/* End of file Config.php */\n/* Location: ./system/core/Config.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Controller.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * CodeIgniter Application Controller Class\n *\n * This class object is the super class that every library in\n * CodeIgniter will be assigned to.\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tLibraries\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/general/controllers.html\n */\nclass CI_Controller {\n\n\tprivate static $instance;\n\n\t/**\n\t * Constructor\n\t */\n\tpublic function __construct()\n\t{\n\t\tself::$instance =& $this;\n\t\t\n\t\t// Assign all the class objects that were instantiated by the\n\t\t// bootstrap file (CodeIgniter.php) to local class variables\n\t\t// so that CI can run as one big super object.\n\t\tforeach (is_loaded() as $var => $class)\n\t\t{\n\t\t\t$this->$var =& load_class($class);\n\t\t}\n\n\t\t$this->load =& load_class('Loader', 'core');\n\n\t\t$this->load->initialize();\n\t\t\n\t\tlog_message('debug', \"Controller Class Initialized\");\n\t}\n\n\tpublic static function &get_instance()\n\t{\n\t\treturn self::$instance;\n\t}\n}\n// END Controller class\n\n/* End of file Controller.php */\n/* Location: ./system/core/Controller.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Exceptions.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Exceptions Class\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tExceptions\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/exceptions.html\n */\nclass CI_Exceptions {\n\tvar $action;\n\tvar $severity;\n\tvar $message;\n\tvar $filename;\n\tvar $line;\n\n\t/**\n\t * Nesting level of the output buffering mechanism\n\t *\n\t * @var int\n\t * @access public\n\t */\n\tvar $ob_level;\n\n\t/**\n\t * List if available error levels\n\t *\n\t * @var array\n\t * @access public\n\t */\n\tvar $levels = array(\n\t\t\t\t\t\tE_ERROR\t\t\t\t=>\t'Error',\n\t\t\t\t\t\tE_WARNING\t\t\t=>\t'Warning',\n\t\t\t\t\t\tE_PARSE\t\t\t\t=>\t'Parsing Error',\n\t\t\t\t\t\tE_NOTICE\t\t\t=>\t'Notice',\n\t\t\t\t\t\tE_CORE_ERROR\t\t=>\t'Core Error',\n\t\t\t\t\t\tE_CORE_WARNING\t\t=>\t'Core Warning',\n\t\t\t\t\t\tE_COMPILE_ERROR\t\t=>\t'Compile Error',\n\t\t\t\t\t\tE_COMPILE_WARNING\t=>\t'Compile Warning',\n\t\t\t\t\t\tE_USER_ERROR\t\t=>\t'User Error',\n\t\t\t\t\t\tE_USER_WARNING\t\t=>\t'User Warning',\n\t\t\t\t\t\tE_USER_NOTICE\t\t=>\t'User Notice',\n\t\t\t\t\t\tE_STRICT\t\t\t=>\t'Runtime Notice'\n\t\t\t\t\t);\n\n\n\t/**\n\t * Constructor\n\t */\n\tpublic function __construct()\n\t{\n\t\t$this->ob_level = ob_get_level();\n\t\t// Note:  Do not log messages from this constructor.\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Exception Logger\n\t *\n\t * This function logs PHP generated error messages\n\t *\n\t * @access\tprivate\n\t * @param\tstring\tthe error severity\n\t * @param\tstring\tthe error string\n\t * @param\tstring\tthe error filepath\n\t * @param\tstring\tthe error line number\n\t * @return\tstring\n\t */\n\tfunction log_exception($severity, $message, $filepath, $line)\n\t{\n\t\t$severity = ( ! isset($this->levels[$severity])) ? $severity : $this->levels[$severity];\n\n\t\tlog_message('error', 'Severity: '.$severity.'  --> '.$message. ' '.$filepath.' '.$line, TRUE);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * 404 Page Not Found Handler\n\t *\n\t * @access\tprivate\n\t * @param\tstring\tthe page\n\t * @param \tbool\tlog error yes/no\n\t * @return\tstring\n\t */\n\tfunction show_404($page = '', $log_error = TRUE)\n\t{\n\t\t$heading = \"404 Page Not Found\";\n\t\t$message = \"The page you requested was not found.\";\n\n\t\t// By default we log this, but allow a dev to skip it\n\t\tif ($log_error)\n\t\t{\n\t\t\tlog_message('error', '404 Page Not Found --> '.$page);\n\t\t}\n\n\t\techo $this->show_error($heading, $message, 'error_404', 404);\n\t\texit;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * General Error Page\n\t *\n\t * This function takes an error message as input\n\t * (either as a string or an array) and displays\n\t * it using the specified template.\n\t *\n\t * @access\tprivate\n\t * @param\tstring\tthe heading\n\t * @param\tstring\tthe message\n\t * @param\tstring\tthe template name\n\t * @param \tint\t\tthe status code\n\t * @return\tstring\n\t */\n\tfunction show_error($heading, $message, $template = 'error_general', $status_code = 500)\n\t{\n\t\tset_status_header($status_code);\n\n\t\t$message = '<p>'.implode('</p><p>', ( ! is_array($message)) ? array($message) : $message).'</p>';\n\n\t\tif (ob_get_level() > $this->ob_level + 1)\n\t\t{\n\t\t\tob_end_flush();\n\t\t}\n\t\tob_start();\n\t\tinclude(APPPATH.'errors/'.$template.'.php');\n\t\t$buffer = ob_get_contents();\n\t\tob_end_clean();\n\t\treturn $buffer;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Native PHP error handler\n\t *\n\t * @access\tprivate\n\t * @param\tstring\tthe error severity\n\t * @param\tstring\tthe error string\n\t * @param\tstring\tthe error filepath\n\t * @param\tstring\tthe error line number\n\t * @return\tstring\n\t */\n\tfunction show_php_error($severity, $message, $filepath, $line)\n\t{\n\t\t$severity = ( ! isset($this->levels[$severity])) ? $severity : $this->levels[$severity];\n\n\t\t$filepath = str_replace(\"\\\\\", \"/\", $filepath);\n\n\t\t// For safety reasons we do not show the full file path\n\t\tif (FALSE !== strpos($filepath, '/'))\n\t\t{\n\t\t\t$x = explode('/', $filepath);\n\t\t\t$filepath = $x[count($x)-2].'/'.end($x);\n\t\t}\n\n\t\tif (ob_get_level() > $this->ob_level + 1)\n\t\t{\n\t\t\tob_end_flush();\n\t\t}\n\t\tob_start();\n\t\tinclude(APPPATH.'errors/error_php.php');\n\t\t$buffer = ob_get_contents();\n\t\tob_end_clean();\n\t\techo $buffer;\n\t}\n\n\n}\n// END Exceptions Class\n\n/* End of file Exceptions.php */\n/* Location: ./system/core/Exceptions.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Hooks.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * CodeIgniter Hooks Class\n *\n * Provides a mechanism to extend the base system without hacking.\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tLibraries\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/encryption.html\n */\nclass CI_Hooks {\n\n\t/**\n\t * Determines wether hooks are enabled\n\t *\n\t * @var bool\n\t */\n\tvar $enabled\t\t= FALSE;\n\t/**\n\t * List of all hooks set in config/hooks.php\n\t *\n\t * @var array\n\t */\n\tvar $hooks\t\t\t= array();\n\t/**\n\t * Determines wether hook is in progress, used to prevent infinte loops\n\t *\n\t * @var bool\n\t */\n\tvar $in_progress\t= FALSE;\n\n\t/**\n\t * Constructor\n\t *\n\t */\n\tfunction __construct()\n\t{\n\t\t$this->_initialize();\n\t\tlog_message('debug', \"Hooks Class Initialized\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Initialize the Hooks Preferences\n\t *\n\t * @access\tprivate\n\t * @return\tvoid\n\t */\n\tfunction _initialize()\n\t{\n\t\t$CFG =& load_class('Config', 'core');\n\n\t\t// If hooks are not enabled in the config file\n\t\t// there is nothing else to do\n\n\t\tif ($CFG->item('enable_hooks') == FALSE)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// Grab the \"hooks\" definition file.\n\t\t// If there are no hooks, we're done.\n\n\t\tif (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/hooks.php'))\n\t\t{\n\t\t    include(APPPATH.'config/'.ENVIRONMENT.'/hooks.php');\n\t\t}\n\t\telseif (is_file(APPPATH.'config/hooks.php'))\n\t\t{\n\t\t\tinclude(APPPATH.'config/hooks.php');\n\t\t}\n\n\n\t\tif ( ! isset($hook) OR ! is_array($hook))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->hooks =& $hook;\n\t\t$this->enabled = TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Call Hook\n\t *\n\t * Calls a particular hook\n\t *\n\t * @access\tprivate\n\t * @param\tstring\tthe hook name\n\t * @return\tmixed\n\t */\n\tfunction _call_hook($which = '')\n\t{\n\t\tif ( ! $this->enabled OR ! isset($this->hooks[$which]))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif (isset($this->hooks[$which][0]) AND is_array($this->hooks[$which][0]))\n\t\t{\n\t\t\tforeach ($this->hooks[$which] as $val)\n\t\t\t{\n\t\t\t\t$this->_run_hook($val);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->_run_hook($this->hooks[$which]);\n\t\t}\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Run Hook\n\t *\n\t * Runs a particular hook\n\t *\n\t * @access\tprivate\n\t * @param\tarray\tthe hook details\n\t * @return\tbool\n\t */\n\tfunction _run_hook($data)\n\t{\n\t\tif ( ! is_array($data))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// -----------------------------------\n\t\t// Safety - Prevents run-away loops\n\t\t// -----------------------------------\n\n\t\t// If the script being called happens to have the same\n\t\t// hook call within it a loop can happen\n\n\t\tif ($this->in_progress == TRUE)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t// -----------------------------------\n\t\t// Set file path\n\t\t// -----------------------------------\n\n\t\tif ( ! isset($data['filepath']) OR ! isset($data['filename']))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$filepath = APPPATH.$data['filepath'].'/'.$data['filename'];\n\n\t\tif ( ! file_exists($filepath))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// -----------------------------------\n\t\t// Set class/function name\n\t\t// -----------------------------------\n\n\t\t$class\t\t= FALSE;\n\t\t$function\t= FALSE;\n\t\t$params\t\t= '';\n\n\t\tif (isset($data['class']) AND $data['class'] != '')\n\t\t{\n\t\t\t$class = $data['class'];\n\t\t}\n\n\t\tif (isset($data['function']))\n\t\t{\n\t\t\t$function = $data['function'];\n\t\t}\n\n\t\tif (isset($data['params']))\n\t\t{\n\t\t\t$params = $data['params'];\n\t\t}\n\n\t\tif ($class === FALSE AND $function === FALSE)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// -----------------------------------\n\t\t// Set the in_progress flag\n\t\t// -----------------------------------\n\n\t\t$this->in_progress = TRUE;\n\n\t\t// -----------------------------------\n\t\t// Call the requested class and/or function\n\t\t// -----------------------------------\n\n\t\tif ($class !== FALSE)\n\t\t{\n\t\t\tif ( ! class_exists($class))\n\t\t\t{\n\t\t\t\trequire($filepath);\n\t\t\t}\n\n\t\t\t$HOOK = new $class;\n\t\t\t$HOOK->$function($params);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( ! function_exists($function))\n\t\t\t{\n\t\t\t\trequire($filepath);\n\t\t\t}\n\n\t\t\t$function($params);\n\t\t}\n\n\t\t$this->in_progress = FALSE;\n\t\treturn TRUE;\n\t}\n\n}\n\n// END CI_Hooks class\n\n/* End of file Hooks.php */\n/* Location: ./system/core/Hooks.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Input.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Input Class\n *\n * Pre-processes global input data for security\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tInput\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/input.html\n */\nclass CI_Input {\n\n\t/**\n\t * IP address of the current user\n\t *\n\t * @var string\n\t */\n\tvar $ip_address\t\t\t\t= FALSE;\n\t/**\n\t * user agent (web browser) being used by the current user\n\t *\n\t * @var string\n\t */\n\tvar $user_agent\t\t\t\t= FALSE;\n\t/**\n\t * If FALSE, then $_GET will be set to an empty array\n\t *\n\t * @var bool\n\t */\n\tvar $_allow_get_array\t\t= TRUE;\n\t/**\n\t * If TRUE, then newlines are standardized\n\t *\n\t * @var bool\n\t */\n\tvar $_standardize_newlines\t= TRUE;\n\t/**\n\t * Determines whether the XSS filter is always active when GET, POST or COOKIE data is encountered\n\t * Set automatically based on config setting\n\t *\n\t * @var bool\n\t */\n\tvar $_enable_xss\t\t\t= FALSE;\n\t/**\n\t * Enables a CSRF cookie token to be set.\n\t * Set automatically based on config setting\n\t *\n\t * @var bool\n\t */\n\tvar $_enable_csrf\t\t\t= FALSE;\n\t/**\n\t * List of all HTTP request headers\n\t *\n\t * @var array\n\t */\n\tprotected $headers\t\t\t= array();\n\n\t/**\n\t * Constructor\n\t *\n\t * Sets whether to globally enable the XSS processing\n\t * and whether to allow the $_GET array\n\t *\n\t * @return\tvoid\n\t */\n\tpublic function __construct()\n\t{\n\t\tlog_message('debug', \"Input Class Initialized\");\n\n\t\t$this->_allow_get_array\t= (config_item('allow_get_array') === TRUE);\n\t\t$this->_enable_xss\t\t= (config_item('global_xss_filtering') === TRUE);\n\t\t$this->_enable_csrf\t\t= (config_item('csrf_protection') === TRUE);\n\n\t\tglobal $SEC;\n\t\t$this->security =& $SEC;\n\n\t\t// Do we need the UTF-8 class?\n\t\tif (UTF8_ENABLED === TRUE)\n\t\t{\n\t\t\tglobal $UNI;\n\t\t\t$this->uni =& $UNI;\n\t\t}\n\n\t\t// Sanitize global arrays\n\t\t$this->_sanitize_globals();\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch from array\n\t *\n\t * This is a helper function to retrieve values from global arrays\n\t *\n\t * @access\tprivate\n\t * @param\tarray\n\t * @param\tstring\n\t * @param\tbool\n\t * @return\tstring\n\t */\n\tfunction _fetch_from_array(&$array, $index = '', $xss_clean = FALSE)\n\t{\n\t\tif ( ! isset($array[$index]))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif ($xss_clean === TRUE)\n\t\t{\n\t\t\treturn $this->security->xss_clean($array[$index]);\n\t\t}\n\n\t\treturn $array[$index];\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Fetch an item from the GET array\n\t*\n\t* @access\tpublic\n\t* @param\tstring\n\t* @param\tbool\n\t* @return\tstring\n\t*/\n\tfunction get($index = NULL, $xss_clean = FALSE)\n\t{\n\t\t// Check if a field has been provided\n\t\tif ($index === NULL AND ! empty($_GET))\n\t\t{\n\t\t\t$get = array();\n\n\t\t\t// loop through the full _GET array\n\t\t\tforeach (array_keys($_GET) as $key)\n\t\t\t{\n\t\t\t\t$get[$key] = $this->_fetch_from_array($_GET, $key, $xss_clean);\n\t\t\t}\n\t\t\treturn $get;\n\t\t}\n\n\t\treturn $this->_fetch_from_array($_GET, $index, $xss_clean);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Fetch an item from the POST array\n\t*\n\t* @access\tpublic\n\t* @param\tstring\n\t* @param\tbool\n\t* @return\tstring\n\t*/\n\tfunction post($index = NULL, $xss_clean = FALSE)\n\t{\n\t\t// Check if a field has been provided\n\t\tif ($index === NULL AND ! empty($_POST))\n\t\t{\n\t\t\t$post = array();\n\n\t\t\t// Loop through the full _POST array and return it\n\t\t\tforeach (array_keys($_POST) as $key)\n\t\t\t{\n\t\t\t\t$post[$key] = $this->_fetch_from_array($_POST, $key, $xss_clean);\n\t\t\t}\n\t\t\treturn $post;\n\t\t}\n\n\t\treturn $this->_fetch_from_array($_POST, $index, $xss_clean);\n\t}\n\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Fetch an item from either the GET array or the POST\n\t*\n\t* @access\tpublic\n\t* @param\tstring\tThe index key\n\t* @param\tbool\tXSS cleaning\n\t* @return\tstring\n\t*/\n\tfunction get_post($index = '', $xss_clean = FALSE)\n\t{\n\t\tif ( ! isset($_POST[$index]) )\n\t\t{\n\t\t\treturn $this->get($index, $xss_clean);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->post($index, $xss_clean);\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Fetch an item from the COOKIE array\n\t*\n\t* @access\tpublic\n\t* @param\tstring\n\t* @param\tbool\n\t* @return\tstring\n\t*/\n\tfunction cookie($index = '', $xss_clean = FALSE)\n\t{\n\t\treturn $this->_fetch_from_array($_COOKIE, $index, $xss_clean);\n\t}\n\n\t// ------------------------------------------------------------------------\n\n\t/**\n\t* Set cookie\n\t*\n\t* Accepts six parameter, or you can submit an associative\n\t* array in the first parameter containing all the values.\n\t*\n\t* @access\tpublic\n\t* @param\tmixed\n\t* @param\tstring\tthe value of the cookie\n\t* @param\tstring\tthe number of seconds until expiration\n\t* @param\tstring\tthe cookie domain.  Usually:  .yourdomain.com\n\t* @param\tstring\tthe cookie path\n\t* @param\tstring\tthe cookie prefix\n\t* @param\tbool\ttrue makes the cookie secure\n\t* @return\tvoid\n\t*/\n\tfunction set_cookie($name = '', $value = '', $expire = '', $domain = '', $path = '/', $prefix = '', $secure = FALSE)\n\t{\n\t\tif (is_array($name))\n\t\t{\n\t\t\t// always leave 'name' in last place, as the loop will break otherwise, due to $$item\n\t\t\tforeach (array('value', 'expire', 'domain', 'path', 'prefix', 'secure', 'name') as $item)\n\t\t\t{\n\t\t\t\tif (isset($name[$item]))\n\t\t\t\t{\n\t\t\t\t\t$$item = $name[$item];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($prefix == '' AND config_item('cookie_prefix') != '')\n\t\t{\n\t\t\t$prefix = config_item('cookie_prefix');\n\t\t}\n\t\tif ($domain == '' AND config_item('cookie_domain') != '')\n\t\t{\n\t\t\t$domain = config_item('cookie_domain');\n\t\t}\n\t\tif ($path == '/' AND config_item('cookie_path') != '/')\n\t\t{\n\t\t\t$path = config_item('cookie_path');\n\t\t}\n\t\tif ($secure == FALSE AND config_item('cookie_secure') != FALSE)\n\t\t{\n\t\t\t$secure = config_item('cookie_secure');\n\t\t}\n\n\t\tif ( ! is_numeric($expire))\n\t\t{\n\t\t\t$expire = time() - 86500;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$expire = ($expire > 0) ? time() + $expire : 0;\n\t\t}\n\n\t\tsetcookie($prefix.$name, $value, $expire, $path, $domain, $secure);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Fetch an item from the SERVER array\n\t*\n\t* @access\tpublic\n\t* @param\tstring\n\t* @param\tbool\n\t* @return\tstring\n\t*/\n\tfunction server($index = '', $xss_clean = FALSE)\n\t{\n\t\treturn $this->_fetch_from_array($_SERVER, $index, $xss_clean);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Fetch the IP Address\n\t*\n\t* @return\tstring\n\t*/\n\tpublic function ip_address()\n\t{\n\t\tif ($this->ip_address !== FALSE)\n\t\t{\n\t\t\treturn $this->ip_address;\n\t\t}\n\n\t\t$proxy_ips = config_item('proxy_ips');\n\t\tif ( ! empty($proxy_ips))\n\t\t{\n\t\t\t$proxy_ips = explode(',', str_replace(' ', '', $proxy_ips));\n\t\t\tforeach (array('HTTP_X_FORWARDED_FOR', 'HTTP_CLIENT_IP', 'HTTP_X_CLIENT_IP', 'HTTP_X_CLUSTER_CLIENT_IP') as $header)\n\t\t\t{\n\t\t\t\tif (($spoof = $this->server($header)) !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t// Some proxies typically list the whole chain of IP\n\t\t\t\t\t// addresses through which the client has reached us.\n\t\t\t\t\t// e.g. client_ip, proxy_ip1, proxy_ip2, etc.\n\t\t\t\t\tif (strpos($spoof, ',') !== FALSE)\n\t\t\t\t\t{\n\t\t\t\t\t\t$spoof = explode(',', $spoof, 2);\n\t\t\t\t\t\t$spoof = $spoof[0];\n\t\t\t\t\t}\n\n\t\t\t\t\tif ( ! $this->valid_ip($spoof))\n\t\t\t\t\t{\n\t\t\t\t\t\t$spoof = FALSE;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t$this->ip_address = ($spoof !== FALSE && in_array($_SERVER['REMOTE_ADDR'], $proxy_ips, TRUE))\n\t\t\t\t? $spoof : $_SERVER['REMOTE_ADDR'];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->ip_address = $_SERVER['REMOTE_ADDR'];\n\t\t}\n\n\t\tif ( ! $this->valid_ip($this->ip_address))\n\t\t{\n\t\t\t$this->ip_address = '0.0.0.0';\n\t\t}\n\n\t\treturn $this->ip_address;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Validate IP Address\n\t*\n\t* @access\tpublic\n\t* @param\tstring\n\t* @param\tstring\tipv4 or ipv6\n\t* @return\tbool\n\t*/\n\tpublic function valid_ip($ip, $which = '')\n\t{\n\t\t$which = strtolower($which);\n\n\t\t// First check if filter_var is available\n\t\tif (is_callable('filter_var'))\n\t\t{\n\t\t\tswitch ($which) {\n\t\t\t\tcase 'ipv4':\n\t\t\t\t\t$flag = FILTER_FLAG_IPV4;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'ipv6':\n\t\t\t\t\t$flag = FILTER_FLAG_IPV6;\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\t$flag = '';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn (bool) filter_var($ip, FILTER_VALIDATE_IP, $flag);\n\t\t}\n\n\t\tif ($which !== 'ipv6' && $which !== 'ipv4')\n\t\t{\n\t\t\tif (strpos($ip, ':') !== FALSE)\n\t\t\t{\n\t\t\t\t$which = 'ipv6';\n\t\t\t}\n\t\t\telseif (strpos($ip, '.') !== FALSE)\n\t\t\t{\n\t\t\t\t$which = 'ipv4';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t$func = '_valid_'.$which;\n\t\treturn $this->$func($ip);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Validate IPv4 Address\n\t*\n\t* Updated version suggested by Geert De Deckere\n\t*\n\t* @access\tprotected\n\t* @param\tstring\n\t* @return\tbool\n\t*/\n\tprotected function _valid_ipv4($ip)\n\t{\n\t\t$ip_segments = explode('.', $ip);\n\n\t\t// Always 4 segments needed\n\t\tif (count($ip_segments) !== 4)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\t// IP can not start with 0\n\t\tif ($ip_segments[0][0] == '0')\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Check each segment\n\t\tforeach ($ip_segments as $segment)\n\t\t{\n\t\t\t// IP segments must be digits and can not be\n\t\t\t// longer than 3 digits or greater then 255\n\t\t\tif ($segment == '' OR preg_match(\"/[^0-9]/\", $segment) OR $segment > 255 OR strlen($segment) > 3)\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Validate IPv6 Address\n\t*\n\t* @access\tprotected\n\t* @param\tstring\n\t* @return\tbool\n\t*/\n\tprotected function _valid_ipv6($str)\n\t{\n\t\t// 8 groups, separated by :\n\t\t// 0-ffff per group\n\t\t// one set of consecutive 0 groups can be collapsed to ::\n\n\t\t$groups = 8;\n\t\t$collapsed = FALSE;\n\n\t\t$chunks = array_filter(\n\t\t\tpreg_split('/(:{1,2})/', $str, NULL, PREG_SPLIT_DELIM_CAPTURE)\n\t\t);\n\n\t\t// Rule out easy nonsense\n\t\tif (current($chunks) == ':' OR end($chunks) == ':')\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// PHP supports IPv4-mapped IPv6 addresses, so we'll expect those as well\n\t\tif (strpos(end($chunks), '.') !== FALSE)\n\t\t{\n\t\t\t$ipv4 = array_pop($chunks);\n\n\t\t\tif ( ! $this->_valid_ipv4($ipv4))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\t$groups--;\n\t\t}\n\n\t\twhile ($seg = array_pop($chunks))\n\t\t{\n\t\t\tif ($seg[0] == ':')\n\t\t\t{\n\t\t\t\tif (--$groups == 0)\n\t\t\t\t{\n\t\t\t\t\treturn FALSE;\t// too many groups\n\t\t\t\t}\n\n\t\t\t\tif (strlen($seg) > 2)\n\t\t\t\t{\n\t\t\t\t\treturn FALSE;\t// long separator\n\t\t\t\t}\n\n\t\t\t\tif ($seg == '::')\n\t\t\t\t{\n\t\t\t\t\tif ($collapsed)\n\t\t\t\t\t{\n\t\t\t\t\t\treturn FALSE;\t// multiple collapsed\n\t\t\t\t\t}\n\n\t\t\t\t\t$collapsed = TRUE;\n\t\t\t\t}\n\t\t\t}\n\t\t\telseif (preg_match(\"/[^0-9a-f]/i\", $seg) OR strlen($seg) > 4)\n\t\t\t{\n\t\t\t\treturn FALSE; // invalid segment\n\t\t\t}\n\t\t}\n\n\t\treturn $collapsed OR $groups == 1;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* User Agent\n\t*\n\t* @access\tpublic\n\t* @return\tstring\n\t*/\n\tfunction user_agent()\n\t{\n\t\tif ($this->user_agent !== FALSE)\n\t\t{\n\t\t\treturn $this->user_agent;\n\t\t}\n\n\t\t$this->user_agent = ( ! isset($_SERVER['HTTP_USER_AGENT'])) ? FALSE : $_SERVER['HTTP_USER_AGENT'];\n\n\t\treturn $this->user_agent;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Sanitize Globals\n\t*\n\t* This function does the following:\n\t*\n\t* Unsets $_GET data (if query strings are not enabled)\n\t*\n\t* Unsets all globals if register_globals is enabled\n\t*\n\t* Standardizes newline characters to \\n\n\t*\n\t* @access\tprivate\n\t* @return\tvoid\n\t*/\n\tfunction _sanitize_globals()\n\t{\n\t\t// It would be \"wrong\" to unset any of these GLOBALS.\n\t\t$protected = array('_SERVER', '_GET', '_POST', '_FILES', '_REQUEST',\n\t\t\t\t\t\t\t'_SESSION', '_ENV', 'GLOBALS', 'HTTP_RAW_POST_DATA',\n\t\t\t\t\t\t\t'system_folder', 'application_folder', 'BM', 'EXT',\n\t\t\t\t\t\t\t'CFG', 'URI', 'RTR', 'OUT', 'IN');\n\n\t\t// Unset globals for securiy.\n\t\t// This is effectively the same as register_globals = off\n\t\tforeach (array($_GET, $_POST, $_COOKIE) as $global)\n\t\t{\n\t\t\tif ( ! is_array($global))\n\t\t\t{\n\t\t\t\tif ( ! in_array($global, $protected))\n\t\t\t\t{\n\t\t\t\t\tglobal $$global;\n\t\t\t\t\t$$global = NULL;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tforeach ($global as $key => $val)\n\t\t\t\t{\n\t\t\t\t\tif ( ! in_array($key, $protected))\n\t\t\t\t\t{\n\t\t\t\t\t\tglobal $$key;\n\t\t\t\t\t\t$$key = NULL;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Is $_GET data allowed? If not we'll set the $_GET to an empty array\n\t\tif ($this->_allow_get_array == FALSE)\n\t\t{\n\t\t\t$_GET = array();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (is_array($_GET) AND count($_GET) > 0)\n\t\t\t{\n\t\t\t\tforeach ($_GET as $key => $val)\n\t\t\t\t{\n\t\t\t\t\t$_GET[$this->_clean_input_keys($key)] = $this->_clean_input_data($val);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Clean $_POST Data\n\t\tif (is_array($_POST) AND count($_POST) > 0)\n\t\t{\n\t\t\tforeach ($_POST as $key => $val)\n\t\t\t{\n\t\t\t\t$_POST[$this->_clean_input_keys($key)] = $this->_clean_input_data($val);\n\t\t\t}\n\t\t}\n\n\t\t// Clean $_COOKIE Data\n\t\tif (is_array($_COOKIE) AND count($_COOKIE) > 0)\n\t\t{\n\t\t\t// Also get rid of specially treated cookies that might be set by a server\n\t\t\t// or silly application, that are of no use to a CI application anyway\n\t\t\t// but that when present will trip our 'Disallowed Key Characters' alarm\n\t\t\t// http://www.ietf.org/rfc/rfc2109.txt\n\t\t\t// note that the key names below are single quoted strings, and are not PHP variables\n\t\t\tunset($_COOKIE['$Version']);\n\t\t\tunset($_COOKIE['$Path']);\n\t\t\tunset($_COOKIE['$Domain']);\n\n\t\t\tforeach ($_COOKIE as $key => $val)\n\t\t\t{\n\t\t\t\t$_COOKIE[$this->_clean_input_keys($key)] = $this->_clean_input_data($val);\n\t\t\t}\n\t\t}\n\n\t\t// Sanitize PHP_SELF\n\t\t$_SERVER['PHP_SELF'] = strip_tags($_SERVER['PHP_SELF']);\n\n\n\t\t// CSRF Protection check on HTTP requests\n\t\tif ($this->_enable_csrf == TRUE && ! $this->is_cli_request())\n\t\t{\n\t\t\t$this->security->csrf_verify();\n\t\t}\n\n\t\tlog_message('debug', \"Global POST and COOKIE data sanitized\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Clean Input Data\n\t*\n\t* This is a helper function. It escapes data and\n\t* standardizes newline characters to \\n\n\t*\n\t* @access\tprivate\n\t* @param\tstring\n\t* @return\tstring\n\t*/\n\tfunction _clean_input_data($str)\n\t{\n\t\tif (is_array($str))\n\t\t{\n\t\t\t$new_array = array();\n\t\t\tforeach ($str as $key => $val)\n\t\t\t{\n\t\t\t\t$new_array[$this->_clean_input_keys($key)] = $this->_clean_input_data($val);\n\t\t\t}\n\t\t\treturn $new_array;\n\t\t}\n\n\t\t/* We strip slashes if magic quotes is on to keep things consistent\n\n\t\t   NOTE: In PHP 5.4 get_magic_quotes_gpc() will always return 0 and\n\t\t\t it will probably not exist in future versions at all.\n\t\t*/\n\t\tif ( ! is_php('5.4') && get_magic_quotes_gpc())\n\t\t{\n\t\t\t$str = stripslashes($str);\n\t\t}\n\n\t\t// Clean UTF-8 if supported\n\t\tif (UTF8_ENABLED === TRUE)\n\t\t{\n\t\t\t$str = $this->uni->clean_string($str);\n\t\t}\n\n\t\t// Remove control characters\n\t\t$str = remove_invisible_characters($str);\n\n\t\t// Should we filter the input data?\n\t\tif ($this->_enable_xss === TRUE)\n\t\t{\n\t\t\t$str = $this->security->xss_clean($str);\n\t\t}\n\n\t\t// Standardize newlines if needed\n\t\tif ($this->_standardize_newlines == TRUE)\n\t\t{\n\t\t\tif (strpos($str, \"\\r\") !== FALSE)\n\t\t\t{\n\t\t\t\t$str = str_replace(array(\"\\r\\n\", \"\\r\", \"\\r\\n\\n\"), PHP_EOL, $str);\n\t\t\t}\n\t\t}\n\n\t\treturn $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t* Clean Keys\n\t*\n\t* This is a helper function. To prevent malicious users\n\t* from trying to exploit keys we make sure that keys are\n\t* only named with alpha-numeric text and a few other items.\n\t*\n\t* @access\tprivate\n\t* @param\tstring\n\t* @return\tstring\n\t*/\n\tfunction _clean_input_keys($str)\n\t{\n\t\tif ( ! preg_match(\"/^[a-z0-9:_\\/-]+$/i\", $str))\n\t\t{\n\t\t\texit('Disallowed Key Characters.');\n\t\t}\n\n\t\t// Clean UTF-8 if supported\n\t\tif (UTF8_ENABLED === TRUE)\n\t\t{\n\t\t\t$str = $this->uni->clean_string($str);\n\t\t}\n\n\t\treturn $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Request Headers\n\t *\n\t * In Apache, you can simply call apache_request_headers(), however for\n\t * people running other webservers the function is undefined.\n\t *\n\t * @param\tbool XSS cleaning\n\t *\n\t * @return array\n\t */\n\tpublic function request_headers($xss_clean = FALSE)\n\t{\n\t\t// Look at Apache go!\n\t\tif (function_exists('apache_request_headers'))\n\t\t{\n\t\t\t$headers = apache_request_headers();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$headers['Content-Type'] = (isset($_SERVER['CONTENT_TYPE'])) ? $_SERVER['CONTENT_TYPE'] : @getenv('CONTENT_TYPE');\n\n\t\t\tforeach ($_SERVER as $key => $val)\n\t\t\t{\n\t\t\t\tif (strncmp($key, 'HTTP_', 5) === 0)\n\t\t\t\t{\n\t\t\t\t\t$headers[substr($key, 5)] = $this->_fetch_from_array($_SERVER, $key, $xss_clean);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// take SOME_HEADER and turn it into Some-Header\n\t\tforeach ($headers as $key => $val)\n\t\t{\n\t\t\t$key = str_replace('_', ' ', strtolower($key));\n\t\t\t$key = str_replace(' ', '-', ucwords($key));\n\n\t\t\t$this->headers[$key] = $val;\n\t\t}\n\n\t\treturn $this->headers;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get Request Header\n\t *\n\t * Returns the value of a single member of the headers class member\n\t *\n\t * @param \tstring\t\tarray key for $this->headers\n\t * @param\tboolean\t\tXSS Clean or not\n\t * @return \tmixed\t\tFALSE on failure, string on success\n\t */\n\tpublic function get_request_header($index, $xss_clean = FALSE)\n\t{\n\t\tif (empty($this->headers))\n\t\t{\n\t\t\t$this->request_headers();\n\t\t}\n\n\t\tif ( ! isset($this->headers[$index]))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif ($xss_clean === TRUE)\n\t\t{\n\t\t\treturn $this->security->xss_clean($this->headers[$index]);\n\t\t}\n\n\t\treturn $this->headers[$index];\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Is ajax Request?\n\t *\n\t * Test to see if a request contains the HTTP_X_REQUESTED_WITH header\n\t *\n\t * @return \tboolean\n\t */\n\tpublic function is_ajax_request()\n\t{\n\t\treturn ($this->server('HTTP_X_REQUESTED_WITH') === 'XMLHttpRequest');\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Is cli Request?\n\t *\n\t * Test to see if a request was made from the command line\n\t *\n\t * @return \tbool\n\t */\n\tpublic function is_cli_request()\n\t{\n\t\treturn (php_sapi_name() === 'cli' OR defined('STDIN'));\n\t}\n\n}\n\n/* End of file Input.php */\n/* Location: ./system/core/Input.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Lang.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Language Class\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tLanguage\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/language.html\n */\nclass CI_Lang {\n\n\t/**\n\t * List of translations\n\t *\n\t * @var array\n\t */\n\tvar $language\t= array();\n\t/**\n\t * List of loaded language files\n\t *\n\t * @var array\n\t */\n\tvar $is_loaded\t= array();\n\n\t/**\n\t * Constructor\n\t *\n\t * @access\tpublic\n\t */\n\tfunction __construct()\n\t{\n\t\tlog_message('debug', \"Language Class Initialized\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Load a language file\n\t *\n\t * @access\tpublic\n\t * @param\tmixed\tthe name of the language file to be loaded. Can be an array\n\t * @param\tstring\tthe language (english, etc.)\n\t * @param\tbool\treturn loaded array of translations\n\t * @param \tbool\tadd suffix to $langfile\n\t * @param \tstring\talternative path to look for language file\n\t * @return\tmixed\n\t */\n\tfunction load($langfile = '', $idiom = '', $return = FALSE, $add_suffix = TRUE, $alt_path = '')\n\t{\n\t\t$langfile = str_replace('.php', '', $langfile);\n\n\t\tif ($add_suffix == TRUE)\n\t\t{\n\t\t\t$langfile = str_replace('_lang.', '', $langfile).'_lang';\n\t\t}\n\n\t\t$langfile .= '.php';\n\n\t\tif (in_array($langfile, $this->is_loaded, TRUE))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$config =& get_config();\n\n\t\tif ($idiom == '')\n\t\t{\n\t\t\t$deft_lang = ( ! isset($config['language'])) ? 'english' : $config['language'];\n\t\t\t$idiom = ($deft_lang == '') ? 'english' : $deft_lang;\n\t\t}\n\n\t\t// Determine where the language file is and load it\n\t\tif ($alt_path != '' && file_exists($alt_path.'language/'.$idiom.'/'.$langfile))\n\t\t{\n\t\t\tinclude($alt_path.'language/'.$idiom.'/'.$langfile);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$found = FALSE;\n\n\t\t\tforeach (get_instance()->load->get_package_paths(TRUE) as $package_path)\n\t\t\t{\n\t\t\t\tif (file_exists($package_path.'language/'.$idiom.'/'.$langfile))\n\t\t\t\t{\n\t\t\t\t\tinclude($package_path.'language/'.$idiom.'/'.$langfile);\n\t\t\t\t\t$found = TRUE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ($found !== TRUE)\n\t\t\t{\n\t\t\t\tshow_error('Unable to load the requested language file: language/'.$idiom.'/'.$langfile);\n\t\t\t}\n\t\t}\n\n\n\t\tif ( ! isset($lang))\n\t\t{\n\t\t\tlog_message('error', 'Language file contains no data: language/'.$idiom.'/'.$langfile);\n\t\t\treturn;\n\t\t}\n\n\t\tif ($return == TRUE)\n\t\t{\n\t\t\treturn $lang;\n\t\t}\n\n\t\t$this->is_loaded[] = $langfile;\n\t\t$this->language = array_merge($this->language, $lang);\n\t\tunset($lang);\n\n\t\tlog_message('debug', 'Language file loaded: language/'.$idiom.'/'.$langfile);\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch a single line of text from the language array\n\t *\n\t * @access\tpublic\n\t * @param\tstring\t$line\tthe language line\n\t * @return\tstring\n\t */\n\tfunction line($line = '')\n\t{\n\t\t$value = ($line == '' OR ! isset($this->language[$line])) ? FALSE : $this->language[$line];\n\n\t\t// Because killer robots like unicorns!\n\t\tif ($value === FALSE)\n\t\t{\n\t\t\tlog_message('error', 'Could not find the language line \"'.$line.'\"');\n\t\t}\n\n\t\treturn $value;\n\t}\n\n}\n// END Language Class\n\n/* End of file Lang.php */\n/* Location: ./system/core/Lang.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Loader.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Loader Class\n *\n * Loads views and files\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @author\t\tExpressionEngine Dev Team\n * @category\tLoader\n * @link\t\thttp://codeigniter.com/user_guide/libraries/loader.html\n */\nclass CI_Loader {\n\n\t// All these are set automatically. Don't mess with them.\n\t/**\n\t * Nesting level of the output buffering mechanism\n\t *\n\t * @var int\n\t * @access protected\n\t */\n\tprotected $_ci_ob_level;\n\t/**\n\t * List of paths to load views from\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_view_paths\t\t= array();\n\t/**\n\t * List of paths to load libraries from\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_library_paths\t= array();\n\t/**\n\t * List of paths to load models from\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_model_paths\t\t= array();\n\t/**\n\t * List of paths to load helpers from\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_helper_paths\t\t= array();\n\t/**\n\t * List of loaded base classes\n\t * Set by the controller class\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_base_classes\t\t= array(); // Set by the controller class\n\t/**\n\t * List of cached variables\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_cached_vars\t\t= array();\n\t/**\n\t * List of loaded classes\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_classes\t\t\t= array();\n\t/**\n\t * List of loaded files\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_loaded_files\t\t= array();\n\t/**\n\t * List of loaded models\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_models\t\t\t= array();\n\t/**\n\t * List of loaded helpers\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_helpers\t\t\t= array();\n\t/**\n\t * List of class name mappings\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_ci_varmap\t\t\t= array('unit_test' => 'unit',\n\t\t\t\t\t\t\t\t\t\t\t'user_agent' => 'agent');\n\n\t/**\n\t * Constructor\n\t *\n\t * Sets the path to the view files and gets the initial output buffering level\n\t */\n\tpublic function __construct()\n\t{\n\t\t$this->_ci_ob_level  = ob_get_level();\n\t\t$this->_ci_library_paths = array(APPPATH, BASEPATH);\n\t\t$this->_ci_helper_paths = array(APPPATH, BASEPATH);\n\t\t$this->_ci_model_paths = array(APPPATH);\n\t\t$this->_ci_view_paths = array(APPPATH.'views/'\t=> TRUE);\n\n\t\tlog_message('debug', \"Loader Class Initialized\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Initialize the Loader\n\t *\n\t * This method is called once in CI_Controller.\n\t *\n\t * @param \tarray\n\t * @return \tobject\n\t */\n\tpublic function initialize()\n\t{\n\t\t$this->_ci_classes = array();\n\t\t$this->_ci_loaded_files = array();\n\t\t$this->_ci_models = array();\n\t\t$this->_base_classes =& is_loaded();\n\n\t\t$this->_ci_autoloader();\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Is Loaded\n\t *\n\t * A utility function to test if a class is in the self::$_ci_classes array.\n\t * This function returns the object name if the class tested for is loaded,\n\t * and returns FALSE if it isn't.\n\t *\n\t * It is mainly used in the form_helper -> _get_validation_object()\n\t *\n\t * @param \tstring\tclass being checked for\n\t * @return \tmixed\tclass object name on the CI SuperObject or FALSE\n\t */\n\tpublic function is_loaded($class)\n\t{\n\t\tif (isset($this->_ci_classes[$class]))\n\t\t{\n\t\t\treturn $this->_ci_classes[$class];\n\t\t}\n\n\t\treturn FALSE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Class Loader\n\t *\n\t * This function lets users load and instantiate classes.\n\t * It is designed to be called from a user's app controllers.\n\t *\n\t * @param\tstring\tthe name of the class\n\t * @param\tmixed\tthe optional parameters\n\t * @param\tstring\tan optional object name\n\t * @return\tvoid\n\t */\n\tpublic function library($library = '', $params = NULL, $object_name = NULL)\n\t{\n\t\tif (is_array($library))\n\t\t{\n\t\t\tforeach ($library as $class)\n\t\t\t{\n\t\t\t\t$this->library($class, $params);\n\t\t\t}\n\n\t\t\treturn;\n\t\t}\n\n\t\tif ($library == '' OR isset($this->_base_classes[$library]))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif ( ! is_null($params) && ! is_array($params))\n\t\t{\n\t\t\t$params = NULL;\n\t\t}\n\n\t\t$this->_ci_load_class($library, $params, $object_name);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Model Loader\n\t *\n\t * This function lets users load and instantiate models.\n\t *\n\t * @param\tstring\tthe name of the class\n\t * @param\tstring\tname for the model\n\t * @param\tbool\tdatabase connection\n\t * @return\tvoid\n\t */\n\tpublic function model($model, $name = '', $db_conn = FALSE)\n\t{\n\t\tif (is_array($model))\n\t\t{\n\t\t\tforeach ($model as $babe)\n\t\t\t{\n\t\t\t\t$this->model($babe);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tif ($model == '')\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$path = '';\n\n\t\t// Is the model in a sub-folder? If so, parse out the filename and path.\n\t\tif (($last_slash = strrpos($model, '/')) !== FALSE)\n\t\t{\n\t\t\t// The path is in front of the last slash\n\t\t\t$path = substr($model, 0, $last_slash + 1);\n\n\t\t\t// And the model name behind it\n\t\t\t$model = substr($model, $last_slash + 1);\n\t\t}\n\n\t\tif ($name == '')\n\t\t{\n\t\t\t$name = $model;\n\t\t}\n\n\t\tif (in_array($name, $this->_ci_models, TRUE))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$CI =& get_instance();\n\t\tif (isset($CI->$name))\n\t\t{\n\t\t\tshow_error('The model name you are loading is the name of a resource that is already being used: '.$name);\n\t\t}\n\n\t\t$model = strtolower($model);\n\n\t\tforeach ($this->_ci_model_paths as $mod_path)\n\t\t{\n\t\t\tif ( ! file_exists($mod_path.'models/'.$path.$model.'.php'))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif ($db_conn !== FALSE AND ! class_exists('CI_DB'))\n\t\t\t{\n\t\t\t\tif ($db_conn === TRUE)\n\t\t\t\t{\n\t\t\t\t\t$db_conn = '';\n\t\t\t\t}\n\n\t\t\t\t$CI->load->database($db_conn, FALSE, TRUE);\n\t\t\t}\n\n\t\t\tif ( ! class_exists('CI_Model'))\n\t\t\t{\n\t\t\t\tload_class('Model', 'core');\n\t\t\t}\n\n\t\t\trequire_once($mod_path.'models/'.$path.$model.'.php');\n\n\t\t\t$model = ucfirst($model);\n\n\t\t\t$CI->$name = new $model();\n\n\t\t\t$this->_ci_models[] = $name;\n\t\t\treturn;\n\t\t}\n\n\t\t// couldn't find the model\n\t\tshow_error('Unable to locate the model you have specified: '.$model);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Database Loader\n\t *\n\t * @param\tstring\tthe DB credentials\n\t * @param\tbool\twhether to return the DB object\n\t * @param\tbool\twhether to enable active record (this allows us to override the config setting)\n\t * @return\tobject\n\t */\n\tpublic function database($params = '', $return = FALSE, $active_record = NULL)\n\t{\n\t\t// Grab the super object\n\t\t$CI =& get_instance();\n\n\t\t// Do we even need to load the database class?\n\t\tif (class_exists('CI_DB') AND $return == FALSE AND $active_record == NULL AND isset($CI->db) AND is_object($CI->db))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\trequire_once(BASEPATH.'database/DB.php');\n\n\t\tif ($return === TRUE)\n\t\t{\n\t\t\treturn DB($params, $active_record);\n\t\t}\n\n\t\t// Initialize the db variable.  Needed to prevent\n\t\t// reference errors with some configurations\n\t\t$CI->db = '';\n\n\t\t// Load the DB class\n\t\t$CI->db =& DB($params, $active_record);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Load the Utilities Class\n\t *\n\t * @return\tstring\n\t */\n\tpublic function dbutil()\n\t{\n\t\tif ( ! class_exists('CI_DB'))\n\t\t{\n\t\t\t$this->database();\n\t\t}\n\n\t\t$CI =& get_instance();\n\n\t\t// for backwards compatibility, load dbforge so we can extend dbutils off it\n\t\t// this use is deprecated and strongly discouraged\n\t\t$CI->load->dbforge();\n\n\t\trequire_once(BASEPATH.'database/DB_utility.php');\n\t\trequire_once(BASEPATH.'database/drivers/'.$CI->db->dbdriver.'/'.$CI->db->dbdriver.'_utility.php');\n\t\t$class = 'CI_DB_'.$CI->db->dbdriver.'_utility';\n\n\t\t$CI->dbutil = new $class();\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Load the Database Forge Class\n\t *\n\t * @return\tstring\n\t */\n\tpublic function dbforge()\n\t{\n\t\tif ( ! class_exists('CI_DB'))\n\t\t{\n\t\t\t$this->database();\n\t\t}\n\n\t\t$CI =& get_instance();\n\n\t\trequire_once(BASEPATH.'database/DB_forge.php');\n\t\trequire_once(BASEPATH.'database/drivers/'.$CI->db->dbdriver.'/'.$CI->db->dbdriver.'_forge.php');\n\t\t$class = 'CI_DB_'.$CI->db->dbdriver.'_forge';\n\n\t\t$CI->dbforge = new $class();\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Load View\n\t *\n\t * This function is used to load a \"view\" file.  It has three parameters:\n\t *\n\t * 1. The name of the \"view\" file to be included.\n\t * 2. An associative array of data to be extracted for use in the view.\n\t * 3. TRUE/FALSE - whether to return the data or load it.  In\n\t * some cases it's advantageous to be able to return data so that\n\t * a developer can process it in some way.\n\t *\n\t * @param\tstring\n\t * @param\tarray\n\t * @param\tbool\n\t * @return\tvoid\n\t */\n\tpublic function view($view, $vars = array(), $return = FALSE)\n\t{\n\t\treturn $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Load File\n\t *\n\t * This is a generic file loader\n\t *\n\t * @param\tstring\n\t * @param\tbool\n\t * @return\tstring\n\t */\n\tpublic function file($path, $return = FALSE)\n\t{\n\t\treturn $this->_ci_load(array('_ci_path' => $path, '_ci_return' => $return));\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Variables\n\t *\n\t * Once variables are set they become available within\n\t * the controller class and its \"view\" files.\n\t *\n\t * @param\tarray\n\t * @param \tstring\n\t * @return\tvoid\n\t */\n\tpublic function vars($vars = array(), $val = '')\n\t{\n\t\tif ($val != '' AND is_string($vars))\n\t\t{\n\t\t\t$vars = array($vars => $val);\n\t\t}\n\n\t\t$vars = $this->_ci_object_to_array($vars);\n\n\t\tif (is_array($vars) AND count($vars) > 0)\n\t\t{\n\t\t\tforeach ($vars as $key => $val)\n\t\t\t{\n\t\t\t\t$this->_ci_cached_vars[$key] = $val;\n\t\t\t}\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get Variable\n\t *\n\t * Check if a variable is set and retrieve it.\n\t *\n\t * @param\tarray\n\t * @return\tvoid\n\t */\n\tpublic function get_var($key)\n\t{\n\t\treturn isset($this->_ci_cached_vars[$key]) ? $this->_ci_cached_vars[$key] : NULL;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Load Helper\n\t *\n\t * This function loads the specified helper file.\n\t *\n\t * @param\tmixed\n\t * @return\tvoid\n\t */\n\tpublic function helper($helpers = array())\n\t{\n\t\tforeach ($this->_ci_prep_filename($helpers, '_helper') as $helper)\n\t\t{\n\t\t\tif (isset($this->_ci_helpers[$helper]))\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t$ext_helper = APPPATH.'helpers/'.config_item('subclass_prefix').$helper.'.php';\n\n\t\t\t// Is this a helper extension request?\n\t\t\tif (file_exists($ext_helper))\n\t\t\t{\n\t\t\t\t$base_helper = BASEPATH.'helpers/'.$helper.'.php';\n\n\t\t\t\tif ( ! file_exists($base_helper))\n\t\t\t\t{\n\t\t\t\t\tshow_error('Unable to load the requested file: helpers/'.$helper.'.php');\n\t\t\t\t}\n\n\t\t\t\tinclude_once($ext_helper);\n\t\t\t\tinclude_once($base_helper);\n\n\t\t\t\t$this->_ci_helpers[$helper] = TRUE;\n\t\t\t\tlog_message('debug', 'Helper loaded: '.$helper);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\t// Try to load the helper\n\t\t\tforeach ($this->_ci_helper_paths as $path)\n\t\t\t{\n\t\t\t\tif (file_exists($path.'helpers/'.$helper.'.php'))\n\t\t\t\t{\n\t\t\t\t\tinclude_once($path.'helpers/'.$helper.'.php');\n\n\t\t\t\t\t$this->_ci_helpers[$helper] = TRUE;\n\t\t\t\t\tlog_message('debug', 'Helper loaded: '.$helper);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// unable to load the helper\n\t\t\tif ( ! isset($this->_ci_helpers[$helper]))\n\t\t\t{\n\t\t\t\tshow_error('Unable to load the requested file: helpers/'.$helper.'.php');\n\t\t\t}\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Load Helpers\n\t *\n\t * This is simply an alias to the above function in case the\n\t * user has written the plural form of this function.\n\t *\n\t * @param\tarray\n\t * @return\tvoid\n\t */\n\tpublic function helpers($helpers = array())\n\t{\n\t\t$this->helper($helpers);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Loads a language file\n\t *\n\t * @param\tarray\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tpublic function language($file = array(), $lang = '')\n\t{\n\t\t$CI =& get_instance();\n\n\t\tif ( ! is_array($file))\n\t\t{\n\t\t\t$file = array($file);\n\t\t}\n\n\t\tforeach ($file as $langfile)\n\t\t{\n\t\t\t$CI->lang->load($langfile, $lang);\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Loads a config file\n\t *\n\t * @param\tstring\n\t * @param\tbool\n\t * @param \tbool\n\t * @return\tvoid\n\t */\n\tpublic function config($file = '', $use_sections = FALSE, $fail_gracefully = FALSE)\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->config->load($file, $use_sections, $fail_gracefully);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Driver\n\t *\n\t * Loads a driver library\n\t *\n\t * @param\tstring\tthe name of the class\n\t * @param\tmixed\tthe optional parameters\n\t * @param\tstring\tan optional object name\n\t * @return\tvoid\n\t */\n\tpublic function driver($library = '', $params = NULL, $object_name = NULL)\n\t{\n\t\tif ( ! class_exists('CI_Driver_Library'))\n\t\t{\n\t\t\t// we aren't instantiating an object here, that'll be done by the Library itself\n\t\t\trequire BASEPATH.'libraries/Driver.php';\n\t\t}\n\n\t\tif ($library == '')\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// We can save the loader some time since Drivers will *always* be in a subfolder,\n\t\t// and typically identically named to the library\n\t\tif ( ! strpos($library, '/'))\n\t\t{\n\t\t\t$library = ucfirst($library).'/'.$library;\n\t\t}\n\n\t\treturn $this->library($library, $params, $object_name);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Add Package Path\n\t *\n\t * Prepends a parent path to the library, model, helper, and config path arrays\n\t *\n\t * @param\tstring\n\t * @param \tboolean\n\t * @return\tvoid\n\t */\n\tpublic function add_package_path($path, $view_cascade=TRUE)\n\t{\n\t\t$path = rtrim($path, '/').'/';\n\n\t\tarray_unshift($this->_ci_library_paths, $path);\n\t\tarray_unshift($this->_ci_model_paths, $path);\n\t\tarray_unshift($this->_ci_helper_paths, $path);\n\n\t\t$this->_ci_view_paths = array($path.'views/' => $view_cascade) + $this->_ci_view_paths;\n\n\t\t// Add config file path\n\t\t$config =& $this->_ci_get_component('config');\n\t\tarray_unshift($config->_config_paths, $path);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get Package Paths\n\t *\n\t * Return a list of all package paths, by default it will ignore BASEPATH.\n\t *\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tpublic function get_package_paths($include_base = FALSE)\n\t{\n\t\treturn $include_base === TRUE ? $this->_ci_library_paths : $this->_ci_model_paths;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Remove Package Path\n\t *\n\t * Remove a path from the library, model, and helper path arrays if it exists\n\t * If no path is provided, the most recently added path is removed.\n\t *\n\t * @param\ttype\n\t * @param \tbool\n\t * @return\ttype\n\t */\n\tpublic function remove_package_path($path = '', $remove_config_path = TRUE)\n\t{\n\t\t$config =& $this->_ci_get_component('config');\n\n\t\tif ($path == '')\n\t\t{\n\t\t\t$void = array_shift($this->_ci_library_paths);\n\t\t\t$void = array_shift($this->_ci_model_paths);\n\t\t\t$void = array_shift($this->_ci_helper_paths);\n\t\t\t$void = array_shift($this->_ci_view_paths);\n\t\t\t$void = array_shift($config->_config_paths);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$path = rtrim($path, '/').'/';\n\t\t\tforeach (array('_ci_library_paths', '_ci_model_paths', '_ci_helper_paths') as $var)\n\t\t\t{\n\t\t\t\tif (($key = array_search($path, $this->{$var})) !== FALSE)\n\t\t\t\t{\n\t\t\t\t\tunset($this->{$var}[$key]);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (isset($this->_ci_view_paths[$path.'views/']))\n\t\t\t{\n\t\t\t\tunset($this->_ci_view_paths[$path.'views/']);\n\t\t\t}\n\n\t\t\tif (($key = array_search($path, $config->_config_paths)) !== FALSE)\n\t\t\t{\n\t\t\t\tunset($config->_config_paths[$key]);\n\t\t\t}\n\t\t}\n\n\t\t// make sure the application default paths are still in the array\n\t\t$this->_ci_library_paths = array_unique(array_merge($this->_ci_library_paths, array(APPPATH, BASEPATH)));\n\t\t$this->_ci_helper_paths = array_unique(array_merge($this->_ci_helper_paths, array(APPPATH, BASEPATH)));\n\t\t$this->_ci_model_paths = array_unique(array_merge($this->_ci_model_paths, array(APPPATH)));\n\t\t$this->_ci_view_paths = array_merge($this->_ci_view_paths, array(APPPATH.'views/' => TRUE));\n\t\t$config->_config_paths = array_unique(array_merge($config->_config_paths, array(APPPATH)));\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Loader\n\t *\n\t * This function is used to load views and files.\n\t * Variables are prefixed with _ci_ to avoid symbol collision with\n\t * variables made available to view files\n\t *\n\t * @param\tarray\n\t * @return\tvoid\n\t */\n\tprotected function _ci_load($_ci_data)\n\t{\n\t\t// Set the default data variables\n\t\tforeach (array('_ci_view', '_ci_vars', '_ci_path', '_ci_return') as $_ci_val)\n\t\t{\n\t\t\t$$_ci_val = ( ! isset($_ci_data[$_ci_val])) ? FALSE : $_ci_data[$_ci_val];\n\t\t}\n\n\t\t$file_exists = FALSE;\n\n\t\t// Set the path to the requested file\n\t\tif ($_ci_path != '')\n\t\t{\n\t\t\t$_ci_x = explode('/', $_ci_path);\n\t\t\t$_ci_file = end($_ci_x);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$_ci_ext = pathinfo($_ci_view, PATHINFO_EXTENSION);\n\t\t\t$_ci_file = ($_ci_ext == '') ? $_ci_view.'.php' : $_ci_view;\n\n\t\t\tforeach ($this->_ci_view_paths as $view_file => $cascade)\n\t\t\t{\n\t\t\t\tif (file_exists($view_file.$_ci_file))\n\t\t\t\t{\n\t\t\t\t\t$_ci_path = $view_file.$_ci_file;\n\t\t\t\t\t$file_exists = TRUE;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tif ( ! $cascade)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ( ! $file_exists && ! file_exists($_ci_path))\n\t\t{\n\t\t\tshow_error('Unable to load the requested file: '.$_ci_file);\n\t\t}\n\n\t\t// This allows anything loaded using $this->load (views, files, etc.)\n\t\t// to become accessible from within the Controller and Model functions.\n\n\t\t$_ci_CI =& get_instance();\n\t\tforeach (get_object_vars($_ci_CI) as $_ci_key => $_ci_var)\n\t\t{\n\t\t\tif ( ! isset($this->$_ci_key))\n\t\t\t{\n\t\t\t\t$this->$_ci_key =& $_ci_CI->$_ci_key;\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Extract and cache variables\n\t\t *\n\t\t * You can either set variables using the dedicated $this->load_vars()\n\t\t * function or via the second parameter of this function. We'll merge\n\t\t * the two types and cache them so that views that are embedded within\n\t\t * other views can have access to these variables.\n\t\t */\n\t\tif (is_array($_ci_vars))\n\t\t{\n\t\t\t$this->_ci_cached_vars = array_merge($this->_ci_cached_vars, $_ci_vars);\n\t\t}\n\t\textract($this->_ci_cached_vars);\n\n\t\t/*\n\t\t * Buffer the output\n\t\t *\n\t\t * We buffer the output for two reasons:\n\t\t * 1. Speed. You get a significant speed boost.\n\t\t * 2. So that the final rendered template can be\n\t\t * post-processed by the output class.  Why do we\n\t\t * need post processing?  For one thing, in order to\n\t\t * show the elapsed page load time.  Unless we\n\t\t * can intercept the content right before it's sent to\n\t\t * the browser and then stop the timer it won't be accurate.\n\t\t */\n\t\tob_start();\n\n\t\t// If the PHP installation does not support short tags we'll\n\t\t// do a little string replacement, changing the short tags\n\t\t// to standard PHP echo statements.\n\n\t\tif ((bool) @ini_get('short_open_tag') === FALSE AND config_item('rewrite_short_tags') == TRUE)\n\t\t{\n\t\t\techo eval('?>'.preg_replace(\"/;*\\s*\\?>/\", \"; ?>\", str_replace('<?=', '<?php echo ', file_get_contents($_ci_path))));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tinclude($_ci_path); // include() vs include_once() allows for multiple views with the same name\n\t\t}\n\n\t\tlog_message('debug', 'File loaded: '.$_ci_path);\n\n\t\t// Return the file data if requested\n\t\tif ($_ci_return === TRUE)\n\t\t{\n\t\t\t$buffer = ob_get_contents();\n\t\t\t@ob_end_clean();\n\t\t\treturn $buffer;\n\t\t}\n\n\t\t/*\n\t\t * Flush the buffer... or buff the flusher?\n\t\t *\n\t\t * In order to permit views to be nested within\n\t\t * other views, we need to flush the content back out whenever\n\t\t * we are beyond the first level of output buffering so that\n\t\t * it can be seen and included properly by the first included\n\t\t * template and any subsequent ones. Oy!\n\t\t *\n\t\t */\n\t\tif (ob_get_level() > $this->_ci_ob_level + 1)\n\t\t{\n\t\t\tob_end_flush();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$_ci_CI->output->append_output(ob_get_contents());\n\t\t\t@ob_end_clean();\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Load class\n\t *\n\t * This function loads the requested class.\n\t *\n\t * @param\tstring\tthe item that is being loaded\n\t * @param\tmixed\tany additional parameters\n\t * @param\tstring\tan optional object name\n\t * @return\tvoid\n\t */\n\tprotected function _ci_load_class($class, $params = NULL, $object_name = NULL)\n\t{\n\t\t// Get the class name, and while we're at it trim any slashes.\n\t\t// The directory path can be included as part of the class name,\n\t\t// but we don't want a leading slash\n\t\t$class = str_replace('.php', '', trim($class, '/'));\n\n\t\t// Was the path included with the class name?\n\t\t// We look for a slash to determine this\n\t\t$subdir = '';\n\t\tif (($last_slash = strrpos($class, '/')) !== FALSE)\n\t\t{\n\t\t\t// Extract the path\n\t\t\t$subdir = substr($class, 0, $last_slash + 1);\n\n\t\t\t// Get the filename from the path\n\t\t\t$class = substr($class, $last_slash + 1);\n\t\t}\n\n\t\t// We'll test for both lowercase and capitalized versions of the file name\n\t\tforeach (array(ucfirst($class), strtolower($class)) as $class)\n\t\t{\n\t\t\t$subclass = APPPATH.'libraries/'.$subdir.config_item('subclass_prefix').$class.'.php';\n\n\t\t\t// Is this a class extension request?\n\t\t\tif (file_exists($subclass))\n\t\t\t{\n\t\t\t\t$baseclass = BASEPATH.'libraries/'.ucfirst($class).'.php';\n\n\t\t\t\tif ( ! file_exists($baseclass))\n\t\t\t\t{\n\t\t\t\t\tlog_message('error', \"Unable to load the requested class: \".$class);\n\t\t\t\t\tshow_error(\"Unable to load the requested class: \".$class);\n\t\t\t\t}\n\n\t\t\t\t// Safety:  Was the class already loaded by a previous call?\n\t\t\t\tif (in_array($subclass, $this->_ci_loaded_files))\n\t\t\t\t{\n\t\t\t\t\t// Before we deem this to be a duplicate request, let's see\n\t\t\t\t\t// if a custom object name is being supplied.  If so, we'll\n\t\t\t\t\t// return a new instance of the object\n\t\t\t\t\tif ( ! is_null($object_name))\n\t\t\t\t\t{\n\t\t\t\t\t\t$CI =& get_instance();\n\t\t\t\t\t\tif ( ! isset($CI->$object_name))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn $this->_ci_init_class($class, config_item('subclass_prefix'), $params, $object_name);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$is_duplicate = TRUE;\n\t\t\t\t\tlog_message('debug', $class.\" class already loaded. Second attempt ignored.\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tinclude_once($baseclass);\n\t\t\t\tinclude_once($subclass);\n\t\t\t\t$this->_ci_loaded_files[] = $subclass;\n\n\t\t\t\treturn $this->_ci_init_class($class, config_item('subclass_prefix'), $params, $object_name);\n\t\t\t}\n\n\t\t\t// Lets search for the requested library file and load it.\n\t\t\t$is_duplicate = FALSE;\n\t\t\tforeach ($this->_ci_library_paths as $path)\n\t\t\t{\n\t\t\t\t$filepath = $path.'libraries/'.$subdir.$class.'.php';\n\n\t\t\t\t// Does the file exist?  No?  Bummer...\n\t\t\t\tif ( ! file_exists($filepath))\n\t\t\t\t{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t// Safety:  Was the class already loaded by a previous call?\n\t\t\t\tif (in_array($filepath, $this->_ci_loaded_files))\n\t\t\t\t{\n\t\t\t\t\t// Before we deem this to be a duplicate request, let's see\n\t\t\t\t\t// if a custom object name is being supplied.  If so, we'll\n\t\t\t\t\t// return a new instance of the object\n\t\t\t\t\tif ( ! is_null($object_name))\n\t\t\t\t\t{\n\t\t\t\t\t\t$CI =& get_instance();\n\t\t\t\t\t\tif ( ! isset($CI->$object_name))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\treturn $this->_ci_init_class($class, '', $params, $object_name);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t$is_duplicate = TRUE;\n\t\t\t\t\tlog_message('debug', $class.\" class already loaded. Second attempt ignored.\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tinclude_once($filepath);\n\t\t\t\t$this->_ci_loaded_files[] = $filepath;\n\t\t\t\treturn $this->_ci_init_class($class, '', $params, $object_name);\n\t\t\t}\n\n\t\t} // END FOREACH\n\n\t\t// One last attempt.  Maybe the library is in a subdirectory, but it wasn't specified?\n\t\tif ($subdir == '')\n\t\t{\n\t\t\t$path = strtolower($class).'/'.$class;\n\t\t\treturn $this->_ci_load_class($path, $params);\n\t\t}\n\n\t\t// If we got this far we were unable to find the requested class.\n\t\t// We do not issue errors if the load call failed due to a duplicate request\n\t\tif ($is_duplicate == FALSE)\n\t\t{\n\t\t\tlog_message('error', \"Unable to load the requested class: \".$class);\n\t\t\tshow_error(\"Unable to load the requested class: \".$class);\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Instantiates a class\n\t *\n\t * @param\tstring\n\t * @param\tstring\n\t * @param\tbool\n\t * @param\tstring\tan optional object name\n\t * @return\tnull\n\t */\n\tprotected function _ci_init_class($class, $prefix = '', $config = FALSE, $object_name = NULL)\n\t{\n\t\t// Is there an associated config file for this class?  Note: these should always be lowercase\n\t\tif ($config === NULL)\n\t\t{\n\t\t\t// Fetch the config paths containing any package paths\n\t\t\t$config_component = $this->_ci_get_component('config');\n\n\t\t\tif (is_array($config_component->_config_paths))\n\t\t\t{\n\t\t\t\t// Break on the first found file, thus package files\n\t\t\t\t// are not overridden by default paths\n\t\t\t\tforeach ($config_component->_config_paths as $path)\n\t\t\t\t{\n\t\t\t\t\t// We test for both uppercase and lowercase, for servers that\n\t\t\t\t\t// are case-sensitive with regard to file names. Check for environment\n\t\t\t\t\t// first, global next\n\t\t\t\t\tif (defined('ENVIRONMENT') AND file_exists($path .'config/'.ENVIRONMENT.'/'.strtolower($class).'.php'))\n\t\t\t\t\t{\n\t\t\t\t\t\tinclude($path .'config/'.ENVIRONMENT.'/'.strtolower($class).'.php');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telseif (defined('ENVIRONMENT') AND file_exists($path .'config/'.ENVIRONMENT.'/'.ucfirst(strtolower($class)).'.php'))\n\t\t\t\t\t{\n\t\t\t\t\t\tinclude($path .'config/'.ENVIRONMENT.'/'.ucfirst(strtolower($class)).'.php');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telseif (file_exists($path .'config/'.strtolower($class).'.php'))\n\t\t\t\t\t{\n\t\t\t\t\t\tinclude($path .'config/'.strtolower($class).'.php');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telseif (file_exists($path .'config/'.ucfirst(strtolower($class)).'.php'))\n\t\t\t\t\t{\n\t\t\t\t\t\tinclude($path .'config/'.ucfirst(strtolower($class)).'.php');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif ($prefix == '')\n\t\t{\n\t\t\tif (class_exists('CI_'.$class))\n\t\t\t{\n\t\t\t\t$name = 'CI_'.$class;\n\t\t\t}\n\t\t\telseif (class_exists(config_item('subclass_prefix').$class))\n\t\t\t{\n\t\t\t\t$name = config_item('subclass_prefix').$class;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$name = $class;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$name = $prefix.$class;\n\t\t}\n\n\t\t// Is the class name valid?\n\t\tif ( ! class_exists($name))\n\t\t{\n\t\t\tlog_message('error', \"Non-existent class: \".$name);\n\t\t\tshow_error(\"Non-existent class: \".$class);\n\t\t}\n\n\t\t// Set the variable name we will assign the class to\n\t\t// Was a custom class name supplied?  If so we'll use it\n\t\t$class = strtolower($class);\n\n\t\tif (is_null($object_name))\n\t\t{\n\t\t\t$classvar = ( ! isset($this->_ci_varmap[$class])) ? $class : $this->_ci_varmap[$class];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$classvar = $object_name;\n\t\t}\n\n\t\t// Save the class name and object name\n\t\t$this->_ci_classes[$class] = $classvar;\n\n\t\t// Instantiate the class\n\t\t$CI =& get_instance();\n\t\tif ($config !== NULL)\n\t\t{\n\t\t\t$CI->$classvar = new $name($config);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$CI->$classvar = new $name;\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Autoloader\n\t *\n\t * The config/autoload.php file contains an array that permits sub-systems,\n\t * libraries, and helpers to be loaded automatically.\n\t *\n\t * @param\tarray\n\t * @return\tvoid\n\t */\n\tprivate function _ci_autoloader()\n\t{\n\t\tif (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/autoload.php'))\n\t\t{\n\t\t\tinclude(APPPATH.'config/'.ENVIRONMENT.'/autoload.php');\n\t\t}\n\t\telse\n\t\t{\n\t\t\tinclude(APPPATH.'config/autoload.php');\n\t\t}\n\n\t\tif ( ! isset($autoload))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Autoload packages\n\t\tif (isset($autoload['packages']))\n\t\t{\n\t\t\tforeach ($autoload['packages'] as $package_path)\n\t\t\t{\n\t\t\t\t$this->add_package_path($package_path);\n\t\t\t}\n\t\t}\n\n\t\t// Load any custom config file\n\t\tif (count($autoload['config']) > 0)\n\t\t{\n\t\t\t$CI =& get_instance();\n\t\t\tforeach ($autoload['config'] as $key => $val)\n\t\t\t{\n\t\t\t\t$CI->config->load($val);\n\t\t\t}\n\t\t}\n\n\t\t// Autoload helpers and languages\n\t\tforeach (array('helper', 'language') as $type)\n\t\t{\n\t\t\tif (isset($autoload[$type]) AND count($autoload[$type]) > 0)\n\t\t\t{\n\t\t\t\t$this->$type($autoload[$type]);\n\t\t\t}\n\t\t}\n\n\t\t// A little tweak to remain backward compatible\n\t\t// The $autoload['core'] item was deprecated\n\t\tif ( ! isset($autoload['libraries']) AND isset($autoload['core']))\n\t\t{\n\t\t\t$autoload['libraries'] = $autoload['core'];\n\t\t}\n\n\t\t// Load libraries\n\t\tif (isset($autoload['libraries']) AND count($autoload['libraries']) > 0)\n\t\t{\n\t\t\t// Load the database driver.\n\t\t\tif (in_array('database', $autoload['libraries']))\n\t\t\t{\n\t\t\t\t$this->database();\n\t\t\t\t$autoload['libraries'] = array_diff($autoload['libraries'], array('database'));\n\t\t\t}\n\n\t\t\t// Load all other libraries\n\t\t\tforeach ($autoload['libraries'] as $item)\n\t\t\t{\n\t\t\t\t$this->library($item);\n\t\t\t}\n\t\t}\n\n\t\t// Autoload models\n\t\tif (isset($autoload['model']))\n\t\t{\n\t\t\t$this->model($autoload['model']);\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Object to Array\n\t *\n\t * Takes an object as input and converts the class variables to array key/vals\n\t *\n\t * @param\tobject\n\t * @return\tarray\n\t */\n\tprotected function _ci_object_to_array($object)\n\t{\n\t\treturn (is_object($object)) ? get_object_vars($object) : $object;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get a reference to a specific library or model\n\t *\n\t * @param \tstring\n\t * @return\tbool\n\t */\n\tprotected function &_ci_get_component($component)\n\t{\n\t\t$CI =& get_instance();\n\t\treturn $CI->$component;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Prep filename\n\t *\n\t * This function preps the name of various items to make loading them more reliable.\n\t *\n\t * @param\tmixed\n\t * @param \tstring\n\t * @return\tarray\n\t */\n\tprotected function _ci_prep_filename($filename, $extension)\n\t{\n\t\tif ( ! is_array($filename))\n\t\t{\n\t\t\treturn array(strtolower(str_replace('.php', '', str_replace($extension, '', $filename)).$extension));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tforeach ($filename as $key => $val)\n\t\t\t{\n\t\t\t\t$filename[$key] = strtolower(str_replace('.php', '', str_replace($extension, '', $val)).$extension);\n\t\t\t}\n\n\t\t\treturn $filename;\n\t\t}\n\t}\n}\n\n/* End of file Loader.php */\n/* Location: ./system/core/Loader.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Model.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * CodeIgniter Model Class\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tLibraries\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/config.html\n */\nclass CI_Model {\n\n\t/**\n\t * Constructor\n\t *\n\t * @access public\n\t */\n\tfunction __construct()\n\t{\n\t\tlog_message('debug', \"Model Class Initialized\");\n\t}\n\n\t/**\n\t * __get\n\t *\n\t * Allows models to access CI's loaded classes using the same\n\t * syntax as controllers.\n\t *\n\t * @param\tstring\n\t * @access private\n\t */\n\tfunction __get($key)\n\t{\n\t\t$CI =& get_instance();\n\t\treturn $CI->$key;\n\t}\n}\n// END Model Class\n\n/* End of file Model.php */\n/* Location: ./system/core/Model.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Output.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Output Class\n *\n * Responsible for sending final output to browser\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tOutput\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/output.html\n */\nclass CI_Output {\n\n\t/**\n\t * Current output string\n\t *\n\t * @var string\n\t * @access \tprotected\n\t */\n\tprotected $final_output;\n\t/**\n\t * Cache expiration time\n\t *\n\t * @var int\n\t * @access \tprotected\n\t */\n\tprotected $cache_expiration\t= 0;\n\t/**\n\t * List of server headers\n\t *\n\t * @var array\n\t * @access \tprotected\n\t */\n\tprotected $headers\t\t\t= array();\n\t/**\n\t * List of mime types\n\t *\n\t * @var array\n\t * @access \tprotected\n\t */\n\tprotected $mime_types\t\t= array();\n\t/**\n\t * Determines wether profiler is enabled\n\t *\n\t * @var book\n\t * @access \tprotected\n\t */\n\tprotected $enable_profiler\t= FALSE;\n\t/**\n\t * Determines if output compression is enabled\n\t *\n\t * @var bool\n\t * @access \tprotected\n\t */\n\tprotected $_zlib_oc\t\t\t= FALSE;\n\t/**\n\t * List of profiler sections\n\t *\n\t * @var array\n\t * @access \tprotected\n\t */\n\tprotected $_profiler_sections = array();\n\t/**\n\t * Whether or not to parse variables like {elapsed_time} and {memory_usage}\n\t *\n\t * @var bool\n\t * @access \tprotected\n\t */\n\tprotected $parse_exec_vars\t= TRUE;\n\n\t/**\n\t * Constructor\n\t *\n\t */\n\tfunction __construct()\n\t{\n\t\t$this->_zlib_oc = @ini_get('zlib.output_compression');\n\n\t\t// Get mime types for later\n\t\tif (defined('ENVIRONMENT') AND file_exists(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))\n\t\t{\n\t\t    include APPPATH.'config/'.ENVIRONMENT.'/mimes.php';\n\t\t}\n\t\telse\n\t\t{\n\t\t\tinclude APPPATH.'config/mimes.php';\n\t\t}\n\n\n\t\t$this->mime_types = $mimes;\n\n\t\tlog_message('debug', \"Output Class Initialized\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get Output\n\t *\n\t * Returns the current output string\n\t *\n\t * @access\tpublic\n\t * @return\tstring\n\t */\n\tfunction get_output()\n\t{\n\t\treturn $this->final_output;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Output\n\t *\n\t * Sets the output string\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tfunction set_output($output)\n\t{\n\t\t$this->final_output = $output;\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Append Output\n\t *\n\t * Appends data onto the output string\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tfunction append_output($output)\n\t{\n\t\tif ($this->final_output == '')\n\t\t{\n\t\t\t$this->final_output = $output;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->final_output .= $output;\n\t\t}\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Header\n\t *\n\t * Lets you set a server header which will be outputted with the final display.\n\t *\n\t * Note:  If a file is cached, headers will not be sent.  We need to figure out\n\t * how to permit header data to be saved with the cache data...\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @param \tbool\n\t * @return\tvoid\n\t */\n\tfunction set_header($header, $replace = TRUE)\n\t{\n\t\t// If zlib.output_compression is enabled it will compress the output,\n\t\t// but it will not modify the content-length header to compensate for\n\t\t// the reduction, causing the browser to hang waiting for more data.\n\t\t// We'll just skip content-length in those cases.\n\n\t\tif ($this->_zlib_oc && strncasecmp($header, 'content-length', 14) == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$this->headers[] = array($header, $replace);\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Content Type Header\n\t *\n\t * @access\tpublic\n\t * @param\tstring\textension of the file we're outputting\n\t * @return\tvoid\n\t */\n\tfunction set_content_type($mime_type)\n\t{\n\t\tif (strpos($mime_type, '/') === FALSE)\n\t\t{\n\t\t\t$extension = ltrim($mime_type, '.');\n\n\t\t\t// Is this extension supported?\n\t\t\tif (isset($this->mime_types[$extension]))\n\t\t\t{\n\t\t\t\t$mime_type =& $this->mime_types[$extension];\n\n\t\t\t\tif (is_array($mime_type))\n\t\t\t\t{\n\t\t\t\t\t$mime_type = current($mime_type);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t$header = 'Content-Type: '.$mime_type;\n\n\t\t$this->headers[] = array($header, TRUE);\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set HTTP Status Header\n\t * moved to Common procedural functions in 1.7.2\n\t *\n\t * @access\tpublic\n\t * @param\tint\t\tthe status code\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tfunction set_status_header($code = 200, $text = '')\n\t{\n\t\tset_status_header($code, $text);\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Enable/disable Profiler\n\t *\n\t * @access\tpublic\n\t * @param\tbool\n\t * @return\tvoid\n\t */\n\tfunction enable_profiler($val = TRUE)\n\t{\n\t\t$this->enable_profiler = (is_bool($val)) ? $val : TRUE;\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Profiler Sections\n\t *\n\t * Allows override of default / config settings for Profiler section display\n\t *\n\t * @access\tpublic\n\t * @param\tarray\n\t * @return\tvoid\n\t */\n\tfunction set_profiler_sections($sections)\n\t{\n\t\tforeach ($sections as $section => $enable)\n\t\t{\n\t\t\t$this->_profiler_sections[$section] = ($enable !== FALSE) ? TRUE : FALSE;\n\t\t}\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Cache\n\t *\n\t * @access\tpublic\n\t * @param\tinteger\n\t * @return\tvoid\n\t */\n\tfunction cache($time)\n\t{\n\t\t$this->cache_expiration = ( ! is_numeric($time)) ? 0 : $time;\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Display Output\n\t *\n\t * All \"view\" data is automatically put into this variable by the controller class:\n\t *\n\t * $this->final_output\n\t *\n\t * This function sends the finalized output data to the browser along\n\t * with any server headers and profile data.  It also stops the\n\t * benchmark timer so the page rendering speed and memory usage can be shown.\n\t *\n\t * @access\tpublic\n\t * @param \tstring\n\t * @return\tmixed\n\t */\n\tfunction _display($output = '')\n\t{\n\t\t// Note:  We use globals because we can't use $CI =& get_instance()\n\t\t// since this function is sometimes called by the caching mechanism,\n\t\t// which happens before the CI super object is available.\n\t\tglobal $BM, $CFG;\n\n\t\t// Grab the super object if we can.\n\t\tif (class_exists('CI_Controller'))\n\t\t{\n\t\t\t$CI =& get_instance();\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\n\t\t// Set the output data\n\t\tif ($output == '')\n\t\t{\n\t\t\t$output =& $this->final_output;\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\n\t\t// Do we need to write a cache file?  Only if the controller does not have its\n\t\t// own _output() method and we are not dealing with a cache file, which we\n\t\t// can determine by the existence of the $CI object above\n\t\tif ($this->cache_expiration > 0 && isset($CI) && ! method_exists($CI, '_output'))\n\t\t{\n\t\t\t$this->_write_cache($output);\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\n\t\t// Parse out the elapsed time and memory usage,\n\t\t// then swap the pseudo-variables with the data\n\n\t\t$elapsed = $BM->elapsed_time('total_execution_time_start', 'total_execution_time_end');\n\n\t\tif ($this->parse_exec_vars === TRUE)\n\t\t{\n\t\t\t$memory\t = ( ! function_exists('memory_get_usage')) ? '0' : round(memory_get_usage()/1024/1024, 2).'MB';\n\n\t\t\t$output = str_replace('{elapsed_time}', $elapsed, $output);\n\t\t\t$output = str_replace('{memory_usage}', $memory, $output);\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\n\t\t// Is compression requested?\n\t\tif ($CFG->item('compress_output') === TRUE && $this->_zlib_oc == FALSE)\n\t\t{\n\t\t\tif (extension_loaded('zlib'))\n\t\t\t{\n\t\t\t\tif (isset($_SERVER['HTTP_ACCEPT_ENCODING']) AND strpos($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\tob_start('ob_gzhandler');\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\n\t\t// Are there any server headers to send?\n\t\tif (count($this->headers) > 0)\n\t\t{\n\t\t\tforeach ($this->headers as $header)\n\t\t\t{\n\t\t\t\t@header($header[0], $header[1]);\n\t\t\t}\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\n\t\t// Does the $CI object exist?\n\t\t// If not we know we are dealing with a cache file so we'll\n\t\t// simply echo out the data and exit.\n\t\tif ( ! isset($CI))\n\t\t{\n\t\t\techo $output;\n\t\t\tlog_message('debug', \"Final output sent to browser\");\n\t\t\tlog_message('debug', \"Total execution time: \".$elapsed);\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\n\t\t// Do we need to generate profile data?\n\t\t// If so, load the Profile class and run it.\n\t\tif ($this->enable_profiler == TRUE)\n\t\t{\n\t\t\t$CI->load->library('profiler');\n\n\t\t\tif ( ! empty($this->_profiler_sections))\n\t\t\t{\n\t\t\t\t$CI->profiler->set_sections($this->_profiler_sections);\n\t\t\t}\n\n\t\t\t// If the output data contains closing </body> and </html> tags\n\t\t\t// we will remove them and add them back after we insert the profile data\n\t\t\tif (preg_match(\"|</body>.*?</html>|is\", $output))\n\t\t\t{\n\t\t\t\t$output  = preg_replace(\"|</body>.*?</html>|is\", '', $output);\n\t\t\t\t$output .= $CI->profiler->run();\n\t\t\t\t$output .= '</body></html>';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$output .= $CI->profiler->run();\n\t\t\t}\n\t\t}\n\n\t\t// --------------------------------------------------------------------\n\n\t\t// Does the controller contain a function named _output()?\n\t\t// If so send the output there.  Otherwise, echo it.\n\t\tif (method_exists($CI, '_output'))\n\t\t{\n\t\t\t$CI->_output($output);\n\t\t}\n\t\telse\n\t\t{\n\t\t\techo $output;  // Send it to the browser!\n\t\t}\n\n\t\tlog_message('debug', \"Final output sent to browser\");\n\t\tlog_message('debug', \"Total execution time: \".$elapsed);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Write a Cache File\n\t *\n\t * @access\tpublic\n\t * @param \tstring\n\t * @return\tvoid\n\t */\n\tfunction _write_cache($output)\n\t{\n\t\t$CI =& get_instance();\n\t\t$path = $CI->config->item('cache_path');\n\n\t\t$cache_path = ($path == '') ? APPPATH.'cache/' : $path;\n\n\t\tif ( ! is_dir($cache_path) OR ! is_really_writable($cache_path))\n\t\t{\n\t\t\tlog_message('error', \"Unable to write cache file: \".$cache_path);\n\t\t\treturn;\n\t\t}\n\n\t\t$uri =\t$CI->config->item('base_url').\n\t\t\t\t$CI->config->item('index_page').\n\t\t\t\t$CI->uri->uri_string();\n\n\t\t$cache_path .= md5($uri);\n\n\t\tif ( ! $fp = @fopen($cache_path, FOPEN_WRITE_CREATE_DESTRUCTIVE))\n\t\t{\n\t\t\tlog_message('error', \"Unable to write cache file: \".$cache_path);\n\t\t\treturn;\n\t\t}\n\n\t\t$expire = time() + ($this->cache_expiration * 60);\n\n\t\tif (flock($fp, LOCK_EX))\n\t\t{\n\t\t\tfwrite($fp, $expire.'TS--->'.$output);\n\t\t\tflock($fp, LOCK_UN);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlog_message('error', \"Unable to secure a file lock for file at: \".$cache_path);\n\t\t\treturn;\n\t\t}\n\t\tfclose($fp);\n\t\t@chmod($cache_path, FILE_WRITE_MODE);\n\n\t\tlog_message('debug', \"Cache file written: \".$cache_path);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Update/serve a cached file\n\t *\n\t * @access\tpublic\n\t * @param \tobject\tconfig class\n\t * @param \tobject\turi class\n\t * @return\tvoid\n\t */\n\tfunction _display_cache(&$CFG, &$URI)\n\t{\n\t\t$cache_path = ($CFG->item('cache_path') == '') ? APPPATH.'cache/' : $CFG->item('cache_path');\n\n\t\t// Build the file path.  The file name is an MD5 hash of the full URI\n\t\t$uri =\t$CFG->item('base_url').\n\t\t\t\t$CFG->item('index_page').\n\t\t\t\t$URI->uri_string;\n\n\t\t$filepath = $cache_path.md5($uri);\n\n\t\tif ( ! @file_exists($filepath))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif ( ! $fp = @fopen($filepath, FOPEN_READ))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tflock($fp, LOCK_SH);\n\n\t\t$cache = '';\n\t\tif (filesize($filepath) > 0)\n\t\t{\n\t\t\t$cache = fread($fp, filesize($filepath));\n\t\t}\n\n\t\tflock($fp, LOCK_UN);\n\t\tfclose($fp);\n\n\t\t// Strip out the embedded timestamp\n\t\tif ( ! preg_match(\"/(\\d+TS--->)/\", $cache, $match))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Has the file expired? If so we'll delete it.\n\t\tif (time() >= trim(str_replace('TS--->', '', $match['1'])))\n\t\t{\n\t\t\tif (is_really_writable($cache_path))\n\t\t\t{\n\t\t\t\t@unlink($filepath);\n\t\t\t\tlog_message('debug', \"Cache file has expired. File deleted\");\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Display the cache\n\t\t$this->_display(str_replace($match['0'], '', $cache));\n\t\tlog_message('debug', \"Cache file is current. Sending it to browser.\");\n\t\treturn TRUE;\n\t}\n\n\n}\n// END Output Class\n\n/* End of file Output.php */\n/* Location: ./system/core/Output.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Router.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Router Class\n *\n * Parses URIs and determines routing\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @author\t\tExpressionEngine Dev Team\n * @category\tLibraries\n * @link\t\thttp://codeigniter.com/user_guide/general/routing.html\n */\nclass CI_Router {\n\n\t/**\n\t * Config class\n\t *\n\t * @var object\n\t * @access public\n\t */\n\tvar $config;\n\t/**\n\t * List of routes\n\t *\n\t * @var array\n\t * @access public\n\t */\n\tvar $routes\t\t\t= array();\n\t/**\n\t * List of error routes\n\t *\n\t * @var array\n\t * @access public\n\t */\n\tvar $error_routes\t= array();\n\t/**\n\t * Current class name\n\t *\n\t * @var string\n\t * @access public\n\t */\n\tvar $class\t\t\t= '';\n\t/**\n\t * Current method name\n\t *\n\t * @var string\n\t * @access public\n\t */\n\tvar $method\t\t\t= 'index';\n\t/**\n\t * Sub-directory that contains the requested controller class\n\t *\n\t * @var string\n\t * @access public\n\t */\n\tvar $directory\t\t= '';\n\t/**\n\t * Default controller (and method if specific)\n\t *\n\t * @var string\n\t * @access public\n\t */\n\tvar $default_controller;\n\n\t/**\n\t * Constructor\n\t *\n\t * Runs the route mapping function.\n\t */\n\tfunction __construct()\n\t{\n\t\t$this->config =& load_class('Config', 'core');\n\t\t$this->uri =& load_class('URI', 'core');\n\t\tlog_message('debug', \"Router Class Initialized\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set the route mapping\n\t *\n\t * This function determines what should be served based on the URI request,\n\t * as well as any \"routes\" that have been set in the routing config file.\n\t *\n\t * @access\tprivate\n\t * @return\tvoid\n\t */\n\tfunction _set_routing()\n\t{\n\t\t// Are query strings enabled in the config file?  Normally CI doesn't utilize query strings\n\t\t// since URI segments are more search-engine friendly, but they can optionally be used.\n\t\t// If this feature is enabled, we will gather the directory/class/method a little differently\n\t\t$segments = array();\n\t\tif ($this->config->item('enable_query_strings') === TRUE AND isset($_GET[$this->config->item('controller_trigger')]))\n\t\t{\n\t\t\tif (isset($_GET[$this->config->item('directory_trigger')]))\n\t\t\t{\n\t\t\t\t$this->set_directory(trim($this->uri->_filter_uri($_GET[$this->config->item('directory_trigger')])));\n\t\t\t\t$segments[] = $this->fetch_directory();\n\t\t\t}\n\n\t\t\tif (isset($_GET[$this->config->item('controller_trigger')]))\n\t\t\t{\n\t\t\t\t$this->set_class(trim($this->uri->_filter_uri($_GET[$this->config->item('controller_trigger')])));\n\t\t\t\t$segments[] = $this->fetch_class();\n\t\t\t}\n\n\t\t\tif (isset($_GET[$this->config->item('function_trigger')]))\n\t\t\t{\n\t\t\t\t$this->set_method(trim($this->uri->_filter_uri($_GET[$this->config->item('function_trigger')])));\n\t\t\t\t$segments[] = $this->fetch_method();\n\t\t\t}\n\t\t}\n\n\t\t// Load the routes.php file.\n\t\tif (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/routes.php'))\n\t\t{\n\t\t\tinclude(APPPATH.'config/'.ENVIRONMENT.'/routes.php');\n\t\t}\n\t\telseif (is_file(APPPATH.'config/routes.php'))\n\t\t{\n\t\t\tinclude(APPPATH.'config/routes.php');\n\t\t}\n\n\t\t$this->routes = ( ! isset($route) OR ! is_array($route)) ? array() : $route;\n\t\tunset($route);\n\n\t\t// Set the default controller so we can display it in the event\n\t\t// the URI doesn't correlated to a valid controller.\n\t\t$this->default_controller = ( ! isset($this->routes['default_controller']) OR $this->routes['default_controller'] == '') ? FALSE : strtolower($this->routes['default_controller']);\n\n\t\t// Were there any query string segments?  If so, we'll validate them and bail out since we're done.\n\t\tif (count($segments) > 0)\n\t\t{\n\t\t\treturn $this->_validate_request($segments);\n\t\t}\n\n\t\t// Fetch the complete URI string\n\t\t$this->uri->_fetch_uri_string();\n\n\t\t// Is there a URI string? If not, the default controller specified in the \"routes\" file will be shown.\n\t\tif ($this->uri->uri_string == '')\n\t\t{\n\t\t\treturn $this->_set_default_controller();\n\t\t}\n\n\t\t// Do we need to remove the URL suffix?\n\t\t$this->uri->_remove_url_suffix();\n\n\t\t// Compile the segments into an array\n\t\t$this->uri->_explode_segments();\n\n\t\t// Parse any custom routing that may exist\n\t\t$this->_parse_routes();\n\n\t\t// Re-index the segment array so that it starts with 1 rather than 0\n\t\t$this->uri->_reindex_segments();\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set the default controller\n\t *\n\t * @access\tprivate\n\t * @return\tvoid\n\t */\n\tfunction _set_default_controller()\n\t{\n\t\tif ($this->default_controller === FALSE)\n\t\t{\n\t\t\tshow_error(\"Unable to determine what should be displayed. A default route has not been specified in the routing file.\");\n\t\t}\n\t\t// Is the method being specified?\n\t\tif (strpos($this->default_controller, '/') !== FALSE)\n\t\t{\n\t\t\t$x = explode('/', $this->default_controller);\n\n\t\t\t$this->set_class($x[0]);\n\t\t\t$this->set_method($x[1]);\n\t\t\t$this->_set_request($x);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->set_class($this->default_controller);\n\t\t\t$this->set_method('index');\n\t\t\t$this->_set_request(array($this->default_controller, 'index'));\n\t\t}\n\n\t\t// re-index the routed segments array so it starts with 1 rather than 0\n\t\t$this->uri->_reindex_segments();\n\n\t\tlog_message('debug', \"No URI present. Default controller set.\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set the Route\n\t *\n\t * This function takes an array of URI segments as\n\t * input, and sets the current class/method\n\t *\n\t * @access\tprivate\n\t * @param\tarray\n\t * @param\tbool\n\t * @return\tvoid\n\t */\n\tfunction _set_request($segments = array())\n\t{\n\t\t$segments = $this->_validate_request($segments);\n\n\t\tif (count($segments) == 0)\n\t\t{\n\t\t\treturn $this->_set_default_controller();\n\t\t}\n\n\t\t$this->set_class($segments[0]);\n\n\t\tif (isset($segments[1]))\n\t\t{\n\t\t\t// A standard method request\n\t\t\t$this->set_method($segments[1]);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// This lets the \"routed\" segment array identify that the default\n\t\t\t// index method is being used.\n\t\t\t$segments[1] = 'index';\n\t\t}\n\n\t\t// Update our \"routed\" segment array to contain the segments.\n\t\t// Note: If there is no custom routing, this array will be\n\t\t// identical to $this->uri->segments\n\t\t$this->uri->rsegments = $segments;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Validates the supplied segments.  Attempts to determine the path to\n\t * the controller.\n\t *\n\t * @access\tprivate\n\t * @param\tarray\n\t * @return\tarray\n\t */\n\tfunction _validate_request($segments)\n\t{\n\t\tif (count($segments) == 0)\n\t\t{\n\t\t\treturn $segments;\n\t\t}\n\n\t\t// Does the requested controller exist in the root folder?\n\t\tif (file_exists(APPPATH.'controllers/'.$segments[0].'.php'))\n\t\t{\n\t\t\treturn $segments;\n\t\t}\n\n\t\t// Is the controller in a sub-folder?\n\t\tif (is_dir(APPPATH.'controllers/'.$segments[0]))\n\t\t{\n\t\t\t// Set the directory and remove it from the segment array\n\t\t\t$this->set_directory($segments[0]);\n\t\t\t$segments = array_slice($segments, 1);\n\n\t\t\tif (count($segments) > 0)\n\t\t\t{\n\t\t\t\t// Does the requested controller exist in the sub-folder?\n\t\t\t\tif ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$segments[0].'.php'))\n\t\t\t\t{\n\t\t\t\t\tif ( ! empty($this->routes['404_override']))\n\t\t\t\t\t{\n\t\t\t\t\t\t$x = explode('/', $this->routes['404_override']);\n\n\t\t\t\t\t\t$this->set_directory('');\n\t\t\t\t\t\t$this->set_class($x[0]);\n\t\t\t\t\t\t$this->set_method(isset($x[1]) ? $x[1] : 'index');\n\n\t\t\t\t\t\treturn $x;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tshow_404($this->fetch_directory().$segments[0]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// Is the method being specified in the route?\n\t\t\t\tif (strpos($this->default_controller, '/') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$x = explode('/', $this->default_controller);\n\n\t\t\t\t\t$this->set_class($x[0]);\n\t\t\t\t\t$this->set_method($x[1]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->set_class($this->default_controller);\n\t\t\t\t\t$this->set_method('index');\n\t\t\t\t}\n\n\t\t\t\t// Does the default controller exist in the sub-folder?\n\t\t\t\tif ( ! file_exists(APPPATH.'controllers/'.$this->fetch_directory().$this->default_controller.'.php'))\n\t\t\t\t{\n\t\t\t\t\t$this->directory = '';\n\t\t\t\t\treturn array();\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\treturn $segments;\n\t\t}\n\n\n\t\t// If we've gotten this far it means that the URI does not correlate to a valid\n\t\t// controller class.  We will now see if there is an override\n\t\tif ( ! empty($this->routes['404_override']))\n\t\t{\n\t\t\t$x = explode('/', $this->routes['404_override']);\n\n\t\t\t$this->set_class($x[0]);\n\t\t\t$this->set_method(isset($x[1]) ? $x[1] : 'index');\n\n\t\t\treturn $x;\n\t\t}\n\n\n\t\t// Nothing else to do at this point but show a 404\n\t\tshow_404($segments[0]);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t *  Parse Routes\n\t *\n\t * This function matches any routes that may exist in\n\t * the config/routes.php file against the URI to\n\t * determine if the class/method need to be remapped.\n\t *\n\t * @access\tprivate\n\t * @return\tvoid\n\t */\n\tfunction _parse_routes()\n\t{\n\t\t// Turn the segment array into a URI string\n\t\t$uri = implode('/', $this->uri->segments);\n\n\t\t// Is there a literal match?  If so we're done\n\t\tif (isset($this->routes[$uri]))\n\t\t{\n\t\t\treturn $this->_set_request(explode('/', $this->routes[$uri]));\n\t\t}\n\n\t\t// Loop through the route array looking for wild-cards\n\t\tforeach ($this->routes as $key => $val)\n\t\t{\n\t\t\t// Convert wild-cards to RegEx\n\t\t\t$key = str_replace(':any', '.+', str_replace(':num', '[0-9]+', $key));\n\n\t\t\t// Does the RegEx match?\n\t\t\tif (preg_match('#^'.$key.'$#', $uri))\n\t\t\t{\n\t\t\t\t// Do we have a back-reference?\n\t\t\t\tif (strpos($val, '$') !== FALSE AND strpos($key, '(') !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$val = preg_replace('#^'.$key.'$#', $val, $uri);\n\t\t\t\t}\n\n\t\t\t\treturn $this->_set_request(explode('/', $val));\n\t\t\t}\n\t\t}\n\n\t\t// If we got this far it means we didn't encounter a\n\t\t// matching route so we'll set the site default route\n\t\t$this->_set_request($this->uri->segments);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set the class name\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tfunction set_class($class)\n\t{\n\t\t$this->class = str_replace(array('/', '.'), '', $class);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch the current class\n\t *\n\t * @access\tpublic\n\t * @return\tstring\n\t */\n\tfunction fetch_class()\n\t{\n\t\treturn $this->class;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t *  Set the method name\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tfunction set_method($method)\n\t{\n\t\t$this->method = $method;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t *  Fetch the current method\n\t *\n\t * @access\tpublic\n\t * @return\tstring\n\t */\n\tfunction fetch_method()\n\t{\n\t\tif ($this->method == $this->fetch_class())\n\t\t{\n\t\t\treturn 'index';\n\t\t}\n\n\t\treturn $this->method;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t *  Set the directory name\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tfunction set_directory($dir)\n\t{\n\t\t$this->directory = str_replace(array('/', '.'), '', $dir).'/';\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t *  Fetch the sub-directory (if any) that contains the requested controller class\n\t *\n\t * @access\tpublic\n\t * @return\tstring\n\t */\n\tfunction fetch_directory()\n\t{\n\t\treturn $this->directory;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t *  Set the controller overrides\n\t *\n\t * @access\tpublic\n\t * @param\tarray\n\t * @return\tnull\n\t */\n\tfunction _set_overrides($routing)\n\t{\n\t\tif ( ! is_array($routing))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (isset($routing['directory']))\n\t\t{\n\t\t\t$this->set_directory($routing['directory']);\n\t\t}\n\n\t\tif (isset($routing['controller']) AND $routing['controller'] != '')\n\t\t{\n\t\t\t$this->set_class($routing['controller']);\n\t\t}\n\n\t\tif (isset($routing['function']))\n\t\t{\n\t\t\t$routing['function'] = ($routing['function'] == '') ? 'index' : $routing['function'];\n\t\t\t$this->set_method($routing['function']);\n\t\t}\n\t}\n\n\n}\n// END Router Class\n\n/* End of file Router.php */\n/* Location: ./system/core/Router.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Security.php",
    "content": "<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Security Class\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tSecurity\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/security.html\n */\nclass CI_Security {\n\n\t/**\n\t * Random Hash for protecting URLs\n\t *\n\t * @var string\n\t * @access protected\n\t */\n\tprotected $_xss_hash\t\t\t= '';\n\t/**\n\t * Random Hash for Cross Site Request Forgery Protection Cookie\n\t *\n\t * @var string\n\t * @access protected\n\t */\n\tprotected $_csrf_hash\t\t\t= '';\n\t/**\n\t * Expiration time for Cross Site Request Forgery Protection Cookie\n\t * Defaults to two hours (in seconds)\n\t *\n\t * @var int\n\t * @access protected\n\t */\n\tprotected $_csrf_expire\t\t\t= 7200;\n\t/**\n\t * Token name for Cross Site Request Forgery Protection Cookie\n\t *\n\t * @var string\n\t * @access protected\n\t */\n\tprotected $_csrf_token_name\t\t= 'ci_csrf_token';\n\t/**\n\t * Cookie name for Cross Site Request Forgery Protection Cookie\n\t *\n\t * @var string\n\t * @access protected\n\t */\n\tprotected $_csrf_cookie_name\t= 'ci_csrf_token';\n\t/**\n\t * List of never allowed strings\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_never_allowed_str = array(\n\t\t'document.cookie'\t=> '[removed]',\n\t\t'document.write'\t=> '[removed]',\n\t\t'.parentNode'\t\t=> '[removed]',\n\t\t'.innerHTML'\t\t=> '[removed]',\n\t\t'window.location'\t=> '[removed]',\n\t\t'-moz-binding'\t\t=> '[removed]',\n\t\t'<!--'\t\t\t\t=> '&lt;!--',\n\t\t'-->'\t\t\t\t=> '--&gt;',\n\t\t'<![CDATA['\t\t\t=> '&lt;![CDATA[',\n\t\t'<comment>'\t\t\t=> '&lt;comment&gt;'\n\t);\n\n\t/* never allowed, regex replacement */\n\t/**\n\t * List of never allowed regex replacement\n\t *\n\t * @var array\n\t * @access protected\n\t */\n\tprotected $_never_allowed_regex = array(\n\t\t'javascript\\s*:',\n\t\t'expression\\s*(\\(|&\\#40;)', // CSS and IE\n\t\t'vbscript\\s*:', // IE, surprise!\n\t\t'Redirect\\s+302',\n\t\t\"([\\\"'])?data\\s*:[^\\\\1]*?base64[^\\\\1]*?,[^\\\\1]*?\\\\1?\"\n\t);\n\n\t/**\n\t * Constructor\n\t *\n\t * @return\tvoid\n\t */\n\tpublic function __construct()\n\t{\n\t\t// Is CSRF protection enabled?\n\t\tif (config_item('csrf_protection') === TRUE)\n\t\t{\n\t\t\t// CSRF config\n\t\t\tforeach (array('csrf_expire', 'csrf_token_name', 'csrf_cookie_name') as $key)\n\t\t\t{\n\t\t\t\tif (FALSE !== ($val = config_item($key)))\n\t\t\t\t{\n\t\t\t\t\t$this->{'_'.$key} = $val;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Append application specific cookie prefix\n\t\t\tif (config_item('cookie_prefix'))\n\t\t\t{\n\t\t\t\t$this->_csrf_cookie_name = config_item('cookie_prefix').$this->_csrf_cookie_name;\n\t\t\t}\n\n\t\t\t// Set the CSRF hash\n\t\t\t$this->_csrf_set_hash();\n\t\t}\n\n\t\tlog_message('debug', \"Security Class Initialized\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Verify Cross Site Request Forgery Protection\n\t *\n\t * @return\tobject\n\t */\n\tpublic function csrf_verify()\n\t{\n\t\t// If it's not a POST request we will set the CSRF cookie\n\t\tif (strtoupper($_SERVER['REQUEST_METHOD']) !== 'POST')\n\t\t{\n\t\t\treturn $this->csrf_set_cookie();\n\t\t}\n\n\t\t// Do the tokens exist in both the _POST and _COOKIE arrays?\n\t\tif ( ! isset($_POST[$this->_csrf_token_name], $_COOKIE[$this->_csrf_cookie_name]))\n\t\t{\n\t\t\t$this->csrf_show_error();\n\t\t}\n\n\t\t// Do the tokens match?\n\t\tif ($_POST[$this->_csrf_token_name] != $_COOKIE[$this->_csrf_cookie_name])\n\t\t{\n\t\t\t$this->csrf_show_error();\n\t\t}\n\n\t\t// We kill this since we're done and we don't want to\n\t\t// polute the _POST array\n\t\tunset($_POST[$this->_csrf_token_name]);\n\n\t\t// Nothing should last forever\n\t\tunset($_COOKIE[$this->_csrf_cookie_name]);\n\t\t$this->_csrf_set_hash();\n\t\t$this->csrf_set_cookie();\n\n\t\tlog_message('debug', 'CSRF token verified');\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Cross Site Request Forgery Protection Cookie\n\t *\n\t * @return\tobject\n\t */\n\tpublic function csrf_set_cookie()\n\t{\n\t\t$expire = time() + $this->_csrf_expire;\n\t\t$secure_cookie = (config_item('cookie_secure') === TRUE) ? 1 : 0;\n\n\t\tif ($secure_cookie && (empty($_SERVER['HTTPS']) OR strtolower($_SERVER['HTTPS']) === 'off'))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tsetcookie($this->_csrf_cookie_name, $this->_csrf_hash, $expire, config_item('cookie_path'), config_item('cookie_domain'), $secure_cookie);\n\n\t\tlog_message('debug', \"CRSF cookie Set\");\n\n\t\treturn $this;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Show CSRF Error\n\t *\n\t * @return\tvoid\n\t */\n\tpublic function csrf_show_error()\n\t{\n\t\tshow_error('The action you have requested is not allowed.');\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get CSRF Hash\n\t *\n\t * Getter Method\n\t *\n\t * @return \tstring \tself::_csrf_hash\n\t */\n\tpublic function get_csrf_hash()\n\t{\n\t\treturn $this->_csrf_hash;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get CSRF Token Name\n\t *\n\t * Getter Method\n\t *\n\t * @return \tstring \tself::csrf_token_name\n\t */\n\tpublic function get_csrf_token_name()\n\t{\n\t\treturn $this->_csrf_token_name;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * XSS Clean\n\t *\n\t * Sanitizes data so that Cross Site Scripting Hacks can be\n\t * prevented.  This function does a fair amount of work but\n\t * it is extremely thorough, designed to prevent even the\n\t * most obscure XSS attempts.  Nothing is ever 100% foolproof,\n\t * of course, but I haven't been able to get anything passed\n\t * the filter.\n\t *\n\t * Note: This function should only be used to deal with data\n\t * upon submission.  It's not something that should\n\t * be used for general runtime processing.\n\t *\n\t * This function was based in part on some code and ideas I\n\t * got from Bitflux: http://channel.bitflux.ch/wiki/XSS_Prevention\n\t *\n\t * To help develop this script I used this great list of\n\t * vulnerabilities along with a few other hacks I've\n\t * harvested from examining vulnerabilities in other programs:\n\t * http://ha.ckers.org/xss.html\n\t *\n\t * @param\tmixed\tstring or array\n\t * @param \tbool\n\t * @return\tstring\n\t */\n\tpublic function xss_clean($str, $is_image = FALSE)\n\t{\n\t\t/*\n\t\t * Is the string an array?\n\t\t *\n\t\t */\n\t\tif (is_array($str))\n\t\t{\n\t\t\twhile (list($key) = each($str))\n\t\t\t{\n\t\t\t\t$str[$key] = $this->xss_clean($str[$key]);\n\t\t\t}\n\n\t\t\treturn $str;\n\t\t}\n\n\t\t/*\n\t\t * Remove Invisible Characters\n\t\t */\n\t\t$str = remove_invisible_characters($str);\n\n\t\t// Validate Entities in URLs\n\t\t$str = $this->_validate_entities($str);\n\n\t\t/*\n\t\t * URL Decode\n\t\t *\n\t\t * Just in case stuff like this is submitted:\n\t\t *\n\t\t * <a href=\"http://%77%77%77%2E%67%6F%6F%67%6C%65%2E%63%6F%6D\">Google</a>\n\t\t *\n\t\t * Note: Use rawurldecode() so it does not remove plus signs\n\t\t *\n\t\t */\n\t\t$str = rawurldecode($str);\n\n\t\t/*\n\t\t * Convert character entities to ASCII\n\t\t *\n\t\t * This permits our tests below to work reliably.\n\t\t * We only convert entities that are within tags since\n\t\t * these are the ones that will pose security problems.\n\t\t *\n\t\t */\n\n\t\t$str = preg_replace_callback(\"/[a-z]+=([\\'\\\"]).*?\\\\1/si\", array($this, '_convert_attribute'), $str);\n\n\t\t$str = preg_replace_callback(\"/<\\w+.*?(?=>|<|$)/si\", array($this, '_decode_entity'), $str);\n\n\t\t/*\n\t\t * Remove Invisible Characters Again!\n\t\t */\n\t\t$str = remove_invisible_characters($str);\n\n\t\t/*\n\t\t * Convert all tabs to spaces\n\t\t *\n\t\t * This prevents strings like this: ja\tvascript\n\t\t * NOTE: we deal with spaces between characters later.\n\t\t * NOTE: preg_replace was found to be amazingly slow here on\n\t\t * large blocks of data, so we use str_replace.\n\t\t */\n\n\t\tif (strpos($str, \"\\t\") !== FALSE)\n\t\t{\n\t\t\t$str = str_replace(\"\\t\", ' ', $str);\n\t\t}\n\n\t\t/*\n\t\t * Capture converted string for later comparison\n\t\t */\n\t\t$converted_string = $str;\n\n\t\t// Remove Strings that are never allowed\n\t\t$str = $this->_do_never_allowed($str);\n\n\t\t/*\n\t\t * Makes PHP tags safe\n\t\t *\n\t\t * Note: XML tags are inadvertently replaced too:\n\t\t *\n\t\t * <?xml\n\t\t *\n\t\t * But it doesn't seem to pose a problem.\n\t\t */\n\t\tif ($is_image === TRUE)\n\t\t{\n\t\t\t// Images have a tendency to have the PHP short opening and\n\t\t\t// closing tags every so often so we skip those and only\n\t\t\t// do the long opening tags.\n\t\t\t$str = preg_replace('/<\\?(php)/i', \"&lt;?\\\\1\", $str);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$str = str_replace(array('<?', '?'.'>'),  array('&lt;?', '?&gt;'), $str);\n\t\t}\n\n\t\t/*\n\t\t * Compact any exploded words\n\t\t *\n\t\t * This corrects words like:  j a v a s c r i p t\n\t\t * These words are compacted back to their correct state.\n\t\t */\n\t\t$words = array(\n\t\t\t'javascript', 'expression', 'vbscript', 'script', 'base64',\n\t\t\t'applet', 'alert', 'document', 'write', 'cookie', 'window'\n\t\t);\n\n\t\tforeach ($words as $word)\n\t\t{\n\t\t\t$temp = '';\n\n\t\t\tfor ($i = 0, $wordlen = strlen($word); $i < $wordlen; $i++)\n\t\t\t{\n\t\t\t\t$temp .= substr($word, $i, 1).\"\\s*\";\n\t\t\t}\n\n\t\t\t// We only want to do this when it is followed by a non-word character\n\t\t\t// That way valid stuff like \"dealer to\" does not become \"dealerto\"\n\t\t\t$str = preg_replace_callback('#('.substr($temp, 0, -3).')(\\W)#is', array($this, '_compact_exploded_words'), $str);\n\t\t}\n\n\t\t/*\n\t\t * Remove disallowed Javascript in links or img tags\n\t\t * We used to do some version comparisons and use of stripos for PHP5,\n\t\t * but it is dog slow compared to these simplified non-capturing\n\t\t * preg_match(), especially if the pattern exists in the string\n\t\t */\n\t\tdo\n\t\t{\n\t\t\t$original = $str;\n\n\t\t\tif (preg_match(\"/<a/i\", $str))\n\t\t\t{\n\t\t\t\t$str = preg_replace_callback(\"#<a\\s+([^>]*?)(>|$)#si\", array($this, '_js_link_removal'), $str);\n\t\t\t}\n\n\t\t\tif (preg_match(\"/<img/i\", $str))\n\t\t\t{\n\t\t\t\t$str = preg_replace_callback(\"#<img\\s+([^>]*?)(\\s?/?>|$)#si\", array($this, '_js_img_removal'), $str);\n\t\t\t}\n\n\t\t\tif (preg_match(\"/script/i\", $str) OR preg_match(\"/xss/i\", $str))\n\t\t\t{\n\t\t\t\t$str = preg_replace(\"#<(/*)(script|xss)(.*?)\\>#si\", '[removed]', $str);\n\t\t\t}\n\t\t}\n\t\twhile($original != $str);\n\n\t\tunset($original);\n\n\t\t// Remove evil attributes such as style, onclick and xmlns\n\t\t$str = $this->_remove_evil_attributes($str, $is_image);\n\n\t\t/*\n\t\t * Sanitize naughty HTML elements\n\t\t *\n\t\t * If a tag containing any of the words in the list\n\t\t * below is found, the tag gets converted to entities.\n\t\t *\n\t\t * So this: <blink>\n\t\t * Becomes: &lt;blink&gt;\n\t\t */\n\t\t$naughty = 'alert|applet|audio|basefont|base|behavior|bgsound|blink|body|embed|expression|form|frameset|frame|head|html|ilayer|iframe|input|isindex|layer|link|meta|object|plaintext|style|script|textarea|title|video|xml|xss';\n\t\t$str = preg_replace_callback('#<(/*\\s*)('.$naughty.')([^><]*)([><]*)#is', array($this, '_sanitize_naughty_html'), $str);\n\n\t\t/*\n\t\t * Sanitize naughty scripting elements\n\t\t *\n\t\t * Similar to above, only instead of looking for\n\t\t * tags it looks for PHP and JavaScript commands\n\t\t * that are disallowed.  Rather than removing the\n\t\t * code, it simply converts the parenthesis to entities\n\t\t * rendering the code un-executable.\n\t\t *\n\t\t * For example:\teval('some code')\n\t\t * Becomes:\t\teval&#40;'some code'&#41;\n\t\t */\n\t\t$str = preg_replace('#(alert|cmd|passthru|eval|exec|expression|system|fopen|fsockopen|file|file_get_contents|readfile|unlink)(\\s*)\\((.*?)\\)#si', \"\\\\1\\\\2&#40;\\\\3&#41;\", $str);\n\n\n\t\t// Final clean up\n\t\t// This adds a bit of extra precaution in case\n\t\t// something got through the above filters\n\t\t$str = $this->_do_never_allowed($str);\n\n\t\t/*\n\t\t * Images are Handled in a Special Way\n\t\t * - Essentially, we want to know that after all of the character\n\t\t * conversion is done whether any unwanted, likely XSS, code was found.\n\t\t * If not, we return TRUE, as the image is clean.\n\t\t * However, if the string post-conversion does not matched the\n\t\t * string post-removal of XSS, then it fails, as there was unwanted XSS\n\t\t * code found and removed/changed during processing.\n\t\t */\n\n\t\tif ($is_image === TRUE)\n\t\t{\n\t\t\treturn ($str == $converted_string) ? TRUE: FALSE;\n\t\t}\n\n\t\tlog_message('debug', \"XSS Filtering completed\");\n\t\treturn $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Random Hash for protecting URLs\n\t *\n\t * @return\tstring\n\t */\n\tpublic function xss_hash()\n\t{\n\t\tif ($this->_xss_hash == '')\n\t\t{\n\t\t\tmt_srand();\n\t\t\t$this->_xss_hash = md5(time() + mt_rand(0, 1999999999));\n\t\t}\n\n\t\treturn $this->_xss_hash;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * HTML Entities Decode\n\t *\n\t * This function is a replacement for html_entity_decode()\n\t *\n\t * The reason we are not using html_entity_decode() by itself is because\n\t * while it is not technically correct to leave out the semicolon\n\t * at the end of an entity most browsers will still interpret the entity\n\t * correctly.  html_entity_decode() does not convert entities without\n\t * semicolons, so we are left with our own little solution here. Bummer.\n\t *\n\t * @param\tstring\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tpublic function entity_decode($str, $charset='UTF-8')\n\t{\n\t\tif (stristr($str, '&') === FALSE)\n\t\t{\n\t\t\treturn $str;\n\t\t}\n\n\t\t$str = html_entity_decode($str, ENT_COMPAT, $charset);\n\t\t$str = preg_replace('~&#x(0*[0-9a-f]{2,5})~ei', 'chr(hexdec(\"\\\\1\"))', $str);\n\t\treturn preg_replace('~&#([0-9]{2,4})~e', 'chr(\\\\1)', $str);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Filename Security\n\t *\n\t * @param\tstring\n\t * @param \tbool\n\t * @return\tstring\n\t */\n\tpublic function sanitize_filename($str, $relative_path = FALSE)\n\t{\n\t\t$bad = array(\n\t\t\t\"../\",\n\t\t\t\"<!--\",\n\t\t\t\"-->\",\n\t\t\t\"<\",\n\t\t\t\">\",\n\t\t\t\"'\",\n\t\t\t'\"',\n\t\t\t'&',\n\t\t\t'$',\n\t\t\t'#',\n\t\t\t'{',\n\t\t\t'}',\n\t\t\t'[',\n\t\t\t']',\n\t\t\t'=',\n\t\t\t';',\n\t\t\t'?',\n\t\t\t\"%20\",\n\t\t\t\"%22\",\n\t\t\t\"%3c\",\t\t// <\n\t\t\t\"%253c\",\t// <\n\t\t\t\"%3e\",\t\t// >\n\t\t\t\"%0e\",\t\t// >\n\t\t\t\"%28\",\t\t// (\n\t\t\t\"%29\",\t\t// )\n\t\t\t\"%2528\",\t// (\n\t\t\t\"%26\",\t\t// &\n\t\t\t\"%24\",\t\t// $\n\t\t\t\"%3f\",\t\t// ?\n\t\t\t\"%3b\",\t\t// ;\n\t\t\t\"%3d\"\t\t// =\n\t\t);\n\n\t\tif ( ! $relative_path)\n\t\t{\n\t\t\t$bad[] = './';\n\t\t\t$bad[] = '/';\n\t\t}\n\n\t\t$str = remove_invisible_characters($str, FALSE);\n\t\treturn stripslashes(str_replace($bad, '', $str));\n\t}\n\n\t// ----------------------------------------------------------------\n\n\t/**\n\t * Compact Exploded Words\n\t *\n\t * Callback function for xss_clean() to remove whitespace from\n\t * things like j a v a s c r i p t\n\t *\n\t * @param\ttype\n\t * @return\ttype\n\t */\n\tprotected function _compact_exploded_words($matches)\n\t{\n\t\treturn preg_replace('/\\s+/s', '', $matches[1]).$matches[2];\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/*\n\t * Remove Evil HTML Attributes (like evenhandlers and style)\n\t *\n\t * It removes the evil attribute and either:\n\t * \t- Everything up until a space\n\t *\t\tFor example, everything between the pipes:\n\t *\t\t<a |style=document.write('hello');alert('world');| class=link>\n\t * \t- Everything inside the quotes\n\t *\t\tFor example, everything between the pipes:\n\t *\t\t<a |style=\"document.write('hello'); alert('world');\"| class=\"link\">\n\t *\n\t * @param string $str The string to check\n\t * @param boolean $is_image TRUE if this is an image\n\t * @return string The string with the evil attributes removed\n\t */\n\tprotected function _remove_evil_attributes($str, $is_image)\n\t{\n\t\t// All javascript event handlers (e.g. onload, onclick, onmouseover), style, and xmlns\n\t\t$evil_attributes = array('on\\w*', 'style', 'xmlns', 'formaction');\n\n\t\tif ($is_image === TRUE)\n\t\t{\n\t\t\t/*\n\t\t\t * Adobe Photoshop puts XML metadata into JFIF images, \n\t\t\t * including namespacing, so we have to allow this for images.\n\t\t\t */\n\t\t\tunset($evil_attributes[array_search('xmlns', $evil_attributes)]);\n\t\t}\n\n\t\tdo {\n\t\t\t$count = 0;\n\t\t\t$attribs = array();\n\n\t\t\t// find occurrences of illegal attribute strings without quotes\n\t\t\tpreg_match_all('/('.implode('|', $evil_attributes).')\\s*=\\s*([^\\s>]*)/is', $str, $matches, PREG_SET_ORDER);\n\n\t\t\tforeach ($matches as $attr)\n\t\t\t{\n\n\t\t\t\t$attribs[] = preg_quote($attr[0], '/');\n\t\t\t}\n\n\t\t\t// find occurrences of illegal attribute strings with quotes (042 and 047 are octal quotes)\n\t\t\tpreg_match_all(\"/(\".implode('|', $evil_attributes).\")\\s*=\\s*(\\042|\\047)([^\\\\2]*?)(\\\\2)/is\",  $str, $matches, PREG_SET_ORDER);\n\n\t\t\tforeach ($matches as $attr)\n\t\t\t{\n\t\t\t\t$attribs[] = preg_quote($attr[0], '/');\n\t\t\t}\n\n\t\t\t// replace illegal attribute strings that are inside an html tag\n\t\t\tif (count($attribs) > 0)\n\t\t\t{\n\t\t\t\t$str = preg_replace(\"/<(\\/?[^><]+?)([^A-Za-z<>\\-])(.*?)(\".implode('|', $attribs).\")(.*?)([\\s><])([><]*)/i\", '<$1 $3$5$6$7', $str, -1, $count);\n\t\t\t}\n\n\t\t} while ($count);\n\n\t\treturn $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Sanitize Naughty HTML\n\t *\n\t * Callback function for xss_clean() to remove naughty HTML elements\n\t *\n\t * @param\tarray\n\t * @return\tstring\n\t */\n\tprotected function _sanitize_naughty_html($matches)\n\t{\n\t\t// encode opening brace\n\t\t$str = '&lt;'.$matches[1].$matches[2].$matches[3];\n\n\t\t// encode captured opening or closing brace to prevent recursive vectors\n\t\t$str .= str_replace(array('>', '<'), array('&gt;', '&lt;'),\n\t\t\t\t\t\t\t$matches[4]);\n\n\t\treturn $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * JS Link Removal\n\t *\n\t * Callback function for xss_clean() to sanitize links\n\t * This limits the PCRE backtracks, making it more performance friendly\n\t * and prevents PREG_BACKTRACK_LIMIT_ERROR from being triggered in\n\t * PHP 5.2+ on link-heavy strings\n\t *\n\t * @param\tarray\n\t * @return\tstring\n\t */\n\tprotected function _js_link_removal($match)\n\t{\n\t\treturn str_replace(\n\t\t\t$match[1],\n\t\t\tpreg_replace(\n\t\t\t\t'#href=.*?(alert\\(|alert&\\#40;|javascript\\:|livescript\\:|mocha\\:|charset\\=|window\\.|document\\.|\\.cookie|<script|<xss|data\\s*:)#si',\n\t\t\t\t'',\n\t\t\t\t$this->_filter_attributes(str_replace(array('<', '>'), '', $match[1]))\n\t\t\t),\n\t\t\t$match[0]\n\t\t);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * JS Image Removal\n\t *\n\t * Callback function for xss_clean() to sanitize image tags\n\t * This limits the PCRE backtracks, making it more performance friendly\n\t * and prevents PREG_BACKTRACK_LIMIT_ERROR from being triggered in\n\t * PHP 5.2+ on image tag heavy strings\n\t *\n\t * @param\tarray\n\t * @return\tstring\n\t */\n\tprotected function _js_img_removal($match)\n\t{\n\t\treturn str_replace(\n\t\t\t$match[1],\n\t\t\tpreg_replace(\n\t\t\t\t'#src=.*?(alert\\(|alert&\\#40;|javascript\\:|livescript\\:|mocha\\:|charset\\=|window\\.|document\\.|\\.cookie|<script|<xss|base64\\s*,)#si',\n\t\t\t\t'',\n\t\t\t\t$this->_filter_attributes(str_replace(array('<', '>'), '', $match[1]))\n\t\t\t),\n\t\t\t$match[0]\n\t\t);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Attribute Conversion\n\t *\n\t * Used as a callback for XSS Clean\n\t *\n\t * @param\tarray\n\t * @return\tstring\n\t */\n\tprotected function _convert_attribute($match)\n\t{\n\t\treturn str_replace(array('>', '<', '\\\\'), array('&gt;', '&lt;', '\\\\\\\\'), $match[0]);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Filter Attributes\n\t *\n\t * Filters tag attributes for consistency and safety\n\t *\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tprotected function _filter_attributes($str)\n\t{\n\t\t$out = '';\n\n\t\tif (preg_match_all('#\\s*[a-z\\-]+\\s*=\\s*(\\042|\\047)([^\\\\1]*?)\\\\1#is', $str, $matches))\n\t\t{\n\t\t\tforeach ($matches[0] as $match)\n\t\t\t{\n\t\t\t\t$out .= preg_replace(\"#/\\*.*?\\*/#s\", '', $match);\n\t\t\t}\n\t\t}\n\n\t\treturn $out;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * HTML Entity Decode Callback\n\t *\n\t * Used as a callback for XSS Clean\n\t *\n\t * @param\tarray\n\t * @return\tstring\n\t */\n\tprotected function _decode_entity($match)\n\t{\n\t\treturn $this->entity_decode($match[0], strtoupper(config_item('charset')));\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Validate URL entities\n\t *\n\t * Called by xss_clean()\n\t *\n\t * @param \tstring\n\t * @return \tstring\n\t */\n\tprotected function _validate_entities($str)\n\t{\n\t\t/*\n\t\t * Protect GET variables in URLs\n\t\t */\n\n\t\t // 901119URL5918AMP18930PROTECT8198\n\n\t\t$str = preg_replace('|\\&([a-z\\_0-9\\-]+)\\=([a-z\\_0-9\\-]+)|i', $this->xss_hash().\"\\\\1=\\\\2\", $str);\n\n\t\t/*\n\t\t * Validate standard character entities\n\t\t *\n\t\t * Add a semicolon if missing.  We do this to enable\n\t\t * the conversion of entities to ASCII later.\n\t\t *\n\t\t */\n\t\t$str = preg_replace('#(&\\#?[0-9a-z]{2,})([\\x00-\\x20])*;?#i', \"\\\\1;\\\\2\", $str);\n\n\t\t/*\n\t\t * Validate UTF16 two byte encoding (x00)\n\t\t *\n\t\t * Just as above, adds a semicolon if missing.\n\t\t *\n\t\t */\n\t\t$str = preg_replace('#(&\\#x?)([0-9A-F]+);?#i',\"\\\\1\\\\2;\",$str);\n\n\t\t/*\n\t\t * Un-Protect GET variables in URLs\n\t\t */\n\t\t$str = str_replace($this->xss_hash(), '&', $str);\n\n\t\treturn $str;\n\t}\n\n\t// ----------------------------------------------------------------------\n\n\t/**\n\t * Do Never Allowed\n\t *\n\t * A utility function for xss_clean()\n\t *\n\t * @param \tstring\n\t * @return \tstring\n\t */\n\tprotected function _do_never_allowed($str)\n\t{\n\t\t$str = str_replace(array_keys($this->_never_allowed_str), $this->_never_allowed_str, $str);\n\n\t\tforeach ($this->_never_allowed_regex as $regex)\n\t\t{\n\t\t\t$str = preg_replace('#'.$regex.'#is', '[removed]', $str);\n\t\t}\n\n\t\treturn $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Cross Site Request Forgery Protection Cookie\n\t *\n\t * @return\tstring\n\t */\n\tprotected function _csrf_set_hash()\n\t{\n\t\tif ($this->_csrf_hash == '')\n\t\t{\n\t\t\t// If the cookie exists we will use it's value.\n\t\t\t// We don't necessarily want to regenerate it with\n\t\t\t// each page load since a page could contain embedded\n\t\t\t// sub-pages causing this feature to fail\n\t\t\tif (isset($_COOKIE[$this->_csrf_cookie_name]) &&\n\t\t\t\tpreg_match('#^[0-9a-f]{32}$#iS', $_COOKIE[$this->_csrf_cookie_name]) === 1)\n\t\t\t{\n\t\t\t\treturn $this->_csrf_hash = $_COOKIE[$this->_csrf_cookie_name];\n\t\t\t}\n\n\t\t\treturn $this->_csrf_hash = md5(uniqid(rand(), TRUE));\n\t\t}\n\n\t\treturn $this->_csrf_hash;\n\t}\n\n}\n\n/* End of file Security.php */\n/* Location: ./system/libraries/Security.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/URI.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * URI Class\n *\n * Parses URIs and determines routing\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tURI\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/uri.html\n */\nclass CI_URI {\n\n\t/**\n\t * List of cached uri segments\n\t *\n\t * @var array\n\t * @access public\n\t */\n\tvar\t$keyval\t\t\t= array();\n\t/**\n\t * Current uri string\n\t *\n\t * @var string\n\t * @access public\n\t */\n\tvar $uri_string;\n\t/**\n\t * List of uri segments\n\t *\n\t * @var array\n\t * @access public\n\t */\n\tvar $segments\t\t= array();\n\t/**\n\t * Re-indexed list of uri segments\n\t * Starts at 1 instead of 0\n\t *\n\t * @var array\n\t * @access public\n\t */\n\tvar $rsegments\t\t= array();\n\n\t/**\n\t * Constructor\n\t *\n\t * Simply globalizes the $RTR object.  The front\n\t * loads the Router class early on so it's not available\n\t * normally as other classes are.\n\t *\n\t * @access\tpublic\n\t */\n\tfunction __construct()\n\t{\n\t\t$this->config =& load_class('Config', 'core');\n\t\tlog_message('debug', \"URI Class Initialized\");\n\t}\n\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get the URI String\n\t *\n\t * @access\tprivate\n\t * @return\tstring\n\t */\n\tfunction _fetch_uri_string()\n\t{\n\t\tif (strtoupper($this->config->item('uri_protocol')) == 'AUTO')\n\t\t{\n\t\t\t// Is the request coming from the command line?\n\t\t\tif (php_sapi_name() == 'cli' or defined('STDIN'))\n\t\t\t{\n\t\t\t\t$this->_set_uri_string($this->_parse_cli_args());\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Let's try the REQUEST_URI first, this will work in most situations\n\t\t\tif ($uri = $this->_detect_uri())\n\t\t\t{\n\t\t\t\t$this->_set_uri_string($uri);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Is there a PATH_INFO variable?\n\t\t\t// Note: some servers seem to have trouble with getenv() so we'll test it two ways\n\t\t\t$path = (isset($_SERVER['PATH_INFO'])) ? $_SERVER['PATH_INFO'] : @getenv('PATH_INFO');\n\t\t\tif (trim($path, '/') != '' && $path != \"/\".SELF)\n\t\t\t{\n\t\t\t\t$this->_set_uri_string($path);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// No PATH_INFO?... What about QUERY_STRING?\n\t\t\t$path =  (isset($_SERVER['QUERY_STRING'])) ? $_SERVER['QUERY_STRING'] : @getenv('QUERY_STRING');\n\t\t\tif (trim($path, '/') != '')\n\t\t\t{\n\t\t\t\t$this->_set_uri_string($path);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// As a last ditch effort lets try using the $_GET array\n\t\t\tif (is_array($_GET) && count($_GET) == 1 && trim(key($_GET), '/') != '')\n\t\t\t{\n\t\t\t\t$this->_set_uri_string(key($_GET));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// We've exhausted all our options...\n\t\t\t$this->uri_string = '';\n\t\t\treturn;\n\t\t}\n\n\t\t$uri = strtoupper($this->config->item('uri_protocol'));\n\n\t\tif ($uri == 'REQUEST_URI')\n\t\t{\n\t\t\t$this->_set_uri_string($this->_detect_uri());\n\t\t\treturn;\n\t\t}\n\t\telseif ($uri == 'CLI')\n\t\t{\n\t\t\t$this->_set_uri_string($this->_parse_cli_args());\n\t\t\treturn;\n\t\t}\n\n\t\t$path = (isset($_SERVER[$uri])) ? $_SERVER[$uri] : @getenv($uri);\n\t\t$this->_set_uri_string($path);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set the URI String\n\t *\n\t * @access\tpublic\n\t * @param \tstring\n\t * @return\tstring\n\t */\n\tfunction _set_uri_string($str)\n\t{\n\t\t// Filter out control characters\n\t\t$str = remove_invisible_characters($str, FALSE);\n\n\t\t// If the URI contains only a slash we'll kill it\n\t\t$this->uri_string = ($str == '/') ? '' : $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Detects the URI\n\t *\n\t * This function will detect the URI automatically and fix the query string\n\t * if necessary.\n\t *\n\t * @access\tprivate\n\t * @return\tstring\n\t */\n\tprivate function _detect_uri()\n\t{\n\t\tif ( ! isset($_SERVER['REQUEST_URI']) OR ! isset($_SERVER['SCRIPT_NAME']))\n\t\t{\n\t\t\treturn '';\n\t\t}\n\n\t\t$uri = $_SERVER['REQUEST_URI'];\n\t\tif (strpos($uri, $_SERVER['SCRIPT_NAME']) === 0)\n\t\t{\n\t\t\t$uri = substr($uri, strlen($_SERVER['SCRIPT_NAME']));\n\t\t}\n\t\telseif (strpos($uri, dirname($_SERVER['SCRIPT_NAME'])) === 0)\n\t\t{\n\t\t\t$uri = substr($uri, strlen(dirname($_SERVER['SCRIPT_NAME'])));\n\t\t}\n\n\t\t// This section ensures that even on servers that require the URI to be in the query string (Nginx) a correct\n\t\t// URI is found, and also fixes the QUERY_STRING server var and $_GET array.\n\t\tif (strncmp($uri, '?/', 2) === 0)\n\t\t{\n\t\t\t$uri = substr($uri, 2);\n\t\t}\n\t\t$parts = preg_split('#\\?#i', $uri, 2);\n\t\t$uri = $parts[0];\n\t\tif (isset($parts[1]))\n\t\t{\n\t\t\t$_SERVER['QUERY_STRING'] = $parts[1];\n\t\t\tparse_str($_SERVER['QUERY_STRING'], $_GET);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$_SERVER['QUERY_STRING'] = '';\n\t\t\t$_GET = array();\n\t\t}\n\n\t\tif ($uri == '/' || empty($uri))\n\t\t{\n\t\t\treturn '/';\n\t\t}\n\n\t\t$uri = parse_url($uri, PHP_URL_PATH);\n\n\t\t// Do some final cleaning of the URI and return it\n\t\treturn str_replace(array('//', '../'), '/', trim($uri, '/'));\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Parse cli arguments\n\t *\n\t * Take each command line argument and assume it is a URI segment.\n\t *\n\t * @access\tprivate\n\t * @return\tstring\n\t */\n\tprivate function _parse_cli_args()\n\t{\n\t\t$args = array_slice($_SERVER['argv'], 1);\n\n\t\treturn $args ? '/' . implode('/', $args) : '';\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Filter segments for malicious characters\n\t *\n\t * @access\tprivate\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tfunction _filter_uri($str)\n\t{\n\t\tif ($str != '' && $this->config->item('permitted_uri_chars') != '' && $this->config->item('enable_query_strings') == FALSE)\n\t\t{\n\t\t\t// preg_quote() in PHP 5.3 escapes -, so the str_replace() and addition of - to preg_quote() is to maintain backwards\n\t\t\t// compatibility as many are unaware of how characters in the permitted_uri_chars will be parsed as a regex pattern\n\t\t\tif ( ! preg_match(\"|^[\".str_replace(array('\\\\-', '\\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-')).\"]+$|i\", $str))\n\t\t\t{\n\t\t\t\tshow_error('The URI you submitted has disallowed characters.', 400);\n\t\t\t}\n\t\t}\n\n\t\t// Convert programatic characters to entities\n\t\t$bad\t= array('$',\t\t'(',\t\t')',\t\t'%28',\t\t'%29');\n\t\t$good\t= array('&#36;',\t'&#40;',\t'&#41;',\t'&#40;',\t'&#41;');\n\n\t\treturn str_replace($bad, $good, $str);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Remove the suffix from the URL if needed\n\t *\n\t * @access\tprivate\n\t * @return\tvoid\n\t */\n\tfunction _remove_url_suffix()\n\t{\n\t\tif  ($this->config->item('url_suffix') != \"\")\n\t\t{\n\t\t\t$this->uri_string = preg_replace(\"|\".preg_quote($this->config->item('url_suffix')).\"$|\", \"\", $this->uri_string);\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Explode the URI Segments. The individual segments will\n\t * be stored in the $this->segments array.\n\t *\n\t * @access\tprivate\n\t * @return\tvoid\n\t */\n\tfunction _explode_segments()\n\t{\n\t\tforeach (explode(\"/\", preg_replace(\"|/*(.+?)/*$|\", \"\\\\1\", $this->uri_string)) as $val)\n\t\t{\n\t\t\t// Filter segments for security\n\t\t\t$val = trim($this->_filter_uri($val));\n\n\t\t\tif ($val != '')\n\t\t\t{\n\t\t\t\t$this->segments[] = $val;\n\t\t\t}\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\t/**\n\t * Re-index Segments\n\t *\n\t * This function re-indexes the $this->segment array so that it\n\t * starts at 1 rather than 0.  Doing so makes it simpler to\n\t * use functions like $this->uri->segment(n) since there is\n\t * a 1:1 relationship between the segment array and the actual segments.\n\t *\n\t * @access\tprivate\n\t * @return\tvoid\n\t */\n\tfunction _reindex_segments()\n\t{\n\t\tarray_unshift($this->segments, NULL);\n\t\tarray_unshift($this->rsegments, NULL);\n\t\tunset($this->segments[0]);\n\t\tunset($this->rsegments[0]);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch a URI Segment\n\t *\n\t * This function returns the URI segment based on the number provided.\n\t *\n\t * @access\tpublic\n\t * @param\tinteger\n\t * @param\tbool\n\t * @return\tstring\n\t */\n\tfunction segment($n, $no_result = FALSE)\n\t{\n\t\treturn ( ! isset($this->segments[$n])) ? $no_result : $this->segments[$n];\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch a URI \"routed\" Segment\n\t *\n\t * This function returns the re-routed URI segment (assuming routing rules are used)\n\t * based on the number provided.  If there is no routing this function returns the\n\t * same result as $this->segment()\n\t *\n\t * @access\tpublic\n\t * @param\tinteger\n\t * @param\tbool\n\t * @return\tstring\n\t */\n\tfunction rsegment($n, $no_result = FALSE)\n\t{\n\t\treturn ( ! isset($this->rsegments[$n])) ? $no_result : $this->rsegments[$n];\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Generate a key value pair from the URI string\n\t *\n\t * This function generates and associative array of URI data starting\n\t * at the supplied segment. For example, if this is your URI:\n\t *\n\t *\texample.com/user/search/name/joe/location/UK/gender/male\n\t *\n\t * You can use this function to generate an array with this prototype:\n\t *\n\t * array (\n\t *\t\t\tname => joe\n\t *\t\t\tlocation => UK\n\t *\t\t\tgender => male\n\t *\t\t )\n\t *\n\t * @access\tpublic\n\t * @param\tinteger\tthe starting segment number\n\t * @param\tarray\tan array of default values\n\t * @return\tarray\n\t */\n\tfunction uri_to_assoc($n = 3, $default = array())\n\t{\n\t\treturn $this->_uri_to_assoc($n, $default, 'segment');\n\t}\n\t/**\n\t * Identical to above only it uses the re-routed segment array\n\t *\n\t * @access \tpublic\n\t * @param \tinteger\tthe starting segment number\n\t * @param \tarray\tan array of default values\n\t * @return \tarray\n\t *\n\t */\n\tfunction ruri_to_assoc($n = 3, $default = array())\n\t{\n\t\treturn $this->_uri_to_assoc($n, $default, 'rsegment');\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Generate a key value pair from the URI string or Re-routed URI string\n\t *\n\t * @access\tprivate\n\t * @param\tinteger\tthe starting segment number\n\t * @param\tarray\tan array of default values\n\t * @param\tstring\twhich array we should use\n\t * @return\tarray\n\t */\n\tfunction _uri_to_assoc($n = 3, $default = array(), $which = 'segment')\n\t{\n\t\tif ($which == 'segment')\n\t\t{\n\t\t\t$total_segments = 'total_segments';\n\t\t\t$segment_array = 'segment_array';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$total_segments = 'total_rsegments';\n\t\t\t$segment_array = 'rsegment_array';\n\t\t}\n\n\t\tif ( ! is_numeric($n))\n\t\t{\n\t\t\treturn $default;\n\t\t}\n\n\t\tif (isset($this->keyval[$n]))\n\t\t{\n\t\t\treturn $this->keyval[$n];\n\t\t}\n\n\t\tif ($this->$total_segments() < $n)\n\t\t{\n\t\t\tif (count($default) == 0)\n\t\t\t{\n\t\t\t\treturn array();\n\t\t\t}\n\n\t\t\t$retval = array();\n\t\t\tforeach ($default as $val)\n\t\t\t{\n\t\t\t\t$retval[$val] = FALSE;\n\t\t\t}\n\t\t\treturn $retval;\n\t\t}\n\n\t\t$segments = array_slice($this->$segment_array(), ($n - 1));\n\n\t\t$i = 0;\n\t\t$lastval = '';\n\t\t$retval  = array();\n\t\tforeach ($segments as $seg)\n\t\t{\n\t\t\tif ($i % 2)\n\t\t\t{\n\t\t\t\t$retval[$lastval] = $seg;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$retval[$seg] = FALSE;\n\t\t\t\t$lastval = $seg;\n\t\t\t}\n\n\t\t\t$i++;\n\t\t}\n\n\t\tif (count($default) > 0)\n\t\t{\n\t\t\tforeach ($default as $val)\n\t\t\t{\n\t\t\t\tif ( ! array_key_exists($val, $retval))\n\t\t\t\t{\n\t\t\t\t\t$retval[$val] = FALSE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Cache the array for reuse\n\t\t$this->keyval[$n] = $retval;\n\t\treturn $retval;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Generate a URI string from an associative array\n\t *\n\t *\n\t * @access\tpublic\n\t * @param\tarray\tan associative array of key/values\n\t * @return\tarray\n\t */\n\tfunction assoc_to_uri($array)\n\t{\n\t\t$temp = array();\n\t\tforeach ((array)$array as $key => $val)\n\t\t{\n\t\t\t$temp[] = $key;\n\t\t\t$temp[] = $val;\n\t\t}\n\n\t\treturn implode('/', $temp);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch a URI Segment and add a trailing slash\n\t *\n\t * @access\tpublic\n\t * @param\tinteger\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tfunction slash_segment($n, $where = 'trailing')\n\t{\n\t\treturn $this->_slash_segment($n, $where, 'segment');\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch a URI Segment and add a trailing slash\n\t *\n\t * @access\tpublic\n\t * @param\tinteger\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tfunction slash_rsegment($n, $where = 'trailing')\n\t{\n\t\treturn $this->_slash_segment($n, $where, 'rsegment');\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch a URI Segment and add a trailing slash - helper function\n\t *\n\t * @access\tprivate\n\t * @param\tinteger\n\t * @param\tstring\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tfunction _slash_segment($n, $where = 'trailing', $which = 'segment')\n\t{\n\t\t$leading\t= '/';\n\t\t$trailing\t= '/';\n\n\t\tif ($where == 'trailing')\n\t\t{\n\t\t\t$leading\t= '';\n\t\t}\n\t\telseif ($where == 'leading')\n\t\t{\n\t\t\t$trailing\t= '';\n\t\t}\n\n\t\treturn $leading.$this->$which($n).$trailing;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Segment Array\n\t *\n\t * @access\tpublic\n\t * @return\tarray\n\t */\n\tfunction segment_array()\n\t{\n\t\treturn $this->segments;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Routed Segment Array\n\t *\n\t * @access\tpublic\n\t * @return\tarray\n\t */\n\tfunction rsegment_array()\n\t{\n\t\treturn $this->rsegments;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Total number of segments\n\t *\n\t * @access\tpublic\n\t * @return\tinteger\n\t */\n\tfunction total_segments()\n\t{\n\t\treturn count($this->segments);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Total number of routed segments\n\t *\n\t * @access\tpublic\n\t * @return\tinteger\n\t */\n\tfunction total_rsegments()\n\t{\n\t\treturn count($this->rsegments);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch the entire URI string\n\t *\n\t * @access\tpublic\n\t * @return\tstring\n\t */\n\tfunction uri_string()\n\t{\n\t\treturn $this->uri_string;\n\t}\n\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Fetch the entire Re-routed URI string\n\t *\n\t * @access\tpublic\n\t * @return\tstring\n\t */\n\tfunction ruri_string()\n\t{\n\t\treturn '/'.implode('/', $this->rsegment_array());\n\t}\n\n}\n// END URI Class\n\n/* End of file URI.php */\n/* Location: ./system/core/URI.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/Utf8.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 2.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Utf8 Class\n *\n * Provides support for UTF-8 environments\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tUTF-8\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/utf8.html\n */\nclass CI_Utf8 {\n\n\t/**\n\t * Constructor\n\t *\n\t * Determines if UTF-8 support is to be enabled\n\t *\n\t */\n\tfunction __construct()\n\t{\n\t\tlog_message('debug', \"Utf8 Class Initialized\");\n\n\t\tglobal $CFG;\n\n\t\tif (\n\t\t\tpreg_match('/./u', 'é') === 1\t\t\t\t\t// PCRE must support UTF-8\n\t\t\tAND function_exists('iconv')\t\t\t\t\t// iconv must be installed\n\t\t\tAND ini_get('mbstring.func_overload') != 1\t\t// Multibyte string function overloading cannot be enabled\n\t\t\tAND $CFG->item('charset') == 'UTF-8'\t\t\t// Application charset must be UTF-8\n\t\t\t)\n\t\t{\n\t\t\tlog_message('debug', \"UTF-8 Support Enabled\");\n\n\t\t\tdefine('UTF8_ENABLED', TRUE);\n\n\t\t\t// set internal encoding for multibyte string functions if necessary\n\t\t\t// and set a flag so we don't have to repeatedly use extension_loaded()\n\t\t\t// or function_exists()\n\t\t\tif (extension_loaded('mbstring'))\n\t\t\t{\n\t\t\t\tdefine('MB_ENABLED', TRUE);\n\t\t\t\tmb_internal_encoding('UTF-8');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tdefine('MB_ENABLED', FALSE);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlog_message('debug', \"UTF-8 Support Disabled\");\n\t\t\tdefine('UTF8_ENABLED', FALSE);\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Clean UTF-8 strings\n\t *\n\t * Ensures strings are UTF-8\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tfunction clean_string($str)\n\t{\n\t\tif ($this->_is_ascii($str) === FALSE)\n\t\t{\n\t\t\t$str = @iconv('UTF-8', 'UTF-8//IGNORE', $str);\n\t\t}\n\n\t\treturn $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Remove ASCII control characters\n\t *\n\t * Removes all ASCII control characters except horizontal tabs,\n\t * line feeds, and carriage returns, as all others can cause\n\t * problems in XML\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tfunction safe_ascii_for_xml($str)\n\t{\n\t\treturn remove_invisible_characters($str, FALSE);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Convert to UTF-8\n\t *\n\t * Attempts to convert a string to UTF-8\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @param\tstring\t- input encoding\n\t * @return\tstring\n\t */\n\tfunction convert_to_utf8($str, $encoding)\n\t{\n\t\tif (function_exists('iconv'))\n\t\t{\n\t\t\t$str = @iconv($encoding, 'UTF-8', $str);\n\t\t}\n\t\telseif (function_exists('mb_convert_encoding'))\n\t\t{\n\t\t\t$str = @mb_convert_encoding($str, 'UTF-8', $encoding);\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\treturn $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Is ASCII?\n\t *\n\t * Tests if a string is standard 7-bit ASCII or not\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tbool\n\t */\n\tfunction _is_ascii($str)\n\t{\n\t\treturn (preg_match('/[^\\x00-\\x7F]/S', $str) == 0);\n\t}\n\n\t// --------------------------------------------------------------------\n\n}\n// End Utf8 Class\n\n/* End of file Utf8.php */\n/* Location: ./system/core/Utf8.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/core/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/helpers/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/helpers/language_helper.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * CodeIgniter Language Helpers\n *\n * @package\t\tCodeIgniter\n * @subpackage\tHelpers\n * @category\tHelpers\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/helpers/language_helper.html\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Lang\n *\n * Fetches a language variable and optionally outputs a form label\n *\n * @access\tpublic\n * @param\tstring\tthe language line\n * @param\tstring\tthe id of the form element\n * @return\tstring\n */\nif ( ! function_exists('lang'))\n{\n\tfunction lang($line, $id = '')\n\t{\n\t\t$CI =& get_instance();\n\t\t$line = $CI->lang->line($line);\n\n\t\tif ($id != '')\n\t\t{\n\t\t\t$line = '<label for=\"'.$id.'\">'.$line.\"</label>\";\n\t\t}\n\n\t\treturn $line;\n\t}\n}\n\n// ------------------------------------------------------------------------\n/* End of file language_helper.php */\n/* Location: ./system/helpers/language_helper.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/language/english/imglib_lang.php",
    "content": "<?php\n\n$lang['imglib_source_image_required'] = \"You must specify a source image in your preferences.\";\n$lang['imglib_gd_required'] = \"The GD image library is required for this feature.\";\n$lang['imglib_gd_required_for_props'] = \"Your server must support the GD image library in order to determine the image properties.\";\n$lang['imglib_unsupported_imagecreate'] = \"Your server does not support the GD function required to process this type of image.\";\n$lang['imglib_gif_not_supported'] = \"GIF images are often not supported due to licensing restrictions.  You may have to use JPG or PNG images instead.\";\n$lang['imglib_jpg_not_supported'] = \"JPG images are not supported.\";\n$lang['imglib_png_not_supported'] = \"PNG images are not supported.\";\n$lang['imglib_jpg_or_png_required'] = \"The image resize protocol specified in your preferences only works with JPEG or PNG image types.\";\n$lang['imglib_copy_error'] = \"An error was encountered while attempting to replace the file.  Please make sure your file directory is writable.\";\n$lang['imglib_rotate_unsupported'] = \"Image rotation does not appear to be supported by your server.\";\n$lang['imglib_libpath_invalid'] = \"The path to your image library is not correct.  Please set the correct path in your image preferences.\";\n$lang['imglib_image_process_failed'] = \"Image processing failed.  Please verify that your server supports the chosen protocol and that the path to your image library is correct.\";\n$lang['imglib_rotation_angle_required'] = \"An angle of rotation is required to rotate the image.\";\n$lang['imglib_writing_failed_gif'] = \"GIF image.\";\n$lang['imglib_invalid_path'] = \"The path to the image is not correct.\";\n$lang['imglib_copy_failed'] = \"The image copy routine failed.\";\n$lang['imglib_missing_font'] = \"Unable to find a font to use.\";\n$lang['imglib_save_failed'] = \"Unable to save the image.  Please make sure the image and file directory are writable.\";\n\n\n/* End of file imglib_lang.php */\n/* Location: ./system/language/english/imglib_lang.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/language/english/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/language/english/upload_lang.php",
    "content": "<?php\n\n$lang['upload_userfile_not_set'] = \"Unable to find a post variable called userfile.\";\n$lang['upload_file_exceeds_limit'] = \"The uploaded file exceeds the maximum allowed size in your PHP configuration file.\";\n$lang['upload_file_exceeds_form_limit'] = \"The uploaded file exceeds the maximum size allowed by the submission form.\";\n$lang['upload_file_partial'] = \"The file was only partially uploaded.\";\n$lang['upload_no_temp_directory'] = \"The temporary folder is missing.\";\n$lang['upload_unable_to_write_file'] = \"The file could not be written to disk.\";\n$lang['upload_stopped_by_extension'] = \"The file upload was stopped by extension.\";\n$lang['upload_no_file_selected'] = \"You did not select a file to upload.\";\n$lang['upload_invalid_filetype'] = \"The filetype you are attempting to upload is not allowed.\";\n$lang['upload_invalid_filesize'] = \"The file you are attempting to upload is larger than the permitted size.\";\n$lang['upload_invalid_dimensions'] = \"The image you are attempting to upload exceedes the maximum height or width.\";\n$lang['upload_destination_error'] = \"A problem was encountered while attempting to move the uploaded file to the final destination.\";\n$lang['upload_no_filepath'] = \"The upload path does not appear to be valid.\";\n$lang['upload_no_file_types'] = \"You have not specified any allowed file types.\";\n$lang['upload_bad_filename'] = \"The file name you submitted already exists on the server.\";\n$lang['upload_not_writable'] = \"The upload destination folder does not appear to be writable.\";\n\n\n/* End of file upload_lang.php */\n/* Location: ./system/language/english/upload_lang.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/language/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/libraries/Image_lib.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * Image Manipulation class\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tImage_lib\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/image_lib.html\n */\nclass CI_Image_lib {\n\n\tvar $image_library\t\t= 'gd2';\t// Can be:  imagemagick, netpbm, gd, gd2\n\tvar $library_path\t\t= '';\n\tvar $dynamic_output\t\t= FALSE;\t// Whether to send to browser or write to disk\n\tvar $source_image\t\t= '';\n\tvar $new_image\t\t\t= '';\n\tvar $width\t\t\t\t= '';\n\tvar $height\t\t\t\t= '';\n\tvar $quality\t\t\t= '90';\n\tvar $create_thumb\t\t= FALSE;\n\tvar $thumb_marker\t\t= '_thumb';\n\tvar $maintain_ratio\t\t= TRUE;\t\t// Whether to maintain aspect ratio when resizing or use hard values\n\tvar $master_dim\t\t\t= 'auto';\t// auto, height, or width.  Determines what to use as the master dimension\n\tvar $rotation_angle\t\t= '';\n\tvar $x_axis\t\t\t\t= '';\n\tvar\t$y_axis\t\t\t\t= '';\n\n\t// Watermark Vars\n\tvar $wm_text\t\t\t= '';\t\t\t// Watermark text if graphic is not used\n\tvar $wm_type\t\t\t= 'text';\t\t// Type of watermarking.  Options:  text/overlay\n\tvar $wm_x_transp\t\t= 4;\n\tvar $wm_y_transp\t\t= 4;\n\tvar $wm_overlay_path\t= '';\t\t\t// Watermark image path\n\tvar $wm_font_path\t\t= '';\t\t\t// TT font\n\tvar $wm_font_size\t\t= 17;\t\t\t// Font size (different versions of GD will either use points or pixels)\n\tvar $wm_vrt_alignment\t= 'B';\t\t\t// Vertical alignment:   T M B\n\tvar $wm_hor_alignment\t= 'C';\t\t\t// Horizontal alignment: L R C\n\tvar $wm_padding\t\t\t= 0;\t\t\t// Padding around text\n\tvar $wm_hor_offset\t\t= 0;\t\t\t// Lets you push text to the right\n\tvar $wm_vrt_offset\t\t= 0;\t\t\t// Lets you push  text down\n\tvar $wm_font_color\t\t= '#ffffff';\t// Text color\n\tvar $wm_shadow_color\t= '';\t\t\t// Dropshadow color\n\tvar $wm_shadow_distance\t= 2;\t\t\t// Dropshadow distance\n\tvar $wm_opacity\t\t\t= 50;\t\t\t// Image opacity: 1 - 100  Only works with image\n\n\t// Private Vars\n\tvar $source_folder\t\t= '';\n\tvar $dest_folder\t\t= '';\n\tvar $mime_type\t\t\t= '';\n\tvar $orig_width\t\t\t= '';\n\tvar $orig_height\t\t= '';\n\tvar $image_type\t\t\t= '';\n\tvar $size_str\t\t\t= '';\n\tvar $full_src_path\t\t= '';\n\tvar $full_dst_path\t\t= '';\n\tvar $create_fnc\t\t\t= 'imagecreatetruecolor';\n\tvar $copy_fnc\t\t\t= 'imagecopyresampled';\n\tvar $error_msg\t\t\t= array();\n\tvar $wm_use_drop_shadow\t= FALSE;\n\tvar $wm_use_truetype\t= FALSE;\n\n\t/**\n\t * Constructor\n\t *\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tpublic function __construct($props = array())\n\t{\n\t\tif (count($props) > 0)\n\t\t{\n\t\t\t$this->initialize($props);\n\t\t}\n\n\t\tlog_message('debug', \"Image Lib Class Initialized\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Initialize image properties\n\t *\n\t * Resets values in case this class is used in a loop\n\t *\n\t * @access\tpublic\n\t * @return\tvoid\n\t */\n\tfunction clear()\n\t{\n\t\t$props = array('source_folder', 'dest_folder', 'source_image', 'full_src_path', 'full_dst_path', 'new_image', 'image_type', 'size_str', 'quality', 'orig_width', 'orig_height', 'width', 'height', 'rotation_angle', 'x_axis', 'y_axis', 'create_fnc', 'copy_fnc', 'wm_overlay_path', 'wm_use_truetype', 'dynamic_output', 'wm_font_size', 'wm_text', 'wm_vrt_alignment', 'wm_hor_alignment', 'wm_padding', 'wm_hor_offset', 'wm_vrt_offset', 'wm_font_color', 'wm_use_drop_shadow', 'wm_shadow_color', 'wm_shadow_distance', 'wm_opacity');\n\n\t\tforeach ($props as $val)\n\t\t{\n\t\t\t$this->$val = '';\n\t\t}\n\n\t\t// special consideration for master_dim\n\t\t$this->master_dim = 'auto';\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * initialize image preferences\n\t *\n\t * @access\tpublic\n\t * @param\tarray\n\t * @return\tbool\n\t */\n\tfunction initialize($props = array())\n\t{\n\t\t/*\n\t\t * Convert array elements into class variables\n\t\t */\n\t\tif (count($props) > 0)\n\t\t{\n\t\t\tforeach ($props as $key => $val)\n\t\t\t{\n\t\t\t\t$this->$key = $val;\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Is there a source image?\n\t\t *\n\t\t * If not, there's no reason to continue\n\t\t *\n\t\t */\n\t\tif ($this->source_image == '')\n\t\t{\n\t\t\t$this->set_error('imglib_source_image_required');\n\t\t\treturn FALSE;\t\n\t\t}\n\n\t\t/*\n\t\t * Is getimagesize() Available?\n\t\t *\n\t\t * We use it to determine the image properties (width/height).\n\t\t * Note:  We need to figure out how to determine image\n\t\t * properties using ImageMagick and NetPBM\n\t\t *\n\t\t */\n\t\tif ( ! function_exists('getimagesize'))\n\t\t{\n\t\t\t$this->set_error('imglib_gd_required_for_props');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$this->image_library = strtolower($this->image_library);\n\n\t\t/*\n\t\t * Set the full server path\n\t\t *\n\t\t * The source image may or may not contain a path.\n\t\t * Either way, we'll try use realpath to generate the\n\t\t * full server path in order to more reliably read it.\n\t\t *\n\t\t */\n\t\tif (function_exists('realpath') AND @realpath($this->source_image) !== FALSE)\n\t\t{\n\t\t\t$full_source_path = str_replace(\"\\\\\", \"/\", realpath($this->source_image));\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$full_source_path = $this->source_image;\n\t\t}\n\n\t\t$x = explode('/', $full_source_path);\n\t\t$this->source_image = end($x);\n\t\t$this->source_folder = str_replace($this->source_image, '', $full_source_path);\n\n\t\t// Set the Image Properties\n\t\tif ( ! $this->get_image_properties($this->source_folder.$this->source_image))\n\t\t{\n\t\t\treturn FALSE;\t\n\t\t}\n\n\t\t/*\n\t\t * Assign the \"new\" image name/path\n\t\t *\n\t\t * If the user has set a \"new_image\" name it means\n\t\t * we are making a copy of the source image. If not\n\t\t * it means we are altering the original.  We'll\n\t\t * set the destination filename and path accordingly.\n\t\t *\n\t\t */\n\t\tif ($this->new_image == '')\n\t\t{\n\t\t\t$this->dest_image = $this->source_image;\n\t\t\t$this->dest_folder = $this->source_folder;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (strpos($this->new_image, '/') === FALSE AND strpos($this->new_image, '\\\\') === FALSE)\n\t\t\t{\n\t\t\t\t$this->dest_folder = $this->source_folder;\n\t\t\t\t$this->dest_image = $this->new_image;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (function_exists('realpath') AND @realpath($this->new_image) !== FALSE)\n\t\t\t\t{\n\t\t\t\t\t$full_dest_path = str_replace(\"\\\\\", \"/\", realpath($this->new_image));\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$full_dest_path = $this->new_image;\n\t\t\t\t}\n\n\t\t\t\t// Is there a file name?\n\t\t\t\tif ( ! preg_match(\"#\\.(jpg|jpeg|gif|png)$#i\", $full_dest_path))\n\t\t\t\t{\n\t\t\t\t\t$this->dest_folder = $full_dest_path.'/';\n\t\t\t\t\t$this->dest_image = $this->source_image;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$x = explode('/', $full_dest_path);\n\t\t\t\t\t$this->dest_image = end($x);\n\t\t\t\t\t$this->dest_folder = str_replace($this->dest_image, '', $full_dest_path);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Compile the finalized filenames/paths\n\t\t *\n\t\t * We'll create two master strings containing the\n\t\t * full server path to the source image and the\n\t\t * full server path to the destination image.\n\t\t * We'll also split the destination image name\n\t\t * so we can insert the thumbnail marker if needed.\n\t\t *\n\t\t */\n\t\tif ($this->create_thumb === FALSE OR $this->thumb_marker == '')\n\t\t{\n\t\t\t$this->thumb_marker = '';\n\t\t}\n\n\t\t$xp\t= $this->explode_name($this->dest_image);\n\n\t\t$filename = $xp['name'];\n\t\t$file_ext = $xp['ext'];\n\n\t\t$this->full_src_path = $this->source_folder.$this->source_image;\n\t\t$this->full_dst_path = $this->dest_folder.$filename.$this->thumb_marker.$file_ext;\n\n\t\t/*\n\t\t * Should we maintain image proportions?\n\t\t *\n\t\t * When creating thumbs or copies, the target width/height\n\t\t * might not be in correct proportion with the source\n\t\t * image's width/height.  We'll recalculate it here.\n\t\t *\n\t\t */\n\t\tif ($this->maintain_ratio === TRUE && ($this->width != '' AND $this->height != ''))\n\t\t{\n\t\t\t$this->image_reproportion();\n\t\t}\n\n\t\t/*\n\t\t * Was a width and height specified?\n\t\t *\n\t\t * If the destination width/height was\n\t\t * not submitted we will use the values\n\t\t * from the actual file\n\t\t *\n\t\t */\n\t\tif ($this->width == '')\n\t\t\t$this->width = $this->orig_width;\n\n\t\tif ($this->height == '')\n\t\t\t$this->height = $this->orig_height;\n\n\t\t// Set the quality\n\t\t$this->quality = trim(str_replace(\"%\", \"\", $this->quality));\n\n\t\tif ($this->quality == '' OR $this->quality == 0 OR ! is_numeric($this->quality))\n\t\t\t$this->quality = 90;\n\n\t\t// Set the x/y coordinates\n\t\t$this->x_axis = ($this->x_axis == '' OR ! is_numeric($this->x_axis)) ? 0 : $this->x_axis;\n\t\t$this->y_axis = ($this->y_axis == '' OR ! is_numeric($this->y_axis)) ? 0 : $this->y_axis;\n\n\t\t// Watermark-related Stuff...\n\t\tif ($this->wm_font_color != '')\n\t\t{\n\t\t\tif (strlen($this->wm_font_color) == 6)\n\t\t\t{\n\t\t\t\t$this->wm_font_color = '#'.$this->wm_font_color;\n\t\t\t}\n\t\t}\n\n\t\tif ($this->wm_shadow_color != '')\n\t\t{\n\t\t\tif (strlen($this->wm_shadow_color) == 6)\n\t\t\t{\n\t\t\t\t$this->wm_shadow_color = '#'.$this->wm_shadow_color;\n\t\t\t}\n\t\t}\n\n\t\tif ($this->wm_overlay_path != '')\n\t\t{\n\t\t\t$this->wm_overlay_path = str_replace(\"\\\\\", \"/\", realpath($this->wm_overlay_path));\n\t\t}\n\n\t\tif ($this->wm_shadow_color != '')\n\t\t{\n\t\t\t$this->wm_use_drop_shadow = TRUE;\n\t\t}\n\n\t\tif ($this->wm_font_path != '')\n\t\t{\n\t\t\t$this->wm_use_truetype = TRUE;\n\t\t}\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Image Resize\n\t *\n\t * This is a wrapper function that chooses the proper\n\t * resize function based on the protocol specified\n\t *\n\t * @access\tpublic\n\t * @return\tbool\n\t */\n\tfunction resize()\n\t{\n\t\t$protocol = 'image_process_'.$this->image_library;\n\n\t\tif (preg_match('/gd2$/i', $protocol))\n\t\t{\n\t\t\t$protocol = 'image_process_gd';\n\t\t}\n\n\t\treturn $this->$protocol('resize');\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Image Crop\n\t *\n\t * This is a wrapper function that chooses the proper\n\t * cropping function based on the protocol specified\n\t *\n\t * @access\tpublic\n\t * @return\tbool\n\t */\n\tfunction crop()\n\t{\n\t\t$protocol = 'image_process_'.$this->image_library;\n\n\t\tif (preg_match('/gd2$/i', $protocol))\n\t\t{\n\t\t\t$protocol = 'image_process_gd';\n\t\t}\n\n\t\treturn $this->$protocol('crop');\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Image Rotate\n\t *\n\t * This is a wrapper function that chooses the proper\n\t * rotation function based on the protocol specified\n\t *\n\t * @access\tpublic\n\t * @return\tbool\n\t */\n\tfunction rotate()\n\t{\n\t\t// Allowed rotation values\n\t\t$degs = array(90, 180, 270, 'vrt', 'hor');\n\n\t\tif ($this->rotation_angle == '' OR ! in_array($this->rotation_angle, $degs))\n\t\t{\n\t\t\t$this->set_error('imglib_rotation_angle_required');\n\t\t\treturn FALSE;\t\n\t\t}\n\n\t\t// Reassign the width and height\n\t\tif ($this->rotation_angle == 90 OR $this->rotation_angle == 270)\n\t\t{\n\t\t\t$this->width\t= $this->orig_height;\n\t\t\t$this->height\t= $this->orig_width;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->width\t= $this->orig_width;\n\t\t\t$this->height\t= $this->orig_height;\n\t\t}\n\n\n\t\t// Choose resizing function\n\t\tif ($this->image_library == 'imagemagick' OR $this->image_library == 'netpbm')\n\t\t{\n\t\t\t$protocol = 'image_process_'.$this->image_library;\n\n\t\t\treturn $this->$protocol('rotate');\n\t\t}\n\n\t\tif ($this->rotation_angle == 'hor' OR $this->rotation_angle == 'vrt')\n\t\t{\n\t\t\treturn $this->image_mirror_gd();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->image_rotate_gd();\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Image Process Using GD/GD2\n\t *\n\t * This function will resize or crop\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tbool\n\t */\n\tfunction image_process_gd($action = 'resize')\n\t{\n\t\t$v2_override = FALSE;\n\n\t\t// If the target width/height match the source, AND if the new file name is not equal to the old file name\n\t\t// we'll simply make a copy of the original with the new name... assuming dynamic rendering is off.\n\t\tif ($this->dynamic_output === FALSE)\n\t\t{\n\t\t\tif ($this->orig_width == $this->width AND $this->orig_height == $this->height)\n\t\t\t{\n\t\t\t\tif ($this->source_image != $this->new_image)\n\t\t\t\t{\n\t\t\t\t\tif (@copy($this->full_src_path, $this->full_dst_path))\n\t\t\t\t\t{\n\t\t\t\t\t\t@chmod($this->full_dst_path, FILE_WRITE_MODE);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\n\t\t// Let's set up our values based on the action\n\t\tif ($action == 'crop')\n\t\t{\n\t\t\t//  Reassign the source width/height if cropping\n\t\t\t$this->orig_width  = $this->width;\n\t\t\t$this->orig_height = $this->height;\n\n\t\t\t// GD 2.0 has a cropping bug so we'll test for it\n\t\t\tif ($this->gd_version() !== FALSE)\n\t\t\t{\n\t\t\t\t$gd_version = str_replace('0', '', $this->gd_version());\n\t\t\t\t$v2_override = ($gd_version == 2) ? TRUE : FALSE;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// If resizing the x/y axis must be zero\n\t\t\t$this->x_axis = 0;\n\t\t\t$this->y_axis = 0;\n\t\t}\n\n\t\t//  Create the image handle\n\t\tif ( ! ($src_img = $this->image_create_gd()))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t//  Create The Image\n\t\t//\n\t\t//  old conditional which users report cause problems with shared GD libs who report themselves as \"2.0 or greater\"\n\t\t//  it appears that this is no longer the issue that it was in 2004, so we've removed it, retaining it in the comment\n\t\t//  below should that ever prove inaccurate.\n\t\t//\n\t\t//  if ($this->image_library == 'gd2' AND function_exists('imagecreatetruecolor') AND $v2_override == FALSE)\n\t\tif ($this->image_library == 'gd2' AND function_exists('imagecreatetruecolor'))\n\t\t{\n\t\t\t$create\t= 'imagecreatetruecolor';\n\t\t\t$copy\t= 'imagecopyresampled';\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$create\t= 'imagecreate';\n\t\t\t$copy\t= 'imagecopyresized';\n\t\t}\n\n\t\t$dst_img = $create($this->width, $this->height);\n\n\t\tif ($this->image_type == 3) // png we can actually preserve transparency\n\t\t{\n\t\t\timagealphablending($dst_img, FALSE);\n\t\t\timagesavealpha($dst_img, TRUE);\n\t\t}\n\n\t\t$copy($dst_img, $src_img, 0, 0, $this->x_axis, $this->y_axis, $this->width, $this->height, $this->orig_width, $this->orig_height);\n\n\t\t//  Show the image\n\t\tif ($this->dynamic_output == TRUE)\n\t\t{\n\t\t\t$this->image_display_gd($dst_img);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Or save it\n\t\t\tif ( ! $this->image_save_gd($dst_img))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t//  Kill the file handles\n\t\timagedestroy($dst_img);\n\t\timagedestroy($src_img);\n\n\t\t// Set the file to 777\n\t\t@chmod($this->full_dst_path, FILE_WRITE_MODE);\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Image Process Using ImageMagick\n\t *\n\t * This function will resize, crop or rotate\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tbool\n\t */\n\tfunction image_process_imagemagick($action = 'resize')\n\t{\n\t\t//  Do we have a vaild library path?\n\t\tif ($this->library_path == '')\n\t\t{\n\t\t\t$this->set_error('imglib_libpath_invalid');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif ( ! preg_match(\"/convert$/i\", $this->library_path))\n\t\t{\n\t\t\t$this->library_path = rtrim($this->library_path, '/').'/';\n\n\t\t\t$this->library_path .= 'convert';\n\t\t}\n\n\t\t// Execute the command\n\t\t$cmd = $this->library_path.\" -quality \".$this->quality;\n\n\t\tif ($action == 'crop')\n\t\t{\n\t\t\t$cmd .= \" -crop \".$this->width.\"x\".$this->height.\"+\".$this->x_axis.\"+\".$this->y_axis.\" \\\"$this->full_src_path\\\" \\\"$this->full_dst_path\\\" 2>&1\";\n\t\t}\n\t\telseif ($action == 'rotate')\n\t\t{\n\t\t\tswitch ($this->rotation_angle)\n\t\t\t{\n\t\t\t\tcase 'hor'\t: $angle = '-flop';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'vrt'\t: $angle = '-flip';\n\t\t\t\t\tbreak;\n\t\t\t\tdefault\t\t: $angle = '-rotate '.$this->rotation_angle;\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$cmd .= \" \".$angle.\" \\\"$this->full_src_path\\\" \\\"$this->full_dst_path\\\" 2>&1\";\n\t\t}\n\t\telse  // Resize\n\t\t{\n\t\t\t$cmd .= \" -resize \".$this->width.\"x\".$this->height.\" \\\"$this->full_src_path\\\" \\\"$this->full_dst_path\\\" 2>&1\";\n\t\t}\n\n\t\t$retval = 1;\n\n\t\t@exec($cmd, $output, $retval);\n\n\t\t//\tDid it work?\n\t\tif ($retval > 0)\n\t\t{\n\t\t\t$this->set_error('imglib_image_process_failed');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Set the file to 777\n\t\t@chmod($this->full_dst_path, FILE_WRITE_MODE);\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Image Process Using NetPBM\n\t *\n\t * This function will resize, crop or rotate\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tbool\n\t */\n\tfunction image_process_netpbm($action = 'resize')\n\t{\n\t\tif ($this->library_path == '')\n\t\t{\n\t\t\t$this->set_error('imglib_libpath_invalid');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t//  Build the resizing command\n\t\tswitch ($this->image_type)\n\t\t{\n\t\t\tcase 1 :\n\t\t\t\t\t\t$cmd_in\t\t= 'giftopnm';\n\t\t\t\t\t\t$cmd_out\t= 'ppmtogif';\n\t\t\t\tbreak;\n\t\t\tcase 2 :\n\t\t\t\t\t\t$cmd_in\t\t= 'jpegtopnm';\n\t\t\t\t\t\t$cmd_out\t= 'ppmtojpeg';\n\t\t\t\tbreak;\n\t\t\tcase 3 :\n\t\t\t\t\t\t$cmd_in\t\t= 'pngtopnm';\n\t\t\t\t\t\t$cmd_out\t= 'ppmtopng';\n\t\t\t\tbreak;\n\t\t}\n\n\t\tif ($action == 'crop')\n\t\t{\n\t\t\t$cmd_inner = 'pnmcut -left '.$this->x_axis.' -top '.$this->y_axis.' -width '.$this->width.' -height '.$this->height;\n\t\t}\n\t\telseif ($action == 'rotate')\n\t\t{\n\t\t\tswitch ($this->rotation_angle)\n\t\t\t{\n\t\t\t\tcase 90\t\t:\t$angle = 'r270';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 180\t:\t$angle = 'r180';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 270\t:\t$angle = 'r90';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'vrt'\t:\t$angle = 'tb';\n\t\t\t\t\tbreak;\n\t\t\t\tcase 'hor'\t:\t$angle = 'lr';\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t$cmd_inner = 'pnmflip -'.$angle.' ';\n\t\t}\n\t\telse // Resize\n\t\t{\n\t\t\t$cmd_inner = 'pnmscale -xysize '.$this->width.' '.$this->height;\n\t\t}\n\n\t\t$cmd = $this->library_path.$cmd_in.' '.$this->full_src_path.' | '.$cmd_inner.' | '.$cmd_out.' > '.$this->dest_folder.'netpbm.tmp';\n\n\t\t$retval = 1;\n\n\t\t@exec($cmd, $output, $retval);\n\n\t\t//  Did it work?\n\t\tif ($retval > 0)\n\t\t{\n\t\t\t$this->set_error('imglib_image_process_failed');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// With NetPBM we have to create a temporary image.\n\t\t// If you try manipulating the original it fails so\n\t\t// we have to rename the temp file.\n\t\tcopy ($this->dest_folder.'netpbm.tmp', $this->full_dst_path);\n\t\tunlink ($this->dest_folder.'netpbm.tmp');\n\t\t@chmod($this->full_dst_path, FILE_WRITE_MODE);\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Image Rotate Using GD\n\t *\n\t * @access\tpublic\n\t * @return\tbool\n\t */\n\tfunction image_rotate_gd()\n\t{\n\t\t//  Create the image handle\n\t\tif ( ! ($src_img = $this->image_create_gd()))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Set the background color\n\t\t// This won't work with transparent PNG files so we are\n\t\t// going to have to figure out how to determine the color\n\t\t// of the alpha channel in a future release.\n\n\t\t$white\t= imagecolorallocate($src_img, 255, 255, 255);\n\n\t\t//  Rotate it!\n\t\t$dst_img = imagerotate($src_img, $this->rotation_angle, $white);\n\n\t\t//  Save the Image\n\t\tif ($this->dynamic_output == TRUE)\n\t\t{\n\t\t\t$this->image_display_gd($dst_img);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Or save it\n\t\t\tif ( ! $this->image_save_gd($dst_img))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t//  Kill the file handles\n\t\timagedestroy($dst_img);\n\t\timagedestroy($src_img);\n\n\t\t// Set the file to 777\n\n\t\t@chmod($this->full_dst_path, FILE_WRITE_MODE);\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Create Mirror Image using GD\n\t *\n\t * This function will flip horizontal or vertical\n\t *\n\t * @access\tpublic\n\t * @return\tbool\n\t */\n\tfunction image_mirror_gd()\n\t{\n\t\tif ( ! $src_img = $this->image_create_gd())\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$width  = $this->orig_width;\n\t\t$height = $this->orig_height;\n\n\t\tif ($this->rotation_angle == 'hor')\n\t\t{\n\t\t\tfor ($i = 0; $i < $height; $i++)\n\t\t\t{\n\t\t\t\t$left  = 0;\n\t\t\t\t$right = $width-1;\n\n\t\t\t\twhile ($left < $right)\n\t\t\t\t{\n\t\t\t\t\t$cl = imagecolorat($src_img, $left, $i);\n\t\t\t\t\t$cr = imagecolorat($src_img, $right, $i);\n\n\t\t\t\t\timagesetpixel($src_img, $left, $i, $cr);\n\t\t\t\t\timagesetpixel($src_img, $right, $i, $cl);\n\n\t\t\t\t\t$left++;\n\t\t\t\t\t$right--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfor ($i = 0; $i < $width; $i++)\n\t\t\t{\n\t\t\t\t$top = 0;\n\t\t\t\t$bot = $height-1;\n\n\t\t\t\twhile ($top < $bot)\n\t\t\t\t{\n\t\t\t\t\t$ct = imagecolorat($src_img, $i, $top);\n\t\t\t\t\t$cb = imagecolorat($src_img, $i, $bot);\n\n\t\t\t\t\timagesetpixel($src_img, $i, $top, $cb);\n\t\t\t\t\timagesetpixel($src_img, $i, $bot, $ct);\n\n\t\t\t\t\t$top++;\n\t\t\t\t\t$bot--;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//  Show the image\n\t\tif ($this->dynamic_output == TRUE)\n\t\t{\n\t\t\t$this->image_display_gd($src_img);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Or save it\n\t\t\tif ( ! $this->image_save_gd($src_img))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t//  Kill the file handles\n\t\timagedestroy($src_img);\n\n\t\t// Set the file to 777\n\t\t@chmod($this->full_dst_path, FILE_WRITE_MODE);\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Image Watermark\n\t *\n\t * This is a wrapper function that chooses the type\n\t * of watermarking based on the specified preference.\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tbool\n\t */\n\tfunction watermark()\n\t{\n\t\tif ($this->wm_type == 'overlay')\n\t\t{\n\t\t\treturn $this->overlay_watermark();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $this->text_watermark();\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Watermark - Graphic Version\n\t *\n\t * @access\tpublic\n\t * @return\tbool\n\t */\n\tfunction overlay_watermark()\n\t{\n\t\tif ( ! function_exists('imagecolortransparent'))\n\t\t{\n\t\t\t$this->set_error('imglib_gd_required');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t//  Fetch source image properties\n\t\t$this->get_image_properties();\n\n\t\t//  Fetch watermark image properties\n\t\t$props\t\t\t= $this->get_image_properties($this->wm_overlay_path, TRUE);\n\t\t$wm_img_type\t= $props['image_type'];\n\t\t$wm_width\t\t= $props['width'];\n\t\t$wm_height\t\t= $props['height'];\n\n\t\t//  Create two image resources\n\t\t$wm_img  = $this->image_create_gd($this->wm_overlay_path, $wm_img_type);\n\t\t$src_img = $this->image_create_gd($this->full_src_path);\n\n\t\t// Reverse the offset if necessary\n\t\t// When the image is positioned at the bottom\n\t\t// we don't want the vertical offset to push it\n\t\t// further down.  We want the reverse, so we'll\n\t\t// invert the offset.  Same with the horizontal\n\t\t// offset when the image is at the right\n\n\t\t$this->wm_vrt_alignment = strtoupper(substr($this->wm_vrt_alignment, 0, 1));\n\t\t$this->wm_hor_alignment = strtoupper(substr($this->wm_hor_alignment, 0, 1));\n\n\t\tif ($this->wm_vrt_alignment == 'B')\n\t\t\t$this->wm_vrt_offset = $this->wm_vrt_offset * -1;\n\n\t\tif ($this->wm_hor_alignment == 'R')\n\t\t\t$this->wm_hor_offset = $this->wm_hor_offset * -1;\n\n\t\t//  Set the base x and y axis values\n\t\t$x_axis = $this->wm_hor_offset + $this->wm_padding;\n\t\t$y_axis = $this->wm_vrt_offset + $this->wm_padding;\n\n\t\t//  Set the vertical position\n\t\tswitch ($this->wm_vrt_alignment)\n\t\t{\n\t\t\tcase 'T':\n\t\t\t\tbreak;\n\t\t\tcase 'M':\t$y_axis += ($this->orig_height / 2) - ($wm_height / 2);\n\t\t\t\tbreak;\n\t\t\tcase 'B':\t$y_axis += $this->orig_height - $wm_height;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//  Set the horizontal position\n\t\tswitch ($this->wm_hor_alignment)\n\t\t{\n\t\t\tcase 'L':\n\t\t\t\tbreak;\n\t\t\tcase 'C':\t$x_axis += ($this->orig_width / 2) - ($wm_width / 2);\n\t\t\t\tbreak;\n\t\t\tcase 'R':\t$x_axis += $this->orig_width - $wm_width;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//  Build the finalized image\n\t\tif ($wm_img_type == 3 AND function_exists('imagealphablending'))\n\t\t{\n\t\t\t@imagealphablending($src_img, TRUE);\n\t\t}\n\n\t\t// Set RGB values for text and shadow\n\t\t$rgba = imagecolorat($wm_img, $this->wm_x_transp, $this->wm_y_transp);\n\t\t$alpha = ($rgba & 0x7F000000) >> 24;\n\n\t\t// make a best guess as to whether we're dealing with an image with alpha transparency or no/binary transparency\n\t\tif ($alpha > 0)\n\t\t{\n\t\t\t// copy the image directly, the image's alpha transparency being the sole determinant of blending\n\t\t\timagecopy($src_img, $wm_img, $x_axis, $y_axis, 0, 0, $wm_width, $wm_height);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// set our RGB value from above to be transparent and merge the images with the specified opacity\n\t\t\timagecolortransparent($wm_img, imagecolorat($wm_img, $this->wm_x_transp, $this->wm_y_transp));\n\t\t\timagecopymerge($src_img, $wm_img, $x_axis, $y_axis, 0, 0, $wm_width, $wm_height, $this->wm_opacity);\n\t\t}\n\n\t\t//  Output the image\n\t\tif ($this->dynamic_output == TRUE)\n\t\t{\n\t\t\t$this->image_display_gd($src_img);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ( ! $this->image_save_gd($src_img))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\timagedestroy($src_img);\n\t\timagedestroy($wm_img);\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Watermark - Text Version\n\t *\n\t * @access\tpublic\n\t * @return\tbool\n\t */\n\tfunction text_watermark()\n\t{\n\t\tif ( ! ($src_img = $this->image_create_gd()))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif ($this->wm_use_truetype == TRUE AND ! file_exists($this->wm_font_path))\n\t\t{\n\t\t\t$this->set_error('imglib_missing_font');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t//  Fetch source image properties\n\t\t$this->get_image_properties();\n\n\t\t// Set RGB values for text and shadow\n\t\t$this->wm_font_color\t= str_replace('#', '', $this->wm_font_color);\n\t\t$this->wm_shadow_color\t= str_replace('#', '', $this->wm_shadow_color);\n\n\t\t$R1 = hexdec(substr($this->wm_font_color, 0, 2));\n\t\t$G1 = hexdec(substr($this->wm_font_color, 2, 2));\n\t\t$B1 = hexdec(substr($this->wm_font_color, 4, 2));\n\n\t\t$R2 = hexdec(substr($this->wm_shadow_color, 0, 2));\n\t\t$G2 = hexdec(substr($this->wm_shadow_color, 2, 2));\n\t\t$B2 = hexdec(substr($this->wm_shadow_color, 4, 2));\n\n\t\t$txt_color\t= imagecolorclosest($src_img, $R1, $G1, $B1);\n\t\t$drp_color\t= imagecolorclosest($src_img, $R2, $G2, $B2);\n\n\t\t// Reverse the vertical offset\n\t\t// When the image is positioned at the bottom\n\t\t// we don't want the vertical offset to push it\n\t\t// further down.  We want the reverse, so we'll\n\t\t// invert the offset.  Note: The horizontal\n\t\t// offset flips itself automatically\n\n\t\tif ($this->wm_vrt_alignment == 'B')\n\t\t\t$this->wm_vrt_offset = $this->wm_vrt_offset * -1;\n\n\t\tif ($this->wm_hor_alignment == 'R')\n\t\t\t$this->wm_hor_offset = $this->wm_hor_offset * -1;\n\n\t\t// Set font width and height\n\t\t// These are calculated differently depending on\n\t\t// whether we are using the true type font or not\n\t\tif ($this->wm_use_truetype == TRUE)\n\t\t{\n\t\t\tif ($this->wm_font_size == '')\n\t\t\t\t$this->wm_font_size = '17';\n\n\t\t\t$fontwidth  = $this->wm_font_size-($this->wm_font_size/4);\n\t\t\t$fontheight = $this->wm_font_size;\n\t\t\t$this->wm_vrt_offset += $this->wm_font_size;\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$fontwidth  = imagefontwidth($this->wm_font_size);\n\t\t\t$fontheight = imagefontheight($this->wm_font_size);\n\t\t}\n\n\t\t// Set base X and Y axis values\n\t\t$x_axis = $this->wm_hor_offset + $this->wm_padding;\n\t\t$y_axis = $this->wm_vrt_offset + $this->wm_padding;\n\n\t\t// Set verticle alignment\n\t\tif ($this->wm_use_drop_shadow == FALSE)\n\t\t\t$this->wm_shadow_distance = 0;\n\n\t\t$this->wm_vrt_alignment = strtoupper(substr($this->wm_vrt_alignment, 0, 1));\n\t\t$this->wm_hor_alignment = strtoupper(substr($this->wm_hor_alignment, 0, 1));\n\n\t\tswitch ($this->wm_vrt_alignment)\n\t\t{\n\t\t\tcase\t \"T\" :\n\t\t\t\tbreak;\n\t\t\tcase \"M\":\t$y_axis += ($this->orig_height/2)+($fontheight/2);\n\t\t\t\tbreak;\n\t\t\tcase \"B\":\t$y_axis += ($this->orig_height - $fontheight - $this->wm_shadow_distance - ($fontheight/2));\n\t\t\t\tbreak;\n\t\t}\n\n\t\t$x_shad = $x_axis + $this->wm_shadow_distance;\n\t\t$y_shad = $y_axis + $this->wm_shadow_distance;\n\n\t\t// Set horizontal alignment\n\t\tswitch ($this->wm_hor_alignment)\n\t\t{\n\t\t\tcase \"L\":\n\t\t\t\tbreak;\n\t\t\tcase \"R\":\n\t\t\t\t\t\tif ($this->wm_use_drop_shadow)\n\t\t\t\t\t\t\t$x_shad += ($this->orig_width - $fontwidth*strlen($this->wm_text));\n\t\t\t\t\t\t\t$x_axis += ($this->orig_width - $fontwidth*strlen($this->wm_text));\n\t\t\t\tbreak;\n\t\t\tcase \"C\":\n\t\t\t\t\t\tif ($this->wm_use_drop_shadow)\n\t\t\t\t\t\t\t$x_shad += floor(($this->orig_width - $fontwidth*strlen($this->wm_text))/2);\n\t\t\t\t\t\t\t$x_axis += floor(($this->orig_width  -$fontwidth*strlen($this->wm_text))/2);\n\t\t\t\tbreak;\n\t\t}\n\n\t\t//  Add the text to the source image\n\t\tif ($this->wm_use_truetype)\n\t\t{\n\t\t\tif ($this->wm_use_drop_shadow)\n\t\t\t\timagettftext($src_img, $this->wm_font_size, 0, $x_shad, $y_shad, $drp_color, $this->wm_font_path, $this->wm_text);\n\t\t\t\timagettftext($src_img, $this->wm_font_size, 0, $x_axis, $y_axis, $txt_color, $this->wm_font_path, $this->wm_text);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif ($this->wm_use_drop_shadow)\n\t\t\t\timagestring($src_img, $this->wm_font_size, $x_shad, $y_shad, $this->wm_text, $drp_color);\n\t\t\t\timagestring($src_img, $this->wm_font_size, $x_axis, $y_axis, $this->wm_text, $txt_color);\n\t\t}\n\n\t\t//  Output the final image\n\t\tif ($this->dynamic_output == TRUE)\n\t\t{\n\t\t\t$this->image_display_gd($src_img);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$this->image_save_gd($src_img);\n\t\t}\n\n\t\timagedestroy($src_img);\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Create Image - GD\n\t *\n\t * This simply creates an image resource handle\n\t * based on the type of image being processed\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tresource\n\t */\n\tfunction image_create_gd($path = '', $image_type = '')\n\t{\n\t\tif ($path == '')\n\t\t\t$path = $this->full_src_path;\n\n\t\tif ($image_type == '')\n\t\t\t$image_type = $this->image_type;\n\n\n\t\tswitch ($image_type)\n\t\t{\n\t\t\tcase\t 1 :\n\t\t\t\t\t\tif ( ! function_exists('imagecreatefromgif'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->set_error(array('imglib_unsupported_imagecreate', 'imglib_gif_not_supported'));\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn imagecreatefromgif($path);\n\t\t\t\tbreak;\n\t\t\tcase 2 :\n\t\t\t\t\t\tif ( ! function_exists('imagecreatefromjpeg'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->set_error(array('imglib_unsupported_imagecreate', 'imglib_jpg_not_supported'));\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn imagecreatefromjpeg($path);\n\t\t\t\tbreak;\n\t\t\tcase 3 :\n\t\t\t\t\t\tif ( ! function_exists('imagecreatefrompng'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->set_error(array('imglib_unsupported_imagecreate', 'imglib_png_not_supported'));\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\treturn imagecreatefrompng($path);\n\t\t\t\tbreak;\n\n\t\t}\n\n\t\t$this->set_error(array('imglib_unsupported_imagecreate'));\n\t\treturn FALSE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Write image file to disk - GD\n\t *\n\t * Takes an image resource as input and writes the file\n\t * to the specified destination\n\t *\n\t * @access\tpublic\n\t * @param\tresource\n\t * @return\tbool\n\t */\n\tfunction image_save_gd($resource)\n\t{\n\t\tswitch ($this->image_type)\n\t\t{\n\t\t\tcase 1 :\n\t\t\t\t\t\tif ( ! function_exists('imagegif'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->set_error(array('imglib_unsupported_imagecreate', 'imglib_gif_not_supported'));\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( ! @imagegif($resource, $this->full_dst_path))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->set_error('imglib_save_failed');\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2\t:\n\t\t\t\t\t\tif ( ! function_exists('imagejpeg'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->set_error(array('imglib_unsupported_imagecreate', 'imglib_jpg_not_supported'));\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( ! @imagejpeg($resource, $this->full_dst_path, $this->quality))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->set_error('imglib_save_failed');\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3\t:\n\t\t\t\t\t\tif ( ! function_exists('imagepng'))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->set_error(array('imglib_unsupported_imagecreate', 'imglib_png_not_supported'));\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif ( ! @imagepng($resource, $this->full_dst_path))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->set_error('imglib_save_failed');\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault\t\t:\n\t\t\t\t\t\t\t$this->set_error(array('imglib_unsupported_imagecreate'));\n\t\t\t\t\t\t\treturn FALSE;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Dynamically outputs an image\n\t *\n\t * @access\tpublic\n\t * @param\tresource\n\t * @return\tvoid\n\t */\n\tfunction image_display_gd($resource)\n\t{\n\t\theader(\"Content-Disposition: filename={$this->source_image};\");\n\t\theader(\"Content-Type: {$this->mime_type}\");\n\t\theader('Content-Transfer-Encoding: binary');\n\t\theader('Last-Modified: '.gmdate('D, d M Y H:i:s', time()).' GMT');\n\n\t\tswitch ($this->image_type)\n\t\t{\n\t\t\tcase 1\t\t:\timagegif($resource);\n\t\t\t\tbreak;\n\t\t\tcase 2\t\t:\timagejpeg($resource, '', $this->quality);\n\t\t\t\tbreak;\n\t\t\tcase 3\t\t:\timagepng($resource);\n\t\t\t\tbreak;\n\t\t\tdefault\t\t:\techo 'Unable to display the image';\n\t\t\t\tbreak;\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Re-proportion Image Width/Height\n\t *\n\t * When creating thumbs, the desired width/height\n\t * can end up warping the image due to an incorrect\n\t * ratio between the full-sized image and the thumb.\n\t *\n\t * This function lets us re-proportion the width/height\n\t * if users choose to maintain the aspect ratio when resizing.\n\t *\n\t * @access\tpublic\n\t * @return\tvoid\n\t */\n\tfunction image_reproportion()\n\t{\n\t\tif ( ! is_numeric($this->width) OR ! is_numeric($this->height) OR $this->width == 0 OR $this->height == 0)\n\t\t\treturn;\n\n\t\tif ( ! is_numeric($this->orig_width) OR ! is_numeric($this->orig_height) OR $this->orig_width == 0 OR $this->orig_height == 0)\n\t\t\treturn;\n\n\t\t$new_width\t= ceil($this->orig_width*$this->height/$this->orig_height);\n\t\t$new_height\t= ceil($this->width*$this->orig_height/$this->orig_width);\n\n\t\t$ratio = (($this->orig_height/$this->orig_width) - ($this->height/$this->width));\n\n\t\tif ($this->master_dim != 'width' AND $this->master_dim != 'height')\n\t\t{\n\t\t\t$this->master_dim = ($ratio < 0) ? 'width' : 'height';\n\t\t}\n\n\t\tif (($this->width != $new_width) AND ($this->height != $new_height))\n\t\t{\n\t\t\tif ($this->master_dim == 'height')\n\t\t\t{\n\t\t\t\t$this->width = $new_width;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->height = $new_height;\n\t\t\t}\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get image properties\n\t *\n\t * A helper function that gets info about the file\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tmixed\n\t */\n\tfunction get_image_properties($path = '', $return = FALSE)\n\t{\n\t\t// For now we require GD but we should\n\t\t// find a way to determine this using IM or NetPBM\n\n\t\tif ($path == '')\n\t\t\t$path = $this->full_src_path;\n\n\t\tif ( ! file_exists($path))\n\t\t{\n\t\t\t$this->set_error('imglib_invalid_path');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$vals = @getimagesize($path);\n\n\t\t$types = array(1 => 'gif', 2 => 'jpeg', 3 => 'png');\n\n\t\t$mime = (isset($types[$vals['2']])) ? 'image/'.$types[$vals['2']] : 'image/jpg';\n\n\t\tif ($return == TRUE)\n\t\t{\n\t\t\t$v['width']\t\t\t= $vals['0'];\n\t\t\t$v['height']\t\t= $vals['1'];\n\t\t\t$v['image_type']\t= $vals['2'];\n\t\t\t$v['size_str']\t\t= $vals['3'];\n\t\t\t$v['mime_type']\t\t= $mime;\n\n\t\t\treturn $v;\n\t\t}\n\n\t\t$this->orig_width\t= $vals['0'];\n\t\t$this->orig_height\t= $vals['1'];\n\t\t$this->image_type\t= $vals['2'];\n\t\t$this->size_str\t\t= $vals['3'];\n\t\t$this->mime_type\t= $mime;\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Size calculator\n\t *\n\t * This function takes a known width x height and\n\t * recalculates it to a new size.  Only one\n\t * new variable needs to be known\n\t *\n\t *\t$props = array(\n\t *\t\t\t\t\t'width'\t\t\t=> $width,\n\t *\t\t\t\t\t'height'\t\t=> $height,\n\t *\t\t\t\t\t'new_width'\t\t=> 40,\n\t *\t\t\t\t\t'new_height'\t=> ''\n\t *\t\t\t\t  );\n\t *\n\t * @access\tpublic\n\t * @param\tarray\n\t * @return\tarray\n\t */\n\tfunction size_calculator($vals)\n\t{\n\t\tif ( ! is_array($vals))\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\t$allowed = array('new_width', 'new_height', 'width', 'height');\n\n\t\tforeach ($allowed as $item)\n\t\t{\n\t\t\tif ( ! isset($vals[$item]) OR $vals[$item] == '')\n\t\t\t\t$vals[$item] = 0;\n\t\t}\n\n\t\tif ($vals['width'] == 0 OR $vals['height'] == 0)\n\t\t{\n\t\t\treturn $vals;\n\t\t}\n\n\t\tif ($vals['new_width'] == 0)\n\t\t{\n\t\t\t$vals['new_width'] = ceil($vals['width']*$vals['new_height']/$vals['height']);\n\t\t}\n\t\telseif ($vals['new_height'] == 0)\n\t\t{\n\t\t\t$vals['new_height'] = ceil($vals['new_width']*$vals['height']/$vals['width']);\n\t\t}\n\n\t\treturn $vals;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Explode source_image\n\t *\n\t * This is a helper function that extracts the extension\n\t * from the source_image.  This function lets us deal with\n\t * source_images with multiple periods, like:  my.cool.jpg\n\t * It returns an associative array with two elements:\n\t * $array['ext']  = '.jpg';\n\t * $array['name'] = 'my.cool';\n\t *\n\t * @access\tpublic\n\t * @param\tarray\n\t * @return\tarray\n\t */\n\tfunction explode_name($source_image)\n\t{\n\t\t$ext = strrchr($source_image, '.');\n\t\t$name = ($ext === FALSE) ? $source_image : substr($source_image, 0, -strlen($ext));\n\n\t\treturn array('ext' => $ext, 'name' => $name);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Is GD Installed?\n\t *\n\t * @access\tpublic\n\t * @return\tbool\n\t */\n\tfunction gd_loaded()\n\t{\n\t\tif ( ! extension_loaded('gd'))\n\t\t{\n\t\t\tif ( ! dl('gd.so'))\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Get GD version\n\t *\n\t * @access\tpublic\n\t * @return\tmixed\n\t */\n\tfunction gd_version()\n\t{\n\t\tif (function_exists('gd_info'))\n\t\t{\n\t\t\t$gd_version = @gd_info();\n\t\t\t$gd_version = preg_replace(\"/\\D/\", \"\", $gd_version['GD Version']);\n\n\t\t\treturn $gd_version;\n\t\t}\n\n\t\treturn FALSE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set error message\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tfunction set_error($msg)\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->lang->load('imglib');\n\n\t\tif (is_array($msg))\n\t\t{\n\t\t\tforeach ($msg as $val)\n\t\t\t{\n\n\t\t\t\t$msg = ($CI->lang->line($val) == FALSE) ? $val : $CI->lang->line($val);\n\t\t\t\t$this->error_msg[] = $msg;\n\t\t\t\tlog_message('error', $msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = ($CI->lang->line($msg) == FALSE) ? $msg : $CI->lang->line($msg);\n\t\t\t$this->error_msg[] = $msg;\n\t\t\tlog_message('error', $msg);\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Show error messages\n\t *\n\t * @access\tpublic\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tfunction display_errors($open = '<p>', $close = '</p>')\n\t{\n\t\t$str = '';\n\t\tforeach ($this->error_msg as $val)\n\t\t{\n\t\t\t$str .= $open.$val.$close;\n\t\t}\n\n\t\treturn $str;\n\t}\n\n}\n// END Image_lib Class\n\n/* End of file Image_lib.php */\n/* Location: ./system/libraries/Image_lib.php */"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/libraries/Upload.php",
    "content": "<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\n/**\n * CodeIgniter\n *\n * An open source application development framework for PHP 5.1.6 or newer\n *\n * @package\t\tCodeIgniter\n * @author\t\tExpressionEngine Dev Team\n * @copyright\tCopyright (c) 2008 - 2011, EllisLab, Inc.\n * @license\t\thttp://codeigniter.com/user_guide/license.html\n * @link\t\thttp://codeigniter.com\n * @since\t\tVersion 1.0\n * @filesource\n */\n\n// ------------------------------------------------------------------------\n\n/**\n * File Uploading Class\n *\n * @package\t\tCodeIgniter\n * @subpackage\tLibraries\n * @category\tUploads\n * @author\t\tExpressionEngine Dev Team\n * @link\t\thttp://codeigniter.com/user_guide/libraries/file_uploading.html\n */\nclass CI_Upload {\n\n\tpublic $max_size\t\t\t\t= 0;\n\tpublic $max_width\t\t\t\t= 0;\n\tpublic $max_height\t\t\t\t= 0;\n\tpublic $max_filename\t\t\t= 0;\n\tpublic $allowed_types\t\t\t= \"\";\n\tpublic $file_temp\t\t\t\t= \"\";\n\tpublic $file_name\t\t\t\t= \"\";\n\tpublic $orig_name\t\t\t\t= \"\";\n\tpublic $file_type\t\t\t\t= \"\";\n\tpublic $file_size\t\t\t\t= \"\";\n\tpublic $file_ext\t\t\t\t= \"\";\n\tpublic $upload_path\t\t\t\t= \"\";\n\tpublic $overwrite\t\t\t\t= FALSE;\n\tpublic $encrypt_name\t\t\t= FALSE;\n\tpublic $is_image\t\t\t\t= FALSE;\n\tpublic $image_width\t\t\t\t= '';\n\tpublic $image_height\t\t\t= '';\n\tpublic $image_type\t\t\t\t= '';\n\tpublic $image_size_str\t\t\t= '';\n\tpublic $error_msg\t\t\t\t= array();\n\tpublic $mimes\t\t\t\t\t= array();\n\tpublic $remove_spaces\t\t\t= TRUE;\n\tpublic $xss_clean\t\t\t\t= FALSE;\n\tpublic $temp_prefix\t\t\t\t= \"temp_file_\";\n\tpublic $client_name\t\t\t\t= '';\n\n\tprotected $_file_name_override\t= '';\n\n\t/**\n\t * Constructor\n\t *\n\t * @access\tpublic\n\t */\n\tpublic function __construct($props = array())\n\t{\n\t\tif (count($props) > 0)\n\t\t{\n\t\t\t$this->initialize($props);\n\t\t}\n\n\t\tlog_message('debug', \"Upload Class Initialized\");\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Initialize preferences\n\t *\n\t * @param\tarray\n\t * @return\tvoid\n\t */\n\tpublic function initialize($config = array())\n\t{\n\t\t$defaults = array(\n\t\t\t\t\t\t\t'max_size'\t\t\t=> 0,\n\t\t\t\t\t\t\t'max_width'\t\t\t=> 0,\n\t\t\t\t\t\t\t'max_height'\t\t=> 0,\n\t\t\t\t\t\t\t'max_filename'\t\t=> 0,\n\t\t\t\t\t\t\t'allowed_types'\t\t=> \"\",\n\t\t\t\t\t\t\t'file_temp'\t\t\t=> \"\",\n\t\t\t\t\t\t\t'file_name'\t\t\t=> \"\",\n\t\t\t\t\t\t\t'orig_name'\t\t\t=> \"\",\n\t\t\t\t\t\t\t'file_type'\t\t\t=> \"\",\n\t\t\t\t\t\t\t'file_size'\t\t\t=> \"\",\n\t\t\t\t\t\t\t'file_ext'\t\t\t=> \"\",\n\t\t\t\t\t\t\t'upload_path'\t\t=> \"\",\n\t\t\t\t\t\t\t'overwrite'\t\t\t=> FALSE,\n\t\t\t\t\t\t\t'encrypt_name'\t\t=> FALSE,\n\t\t\t\t\t\t\t'is_image'\t\t\t=> FALSE,\n\t\t\t\t\t\t\t'image_width'\t\t=> '',\n\t\t\t\t\t\t\t'image_height'\t\t=> '',\n\t\t\t\t\t\t\t'image_type'\t\t=> '',\n\t\t\t\t\t\t\t'image_size_str'\t=> '',\n\t\t\t\t\t\t\t'error_msg'\t\t\t=> array(),\n\t\t\t\t\t\t\t'mimes'\t\t\t\t=> array(),\n\t\t\t\t\t\t\t'remove_spaces'\t\t=> TRUE,\n\t\t\t\t\t\t\t'xss_clean'\t\t\t=> FALSE,\n\t\t\t\t\t\t\t'temp_prefix'\t\t=> \"temp_file_\",\n\t\t\t\t\t\t\t'client_name'\t\t=> ''\n\t\t\t\t\t\t);\n\n\n\t\tforeach ($defaults as $key => $val)\n\t\t{\n\t\t\tif (isset($config[$key]))\n\t\t\t{\n\t\t\t\t$method = 'set_'.$key;\n\t\t\t\tif (method_exists($this, $method))\n\t\t\t\t{\n\t\t\t\t\t$this->$method($config[$key]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t$this->$key = $config[$key];\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->$key = $val;\n\t\t\t}\n\t\t}\n\n\t\t// if a file_name was provided in the config, use it instead of the user input\n\t\t// supplied file name for all uploads until initialized again\n\t\t$this->_file_name_override = $this->file_name;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Perform the file upload\n\t *\n\t * @return\tbool\n\t */\n\tpublic function do_upload($field = 'userfile')\n\t{\n\n\t// Is $_FILES[$field] set? If not, no reason to continue.\n\t\tif ( ! isset($_FILES[$field]))\n\t\t{\n\t\t\t$this->set_error('upload_no_file_selected');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Is the upload path valid?\n\t\tif ( ! $this->validate_upload_path())\n\t\t{\n\t\t\t// errors will already be set by validate_upload_path() so just return FALSE\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Was the file able to be uploaded? If not, determine the reason why.\n\t\tif ( ! is_uploaded_file($_FILES[$field]['tmp_name']))\n\t\t{\n\t\t\t$error = ( ! isset($_FILES[$field]['error'])) ? 4 : $_FILES[$field]['error'];\n\n\t\t\tswitch($error)\n\t\t\t{\n\t\t\t\tcase 1:\t// UPLOAD_ERR_INI_SIZE\n\t\t\t\t\t$this->set_error('upload_file_exceeds_limit');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: // UPLOAD_ERR_FORM_SIZE\n\t\t\t\t\t$this->set_error('upload_file_exceeds_form_limit');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: // UPLOAD_ERR_PARTIAL\n\t\t\t\t\t$this->set_error('upload_file_partial');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: // UPLOAD_ERR_NO_FILE\n\t\t\t\t\t$this->set_error('upload_no_file_selected');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6: // UPLOAD_ERR_NO_TMP_DIR\n\t\t\t\t\t$this->set_error('upload_no_temp_directory');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 7: // UPLOAD_ERR_CANT_WRITE\n\t\t\t\t\t$this->set_error('upload_unable_to_write_file');\n\t\t\t\t\tbreak;\n\t\t\t\tcase 8: // UPLOAD_ERR_EXTENSION\n\t\t\t\t\t$this->set_error('upload_stopped_by_extension');\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :   $this->set_error('upload_no_file_selected');\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\treturn FALSE;\n\t\t}\n\n\n\t\t// Set the uploaded data as class variables\n\t\t$this->file_temp = $_FILES[$field]['tmp_name'];\n\t\t$this->file_size = $_FILES[$field]['size'];\n\t\t$this->_file_mime_type($_FILES[$field]);\n\t\t$this->file_type = preg_replace(\"/^(.+?);.*$/\", \"\\\\1\", $this->file_type);\n\t\t$this->file_type = strtolower(trim(stripslashes($this->file_type), '\"'));\n\t\t$this->file_name = $this->_prep_filename($_FILES[$field]['name']);\n\t\t$this->file_ext\t = $this->get_extension($this->file_name);\n\t\t$this->client_name = $this->file_name;\n\n\t\t// Is the file type allowed to be uploaded?\n\t\tif ( ! $this->is_allowed_filetype())\n\t\t{\n\t\t\t$this->set_error('upload_invalid_filetype');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// if we're overriding, let's now make sure the new name and type is allowed\n\t\tif ($this->_file_name_override != '')\n\t\t{\n\t\t\t$this->file_name = $this->_prep_filename($this->_file_name_override);\n\n\t\t\t// If no extension was provided in the file_name config item, use the uploaded one\n\t\t\tif (strpos($this->_file_name_override, '.') === FALSE)\n\t\t\t{\n\t\t\t\t$this->file_name .= $this->file_ext;\n\t\t\t}\n\n\t\t\t// An extension was provided, lets have it!\n\t\t\telse\n\t\t\t{\n\t\t\t\t$this->file_ext\t = $this->get_extension($this->_file_name_override);\n\t\t\t}\n\n\t\t\tif ( ! $this->is_allowed_filetype(TRUE))\n\t\t\t{\n\t\t\t\t$this->set_error('upload_invalid_filetype');\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t// Convert the file size to kilobytes\n\t\tif ($this->file_size > 0)\n\t\t{\n\t\t\t$this->file_size = round($this->file_size/1024, 2);\n\t\t}\n\n\t\t// Is the file size within the allowed maximum?\n\t\tif ( ! $this->is_allowed_filesize())\n\t\t{\n\t\t\t$this->set_error('upload_invalid_filesize');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Are the image dimensions within the allowed size?\n\t\t// Note: This can fail if the server has an open_basdir restriction.\n\t\tif ( ! $this->is_allowed_dimensions())\n\t\t{\n\t\t\t$this->set_error('upload_invalid_dimensions');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Sanitize the file name for security\n\t\t$this->file_name = $this->clean_file_name($this->file_name);\n\n\t\t// Truncate the file name if it's too long\n\t\tif ($this->max_filename > 0)\n\t\t{\n\t\t\t$this->file_name = $this->limit_filename_length($this->file_name, $this->max_filename);\n\t\t}\n\n\t\t// Remove white spaces in the name\n\t\tif ($this->remove_spaces == TRUE)\n\t\t{\n\t\t\t$this->file_name = preg_replace(\"/\\s+/\", \"_\", $this->file_name);\n\t\t}\n\n\t\t/*\n\t\t * Validate the file name\n\t\t * This function appends an number onto the end of\n\t\t * the file if one with the same name already exists.\n\t\t * If it returns false there was a problem.\n\t\t */\n\t\t$this->orig_name = $this->file_name;\n\n\t\tif ($this->overwrite == FALSE)\n\t\t{\n\t\t\t$this->file_name = $this->set_filename($this->upload_path, $this->file_name);\n\n\t\t\tif ($this->file_name === FALSE)\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Run the file through the XSS hacking filter\n\t\t * This helps prevent malicious code from being\n\t\t * embedded within a file.  Scripts can easily\n\t\t * be disguised as images or other file types.\n\t\t */\n\t\tif ($this->xss_clean)\n\t\t{\n\t\t\tif ($this->do_xss_clean() === FALSE)\n\t\t\t{\n\t\t\t\t$this->set_error('upload_unable_to_write_file');\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Move the file to the final destination\n\t\t * To deal with different server configurations\n\t\t * we'll attempt to use copy() first.  If that fails\n\t\t * we'll use move_uploaded_file().  One of the two should\n\t\t * reliably work in most environments\n\t\t */\n\t\tif ( ! @copy($this->file_temp, $this->upload_path.$this->file_name))\n\t\t{\n\t\t\tif ( ! @move_uploaded_file($this->file_temp, $this->upload_path.$this->file_name))\n\t\t\t{\n\t\t\t\t$this->set_error('upload_destination_error');\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Set the finalized image dimensions\n\t\t * This sets the image width/height (assuming the\n\t\t * file was an image).  We use this information\n\t\t * in the \"data\" function.\n\t\t */\n\t\t$this->set_image_properties($this->upload_path.$this->file_name);\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Finalized Data Array\n\t *\n\t * Returns an associative array containing all of the information\n\t * related to the upload, allowing the developer easy access in one array.\n\t *\n\t * @return\tarray\n\t */\n\tpublic function data()\n\t{\n\t\treturn array (\n\t\t\t\t\t\t'file_name'\t\t\t=> $this->file_name,\n\t\t\t\t\t\t'file_type'\t\t\t=> $this->file_type,\n\t\t\t\t\t\t'file_path'\t\t\t=> $this->upload_path,\n\t\t\t\t\t\t'full_path'\t\t\t=> $this->upload_path.$this->file_name,\n\t\t\t\t\t\t'raw_name'\t\t\t=> str_replace($this->file_ext, '', $this->file_name),\n\t\t\t\t\t\t'orig_name'\t\t\t=> $this->orig_name,\n\t\t\t\t\t\t'client_name'\t\t=> $this->client_name,\n\t\t\t\t\t\t'file_ext'\t\t\t=> $this->file_ext,\n\t\t\t\t\t\t'file_size'\t\t\t=> $this->file_size,\n\t\t\t\t\t\t'is_image'\t\t\t=> $this->is_image(),\n\t\t\t\t\t\t'image_width'\t\t=> $this->image_width,\n\t\t\t\t\t\t'image_height'\t\t=> $this->image_height,\n\t\t\t\t\t\t'image_type'\t\t=> $this->image_type,\n\t\t\t\t\t\t'image_size_str'\t=> $this->image_size_str,\n\t\t\t\t\t);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Upload Path\n\t *\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tpublic function set_upload_path($path)\n\t{\n\t\t// Make sure it has a trailing slash\n\t\t$this->upload_path = rtrim($path, '/').'/';\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set the file name\n\t *\n\t * This function takes a filename/path as input and looks for the\n\t * existence of a file with the same name. If found, it will append a\n\t * number to the end of the filename to avoid overwriting a pre-existing file.\n\t *\n\t * @param\tstring\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tpublic function set_filename($path, $filename)\n\t{\n\t\tif ($this->encrypt_name == TRUE)\n\t\t{\n\t\t\tmt_srand();\n\t\t\t$filename = md5(uniqid(mt_rand())).$this->file_ext;\n\t\t}\n\n\t\tif ( ! file_exists($path.$filename))\n\t\t{\n\t\t\treturn $filename;\n\t\t}\n\n\t\t$filename = str_replace($this->file_ext, '', $filename);\n\n\t\t$new_filename = '';\n\t\tfor ($i = 1; $i < 100; $i++)\n\t\t{\n\t\t\tif ( ! file_exists($path.$filename.$i.$this->file_ext))\n\t\t\t{\n\t\t\t\t$new_filename = $filename.$i.$this->file_ext;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\t\tif ($new_filename == '')\n\t\t{\n\t\t\t$this->set_error('upload_bad_filename');\n\t\t\treturn FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn $new_filename;\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Maximum File Size\n\t *\n\t * @param\tinteger\n\t * @return\tvoid\n\t */\n\tpublic function set_max_filesize($n)\n\t{\n\t\t$this->max_size = ((int) $n < 0) ? 0: (int) $n;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Maximum File Name Length\n\t *\n\t * @param\tinteger\n\t * @return\tvoid\n\t */\n\tpublic function set_max_filename($n)\n\t{\n\t\t$this->max_filename = ((int) $n < 0) ? 0: (int) $n;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Maximum Image Width\n\t *\n\t * @param\tinteger\n\t * @return\tvoid\n\t */\n\tpublic function set_max_width($n)\n\t{\n\t\t$this->max_width = ((int) $n < 0) ? 0: (int) $n;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Maximum Image Height\n\t *\n\t * @param\tinteger\n\t * @return\tvoid\n\t */\n\tpublic function set_max_height($n)\n\t{\n\t\t$this->max_height = ((int) $n < 0) ? 0: (int) $n;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Allowed File Types\n\t *\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tpublic function set_allowed_types($types)\n\t{\n\t\tif ( ! is_array($types) && $types == '*')\n\t\t{\n\t\t\t$this->allowed_types = '*';\n\t\t\treturn;\n\t\t}\n\t\t$this->allowed_types = explode('|', $types);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set Image Properties\n\t *\n\t * Uses GD to determine the width/height/type of image\n\t *\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tpublic function set_image_properties($path = '')\n\t{\n\t\tif ( ! $this->is_image())\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tif (function_exists('getimagesize'))\n\t\t{\n\t\t\tif (FALSE !== ($D = @getimagesize($path)))\n\t\t\t{\n\t\t\t\t$types = array(1 => 'gif', 2 => 'jpeg', 3 => 'png');\n\n\t\t\t\t$this->image_width\t\t= $D['0'];\n\t\t\t\t$this->image_height\t\t= $D['1'];\n\t\t\t\t$this->image_type\t\t= ( ! isset($types[$D['2']])) ? 'unknown' : $types[$D['2']];\n\t\t\t\t$this->image_size_str\t= $D['3'];  // string containing height and width\n\t\t\t}\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set XSS Clean\n\t *\n\t * Enables the XSS flag so that the file that was uploaded\n\t * will be run through the XSS filter.\n\t *\n\t * @param\tbool\n\t * @return\tvoid\n\t */\n\tpublic function set_xss_clean($flag = FALSE)\n\t{\n\t\t$this->xss_clean = ($flag == TRUE) ? TRUE : FALSE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Validate the image\n\t *\n\t * @return\tbool\n\t */\n\tpublic function is_image()\n\t{\n\t\t// IE will sometimes return odd mime-types during upload, so here we just standardize all\n\t\t// jpegs or pngs to the same file type.\n\n\t\t$png_mimes  = array('image/x-png');\n\t\t$jpeg_mimes = array('image/jpg', 'image/jpe', 'image/jpeg', 'image/pjpeg');\n\n\t\tif (in_array($this->file_type, $png_mimes))\n\t\t{\n\t\t\t$this->file_type = 'image/png';\n\t\t}\n\n\t\tif (in_array($this->file_type, $jpeg_mimes))\n\t\t{\n\t\t\t$this->file_type = 'image/jpeg';\n\t\t}\n\n\t\t$img_mimes = array(\n\t\t\t\t\t\t\t'image/gif',\n\t\t\t\t\t\t\t'image/jpeg',\n\t\t\t\t\t\t\t'image/png',\n\t\t\t\t\t\t);\n\n\t\treturn (in_array($this->file_type, $img_mimes, TRUE)) ? TRUE : FALSE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Verify that the filetype is allowed\n\t *\n\t * @return\tbool\n\t */\n\tpublic function is_allowed_filetype($ignore_mime = FALSE)\n\t{\n\t\tif ($this->allowed_types == '*')\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\n\t\tif (count($this->allowed_types) == 0 OR ! is_array($this->allowed_types))\n\t\t{\n\t\t\t$this->set_error('upload_no_file_types');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$ext = strtolower(ltrim($this->file_ext, '.'));\n\n\t\tif ( ! in_array($ext, $this->allowed_types))\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t// Images get some additional checks\n\t\t$image_types = array('gif', 'jpg', 'jpeg', 'png', 'jpe');\n\n\t\tif (in_array($ext, $image_types))\n\t\t{\n\t\t\tif (getimagesize($this->file_temp) === FALSE)\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\tif ($ignore_mime === TRUE)\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\n\t\t$mime = $this->mimes_types($ext);\n\n\t\tif (is_array($mime))\n\t\t{\n\t\t\tif (in_array($this->file_type, $mime, TRUE))\n\t\t\t{\n\t\t\t\treturn TRUE;\n\t\t\t}\n\t\t}\n\t\telseif ($mime == $this->file_type)\n\t\t{\n\t\t\t\treturn TRUE;\n\t\t}\n\n\t\treturn FALSE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Verify that the file is within the allowed size\n\t *\n\t * @return\tbool\n\t */\n\tpublic function is_allowed_filesize()\n\t{\n\t\tif ($this->max_size != 0  AND  $this->file_size > $this->max_size)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Verify that the image is within the allowed width/height\n\t *\n\t * @return\tbool\n\t */\n\tpublic function is_allowed_dimensions()\n\t{\n\t\tif ( ! $this->is_image())\n\t\t{\n\t\t\treturn TRUE;\n\t\t}\n\n\t\tif (function_exists('getimagesize'))\n\t\t{\n\t\t\t$D = @getimagesize($this->file_temp);\n\n\t\t\tif ($this->max_width > 0 AND $D['0'] > $this->max_width)\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\tif ($this->max_height > 0 AND $D['1'] > $this->max_height)\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\treturn TRUE;\n\t\t}\n\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Validate Upload Path\n\t *\n\t * Verifies that it is a valid upload path with proper permissions.\n\t *\n\t *\n\t * @return\tbool\n\t */\n\tpublic function validate_upload_path()\n\t{\n\t\tif ($this->upload_path == '')\n\t\t{\n\t\t\t$this->set_error('upload_no_filepath');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif (function_exists('realpath') AND @realpath($this->upload_path) !== FALSE)\n\t\t{\n\t\t\t$this->upload_path = str_replace(\"\\\\\", \"/\", realpath($this->upload_path));\n\t\t}\n\n\t\tif ( ! @is_dir($this->upload_path))\n\t\t{\n\t\t\t$this->set_error('upload_no_filepath');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif ( ! is_really_writable($this->upload_path))\n\t\t{\n\t\t\t$this->set_error('upload_not_writable');\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$this->upload_path = preg_replace(\"/(.+?)\\/*$/\", \"\\\\1/\",  $this->upload_path);\n\t\treturn TRUE;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Extract the file extension\n\t *\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tpublic function get_extension($filename)\n\t{\n\t\t$x = explode('.', $filename);\n\t\treturn '.'.end($x);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Clean the file name for security\n\t *\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tpublic function clean_file_name($filename)\n\t{\n\t\t$bad = array(\n\t\t\t\t\t\t\"<!--\",\n\t\t\t\t\t\t\"-->\",\n\t\t\t\t\t\t\"'\",\n\t\t\t\t\t\t\"<\",\n\t\t\t\t\t\t\">\",\n\t\t\t\t\t\t'\"',\n\t\t\t\t\t\t'&',\n\t\t\t\t\t\t'$',\n\t\t\t\t\t\t'=',\n\t\t\t\t\t\t';',\n\t\t\t\t\t\t'?',\n\t\t\t\t\t\t'/',\n\t\t\t\t\t\t\"%20\",\n\t\t\t\t\t\t\"%22\",\n\t\t\t\t\t\t\"%3c\",\t\t// <\n\t\t\t\t\t\t\"%253c\",\t// <\n\t\t\t\t\t\t\"%3e\",\t\t// >\n\t\t\t\t\t\t\"%0e\",\t\t// >\n\t\t\t\t\t\t\"%28\",\t\t// (\n\t\t\t\t\t\t\"%29\",\t\t// )\n\t\t\t\t\t\t\"%2528\",\t// (\n\t\t\t\t\t\t\"%26\",\t\t// &\n\t\t\t\t\t\t\"%24\",\t\t// $\n\t\t\t\t\t\t\"%3f\",\t\t// ?\n\t\t\t\t\t\t\"%3b\",\t\t// ;\n\t\t\t\t\t\t\"%3d\"\t\t// =\n\t\t\t\t\t);\n\n\t\t$filename = str_replace($bad, '', $filename);\n\n\t\treturn stripslashes($filename);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Limit the File Name Length\n\t *\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tpublic function limit_filename_length($filename, $length)\n\t{\n\t\tif (strlen($filename) < $length)\n\t\t{\n\t\t\treturn $filename;\n\t\t}\n\n\t\t$ext = '';\n\t\tif (strpos($filename, '.') !== FALSE)\n\t\t{\n\t\t\t$parts\t\t= explode('.', $filename);\n\t\t\t$ext\t\t= '.'.array_pop($parts);\n\t\t\t$filename\t= implode('.', $parts);\n\t\t}\n\n\t\treturn substr($filename, 0, ($length - strlen($ext))).$ext;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Runs the file through the XSS clean function\n\t *\n\t * This prevents people from embedding malicious code in their files.\n\t * I'm not sure that it won't negatively affect certain files in unexpected ways,\n\t * but so far I haven't found that it causes trouble.\n\t *\n\t * @return\tvoid\n\t */\n\tpublic function do_xss_clean()\n\t{\n\t\t$file = $this->file_temp;\n\n\t\tif (filesize($file) == 0)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\tif (function_exists('memory_get_usage') && memory_get_usage() && ini_get('memory_limit') != '')\n\t\t{\n\t\t\t$current = ini_get('memory_limit') * 1024 * 1024;\n\n\t\t\t// There was a bug/behavioural change in PHP 5.2, where numbers over one million get output\n\t\t\t// into scientific notation.  number_format() ensures this number is an integer\n\t\t\t// http://bugs.php.net/bug.php?id=43053\n\n\t\t\t$new_memory = number_format(ceil(filesize($file) + $current), 0, '.', '');\n\n\t\t\tini_set('memory_limit', $new_memory); // When an integer is used, the value is measured in bytes. - PHP.net\n\t\t}\n\n\t\t// If the file being uploaded is an image, then we should have no problem with XSS attacks (in theory), but\n\t\t// IE can be fooled into mime-type detecting a malformed image as an html file, thus executing an XSS attack on anyone\n\t\t// using IE who looks at the image.  It does this by inspecting the first 255 bytes of an image.  To get around this\n\t\t// CI will itself look at the first 255 bytes of an image to determine its relative safety.  This can save a lot of\n\t\t// processor power and time if it is actually a clean image, as it will be in nearly all instances _except_ an\n\t\t// attempted XSS attack.\n\n\t\tif (function_exists('getimagesize') && @getimagesize($file) !== FALSE)\n\t\t{\n\t\t\tif (($file = @fopen($file, 'rb')) === FALSE) // \"b\" to force binary\n\t\t\t{\n\t\t\t\treturn FALSE; // Couldn't open the file, return FALSE\n\t\t\t}\n\n\t\t\t$opening_bytes = fread($file, 256);\n\t\t\tfclose($file);\n\n\t\t\t// These are known to throw IE into mime-type detection chaos\n\t\t\t// <a, <body, <head, <html, <img, <plaintext, <pre, <script, <table, <title\n\t\t\t// title is basically just in SVG, but we filter it anyhow\n\n\t\t\tif ( ! preg_match('/<(a|body|head|html|img|plaintext|pre|script|table|title)[\\s>]/i', $opening_bytes))\n\t\t\t{\n\t\t\t\treturn TRUE; // its an image, no \"triggers\" detected in the first 256 bytes, we're good\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\t\t}\n\n\t\tif (($data = @file_get_contents($file)) === FALSE)\n\t\t{\n\t\t\treturn FALSE;\n\t\t}\n\n\t\t$CI =& get_instance();\n\t\treturn $CI->security->xss_clean($data, TRUE);\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Set an error message\n\t *\n\t * @param\tstring\n\t * @return\tvoid\n\t */\n\tpublic function set_error($msg)\n\t{\n\t\t$CI =& get_instance();\n\t\t$CI->lang->load('upload');\n\n\t\tif (is_array($msg))\n\t\t{\n\t\t\tforeach ($msg as $val)\n\t\t\t{\n\t\t\t\t$msg = ($CI->lang->line($val) == FALSE) ? $val : $CI->lang->line($val);\n\t\t\t\t$this->error_msg[] = $msg;\n\t\t\t\tlog_message('error', $msg);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t$msg = ($CI->lang->line($msg) == FALSE) ? $msg : $CI->lang->line($msg);\n\t\t\t$this->error_msg[] = $msg;\n\t\t\tlog_message('error', $msg);\n\t\t}\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Display the error message\n\t *\n\t * @param\tstring\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tpublic function display_errors($open = '<p>', $close = '</p>')\n\t{\n\t\t$str = '';\n\t\tforeach ($this->error_msg as $val)\n\t\t{\n\t\t\t$str .= $open.$val.$close;\n\t\t}\n\n\t\treturn $str;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * List of Mime Types\n\t *\n\t * This is a list of mime types.  We use it to validate\n\t * the \"allowed types\" set by the developer\n\t *\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tpublic function mimes_types($mime)\n\t{\n\t\tglobal $mimes;\n\n\t\tif (count($this->mimes) == 0)\n\t\t{\n\t\t\tif (defined('ENVIRONMENT') AND is_file(APPPATH.'config/'.ENVIRONMENT.'/mimes.php'))\n\t\t\t{\n\t\t\t\tinclude(APPPATH.'config/'.ENVIRONMENT.'/mimes.php');\n\t\t\t}\n\t\t\telseif (is_file(APPPATH.'config/mimes.php'))\n\t\t\t{\n\t\t\t\tinclude(APPPATH.'config//mimes.php');\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn FALSE;\n\t\t\t}\n\n\t\t\t$this->mimes = $mimes;\n\t\t\tunset($mimes);\n\t\t}\n\n\t\treturn ( ! isset($this->mimes[$mime])) ? FALSE : $this->mimes[$mime];\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * Prep Filename\n\t *\n\t * Prevents possible script execution from Apache's handling of files multiple extensions\n\t * http://httpd.apache.org/docs/1.3/mod/mod_mime.html#multipleext\n\t *\n\t * @param\tstring\n\t * @return\tstring\n\t */\n\tprotected function _prep_filename($filename)\n\t{\n\t\tif (strpos($filename, '.') === FALSE OR $this->allowed_types == '*')\n\t\t{\n\t\t\treturn $filename;\n\t\t}\n\n\t\t$parts\t\t= explode('.', $filename);\n\t\t$ext\t\t= array_pop($parts);\n\t\t$filename\t= array_shift($parts);\n\n\t\tforeach ($parts as $part)\n\t\t{\n\t\t\tif ( ! in_array(strtolower($part), $this->allowed_types) OR $this->mimes_types(strtolower($part)) === FALSE)\n\t\t\t{\n\t\t\t\t$filename .= '.'.$part.'_';\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t$filename .= '.'.$part;\n\t\t\t}\n\t\t}\n\n\t\t$filename .= '.'.$ext;\n\n\t\treturn $filename;\n\t}\n\n\t// --------------------------------------------------------------------\n\n\t/**\n\t * File MIME type\n\t *\n\t * Detects the (actual) MIME type of the uploaded file, if possible.\n\t * The input array is expected to be $_FILES[$field]\n\t *\n\t * @param\tarray\n\t * @return\tvoid\n\t */\n\tprotected function _file_mime_type($file)\n\t{\n\t\t// We'll need this to validate the MIME info string (e.g. text/plain; charset=us-ascii)\n\t\t$regexp = '/^([a-z\\-]+\\/[a-z0-9\\-\\.\\+]+)(;\\s.+)?$/';\n\n\t\t/* Fileinfo extension - most reliable method\n\t\t *\n\t\t * Unfortunately, prior to PHP 5.3 - it's only available as a PECL extension and the\n\t\t * more convenient FILEINFO_MIME_TYPE flag doesn't exist.\n\t\t */\n\t\tif (function_exists('finfo_file'))\n\t\t{\n\t\t\t$finfo = finfo_open(FILEINFO_MIME);\n\t\t\tif (is_resource($finfo)) // It is possible that a FALSE value is returned, if there is no magic MIME database file found on the system\n\t\t\t{\n\t\t\t\t$mime = @finfo_file($finfo, $file['tmp_name']);\n\t\t\t\tfinfo_close($finfo);\n\n\t\t\t\t/* According to the comments section of the PHP manual page,\n\t\t\t\t * it is possible that this function returns an empty string\n\t\t\t\t * for some files (e.g. if they don't exist in the magic MIME database)\n\t\t\t\t */\n\t\t\t\tif (is_string($mime) && preg_match($regexp, $mime, $matches))\n\t\t\t\t{\n\t\t\t\t\t$this->file_type = $matches[1];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/* This is an ugly hack, but UNIX-type systems provide a \"native\" way to detect the file type,\n\t\t * which is still more secure than depending on the value of $_FILES[$field]['type'], and as it\n\t\t * was reported in issue #750 (https://github.com/EllisLab/CodeIgniter/issues/750) - it's better\n\t\t * than mime_content_type() as well, hence the attempts to try calling the command line with\n\t\t * three different functions.\n\t\t *\n\t\t * Notes:\n\t\t *\t- the DIRECTORY_SEPARATOR comparison ensures that we're not on a Windows system\n\t\t *\t- many system admins would disable the exec(), shell_exec(), popen() and similar functions\n\t\t *\t  due to security concerns, hence the function_exists() checks\n\t\t */\n\t\tif (DIRECTORY_SEPARATOR !== '\\\\')\n\t\t{\n\t\t\t$cmd = 'file --brief --mime ' . escapeshellarg($file['tmp_name']) . ' 2>&1';\n\n\t\t\tif (function_exists('exec'))\n\t\t\t{\n\t\t\t\t/* This might look confusing, as $mime is being populated with all of the output when set in the second parameter.\n\t\t\t\t * However, we only neeed the last line, which is the actual return value of exec(), and as such - it overwrites\n\t\t\t\t * anything that could already be set for $mime previously. This effectively makes the second parameter a dummy\n\t\t\t\t * value, which is only put to allow us to get the return status code.\n\t\t\t\t */\n\t\t\t\t$mime = @exec($cmd, $mime, $return_status);\n\t\t\t\tif ($return_status === 0 && is_string($mime) && preg_match($regexp, $mime, $matches))\n\t\t\t\t{\n\t\t\t\t\t$this->file_type = $matches[1];\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif ( (bool) @ini_get('safe_mode') === FALSE && function_exists('shell_exec'))\n\t\t\t{\n\t\t\t\t$mime = @shell_exec($cmd);\n\t\t\t\tif (strlen($mime) > 0)\n\t\t\t\t{\n\t\t\t\t\t$mime = explode(\"\\n\", trim($mime));\n\t\t\t\t\tif (preg_match($regexp, $mime[(count($mime) - 1)], $matches))\n\t\t\t\t\t{\n\t\t\t\t\t\t$this->file_type = $matches[1];\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (function_exists('popen'))\n\t\t\t{\n\t\t\t\t$proc = @popen($cmd, 'r');\n\t\t\t\tif (is_resource($proc))\n\t\t\t\t{\n\t\t\t\t\t$mime = @fread($proc, 512);\n\t\t\t\t\t@pclose($proc);\n\t\t\t\t\tif ($mime !== FALSE)\n\t\t\t\t\t{\n\t\t\t\t\t\t$mime = explode(\"\\n\", trim($mime));\n\t\t\t\t\t\tif (preg_match($regexp, $mime[(count($mime) - 1)], $matches))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t$this->file_type = $matches[1];\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Fall back to the deprecated mime_content_type(), if available (still better than $_FILES[$field]['type'])\n\t\tif (function_exists('mime_content_type'))\n\t\t{\n\t\t\t$this->file_type = @mime_content_type($file['tmp_name']);\n\t\t\tif (strlen($this->file_type) > 0) // It's possible that mime_content_type() returns FALSE or an empty string\n\t\t\t{\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\n\t\t$this->file_type = $file['type'];\n\t}\n\n\t// --------------------------------------------------------------------\n\n}\n// END Upload Class\n\n/* End of file Upload.php */\n/* Location: ./system/libraries/Upload.php */\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/ci/system/libraries/index.html",
    "content": "<html>\n<head>\n\t<title>403 Forbidden</title>\n</head>\n<body>\n\n<p>Directory access is forbidden.</p>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/config.php",
    "content": "<?php\n/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/config.php\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n \n/*\n  \n  ------------------------------------------------------------------\n \n  IMPORTANT NOTE! In case, when TinyMCE’s folder is not protected with HTTP Authorisation,\n  you should require is_allowed() function to return \n  `TRUE` if user is authorised,\n  `FALSE` - otherwise\n    is_allowed() can be found in jbimages/is_allowed.php\n \n  This is intended to protect upload script, if someone guesses it's url.\n\n\n  So, here we go...\n\n\n| -------------------------------------------------------------------\n|\n| Path to upload target folder, relative to domain name. NO TRAILING SLASH!\n| Example: if an image is acessed via http://www.example.com/images/somefolder/image.jpg, you should specify here:\n| \n| $config['img_path'] = '/images/somefolder';\n| \n| -------------------------------------------------------------------*/\n\n\t\n\t$config['img_path'] = '/images'; // Relative to domain name\n\t$config['upload_path'] = $_SERVER['DOCUMENT_ROOT'] . $config['img_path']; // Physical path. [Usually works fine like this]\n\n\n/*-------------------------------------------------------------------\n| \n| Allowed image filetypes. Specifying something other, than image types will result in error. \n| \n| $config['allowed_types'] = 'gif|jpg|png';\n| \n| -------------------------------------------------------------------*/\n\n\t\n\t$config['allowed_types'] = 'gif|jpg|png';\n\n\n/*-------------------------------------------------------------------\n| \n| Maximum image file size in kilobytes. This value can't exceed value set in php.ini.\n| Set to `0` if you want to use php.ini default:\n| \n| $config['max_size'] = 0;\n| \n| -------------------------------------------------------------------*/\n\n\t\n\t$config['max_size'] = 0;\n\n\n/*-------------------------------------------------------------------\n| \n| Maximum image width. Set to `0` for no limit:\n| \n| $config['max_width'] = 0;\n| \n| -------------------------------------------------------------------*/\n\n\t\n\t$config['max_width'] = 0;\n\n\n/*-------------------------------------------------------------------\n| \n| Maximum image height. Set to `0` for no limit:\n| \n| $config['max_height'] = 0;\n| \n| -------------------------------------------------------------------*/\n\n\t\n\t$config['max_height'] = 0;\n\n\n/*-------------------------------------------------------------------\n| \n| Allow script to resize image that exceeds maximum width or maximum height (or both)\n| If set to `TRUE`, image will be resized to fit maximum values (proportions are saved)\n| If set to `FALSE`, user will recieve an error message.\n| \n| $config['allow_resize'] = TRUE;\n| \n| -------------------------------------------------------------------*/\n\n\t\n\t$config['allow_resize'] = TRUE;\n\n\n/*-------------------------------------------------------------------\n| \n| Image name encryption\n| If set to `TRUE`, image file name will be encrypted in something like 7fdd57742f0f7b02288feb62570c7813.jpg\n| If set to `FALSE`, original filenames will be preserved\n| \n| $config['encrypt_name'] = TRUE;\n| \n| -------------------------------------------------------------------*/\n\n\t\n\t$config['encrypt_name'] = FALSE;\n\n\n/*-------------------------------------------------------------------\n| \n| How to behave if 2 or more files with the same name are uploaded:\n| `TRUE` - the entire file will be overwritten\n| `FALSE` - a number will be added to the newly uploaded file name\n| \n| -------------------------------------------------------------------*/\n\n\n\t$config['overwrite'] = FALSE;\n\t\n\t\n/*-------------------------------------------------------------------\n| \n| Target upload folder relative to document root. Most likely, you will not need to change this setting.\n| \n| -------------------------------------------------------------------*/\n\n\t\n\t\n\t\n\n/*-------------------------------------------------------------------\n| \n| THAT IS ALL. HAVE A NICE DAY! )))\n| \n| -------------------------------------------------------------------*/\n?>\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/css/dialog-v4.css",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/css/dialog-v4.css\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n \nbody {font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; -text-align:center; padding:0 10px 0 5px;}\nh2 {color:#666; visibility:hidden;}\n\n.form-inline input {\n  display: inline-block;\n  *display: inline;\n  margin-bottom: 0;\n  vertical-align: middle;\n  *zoom: 1;\n}\n\n#upload_target {border:0; margin:0; padding:0; width:0; height:0; display:none;}\n\n.upload_infobar {display:none; font-size:12pt; background:#fff; margin-top:10px; border-radius:5px;}\n.upload_infobar img.spinner {margin-right:10px;}\n.upload_infobar a {color:#0000cc;}\n#upload_additional_info {font-size:10pt; padding-left:26px;}\n\n#the_plugin_name {margin:15px 0 0 0;}\n#the_plugin_name, #the_plugin_name a {color:#777; font-size:9px;}\n#the_plugin_name a {text-decoration:none;}\n#the_plugin_name a:hover {color:#333;}\n\n/* this class makes the upload script output visible */\n.upload_target_visible {width:100%!important; height:200px!important; border:1px solid #000!important; display:block!important}"
  },
  {
    "path": "js/tinymce/plugins/jbimages/css/dialog.css",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/css/dialog.css\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n \nbody {font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; text-align:center;}\nh2 {color:#666;}\n\n.form-inline input {\n  display: inline-block;\n  *display: inline;\n  margin-bottom: 0;\n  vertical-align: middle;\n  *zoom: 1;\n}\n.jbFileBox {border:0!important;}\n.jbFileBox {width:120px!important; }\n\n#upload_target {border:0; margin:0; padding:0; width:0; height:0; display:none;}\n\n.upload_infobar {display:none; font-size:12pt; background:#fff; padding:5px; margin-top:10px; border-radius:5px;}\n.upload_infobar img.spinner {margin-right:10px;}\n.upload_infobar a {color:#0000cc;}\n#upload_additional_info {font-size:10pt; padding-left:26px;}\n\n#the_plugin_name {margin:25px 0 0 0;}\n#the_plugin_name, #the_plugin_name a {color:#777; font-size:9px;}\n#the_plugin_name a {text-decoration:none;}\n#the_plugin_name a:hover {color:#333;}\n\n#close_link {margin-top:10px; display:none;} /* for opera */\n\n/* this class makes the upload script output visible */\n.upload_target_visible {width:100%!important; height:200px!important; border:1px solid #000!important; display:block!important}\n\n/* sweet upload button (from twitter bootstrap) */\n.btn {\n  display: inline-block;\n  *display: inline;\n  padding: 4px 12px;\n  margin-bottom: 0;\n  *margin-left: .3em;\n  font-size: 14px;\n  line-height: 20px;\n  color: #333333;\n  text-align: center;\n  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);\n  vertical-align: middle;\n  cursor: pointer;\n  background-color: #f5f5f5;\n  *background-color: #e6e6e6;\n  background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6);\n  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6));\n  background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6);\n  background-image: -o-linear-gradient(top, #ffffff, #e6e6e6);\n  background-image: linear-gradient(to bottom, #ffffff, #e6e6e6);\n  background-repeat: repeat-x;\n  border: 1px solid #bbbbbb;\n  *border: 0;\n  border-color: #e6e6e6 #e6e6e6 #bfbfbf;\n  border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25);\n  border-bottom-color: #a2a2a2;\n  -webkit-border-radius: 4px;\n     -moz-border-radius: 4px;\n          border-radius: 4px;\n  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0);\n  filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);\n  *zoom: 1;\n  -webkit-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n     -moz-box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n          box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n\n.btn:hover,\n.btn:active,\n.btn.active,\n.btn.disabled,\n.btn[disabled] {\n  color: #333333;\n  background-color: #e6e6e6;\n  *background-color: #d9d9d9;\n}\n\n.btn:active,\n.btn.active {\n  background-color: #cccccc \\9;\n}\n\n.btn:first-child {\n  *margin-left: 0;\n}\n\n.btn:hover {\n  color: #333333;\n  text-decoration: none;\n  background-position: 0 -15px;\n  -webkit-transition: background-position 0.1s linear;\n     -moz-transition: background-position 0.1s linear;\n       -o-transition: background-position 0.1s linear;\n          transition: background-position 0.1s linear;\n}\n.btn:focus {\n  outline: thin dotted #333;\n  outline: 5px auto -webkit-focus-ring-color;\n  outline-offset: -2px;\n}\n.btn.active,\n.btn:active {\n  background-image: none;\n  outline: 0;\n  -webkit-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n     -moz-box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n          box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15), 0 1px 2px rgba(0, 0, 0, 0.05);\n}\n.btn {\n  border-color: #c5c5c5;\n  border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25);\n}"
  },
  {
    "path": "js/tinymce/plugins/jbimages/dialog-v4.htm",
    "content": "﻿<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n\t<title>Upload an image</title>\n\t<script type=\"text/javascript\" src=\"js/dialog-v4.js\"></script>\n\t<link href=\"css/dialog-v4.css\" rel=\"stylesheet\" type=\"text/css\">\n</head>\n<body>\n\n\t<form class=\"form-inline\" id=\"upl\" name=\"upl\" action=\"ci/index.php?upload/english\" method=\"post\" enctype=\"multipart/form-data\" target=\"upload_target\" onsubmit=\"jbImagesDialog.inProgress();\">\n\t\t\n\t\t<div id=\"upload_in_progress\" class=\"upload_infobar\"><img src=\"img/spinner.gif\" width=\"16\" height=\"16\" class=\"spinner\">Upload in progress&hellip; <div id=\"upload_additional_info\"></div></div>\n\t\t<div id=\"upload_infobar\" class=\"upload_infobar\"></div>\t\n\t\t\n\t\t<p id=\"upload_form_container\">\n\t\t\t<input id=\"uploader\" name=\"userfile\" type=\"file\" class=\"jbFileBox\" onChange=\"document.upl.submit(); jbImagesDialog.inProgress();\">\n\t\t</p>\n\t\t\n\t\t<p id=\"the_plugin_name\"><a href=\"http://justboil.me/\" target=\"_blank\" title=\"JustBoil.me &mdash; a TinyMCE Images Upload Plugin\">JustBoil.me Images Plugin</a></p>\n\t\n\t</form>\n\n\t<iframe id=\"upload_target\" name=\"upload_target\" src=\"ci/index.php?blank\"></iframe>\n\n</body>\n</html>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/dialog.htm",
    "content": "﻿<!DOCTYPE html>\n<html lang=\"en\">\n  <head>\n    <meta charset=\"utf-8\">\n\t<title>{#jbimages_dlg.title}</title>\n\t<script type=\"text/javascript\" src=\"../../tiny_mce_popup.js\"></script>\n\t<script type=\"text/javascript\" src=\"js/dialog.js\"></script>\n\n\t<link href=\"css/dialog.css\" rel=\"stylesheet\" type=\"text/css\">\n</head>\n<body>\n\n\t<form class=\"form-inline\" id=\"upl\" name=\"upl\" action=\"ci/index.php/upload/{#jbimages_dlg.lang_id}\" method=\"post\" enctype=\"multipart/form-data\" target=\"upload_target\" onsubmit=\"jbImagesDialog.inProgress();\">\n\t\t\n\t\t<h2>{#jbimages_dlg.select_an_image}</h2>\n\t\t\n\t\t<div id=\"upload_in_progress\" class=\"upload_infobar\"><img src=\"img/spinner.gif\" width=\"16\" height=\"16\" class=\"spinner\">{#jbimages_dlg.upload_in_progress}&hellip; <div id=\"upload_additional_info\"></div></div>\n\t\t<div id=\"upload_infobar\" class=\"upload_infobar\"></div>\t\n\t\t\n\t\t<p id=\"upload_form_container\">\n\t\t\t<input id=\"uploader\" name=\"userfile\" type=\"file\" class=\"jbFileBox\" onChange=\"document.upl.submit(); jbImagesDialog.inProgress();\" size=\"8\">\n\t\t\t<button type=\"submit\" class=\"btn\">{#jbimages_dlg.upload}</button>\n\t\t</p>\n\t\t\n\t\t<p id=\"the_plugin_name\"><a href=\"http://justboil.me/\" target=\"_blank\" title=\"JustBoil.me Images - a TinyMCE Images Upload Plugin\">JustBoil.me Images Plugin</a></p>\n\t\t<div id=\"close_link\"><a href=\"#\" onclick=\"tinyMCEPopup.close(); return false;\">Close [&times;]</a></div>\n\t\n\t</form>\n\n\t<iframe id=\"upload_target\" name=\"upload_target\" src=\"ci/index.php/blank\"></iframe>\n\n</body>\n</html>\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/editor_plugin.js",
    "content": "(function(){tinymce.PluginManager.requireLangPack('jbimages');tinymce.create('tinymce.plugins.jbImagesPlugin',{init:function(ed,url){ed.addCommand('jbImages',function(){var unixtime_ms=new Date().getTime();ed.windowManager.open({file:url+'/dialog.htm?z'+unixtime_ms,width:330+parseInt(ed.getLang('jbimages.delta_width',0)),height:155+parseInt(ed.getLang('jbimages.delta_height',0)),inline:1},{plugin_url:url})});ed.addButton('jbimages',{title:'jbimages.desc',cmd:'jbImages',image:url+'/img/jbimages-bw.gif'});ed.onNodeChange.add(function(ed,cm,n){cm.setActive('jbimages',n.nodeName=='IMG')})},createControl:function(n,cm){return null},getInfo:function(){return{longname:'JustBoil.me Images Plugin',author:'Viktor Kuzhelnyi',authorurl:'http://justboil.me/',infourl:'http://justboil.me/',version:\"2.3\"}}});tinymce.PluginManager.add('jbimages',tinymce.plugins.jbImagesPlugin)})();"
  },
  {
    "path": "js/tinymce/plugins/jbimages/editor_plugin_src.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/plugin.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n \n(function() {\n\t// Load plugin specific language pack\n\ttinymce.PluginManager.requireLangPack('jbimages');\n\n\ttinymce.create('tinymce.plugins.jbImagesPlugin', {\n\t\t/**\n\t\t * Initializes the plugin, this will be executed after the plugin has been created.\n\t\t * This call is done before the editor instance has finished it's initialization so use the onInit event\n\t\t * of the editor instance to intercept that event.\n\t\t *\n\t\t * @param {tinymce.Editor} ed Editor instance that the plugin is initialized in.\n\t\t * @param {string} url Absolute URL to where the plugin is located.\n\t\t */\n\t\tinit : function(ed, url) {\n\t\t\t// Register the command so that it can be invoked by using tinyMCE.activeEditor.execCommand('mceExample');\n\t\t\ted.addCommand('jbImages', function() {\n\t\t\t\tvar unixtime_ms = new Date().getTime();\n\t\t\t\ted.windowManager.open({\n\t\t\t\t\tfile : url + '/dialog.htm?z' + unixtime_ms,\n\t\t\t\t\twidth : 330 + parseInt(ed.getLang('jbimages.delta_width', 0)),\n\t\t\t\t\theight : 155 + parseInt(ed.getLang('jbimages.delta_height', 0)),\n\t\t\t\t\tinline : 1\n\t\t\t\t}, {\n\t\t\t\t\tplugin_url : url // Plugin absolute URL\n\t\t\t\t});\n\t\t\t});\n\n\t\t\t// Register example button\n\t\t\ted.addButton('jbimages', {\n\t\t\t\ttitle : 'jbimages.desc',\n\t\t\t\tcmd : 'jbImages',\n\t\t\t\timage : url + '/img/jbimages-bw.gif'\n\t\t\t});\n\n\t\t\t// Add a node change handler, selects the button in the UI when a image is selected\n\t\t\ted.onNodeChange.add(function(ed, cm, n) {\n\t\t\t\tcm.setActive('jbimages', n.nodeName == 'IMG');\n\t\t\t});\n\t\t},\n\n\t\t/**\n\t\t * Creates control instances based in the incomming name. This method is normally not\n\t\t * needed since the addButton method of the tinymce.Editor class is a more easy way of adding buttons\n\t\t * but you sometimes need to create more complex controls like listboxes, split buttons etc then this\n\t\t * method can be used to create those.\n\t\t *\n\t\t * @param {String} n Name of the control to create.\n\t\t * @param {tinymce.ControlManager} cm Control manager to use inorder to create new control.\n\t\t * @return {tinymce.ui.Control} New control instance or null if no control was created.\n\t\t */\n\t\tcreateControl : function(n, cm) {\n\t\t\treturn null;\n\t\t},\n\n\t\t/**\n\t\t * Returns information about the plugin as a name/value array.\n\t\t * The current keys are longname, author, authorurl, infourl and version.\n\t\t *\n\t\t * @return {Object} Name/value array containing information about the plugin.\n\t\t */\n\t\tgetInfo : function() {\n\t\t\treturn {\n\t\t\t\tlongname : 'JustBoil.me Images Plugin',\n\t\t\t\tauthor : 'Viktor Kuzhelnyi',\n\t\t\t\tauthorurl : 'http://justboil.me/',\n\t\t\t\tinfourl : 'http://justboil.me/',\n\t\t\t\tversion : \"2.3\"\n\t\t\t};\n\t\t}\n\t});\n\n\t// Register plugin\n\ttinymce.PluginManager.add('jbimages', tinymce.plugins.jbImagesPlugin);\n})();\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/is_allowed.php",
    "content": "<?php\n/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/config.php\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n \n \n/*-------------------------------------------------------------------\n|\n| IMPORTANT NOTE! In case, when TinyMCEs folder is not protected with HTTP Authorisation,\n| you should require is_allowed() function to return \n| `TRUE` if user is authorised,\n| `FALSE` - otherwise\n| \n|  This is intended to protect upload script, if someone guesses it's url.\n| \n-------------------------------------------------------------------*/\n\nfunction is_allowed()\n{\n\treturn TRUE;\n}\n\n?>"
  },
  {
    "path": "js/tinymce/plugins/jbimages/js/dialog-v4.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/js/dialog-v4.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n \nvar jbImagesDialog = {\n\t\n\tresized : false,\n\tiframeOpened : false,\n\ttimeoutStore : false,\n\t\n\tinProgress : function() {\n\t\tdocument.getElementById(\"upload_infobar\").style.display = 'none';\n\t\tdocument.getElementById(\"upload_additional_info\").innerHTML = '';\n\t\tdocument.getElementById(\"upload_form_container\").style.display = 'none';\n\t\tdocument.getElementById(\"upload_in_progress\").style.display = 'block';\n\t\tthis.timeoutStore = window.setTimeout(function(){\n\t\t\tdocument.getElementById(\"upload_additional_info\").innerHTML = 'This is taking longer than usual.' + '<br />' + 'An error may have occurred.' + '<br /><a href=\"#\" onClick=\"jbImagesDialog.showIframe()\">' + 'View script\\'s output' + '</a>';\n\t\t\t// tinyMCEPopup.editor.windowManager.resizeBy(0, 30, tinyMCEPopup.id);\n\t\t}, 20000);\n\t},\n\t\n\tshowIframe : function() {\n\t\tif (this.iframeOpened == false)\n\t\t{\n\t\t\tdocument.getElementById(\"upload_target\").className = 'upload_target_visible';\n\t\t\t// tinyMCEPopup.editor.windowManager.resizeBy(0, 190, tinyMCEPopup.id);\n\t\t\tthis.iframeOpened = true;\n\t\t}\n\t},\n\t\n\tuploadFinish : function(result) {\n\t\tif (result.resultCode == 'failed')\n\t\t{\n\t\t\twindow.clearTimeout(this.timeoutStore);\n\t\t\tdocument.getElementById(\"upload_in_progress\").style.display = 'none';\n\t\t\tdocument.getElementById(\"upload_infobar\").style.display = 'block';\n\t\t\tdocument.getElementById(\"upload_infobar\").innerHTML = result.result;\n\t\t\tdocument.getElementById(\"upload_form_container\").style.display = 'block';\n\t\t\t\n\t\t\tif (this.resized == false)\n\t\t\t{\n\t\t\t\t// tinyMCEPopup.editor.windowManager.resizeBy(0, 30, tinyMCEPopup.id);\n\t\t\t\tthis.resized = true;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdocument.getElementById(\"upload_in_progress\").style.display = 'none';\n\t\t\tdocument.getElementById(\"upload_infobar\").style.display = 'block';\n\t\t\tdocument.getElementById(\"upload_infobar\").innerHTML = 'Upload Complete';\n\t\t\t\n\t\t\tvar w = this.getWin();\n\t\t\ttinymce = w.tinymce;\n\t\t\n\t\t\ttinymce.EditorManager.activeEditor.insertContent('<img src=\"' + result.filename +'\">');\n\t\t\t\n\t\t\tthis.close();\n\t\t}\n\t},\n\t\n\tgetWin : function() {\n\t\treturn (!window.frameElement && window.dialogArguments) || opener || parent || top;\n\t},\n\t\n\tclose : function() {\n\t\tvar t = this;\n\n\t\t// To avoid domain relaxing issue in Opera\n\t\tfunction close() {\n\t\t\ttinymce.EditorManager.activeEditor.windowManager.close(window);\n\t\t\ttinymce = tinyMCE = t.editor = t.params = t.dom = t.dom.doc = null; // Cleanup\n\t\t};\n\n\t\tif (tinymce.isOpera)\n\t\t\tthis.getWin().setTimeout(close, 0);\n\t\telse\n\t\t\tclose();\n\t}\n\n};"
  },
  {
    "path": "js/tinymce/plugins/jbimages/js/dialog.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/js/dialog.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n\n tinyMCEPopup.requireLangPack();\n\nvar jbImagesDialog = {\n\t\n\tresized : false,\n\tiframeOpened : false,\n\ttimeoutStore : false,\n\t\n\tinit : function() {\n\t\tdocument.getElementById(\"upload_target\").src += '/' + tinyMCEPopup.getLang('jbimages_dlg.lang_id', 'english');\n\t\tif (navigator.userAgent.indexOf('Opera') > -1)\n\t\t{\n\t\t\tdocument.getElementById(\"close_link\").style.display = 'block';\n\t\t}\n\t},\n\t\n\tinProgress : function() {\n\t\tdocument.getElementById(\"upload_infobar\").style.display = 'none';\n\t\tdocument.getElementById(\"upload_additional_info\").innerHTML = '';\n\t\tdocument.getElementById(\"upload_form_container\").style.display = 'none';\n\t\tdocument.getElementById(\"upload_in_progress\").style.display = 'block';\n\t\tthis.timeoutStore = window.setTimeout(function(){\n\t\t\tdocument.getElementById(\"upload_additional_info\").innerHTML = tinyMCEPopup.getLang('jbimages_dlg.longer_than_usual', 0) + '<br />' + tinyMCEPopup.getLang('jbimages_dlg.maybe_an_error', 0) + '<br /><a href=\"#\" onClick=\"jbImagesDialog.showIframe()\">' + tinyMCEPopup.getLang('jbimages_dlg.view_output', 0) + '</a>';\n\t\t\ttinyMCEPopup.editor.windowManager.resizeBy(0, 30, tinyMCEPopup.id);\n\t\t}, 20000);\n\t},\n\t\n\tshowIframe : function() {\n\t\tif (this.iframeOpened == false)\n\t\t{\n\t\t\tdocument.getElementById(\"upload_target\").className = 'upload_target_visible';\n\t\t\ttinyMCEPopup.editor.windowManager.resizeBy(0, 190, tinyMCEPopup.id);\n\t\t\tthis.iframeOpened = true;\n\t\t}\n\t},\n\t\n\tuploadFinish : function(result) {\n\t\tif (result.resultCode == 'failed')\n\t\t{\n\t\t\twindow.clearTimeout(this.timeoutStore);\n\t\t\tdocument.getElementById(\"upload_in_progress\").style.display = 'none';\n\t\t\tdocument.getElementById(\"upload_infobar\").style.display = 'block';\n\t\t\tdocument.getElementById(\"upload_infobar\").innerHTML = result.result;\n\t\t\tdocument.getElementById(\"upload_form_container\").style.display = 'block';\n\t\t\t\n\t\t\tif (this.resized == false)\n\t\t\t{\n\t\t\t\ttinyMCEPopup.editor.windowManager.resizeBy(0, 30, tinyMCEPopup.id);\n\t\t\t\tthis.resized = true;\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdocument.getElementById(\"upload_in_progress\").style.display = 'none';\n\t\t\tdocument.getElementById(\"upload_infobar\").style.display = 'block';\n\t\t\tdocument.getElementById(\"upload_infobar\").innerHTML = tinyMCEPopup.getLang('jbimages_dlg.upload_complete', 0);\n\t\t\ttinyMCEPopup.editor.execCommand('mceInsertContent', false, '<img src=\"' + result.filename +'\" />');\n\t\t\ttinyMCEPopup.close();\n\t\t}\n\t}\n\n};\n\ntinyMCEPopup.onInit.add(jbImagesDialog.init, jbImagesDialog);\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/langs/en.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/langs/en.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n\n tinyMCE.addI18n('en.jbimages',{\n\tdesc : 'Upload an image'\n});\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/langs/en_dlg.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/langs/en_dlg.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n\n tinyMCE.addI18n('en.jbimages_dlg',{\n\ttitle : 'Upload an image from computer',\n\tselect_an_image : 'Select an image',\n\tupload_in_progress : 'Upload in progress',\n\tupload_complete : 'Upload Complete',\n\tupload : 'Upload',\n\tlonger_than_usual : 'This is taking longer than usual.',\n\tmaybe_an_error : 'An error may have occurred.',\n\tview_output : 'View script\\'s output',\n\t\n\tlang_id : 'english' /* php-side language files are in: ci/application/language/{lang_id}; and in ci/system/language/{lang_id} */\n});\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/langs/fr.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/langs/fr.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n\ntinyMCE.addI18n('fr.jbimages',{\n\tdesc : 'T\\u00E9l\\u00E9charger une image'\n});"
  },
  {
    "path": "js/tinymce/plugins/jbimages/langs/fr_dlg.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/langs/fr_dlg.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n\n tinyMCE.addI18n('fr.jbimages_dlg',{\n\ttitle : 'T\\u00E9l\\u00E9charger une image depuis votre ordinateur',\n\tselect_an_image : 'S\\u00E9lectionnez une image',\n\tupload_in_progress : 'T\\u00E9l\\u00E9chargement en cours',\n\tupload_complete : 'T\\u00E9l\\u00E9chargement termin\\u00E9',\n\tupload : 'T\\u00E9l\\u00E9charger',\n\tlonger_than_usual : 'C\\'est plus long que pr\\u00E9vu.',\n\tmaybe_an_error : 'Une erreur est probablement survenue.',\n\tview_output : 'Voir la sortie du script',\n\t\n\tlang_id : 'french' /* php-side language files are in: ci/application/language/{lang_id}; and in ci/system/language/{lang_id} */\n});"
  },
  {
    "path": "js/tinymce/plugins/jbimages/langs/ru.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/langs/ru.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n\n tinyMCE.addI18n('ru.jbimages',{\n\tdesc : '\\u0417\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044c \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435',\n\tdelta_width : 10\n});\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/langs/ru_dlg.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/langs/ru_dlg.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n\ntinyMCE.addI18n('ru.jbimages_dlg',{\n\ttitle : '\\u0417\\u0430\\u0433\\u0440\\u0443\\u0437\\u043a\\u0430 \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u044f \\u0441 \\u043a\\u043e\\u043c\\u043f\\u044c\\u044e\\u0442\\u0435\\u0440\\u0430',\n\tselect_an_image : '\\u0412\\u044b\\u0431\\u0435\\u0440\\u0438\\u0442\\u0435 \\u0438\\u0437\\u043e\\u0431\\u0440\\u0430\\u0436\\u0435\\u043d\\u0438\\u0435',\n\tupload_in_progress : '\\u0412\\u044b\\u043f\\u043e\\u043b\\u043d\\u044f\\u0435\\u0442\\u0441\\u044f \\u0437\\u0430\\u0433\\u0440\\u0443\\u0437\\u043a\\u0430',\n\tupload_complete : '\\u0417\\u0430\\u0433\\u0440\\u0443\\u0437\\u043a\\u0430 \\u0437\\u0430\\u0432\\u0435\\u0440\\u0448\\u0435\\u043d\\u0430',\n\tupload : '\\u0417\\u0430\\u0433\\u0440\\u0443\\u0437\\u0438\\u0442\\u044c',\n\tlonger_than_usual : '\\u0417\\u0430\\u0433\\u0440\\u0443\\u0437\\u043a\\u0430 \\u0437\\u0430\\u043d\\u0438\\u043c\\u0430\\u0435\\u0442 \\u0431\\u043e\\u043b\\u044c\\u0448\\u0435 \\u0432\\u0440\\u0435\\u043c\\u0435\\u043d\\u0438, \\u0447\\u0435\\u043c \\u043e\\u0431\\u044b\\u0447\\u043d\\u043e.',\n\tmaybe_an_error : '\\u0412\\u043e\\u0437\\u043c\\u043e\\u0436\\u043d\\u043e \\u043f\\u0440\\u043e\\u0438\\u0437\\u043e\\u0448\\u043b\\u0430 \\u043e\\u0448\\u0438\\u0431\\u043a\\u0430.',\n\tview_output : '\\u041f\\u043e\\u0441\\u043c\\u043e\\u0442\\u0440\\u0435\\u0442\\u044c \\u0432\\u044b\\u0434\\u0430\\u0447\\u0443 \\u0441\\u043a\\u0440\\u0438\\u043f\\u0442\\u0430',\n\t\n\tlang_id : 'russian' /* php-side language files are in: ci/application/language/{lang_id}; */\n});\n"
  },
  {
    "path": "js/tinymce/plugins/jbimages/plugin.js",
    "content": "/**\n * Justboil.me - a TinyMCE image upload plugin\n * jbimages/plugin.js\n *\n * Released under Creative Commons Attribution 3.0 Unported License\n *\n * License: http://creativecommons.org/licenses/by/3.0/\n * Plugin info: http://justboil.me/\n * Author: Viktor Kuzhelnyi\n *\n * Version: 2.3 released 23/06/2013\n */\n\ntinymce.PluginManager.add('jbimages', function(editor, url) {\n\t\n\tfunction jbBox() {\n\t\teditor.windowManager.open({\n\t\t\ttitle: 'Upload an image',\n\t\t\tfile : url + '/dialog-v4.htm',\n\t\t\twidth : 350,\n\t\t\theight: 135,\n\t\t\tbuttons: [{\n\t\t\t\ttext: 'Upload',\n\t\t\t\tclasses:'widget btn primary first abs-layout-item',\n\t\t\t\tdisabled : true,\n\t\t\t\tonclick: 'close'\n\t\t\t},\n\t\t\t{\n\t\t\t\ttext: 'Close',\n\t\t\t\tonclick: 'close'\n\t\t\t}]\n\t\t});\n\t}\n\t\n\t// Add a button that opens a window\n\teditor.addButton('jbimages', {\n\t\ttooltip: 'Upload an image',\n\t\ticon : 'image',\n\t\ttext: 'Upload',\n\t\tonclick: jbBox\n\t});\n\n\t// Adds a menu item to the tools menu\n\teditor.addMenuItem('jbimages', {\n\t\ttext: 'Upload image',\n\t\ticon : 'image',\n\t\tcontext: 'insert',\n\t\tonclick: jbBox\n\t});\n});"
  },
  {
    "path": "js/tinymce/plugins/jbimages/readme",
    "content": "|------------|\n|   README   |\n|------------|\n\nJustBoil.me Images is a simple, elegant image upload plugin for TinyMCE. It is free, opensource and licensed under Creative Commons Attribution 3.0 Unported License.\n\nDocs & stuff at: http://justboil.me\nDonation gives you the right to remove attribution: http://justboil.me/donate/\n\n--\nHave a nice day! ))"
  },
  {
    "path": "js/tinymce/plugins/visualblocks/css/visualblocks.css",
    "content": ".mce-visualblocks p {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7);\n}\n\n.mce-visualblocks h1 {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==);\n}\n\n.mce-visualblocks h2 {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==);\n}\n\n.mce-visualblocks h3 {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7);\n}\n\n.mce-visualblocks h4 {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==);\n}\n\n.mce-visualblocks h5 {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==);\n}\n\n.mce-visualblocks h6 {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==);\n}\n\n.mce-visualblocks div {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7);\n}\n\n.mce-visualblocks section {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin: 0 0 1em 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=);\n}\n\n.mce-visualblocks article {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin: 0 0 1em 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7);\n}\n\n.mce-visualblocks blockquote {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7);\n}\n\n.mce-visualblocks address {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin: 0 0 1em 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=);\n}\n\n.mce-visualblocks pre {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin-left: 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==);\n}\n\n.mce-visualblocks figure {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin: 0 0 1em 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7);\n}\n\n.mce-visualblocks hgroup {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin: 0 0 1em 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7);\n}\n\n.mce-visualblocks aside {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin: 0 0 1em 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=);\n}\n\n.mce-visualblocks figcaption {\n\tborder: 1px dashed #BBB;\n}\n\n.mce-visualblocks ul {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin: 0 0 1em 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)\n}\n\n.mce-visualblocks ol {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin: 0 0 1em 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==);\n}\n\n.mce-visualblocks dl {\n\tpadding-top: 10px;\n\tborder: 1px dashed #BBB;\n\tmargin: 0 0 1em 3px;\n\tbackground: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==);\n}\n"
  },
  {
    "path": "js/tinymce/tinymce.min.js.orig",
    "content": "// 4.1.7 (2014-11-27)\n!function(e,t){\"use strict\";function n(e,t){for(var n,r=[],i=0;i<e.length;++i){if(n=s[e[i]]||o(e[i]),!n)throw\"module definition dependecy not found: \"+e[i];r.push(n)}t.apply(null,r)}function r(e,r,i){if(\"string\"!=typeof e)throw\"invalid module definition, module id must be defined and be a string\";if(r===t)throw\"invalid module definition, dependencies must be specified\";if(i===t)throw\"invalid module definition, definition function must be specified\";n(r,function(){s[e]=i.apply(null,arguments)})}function i(e){return!!s[e]}function o(t){for(var n=e,r=t.split(/[.\\/]/),i=0;i<r.length;++i){if(!n[r[i]])return;n=n[r[i]]}return n}function a(n){for(var r=0;r<n.length;r++){for(var i=e,o=n[r],a=o.split(/[.\\/]/),l=0;l<a.length-1;++l)i[a[l]]===t&&(i[a[l]]={}),i=i[a[l]];i[a[a.length-1]]=s[o]}}var s={},l=\"tinymce/dom/EventUtils\",c=\"tinymce/dom/Sizzle\",u=\"tinymce/Env\",d=\"tinymce/util/Tools\",f=\"tinymce/dom/DomQuery\",p=\"tinymce/html/Styles\",h=\"tinymce/dom/TreeWalker\",m=\"tinymce/dom/Range\",g=\"tinymce/html/Entities\",v=\"tinymce/dom/StyleSheetLoader\",y=\"tinymce/dom/DOMUtils\",b=\"tinymce/dom/ScriptLoader\",C=\"tinymce/AddOnManager\",x=\"tinymce/dom/RangeUtils\",w=\"tinymce/NodeChange\",_=\"tinymce/html/Node\",E=\"tinymce/html/Schema\",N=\"tinymce/html/SaxParser\",k=\"tinymce/html/DomParser\",S=\"tinymce/html/Writer\",T=\"tinymce/html/Serializer\",R=\"tinymce/dom/Serializer\",A=\"tinymce/dom/TridentSelection\",B=\"tinymce/util/VK\",D=\"tinymce/dom/ControlSelection\",L=\"tinymce/dom/BookmarkManager\",H=\"tinymce/dom/Selection\",M=\"tinymce/dom/ElementUtils\",P=\"tinymce/fmt/Preview\",O=\"tinymce/Formatter\",I=\"tinymce/UndoManager\",F=\"tinymce/EnterKey\",z=\"tinymce/ForceBlocks\",W=\"tinymce/EditorCommands\",V=\"tinymce/util/URI\",U=\"tinymce/util/Class\",$=\"tinymce/util/EventDispatcher\",q=\"tinymce/ui/Selector\",j=\"tinymce/ui/Collection\",Y=\"tinymce/ui/DomUtils\",K=\"tinymce/ui/Control\",G=\"tinymce/ui/Factory\",X=\"tinymce/ui/KeyboardNavigation\",J=\"tinymce/ui/Container\",Q=\"tinymce/ui/DragHelper\",Z=\"tinymce/ui/Scrollable\",et=\"tinymce/ui/Panel\",tt=\"tinymce/ui/Movable\",nt=\"tinymce/ui/Resizable\",rt=\"tinymce/ui/FloatPanel\",it=\"tinymce/ui/Window\",ot=\"tinymce/ui/MessageBox\",at=\"tinymce/WindowManager\",st=\"tinymce/util/Quirks\",lt=\"tinymce/util/Observable\",ct=\"tinymce/EditorObservable\",ut=\"tinymce/Shortcuts\",dt=\"tinymce/Editor\",ft=\"tinymce/util/I18n\",pt=\"tinymce/FocusManager\",ht=\"tinymce/EditorManager\",mt=\"tinymce/LegacyInput\",gt=\"tinymce/util/XHR\",vt=\"tinymce/util/JSON\",yt=\"tinymce/util/JSONRequest\",bt=\"tinymce/util/JSONP\",Ct=\"tinymce/util/LocalStorage\",xt=\"tinymce/Compat\",wt=\"tinymce/ui/Layout\",_t=\"tinymce/ui/AbsoluteLayout\",Et=\"tinymce/ui/Tooltip\",Nt=\"tinymce/ui/Widget\",kt=\"tinymce/ui/Button\",St=\"tinymce/ui/ButtonGroup\",Tt=\"tinymce/ui/Checkbox\",Rt=\"tinymce/ui/ComboBox\",At=\"tinymce/ui/ColorBox\",Bt=\"tinymce/ui/PanelButton\",Dt=\"tinymce/ui/ColorButton\",Lt=\"tinymce/util/Color\",Ht=\"tinymce/ui/ColorPicker\",Mt=\"tinymce/ui/Path\",Pt=\"tinymce/ui/ElementPath\",Ot=\"tinymce/ui/FormItem\",It=\"tinymce/ui/Form\",Ft=\"tinymce/ui/FieldSet\",zt=\"tinymce/ui/FilePicker\",Wt=\"tinymce/ui/FitLayout\",Vt=\"tinymce/ui/FlexLayout\",Ut=\"tinymce/ui/FlowLayout\",$t=\"tinymce/ui/FormatControls\",qt=\"tinymce/ui/GridLayout\",jt=\"tinymce/ui/Iframe\",Yt=\"tinymce/ui/Label\",Kt=\"tinymce/ui/Toolbar\",Gt=\"tinymce/ui/MenuBar\",Xt=\"tinymce/ui/MenuButton\",Jt=\"tinymce/ui/ListBox\",Qt=\"tinymce/ui/MenuItem\",Zt=\"tinymce/ui/Menu\",en=\"tinymce/ui/Radio\",tn=\"tinymce/ui/ResizeHandle\",nn=\"tinymce/ui/Spacer\",rn=\"tinymce/ui/SplitButton\",on=\"tinymce/ui/StackLayout\",an=\"tinymce/ui/TabPanel\",sn=\"tinymce/ui/TextBox\",ln=\"tinymce/ui/Throbber\";r(l,[],function(){function e(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r||!1):e.attachEvent&&e.attachEvent(\"on\"+t,n)}function t(e,t,n,r){e.removeEventListener?e.removeEventListener(t,n,r||!1):e.detachEvent&&e.detachEvent(\"on\"+t,n)}function n(e,t){function n(){return!1}function r(){return!0}var i,o=t||{},l;for(i in e)s[i]||(o[i]=e[i]);if(o.target||(o.target=o.srcElement||document),e&&a.test(e.type)&&e.pageX===l&&e.clientX!==l){var c=o.target.ownerDocument||document,u=c.documentElement,d=c.body;o.pageX=e.clientX+(u&&u.scrollLeft||d&&d.scrollLeft||0)-(u&&u.clientLeft||d&&d.clientLeft||0),o.pageY=e.clientY+(u&&u.scrollTop||d&&d.scrollTop||0)-(u&&u.clientTop||d&&d.clientTop||0)}return o.preventDefault=function(){o.isDefaultPrevented=r,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},o.stopPropagation=function(){o.isPropagationStopped=r,e&&(e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},o.stopImmediatePropagation=function(){o.isImmediatePropagationStopped=r,o.stopPropagation()},o.isDefaultPrevented||(o.isDefaultPrevented=n,o.isPropagationStopped=n,o.isImmediatePropagationStopped=n),o}function r(n,r,i){function o(){i.domLoaded||(i.domLoaded=!0,r(c))}function a(){(\"complete\"===l.readyState||\"interactive\"===l.readyState&&l.body)&&(t(l,\"readystatechange\",a),o())}function s(){try{l.documentElement.doScroll(\"left\")}catch(e){return void setTimeout(s,0)}o()}var l=n.document,c={type:\"ready\"};return i.domLoaded?void r(c):(l.addEventListener?\"complete\"===l.readyState?o():e(n,\"DOMContentLoaded\",o):(e(l,\"readystatechange\",a),l.documentElement.doScroll&&n.self===n.top&&s()),void e(n,\"load\",o))}function i(){function i(e,t){var n,r,i,o,a=s[t];if(n=a&&a[e.type])for(r=0,i=n.length;i>r;r++)if(o=n[r],o&&o.func.call(o.scope,e)===!1&&e.preventDefault(),e.isImmediatePropagationStopped())return}var a=this,s={},l,c,u,d,f;c=o+(+new Date).toString(32),d=\"onmouseenter\"in document.documentElement,u=\"onfocusin\"in document.documentElement,f={mouseenter:\"mouseover\",mouseleave:\"mouseout\"},l=1,a.domLoaded=!1,a.events=s,a.bind=function(t,o,p,h){function m(e){i(n(e||_.event),g)}var g,v,y,b,C,x,w,_=window;if(t&&3!==t.nodeType&&8!==t.nodeType){for(t[c]?g=t[c]:(g=l++,t[c]=g,s[g]={}),h=h||t,o=o.split(\" \"),y=o.length;y--;)b=o[y],x=m,C=w=!1,\"DOMContentLoaded\"===b&&(b=\"ready\"),a.domLoaded&&\"ready\"===b&&\"complete\"==t.readyState?p.call(h,n({type:b})):(d||(C=f[b],C&&(x=function(e){var t,r;if(t=e.currentTarget,r=e.relatedTarget,r&&t.contains)r=t.contains(r);else for(;r&&r!==t;)r=r.parentNode;r||(e=n(e||_.event),e.type=\"mouseout\"===e.type?\"mouseleave\":\"mouseenter\",e.target=t,i(e,g))})),u||\"focusin\"!==b&&\"focusout\"!==b||(w=!0,C=\"focusin\"===b?\"focus\":\"blur\",x=function(e){e=n(e||_.event),e.type=\"focus\"===e.type?\"focusin\":\"focusout\",i(e,g)}),v=s[g][b],v?\"ready\"===b&&a.domLoaded?p({type:b}):v.push({func:p,scope:h}):(s[g][b]=v=[{func:p,scope:h}],v.fakeName=C,v.capture=w,v.nativeHandler=x,\"ready\"===b?r(t,x,a):e(t,C||b,x,w)));return t=v=0,p}},a.unbind=function(e,n,r){var i,o,l,u,d,f;if(!e||3===e.nodeType||8===e.nodeType)return a;if(i=e[c]){if(f=s[i],n){for(n=n.split(\" \"),l=n.length;l--;)if(d=n[l],o=f[d]){if(r)for(u=o.length;u--;)if(o[u].func===r){var p=o.nativeHandler,h=o.fakeName,m=o.capture;o=o.slice(0,u).concat(o.slice(u+1)),o.nativeHandler=p,o.fakeName=h,o.capture=m,f[d]=o}r&&0!==o.length||(delete f[d],t(e,o.fakeName||d,o.nativeHandler,o.capture))}}else{for(d in f)o=f[d],t(e,o.fakeName||d,o.nativeHandler,o.capture);f={}}for(d in f)return a;delete s[i];try{delete e[c]}catch(g){e[c]=null}}return a},a.fire=function(e,t,r){var o;if(!e||3===e.nodeType||8===e.nodeType)return a;r=n(null,r),r.type=t,r.target=e;do o=e[c],o&&i(r,o),e=e.parentNode||e.ownerDocument||e.defaultView||e.parentWindow;while(e&&!r.isPropagationStopped());return a},a.clean=function(e){var t,n,r=a.unbind;if(!e||3===e.nodeType||8===e.nodeType)return a;if(e[c]&&r(e),e.getElementsByTagName||(e=e.document),e&&e.getElementsByTagName)for(r(e),n=e.getElementsByTagName(\"*\"),t=n.length;t--;)e=n[t],e[c]&&r(e);return a},a.destroy=function(){s={}},a.cancel=function(e){return e&&(e.preventDefault(),e.stopImmediatePropagation()),!1}}var o=\"mce-data-\",a=/^(?:mouse|contextmenu)|click/,s={keyLocation:1,layerX:1,layerY:1,returnValue:1};return i.Event=new i,i.Event.bind(window,\"ready\",function(){}),i}),r(c,[],function(){function e(e,t,n,r){var i,o,a,s,l,c,d,p,h,m;if((t?t.ownerDocument||t:z)!==D&&B(t),t=t||D,n=n||[],!e||\"string\"!=typeof e)return n;if(1!==(s=t.nodeType)&&9!==s)return[];if(H&&!r){if(i=vt.exec(e))if(a=i[1]){if(9===s){if(o=t.getElementById(a),!o||!o.parentNode)return n;if(o.id===a)return n.push(o),n}else if(t.ownerDocument&&(o=t.ownerDocument.getElementById(a))&&I(t,o)&&o.id===a)return n.push(o),n}else{if(i[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((a=i[3])&&x.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(a)),n}if(x.qsa&&(!M||!M.test(e))){if(p=d=F,h=t,m=9===s&&e,1===s&&\"object\"!==t.nodeName.toLowerCase()){for(c=N(e),(d=t.getAttribute(\"id\"))?p=d.replace(bt,\"\\\\$&\"):t.setAttribute(\"id\",p),p=\"[id='\"+p+\"'] \",l=c.length;l--;)c[l]=p+f(c[l]);h=yt.test(e)&&u(t.parentNode)||t,m=c.join(\",\")}if(m)try{return Z.apply(n,h.querySelectorAll(m)),n}catch(g){}finally{d||t.removeAttribute(\"id\")}}}return S(e.replace(st,\"$1\"),t,n,r)}function n(){function e(n,r){return t.push(n+\" \")>w.cacheLength&&delete e[t.shift()],e[n+\" \"]=r}var t=[];return e}function r(e){return e[F]=!0,e}function i(e){var t=D.createElement(\"div\");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function o(e,t){for(var n=e.split(\"|\"),r=e.length;r--;)w.attrHandle[n[r]]=t}function a(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||K)-(~e.sourceIndex||K);if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function s(e){return function(t){var n=t.nodeName.toLowerCase();return\"input\"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return(\"input\"===n||\"button\"===n)&&t.type===e}}function c(e){return r(function(t){return t=+t,r(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function u(e){return e&&typeof e.getElementsByTagName!==Y&&e}function d(){}function f(e){for(var t=0,n=e.length,r=\"\";n>t;t++)r+=e[t].value;return r}function p(e,t,n){var r=t.dir,i=n&&\"parentNode\"===r,o=V++;return t.first?function(t,n,o){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,o)}:function(t,n,a){var s,l,c=[W,o];if(a){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,a))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[F]||(t[F]={}),(s=l[r])&&s[0]===W&&s[1]===o)return c[2]=s[2];if(l[r]=c,c[2]=e(t,n,a))return!0}}}function h(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function m(t,n,r){for(var i=0,o=n.length;o>i;i++)e(t,n[i],r);return r}function g(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;l>s;s++)(o=e[s])&&(!n||n(o,r,i))&&(a.push(o),c&&t.push(s));return a}function v(e,t,n,i,o,a){return i&&!i[F]&&(i=v(i)),o&&!o[F]&&(o=v(o,a)),r(function(r,a,s,l){var c,u,d,f=[],p=[],h=a.length,v=r||m(t||\"*\",s.nodeType?[s]:s,[]),y=!e||!r&&t?v:g(v,f,e,s,l),b=n?o||(r?e:h||i)?[]:a:y;if(n&&n(y,b,s,l),i)for(c=g(b,p),i(c,[],s,l),u=c.length;u--;)(d=c[u])&&(b[p[u]]=!(y[p[u]]=d));if(r){if(o||e){if(o){for(c=[],u=b.length;u--;)(d=b[u])&&c.push(y[u]=d);o(null,b=[],c,l)}for(u=b.length;u--;)(d=b[u])&&(c=o?tt.call(r,d):f[u])>-1&&(r[c]=!(a[c]=d))}}else b=g(b===a?b.splice(h,b.length):b),o?o(null,a,b,l):Z.apply(a,b)})}function y(e){for(var t,n,r,i=e.length,o=w.relative[e[0].type],a=o||w.relative[\" \"],s=o?1:0,l=p(function(e){return e===t},a,!0),c=p(function(e){return tt.call(t,e)>-1},a,!0),u=[function(e,n,r){return!o&&(r||n!==T)||((t=n).nodeType?l(e,n,r):c(e,n,r))}];i>s;s++)if(n=w.relative[e[s].type])u=[p(h(u),n)];else{if(n=w.filter[e[s].type].apply(null,e[s].matches),n[F]){for(r=++s;i>r&&!w.relative[e[r].type];r++);return v(s>1&&h(u),s>1&&f(e.slice(0,s-1).concat({value:\" \"===e[s-2].type?\"*\":\"\"})).replace(st,\"$1\"),n,r>s&&y(e.slice(s,r)),i>r&&y(e=e.slice(r)),i>r&&f(e))}u.push(n)}return h(u)}function b(t,n){var i=n.length>0,o=t.length>0,a=function(r,a,s,l,c){var u,d,f,p=0,h=\"0\",m=r&&[],v=[],y=T,b=r||o&&w.find.TAG(\"*\",c),C=W+=null==y?1:Math.random()||.1,x=b.length;for(c&&(T=a!==D&&a);h!==x&&null!=(u=b[h]);h++){if(o&&u){for(d=0;f=t[d++];)if(f(u,a,s)){l.push(u);break}c&&(W=C)}i&&((u=!f&&u)&&p--,r&&m.push(u))}if(p+=h,i&&h!==p){for(d=0;f=n[d++];)f(m,v,a,s);if(r){if(p>0)for(;h--;)m[h]||v[h]||(v[h]=J.call(l));v=g(v)}Z.apply(l,v),c&&!r&&v.length>0&&p+n.length>1&&e.uniqueSort(l)}return c&&(W=C,T=y),m};return i?r(a):a}var C,x,w,_,E,N,k,S,T,R,A,B,D,L,H,M,P,O,I,F=\"sizzle\"+-new Date,z=window.document,W=0,V=0,U=n(),$=n(),q=n(),j=function(e,t){return e===t&&(A=!0),0},Y=typeof t,K=1<<31,G={}.hasOwnProperty,X=[],J=X.pop,Q=X.push,Z=X.push,et=X.slice,tt=X.indexOf||function(e){for(var t=0,n=this.length;n>t;t++)if(this[t]===e)return t;return-1},nt=\"checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped\",rt=\"[\\\\x20\\\\t\\\\r\\\\n\\\\f]\",it=\"(?:\\\\\\\\.|[\\\\w-]|[^\\\\x00-\\\\xa0])+\",ot=\"\\\\[\"+rt+\"*(\"+it+\")(?:\"+rt+\"*([*^$|!~]?=)\"+rt+\"*(?:'((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\"|(\"+it+\"))|)\"+rt+\"*\\\\]\",at=\":(\"+it+\")(?:\\\\((('((?:\\\\\\\\.|[^\\\\\\\\'])*)'|\\\"((?:\\\\\\\\.|[^\\\\\\\\\\\"])*)\\\")|((?:\\\\\\\\.|[^\\\\\\\\()[\\\\]]|\"+ot+\")*)|.*)\\\\)|)\",st=new RegExp(\"^\"+rt+\"+|((?:^|[^\\\\\\\\])(?:\\\\\\\\.)*)\"+rt+\"+$\",\"g\"),lt=new RegExp(\"^\"+rt+\"*,\"+rt+\"*\"),ct=new RegExp(\"^\"+rt+\"*([>+~]|\"+rt+\")\"+rt+\"*\"),ut=new RegExp(\"=\"+rt+\"*([^\\\\]'\\\"]*?)\"+rt+\"*\\\\]\",\"g\"),dt=new RegExp(at),ft=new RegExp(\"^\"+it+\"$\"),pt={ID:new RegExp(\"^#(\"+it+\")\"),CLASS:new RegExp(\"^\\\\.(\"+it+\")\"),TAG:new RegExp(\"^(\"+it+\"|[*])\"),ATTR:new RegExp(\"^\"+ot),PSEUDO:new RegExp(\"^\"+at),CHILD:new RegExp(\"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\\\(\"+rt+\"*(even|odd|(([+-]|)(\\\\d*)n|)\"+rt+\"*(?:([+-]|)\"+rt+\"*(\\\\d+)|))\"+rt+\"*\\\\)|)\",\"i\"),bool:new RegExp(\"^(?:\"+nt+\")$\",\"i\"),needsContext:new RegExp(\"^\"+rt+\"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\\\(\"+rt+\"*((?:-\\\\d)?\\\\d*)\"+rt+\"*\\\\)|)(?=[^-]|$)\",\"i\")},ht=/^(?:input|select|textarea|button)$/i,mt=/^h\\d$/i,gt=/^[^{]+\\{\\s*\\[native \\w/,vt=/^(?:#([\\w-]+)|(\\w+)|\\.([\\w-]+))$/,yt=/[+~]/,bt=/'|\\\\/g,Ct=new RegExp(\"\\\\\\\\([\\\\da-f]{1,6}\"+rt+\"?|(\"+rt+\")|.)\",\"ig\"),xt=function(e,t,n){var r=\"0x\"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{Z.apply(X=et.call(z.childNodes),z.childNodes),X[z.childNodes.length].nodeType}catch(wt){Z={apply:X.length?function(e,t){Q.apply(e,et.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}x=e.support={},E=e.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?\"HTML\"!==t.nodeName:!1},B=e.setDocument=function(e){var t,n=e?e.ownerDocument||e:z,r=n.defaultView;return n!==D&&9===n.nodeType&&n.documentElement?(D=n,L=n.documentElement,H=!E(n),r&&r!==r.top&&(r.addEventListener?r.addEventListener(\"unload\",function(){B()},!1):r.attachEvent&&r.attachEvent(\"onunload\",function(){B()})),x.attributes=i(function(e){return e.className=\"i\",!e.getAttribute(\"className\")}),x.getElementsByTagName=i(function(e){return e.appendChild(n.createComment(\"\")),!e.getElementsByTagName(\"*\").length}),x.getElementsByClassName=gt.test(n.getElementsByClassName),x.getById=i(function(e){return L.appendChild(e).id=F,!n.getElementsByName||!n.getElementsByName(F).length}),x.getById?(w.find.ID=function(e,t){if(typeof t.getElementById!==Y&&H){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},w.filter.ID=function(e){var t=e.replace(Ct,xt);return function(e){return e.getAttribute(\"id\")===t}}):(delete w.find.ID,w.filter.ID=function(e){var t=e.replace(Ct,xt);return function(e){var n=typeof e.getAttributeNode!==Y&&e.getAttributeNode(\"id\");return n&&n.value===t}}),w.find.TAG=x.getElementsByTagName?function(e,t){return typeof t.getElementsByTagName!==Y?t.getElementsByTagName(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if(\"*\"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},w.find.CLASS=x.getElementsByClassName&&function(e,t){return H?t.getElementsByClassName(e):void 0},P=[],M=[],(x.qsa=gt.test(n.querySelectorAll))&&(i(function(e){e.innerHTML=\"<select msallowcapture=''><option selected=''></option></select>\",e.querySelectorAll(\"[msallowcapture^='']\").length&&M.push(\"[*^$]=\"+rt+\"*(?:''|\\\"\\\")\"),e.querySelectorAll(\"[selected]\").length||M.push(\"\\\\[\"+rt+\"*(?:value|\"+nt+\")\"),e.querySelectorAll(\":checked\").length||M.push(\":checked\")}),i(function(e){var t=n.createElement(\"input\");t.setAttribute(\"type\",\"hidden\"),e.appendChild(t).setAttribute(\"name\",\"D\"),e.querySelectorAll(\"[name=d]\").length&&M.push(\"name\"+rt+\"*[*^$|!~]?=\"),e.querySelectorAll(\":enabled\").length||M.push(\":enabled\",\":disabled\"),e.querySelectorAll(\"*,:x\"),M.push(\",.*:\")})),(x.matchesSelector=gt.test(O=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&i(function(e){x.disconnectedMatch=O.call(e,\"div\"),O.call(e,\"[s!='']:x\"),P.push(\"!=\",at)}),M=M.length&&new RegExp(M.join(\"|\")),P=P.length&&new RegExp(P.join(\"|\")),t=gt.test(L.compareDocumentPosition),I=t||gt.test(L.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},j=t?function(e,t){if(e===t)return A=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r?r:(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&r||!x.sortDetached&&t.compareDocumentPosition(e)===r?e===n||e.ownerDocument===z&&I(z,e)?-1:t===n||t.ownerDocument===z&&I(z,t)?1:R?tt.call(R,e)-tt.call(R,t):0:4&r?-1:1)}:function(e,t){if(e===t)return A=!0,0;var r,i=0,o=e.parentNode,s=t.parentNode,l=[e],c=[t];if(!o||!s)return e===n?-1:t===n?1:o?-1:s?1:R?tt.call(R,e)-tt.call(R,t):0;if(o===s)return a(e,t);for(r=e;r=r.parentNode;)l.unshift(r);for(r=t;r=r.parentNode;)c.unshift(r);for(;l[i]===c[i];)i++;return i?a(l[i],c[i]):l[i]===z?-1:c[i]===z?1:0},n):D},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==D&&B(t),n=n.replace(ut,\"='$1']\"),!(!x.matchesSelector||!H||P&&P.test(n)||M&&M.test(n)))try{var r=O.call(t,n);if(r||x.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(i){}return e(n,D,null,[t]).length>0},e.contains=function(e,t){return(e.ownerDocument||e)!==D&&B(e),I(e,t)},e.attr=function(e,n){(e.ownerDocument||e)!==D&&B(e);var r=w.attrHandle[n.toLowerCase()],i=r&&G.call(w.attrHandle,n.toLowerCase())?r(e,n,!H):t;return i!==t?i:x.attributes||!H?e.getAttribute(n):(i=e.getAttributeNode(n))&&i.specified?i.value:null},e.error=function(e){throw new Error(\"Syntax error, unrecognized expression: \"+e)},e.uniqueSort=function(e){var t,n=[],r=0,i=0;if(A=!x.detectDuplicates,R=!x.sortStable&&e.slice(0),e.sort(j),A){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return R=null,e},_=e.getText=function(e){var t,n=\"\",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if(\"string\"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=_(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=_(t);return n},w=e.selectors={cacheLength:50,createPseudo:r,match:pt,attrHandle:{},find:{},relative:{\">\":{dir:\"parentNode\",first:!0},\" \":{dir:\"parentNode\"},\"+\":{dir:\"previousSibling\",first:!0},\"~\":{dir:\"previousSibling\"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Ct,xt),e[3]=(e[3]||e[4]||e[5]||\"\").replace(Ct,xt),\"~=\"===e[2]&&(e[3]=\" \"+e[3]+\" \"),e.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),\"nth\"===t[1].slice(0,3)?(t[3]||e.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*(\"even\"===t[3]||\"odd\"===t[3])),t[5]=+(t[7]+t[8]||\"odd\"===t[3])):t[3]&&e.error(t[0]),t},PSEUDO:function(e){var t,n=!e[6]&&e[2];return pt.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||\"\":n&&dt.test(n)&&(t=N(n,!0))&&(t=n.indexOf(\")\",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Ct,xt).toLowerCase();return\"*\"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=U[e+\" \"];return t||(t=new RegExp(\"(^|\"+rt+\")\"+e+\"(\"+rt+\"|$)\"))&&U(e,function(e){return t.test(\"string\"==typeof e.className&&e.className||typeof e.getAttribute!==Y&&e.getAttribute(\"class\")||\"\")})},ATTR:function(t,n,r){return function(i){var o=e.attr(i,t);return null==o?\"!=\"===n:n?(o+=\"\",\"=\"===n?o===r:\"!=\"===n?o!==r:\"^=\"===n?r&&0===o.indexOf(r):\"*=\"===n?r&&o.indexOf(r)>-1:\"$=\"===n?r&&o.slice(-r.length)===r:\"~=\"===n?(\" \"+o+\" \").indexOf(r)>-1:\"|=\"===n?o===r||o.slice(0,r.length+1)===r+\"-\":!1):!0}},CHILD:function(e,t,n,r,i){var o=\"nth\"!==e.slice(0,3),a=\"last\"!==e.slice(-4),s=\"of-type\"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h,m=o!==a?\"nextSibling\":\"previousSibling\",g=t.parentNode,v=s&&t.nodeName.toLowerCase(),y=!l&&!s;if(g){if(o){for(;m;){for(d=t;d=d[m];)if(s?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;h=m=\"only\"===e&&!h&&\"nextSibling\"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(u=g[F]||(g[F]={}),c=u[e]||[],p=c[0]===W&&c[1],f=c[0]===W&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(f=p=0)||h.pop();)if(1===d.nodeType&&++f&&d===t){u[e]=[W,p,f];break}}else if(y&&(c=(t[F]||(t[F]={}))[e])&&c[0]===W)f=c[1];else for(;(d=++p&&d&&d[m]||(f=p=0)||h.pop())&&((s?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++f||(y&&((d[F]||(d[F]={}))[e]=[W,f]),d!==t)););return f-=i,f===r||f%r===0&&f/r>=0}}},PSEUDO:function(t,n){var i,o=w.pseudos[t]||w.setFilters[t.toLowerCase()]||e.error(\"unsupported pseudo: \"+t);return o[F]?o(n):o.length>1?(i=[t,t,\"\",n],w.setFilters.hasOwnProperty(t.toLowerCase())?r(function(e,t){for(var r,i=o(e,n),a=i.length;a--;)r=tt.call(e,i[a]),e[r]=!(t[r]=i[a])}):function(e){return o(e,0,i)}):o}},pseudos:{not:r(function(e){var t=[],n=[],i=k(e.replace(st,\"$1\"));return i[F]?r(function(e,t,n,r){for(var o,a=i(e,null,r,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,r,o){return t[0]=e,i(t,null,o,n),!n.pop()}}),has:r(function(t){return function(n){return e(t,n).length>0}}),contains:r(function(e){return e=e.replace(Ct,xt),function(t){return(t.textContent||t.innerText||_(t)).indexOf(e)>-1}}),lang:r(function(t){return ft.test(t||\"\")||e.error(\"unsupported lang: \"+t),t=t.replace(Ct,xt).toLowerCase(),function(e){var n;do if(n=H?e.lang:e.getAttribute(\"xml:lang\")||e.getAttribute(\"lang\"))return n=n.toLowerCase(),n===t||0===n.indexOf(t+\"-\");while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=window.location&&window.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===L},focus:function(e){return e===D.activeElement&&(!D.hasFocus||D.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&!!e.checked||\"option\"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return mt.test(e.nodeName)},input:function(e){return ht.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return\"input\"===t&&\"button\"===e.type||\"button\"===t},text:function(e){var t;return\"input\"===e.nodeName.toLowerCase()&&\"text\"===e.type&&(null==(t=e.getAttribute(\"type\"))||\"text\"===t.toLowerCase())},first:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:c(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},w.pseudos.nth=w.pseudos.eq;for(C in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[C]=s(C);for(C in{submit:!0,reset:!0})w.pseudos[C]=l(C);return d.prototype=w.filters=w.pseudos,w.setFilters=new d,N=e.tokenize=function(t,n){var r,i,o,a,s,l,c,u=$[t+\" \"];if(u)return n?0:u.slice(0);for(s=t,l=[],c=w.preFilter;s;){(!r||(i=lt.exec(s)))&&(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),r=!1,(i=ct.exec(s))&&(r=i.shift(),o.push({value:r,type:i[0].replace(st,\" \")}),s=s.slice(r.length));for(a in w.filter)!(i=pt[a].exec(s))||c[a]&&!(i=c[a](i))||(r=i.shift(),o.push({value:r,type:a,matches:i}),s=s.slice(r.length));if(!r)break}return n?s.length:s?e.error(t):$(t,l).slice(0)},k=e.compile=function(e,t){var n,r=[],i=[],o=q[e+\" \"];if(!o){for(t||(t=N(e)),n=t.length;n--;)o=y(t[n]),o[F]?r.push(o):i.push(o);o=q(e,b(i,r)),o.selector=e}return o},S=e.select=function(e,t,n,r){var i,o,a,s,l,c=\"function\"==typeof e&&e,d=!r&&N(e=c.selector||e);if(n=n||[],1===d.length){if(o=d[0]=d[0].slice(0),o.length>2&&\"ID\"===(a=o[0]).type&&x.getById&&9===t.nodeType&&H&&w.relative[o[1].type]){if(t=(w.find.ID(a.matches[0].replace(Ct,xt),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=pt.needsContext.test(e)?0:o.length;i--&&(a=o[i],!w.relative[s=a.type]);)if((l=w.find[s])&&(r=l(a.matches[0].replace(Ct,xt),yt.test(o[0].type)&&u(t.parentNode)||t))){if(o.splice(i,1),e=r.length&&f(o),!e)return Z.apply(n,r),n;break}}return(c||k(e,d))(r,t,!H,n,yt.test(e)&&u(t.parentNode)||t),n},x.sortStable=F.split(\"\").sort(j).join(\"\")===F,x.detectDuplicates=!!A,B(),x.sortDetached=i(function(e){return 1&e.compareDocumentPosition(D.createElement(\"div\"))}),i(function(e){return e.innerHTML=\"<a href='#'></a>\",\"#\"===e.firstChild.getAttribute(\"href\")})||o(\"type|href|height|width\",function(e,t,n){return n?void 0:e.getAttribute(t,\"type\"===t.toLowerCase()?1:2)}),x.attributes&&i(function(e){return e.innerHTML=\"<input/>\",e.firstChild.setAttribute(\"value\",\"\"),\"\"===e.firstChild.getAttribute(\"value\")})||o(\"value\",function(e,t,n){return n||\"input\"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute(\"disabled\")})||o(nt,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),e}),r(u,[],function(){var e=navigator,t=e.userAgent,n,r,i,o,a,s,l;n=window.opera&&window.opera.buildNumber,r=/WebKit/.test(t),i=!r&&!n&&/MSIE/gi.test(t)&&/Explorer/gi.test(e.appName),i=i&&/MSIE (\\w+)\\./.exec(t)[1],o=-1==t.indexOf(\"Trident/\")||-1==t.indexOf(\"rv:\")&&-1==e.appName.indexOf(\"Netscape\")?!1:11,i=i||o,a=!r&&!o&&/Gecko/.test(t),s=-1!=t.indexOf(\"Mac\"),l=/(iPad|iPhone)/.test(t);var c=!l||t.match(/AppleWebKit\\/(\\d*)/)[1]>=534;return{opera:n,webkit:r,ie:i,gecko:a,mac:s,iOS:l,contentEditable:c,transparentSrc:\"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7\",caretAfter:8!=i,range:window.getSelection&&\"Range\"in window,documentMode:i?document.documentMode||7:10}}),r(d,[u],function(e){function n(e){return null===e||e===t?\"\":(\"\"+e).replace(v,\"\")}function r(e,n){return n?\"array\"==n&&y(e)?!0:typeof e==n:e!==t}function i(e){var t=e,n,r;if(!y(e))for(t=[],n=0,r=e.length;r>n;n++)t[n]=e[n];return t}function o(e,t,n){var r;for(e=e||[],t=t||\",\",\"string\"==typeof e&&(e=e.split(t)),n=n||{},r=e.length;r--;)n[e[r]]={};return n}function a(e,n,r){var i,o;if(!e)return 0;if(r=r||e,e.length!==t){for(i=0,o=e.length;o>i;i++)if(n.call(r,e[i],i,e)===!1)return 0}else for(i in e)if(e.hasOwnProperty(i)&&n.call(r,e[i],i,e)===!1)return 0;return 1}function s(e,t){var n=[];return a(e,function(e){n.push(t(e))}),n}function l(e,t){var n=[];return a(e,function(e){(!t||t(e))&&n.push(e)}),n}function c(e,t,n){var r=this,i,o,a,s,l,c=0;if(e=/^((static) )?([\\w.]+)(:([\\w.]+))?/.exec(e),a=e[3].match(/(^|\\.)(\\w+)$/i)[2],o=r.createNS(e[3].replace(/\\.\\w+$/,\"\"),n),!o[a]){if(\"static\"==e[2])return o[a]=t,void(this.onCreate&&this.onCreate(e[2],e[3],o[a]));t[a]||(t[a]=function(){},c=1),o[a]=t[a],r.extend(o[a].prototype,t),e[5]&&(i=r.resolve(e[5]).prototype,s=e[5].match(/\\.(\\w+)$/i)[1],l=o[a],o[a]=c?function(){return i[s].apply(this,arguments)}:function(){return this.parent=i[s],l.apply(this,arguments)},o[a].prototype[a]=o[a],r.each(i,function(e,t){o[a].prototype[t]=i[t]}),r.each(t,function(e,t){i[t]?o[a].prototype[t]=function(){return this.parent=i[t],e.apply(this,arguments)}:t!=a&&(o[a].prototype[t]=e)})),r.each(t[\"static\"],function(e,t){o[a][t]=e})}}function u(e,t){var n,r;if(e)for(n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}function d(e,n){var r,i,o,a=arguments,s;for(r=1,i=a.length;i>r;r++){n=a[r];for(o in n)n.hasOwnProperty(o)&&(s=n[o],s!==t&&(e[o]=s))}return e}function f(e,t,n,r){r=r||this,e&&(n&&(e=e[n]),a(e,function(e,i){return t.call(r,e,i,n)===!1?!1:void f(e,t,n,r)}))}function p(e,t){var n,r;for(t=t||window,e=e.split(\".\"),n=0;n<e.length;n++)r=e[n],t[r]||(t[r]={}),t=t[r];return t}function h(e,t){var n,r;for(t=t||window,e=e.split(\".\"),n=0,r=e.length;r>n&&(t=t[e[n]],t);n++);return t}function m(e,t){return!e||r(e,\"array\")?e:s(e.split(t||\",\"),n)}function g(t){var n=e.cacheSuffix;return n&&(t+=(-1===t.indexOf(\"?\")?\"?\":\"&\")+n),t}var v=/^\\s*|\\s*$/g,y=Array.isArray||function(e){return\"[object Array]\"===Object.prototype.toString.call(e)};return{trim:n,isArray:y,is:r,toArray:i,makeMap:o,each:a,map:s,grep:l,inArray:u,extend:d,create:c,walk:f,createNS:p,resolve:h,explode:m,_addCacheSuffix:g}}),r(f,[l,c,d,u],function(e,n,r,i){function o(e){return\"undefined\"!=typeof e}function a(e){return\"string\"==typeof e}function s(e){return e&&e==e.window}function l(e,t){var n,r,i;for(t=t||w,i=t.createElement(\"div\"),n=t.createDocumentFragment(),i.innerHTML=e;r=i.firstChild;)n.appendChild(r);return n}function c(e,t,n,r){var i;if(a(t))t=l(t,v(e[0]));else if(t.length&&!t.nodeType){if(t=f.makeArray(t),r)for(i=t.length-1;i>=0;i--)c(e,t[i],n,r);else for(i=0;i<t.length;i++)c(e,t[i],n,r);return e}if(t.nodeType)for(i=e.length;i--;)n.call(e[i],t);return e}function u(e,t){return e&&t&&-1!==(\" \"+e.className+\" \").indexOf(\" \"+t+\" \")}function d(e,t,n){var r,i;return t=f(t)[0],e.each(function(){var e=this;n&&r==e.parentNode?i.appendChild(e):(r=e.parentNode,i=t.cloneNode(!1),e.parentNode.insertBefore(i,e),i.appendChild(e))}),e}function f(e,t){return new f.fn.init(e,t)}function p(e,t){var n;if(t.indexOf)return t.indexOf(e);for(n=t.length;n--;)if(t[n]===e)return n;return-1}function h(e){return null===e||e===S?\"\":(\"\"+e).replace(H,\"\")}function m(e,t){var n,r,i,o,a;if(e)if(n=e.length,n===o){for(r in e)if(e.hasOwnProperty(r)&&(a=e[r],t.call(a,r,a)===!1))break}else for(i=0;n>i&&(a=e[i],t.call(a,i,a)!==!1);i++);return e}function g(e,t){var n=[];return m(e,function(e,r){t(r,e)&&n.push(r)}),n}function v(e){return e?9==e.nodeType?e:e.ownerDocument:w}function y(e,n,r){var i=[],o=e[n];for(\"string\"!=typeof r&&r instanceof f&&(r=r[0]);o&&9!==o.nodeType;){if(r!==t){if(o===r)break;if(\"string\"==typeof r&&f(o).is(r))break}1===o.nodeType&&i.push(o),o=o[n]}return i}function b(e,n,r,i){var o=[];for(i instanceof f&&(i=i[0]);e;e=e[n])if(!r||e.nodeType===r){if(i!==t){if(e===i)break;if(\"string\"==typeof i&&f(e).is(i))break}o.push(e)}return o}function C(e,t,n){for(e=e[t];e;e=e[t])if(e.nodeType==n)return e;return null}function x(e,t,n){m(n,function(n,r){e[n]=e[n]||{},e[n][t]=r})}var w=document,_=Array.prototype.push,E=Array.prototype.slice,N=/^(?:[^#<]*(<[\\w\\W]+>)[^>]*$|#([\\w\\-]*)$)/,k=e.Event,S,T=r.makeMap(\"fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom\",\" \"),R=r.makeMap(\"checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected\",\" \"),A={\"for\":\"htmlFor\",\"class\":\"className\",readonly:\"readOnly\"},B={\"float\":\"cssFloat\"},D={},L={},H=/^\\s*|\\s*$/g;return f.fn=f.prototype={constructor:f,selector:\"\",context:null,length:0,init:function(e,t){var n=this,r,i;if(!e)return n;if(e.nodeType)return n.context=n[0]=e,n.length=1,n;if(t&&t.nodeType)n.context=t;else{if(t)return f(e).attr(t);n.context=t=document}if(a(e)){if(n.selector=e,r=\"<\"===e.charAt(0)&&\">\"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:N.exec(e),!r)return f(t).find(e);if(r[1])for(i=l(e,v(t)).firstChild;i;)_.call(n,i),i=i.nextSibling;else{if(i=v(t).getElementById(r[2]),!i)return n;if(i.id!==r[2])return n.find(e);n.length=1,n[0]=i}}else this.add(e,!1);return n},toArray:function(){return r.toArray(this)},add:function(e,t){var n=this,r,i;if(a(e))return n.add(f(e));if(t!==!1)for(r=f.unique(n.toArray().concat(f.makeArray(e))),n.length=r.length,i=0;i<r.length;i++)n[i]=r[i];\nelse _.apply(n,f.makeArray(e));return n},attr:function(e,t){var n=this,r;if(\"object\"==typeof e)m(e,function(e,t){n.attr(e,t)});else{if(!o(t)){if(n[0]&&1===n[0].nodeType){if(r=D[e],r&&r.get)return r.get(n[0],e);if(R[e])return n.prop(e)?e:S;t=n[0].getAttribute(e,2),null===t&&(t=S)}return t}this.each(function(){var n;if(1===this.nodeType){if(n=D[e],n&&n.set)return void n.set(this,t);null===t?this.removeAttribute(e,2):this.setAttribute(e,t,2)}})}return n},removeAttr:function(e){return this.attr(e,null)},prop:function(e,t){var n=this;if(e=A[e]||e,\"object\"==typeof e)m(e,function(e,t){n.prop(e,t)});else{if(!o(t))return n[0]&&n[0].nodeType&&e in n[0]?n[0][e]:t;this.each(function(){1==this.nodeType&&(this[e]=t)})}return n},css:function(e,t){function n(e){return e.replace(/-(\\D)/g,function(e,t){return t.toUpperCase()})}function r(e){return e.replace(/[A-Z]/g,function(e){return\"-\"+e})}var i=this,a,s;if(\"object\"==typeof e)m(e,function(e,t){i.css(e,t)});else if(o(t))e=n(e),\"number\"!=typeof t||T[e]||(t+=\"px\"),i.each(function(){var n=this.style;if(s=L[e],s&&s.set)return void s.set(this,t);try{this.style[B[e]||e]=t}catch(i){}(null===t||\"\"===t)&&(n.removeProperty?n.removeProperty(r(e)):n.removeAttribute(e))});else{if(a=i[0],s=L[e],s&&s.get)return s.get(a);if(a.ownerDocument.defaultView)try{return a.ownerDocument.defaultView.getComputedStyle(a,null).getPropertyValue(r(e))}catch(l){return S}else if(a.currentStyle)return a.currentStyle[n(e)]}return i},remove:function(){for(var e=this,t,n=this.length;n--;)t=e[n],k.clean(t),t.parentNode&&t.parentNode.removeChild(t);return this},empty:function(){for(var e=this,t,n=this.length;n--;)for(t=e[n];t.firstChild;)t.removeChild(t.firstChild);return this},html:function(e){var t=this,n;if(o(e)){n=t.length;try{for(;n--;)t[n].innerHTML=e}catch(r){f(t[n]).empty().append(e)}return t}return t[0]?t[0].innerHTML:\"\"},text:function(e){var t=this,n;if(o(e)){for(n=t.length;n--;)\"innerText\"in t[n]?t[n].innerText=e:t[0].textContent=e;return t}return t[0]?t[0].innerText||t[0].textContent:\"\"},append:function(){return c(this,arguments,function(e){1===this.nodeType&&this.appendChild(e)})},prepend:function(){return c(this,arguments,function(e){1===this.nodeType&&this.insertBefore(e,this.firstChild)},!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?c(e,arguments,function(e){this.parentNode.insertBefore(e,this)}):e},after:function(){var e=this;return e[0]&&e[0].parentNode?c(e,arguments,function(e){this.parentNode.insertBefore(e,this.nextSibling)},!0):e},appendTo:function(e){return f(e).append(this),this},prependTo:function(e){return f(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return d(this,e)},wrapAll:function(e){return d(this,e,!0)},wrapInner:function(e){return this.each(function(){f(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){f(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),f(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,t){var n=this;return\"string\"!=typeof e?n:(-1!==e.indexOf(\" \")?m(e.split(\" \"),function(){n.toggleClass(this,t)}):n.each(function(n,r){var i,o;o=u(r,e),o!==t&&(i=r.className,o?r.className=h((\" \"+i+\" \").replace(\" \"+e+\" \",\" \")):r.className+=i?\" \"+e:e)}),n)},hasClass:function(e){return u(this[0],e)},each:function(e){return m(this,e)},on:function(e,t){return this.each(function(){k.bind(this,e,t)})},off:function(e,t){return this.each(function(){k.unbind(this,e,t)})},trigger:function(e){return this.each(function(){\"object\"==typeof e?k.fire(this,e.type,e):k.fire(this,e)})},show:function(){return this.css(\"display\",\"\")},hide:function(){return this.css(\"display\",\"none\")},slice:function(){return new f(E.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var t,n,r=[];for(t=0,n=this.length;n>t;t++)f.find(e,this[t],r);return f(r)},filter:function(e){return f(\"function\"==typeof e?g(this.toArray(),function(t,n){return e(n,t)}):f.filter(e,this.toArray()))},closest:function(e){var t=[];return e instanceof f&&(e=e[0]),this.each(function(n,r){for(;r;){if(\"string\"==typeof e&&f(r).is(e)){t.push(r);break}if(r==e){t.push(r);break}r=r.parentNode}}),f(t)},offset:function(e){var t,n,r,i=0,o=0,a;return e?this.css(e):(t=this[0],t&&(n=t.ownerDocument,r=n.documentElement,t.getBoundingClientRect&&(a=t.getBoundingClientRect(),i=a.left+(r.scrollLeft||n.body.scrollLeft)-r.clientLeft,o=a.top+(r.scrollTop||n.body.scrollTop)-r.clientTop)),{left:i,top:o})},push:_,sort:[].sort,splice:[].splice},r.extend(f,{extend:r.extend,makeArray:function(e){return s(e)||e.nodeType?[e]:r.toArray(e)},inArray:p,isArray:r.isArray,each:m,trim:h,grep:g,find:n,expr:n.selectors,unique:n.uniqueSort,text:n.getText,contains:n.contains,filter:function(e,t,n){var r=t.length;for(n&&(e=\":not(\"+e+\")\");r--;)1!=t[r].nodeType&&t.splice(r,1);return t=1===t.length?f.find.matchesSelector(t[0],e)?[t[0]]:[]:f.find.matches(e,t)}}),m({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return y(e,\"parentNode\")},next:function(e){return C(e,\"nextSibling\",1)},prev:function(e){return C(e,\"previousSibling\",1)},children:function(e){return b(e.firstChild,\"nextSibling\",1)},contents:function(e){return r.toArray((\"iframe\"===e.nodeName?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,t){f.fn[e]=function(n){var r=this,i=[];return r.each(function(){var e=t.call(i,this,n,i);e&&(f.isArray(e)?i.push.apply(i,e):i.push(e))}),this.length>1&&(i=f.unique(i),0===e.indexOf(\"parents\")&&(i=i.reverse())),i=f(i),n?i.filter(n):i}}),m({parentsUntil:function(e,t){return y(e,\"parentNode\",t)},nextUntil:function(e,t){return b(e,\"nextSibling\",1,t).slice(1)},prevUntil:function(e,t){return b(e,\"previousSibling\",1,t).slice(1)}},function(e,t){f.fn[e]=function(n,r){var i=this,o=[];return i.each(function(){var e=t.call(o,this,n,o);e&&(f.isArray(e)?o.push.apply(o,e):o.push(e))}),this.length>1&&(o=f.unique(o),(0===e.indexOf(\"parents\")||\"prevUntil\"===e)&&(o=o.reverse())),o=f(o),r?o.filter(r):o}}),f.fn.is=function(e){return!!e&&this.filter(e).length>0},f.fn.init.prototype=f.fn,f.overrideDefaults=function(e){function t(r,i){return n=n||e(),0===arguments.length&&(r=n.element),i||(i=n.context),new t.fn.init(r,i)}var n;return f.extend(t,this),t},i.ie&&i.ie<8&&(x(D,\"get\",{maxlength:function(e){var t=e.maxLength;return 2147483647===t?S:t},size:function(e){var t=e.size;return 20===t?S:t},\"class\":function(e){return e.className},style:function(e){var t=e.style.cssText;return 0===t.length?S:t}}),x(D,\"set\",{\"class\":function(e,t){e.className=t},style:function(e,t){e.style.cssText=t}})),i.ie&&i.ie<9&&(B[\"float\"]=\"styleFloat\",x(L,\"set\",{opacity:function(e,t){var n=e.style;null===t||\"\"===t?n.removeAttribute(\"filter\"):(n.zoom=1,n.filter=\"alpha(opacity=\"+100*t+\")\")}})),f.attrHooks=D,f.cssHooks=L,f}),r(p,[],function(){return function(e,t){function n(e,t,n,r){function i(e){return e=parseInt(e,10).toString(16),e.length>1?e:\"0\"+e}return\"#\"+i(t)+i(n)+i(r)}var r=/rgb\\s*\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*\\)/gi,i=/(?:url(?:(?:\\(\\s*\\\"([^\\\"]+)\\\"\\s*\\))|(?:\\(\\s*\\'([^\\']+)\\'\\s*\\))|(?:\\(\\s*([^)\\s]+)\\s*\\))))|(?:\\'([^\\']+)\\')|(?:\\\"([^\\\"]+)\\\")/gi,o=/\\s*([^:]+):\\s*([^;]+);?/g,a=/\\s+$/,s,l,c={},u,d,f,p=\"\\ufeff\";for(e=e||{},t&&(d=t.getValidStyles(),f=t.getInvalidStyles()),u=(\"\\\\\\\" \\\\' \\\\; \\\\: ; : \"+p).split(\" \"),l=0;l<u.length;l++)c[u[l]]=p+l,c[p+l]=u[l];return{toHex:function(e){return e.replace(r,n)},parse:function(t){function s(e,t,n){var r,i,o,a;if(r=m[e+\"-top\"+t],r&&(i=m[e+\"-right\"+t],i&&(o=m[e+\"-bottom\"+t],o&&(a=m[e+\"-left\"+t])))){var s=[r,i,o,a];for(l=s.length-1;l--&&s[l]===s[l+1];);l>-1&&n||(m[e+t]=-1==l?s[0]:s.join(\" \"),delete m[e+\"-top\"+t],delete m[e+\"-right\"+t],delete m[e+\"-bottom\"+t],delete m[e+\"-left\"+t])}}function u(e){var t=m[e],n;if(t){for(t=t.split(\" \"),n=t.length;n--;)if(t[n]!==t[0])return!1;return m[e]=t[0],!0}}function d(e,t,n,r){u(t)&&u(n)&&u(r)&&(m[e]=m[t]+\" \"+m[n]+\" \"+m[r],delete m[t],delete m[n],delete m[r])}function f(e){return b=!0,c[e]}function p(e,t){return b&&(e=e.replace(/\\uFEFF[0-9]/g,function(e){return c[e]})),t||(e=e.replace(/\\\\([\\'\\\";:])/g,\"$1\")),e}function h(t,n,r,i,o,a){if(o=o||a)return o=p(o),\"'\"+o.replace(/\\'/g,\"\\\\'\")+\"'\";if(n=p(n||r||i),!e.allow_script_urls){var s=n.replace(/[\\s\\r\\n]+/,\"\");if(/(java|vb)script:/i.test(s))return\"\";if(!e.allow_svg_data_urls&&/^data:image\\/svg/i.test(s))return\"\"}return C&&(n=C.call(x,n,\"style\")),\"url('\"+n.replace(/\\'/g,\"\\\\'\")+\"')\"}var m={},g,v,y,b,C=e.url_converter,x=e.url_converter_scope||this;if(t){for(t=t.replace(/[\\u0000-\\u001F]/g,\"\"),t=t.replace(/\\\\[\\\"\\';:\\uFEFF]/g,f).replace(/\\\"[^\\\"]+\\\"|\\'[^\\']+\\'/g,function(e){return e.replace(/[;:]/g,f)});g=o.exec(t);){if(v=g[1].replace(a,\"\").toLowerCase(),y=g[2].replace(a,\"\"),y=y.replace(/\\\\[0-9a-f]+/g,function(e){return String.fromCharCode(parseInt(e.substr(1),16))}),v&&y.length>0){if(!e.allow_script_urls&&(\"behavior\"==v||/expression\\s*\\(|\\/\\*|\\*\\//.test(y)))continue;\"font-weight\"===v&&\"700\"===y?y=\"bold\":(\"color\"===v||\"background-color\"===v)&&(y=y.toLowerCase()),y=y.replace(r,n),y=y.replace(i,h),m[v]=b?p(y,!0):y}o.lastIndex=g.index+g[0].length}s(\"border\",\"\",!0),s(\"border\",\"-width\"),s(\"border\",\"-color\"),s(\"border\",\"-style\"),s(\"padding\",\"\"),s(\"margin\",\"\"),d(\"border\",\"border-width\",\"border-style\",\"border-color\"),\"medium none\"===m.border&&delete m.border,\"none\"===m[\"border-image\"]&&delete m[\"border-image\"]}return m},serialize:function(e,t){function n(t){var n,r,o,a;if(n=d[t])for(r=0,o=n.length;o>r;r++)t=n[r],a=e[t],a!==s&&a.length>0&&(i+=(i.length>0?\" \":\"\")+t+\": \"+a+\";\")}function r(e,t){var n;return n=f[\"*\"],n&&n[e]?!1:(n=f[t],n&&n[e]?!1:!0)}var i=\"\",o,a;if(t&&d)n(\"*\"),n(t);else for(o in e)a=e[o],a!==s&&a.length>0&&(!f||r(o,t))&&(i+=(i.length>0?\" \":\"\")+o+\": \"+a+\";\");return i}}}}),r(h,[],function(){return function(e,t){function n(e,n,r,i){var o,a;if(e){if(!i&&e[n])return e[n];if(e!=t){if(o=e[r])return o;for(a=e.parentNode;a&&a!=t;a=a.parentNode)if(o=a[r])return o}}}var r=e;this.current=function(){return r},this.next=function(e){return r=n(r,\"firstChild\",\"nextSibling\",e)},this.prev=function(e){return r=n(r,\"lastChild\",\"previousSibling\",e)}}}),r(m,[d],function(e){function t(n){function r(){return M.createDocumentFragment()}function i(e,t){_(F,e,t)}function o(e,t){_(z,e,t)}function a(e){i(e.parentNode,j(e))}function s(e){i(e.parentNode,j(e)+1)}function l(e){o(e.parentNode,j(e))}function c(e){o(e.parentNode,j(e)+1)}function u(e){e?(H[U]=H[V],H[$]=H[W]):(H[V]=H[U],H[W]=H[$]),H.collapsed=F}function d(e){a(e),c(e)}function f(e){i(e,0),o(e,1===e.nodeType?e.childNodes.length:e.nodeValue.length)}function p(e,t){var n=H[V],r=H[W],i=H[U],o=H[$],a=t.startContainer,s=t.startOffset,l=t.endContainer,c=t.endOffset;return 0===e?w(n,r,a,s):1===e?w(i,o,a,s):2===e?w(i,o,l,c):3===e?w(n,r,l,c):void 0}function h(){E(I)}function m(){return E(P)}function g(){return E(O)}function v(e){var t=this[V],r=this[W],i,o;3!==t.nodeType&&4!==t.nodeType||!t.nodeValue?(t.childNodes.length>0&&(o=t.childNodes[r]),o?t.insertBefore(e,o):3==t.nodeType?n.insertAfter(e,t):t.appendChild(e)):r?r>=t.nodeValue.length?n.insertAfter(e,t):(i=t.splitText(r),t.parentNode.insertBefore(e,i)):t.parentNode.insertBefore(e,t)}function y(e){var t=H.extractContents();H.insertNode(e),e.appendChild(t),H.selectNode(e)}function b(){return q(new t(n),{startContainer:H[V],startOffset:H[W],endContainer:H[U],endOffset:H[$],collapsed:H.collapsed,commonAncestorContainer:H.commonAncestorContainer})}function C(e,t){var n;if(3==e.nodeType)return e;if(0>t)return e;for(n=e.firstChild;n&&t>0;)--t,n=n.nextSibling;return n?n:e}function x(){return H[V]==H[U]&&H[W]==H[$]}function w(e,t,r,i){var o,a,s,l,c,u;if(e==r)return t==i?0:i>t?-1:1;for(o=r;o&&o.parentNode!=e;)o=o.parentNode;if(o){for(a=0,s=e.firstChild;s!=o&&t>a;)a++,s=s.nextSibling;return a>=t?-1:1}for(o=e;o&&o.parentNode!=r;)o=o.parentNode;if(o){for(a=0,s=r.firstChild;s!=o&&i>a;)a++,s=s.nextSibling;return i>a?-1:1}for(l=n.findCommonAncestor(e,r),c=e;c&&c.parentNode!=l;)c=c.parentNode;for(c||(c=l),u=r;u&&u.parentNode!=l;)u=u.parentNode;if(u||(u=l),c==u)return 0;for(s=l.firstChild;s;){if(s==c)return-1;if(s==u)return 1;s=s.nextSibling}}function _(e,t,r){var i,o;for(e?(H[V]=t,H[W]=r):(H[U]=t,H[$]=r),i=H[U];i.parentNode;)i=i.parentNode;for(o=H[V];o.parentNode;)o=o.parentNode;o==i?w(H[V],H[W],H[U],H[$])>0&&H.collapse(e):H.collapse(e),H.collapsed=x(),H.commonAncestorContainer=n.findCommonAncestor(H[V],H[U])}function E(e){var t,n=0,r=0,i,o,a,s,l,c;if(H[V]==H[U])return N(e);for(t=H[U],i=t.parentNode;i;t=i,i=i.parentNode){if(i==H[V])return k(t,e);++n}for(t=H[V],i=t.parentNode;i;t=i,i=i.parentNode){if(i==H[U])return S(t,e);++r}for(o=r-n,a=H[V];o>0;)a=a.parentNode,o--;for(s=H[U];0>o;)s=s.parentNode,o++;for(l=a.parentNode,c=s.parentNode;l!=c;l=l.parentNode,c=c.parentNode)a=l,s=c;return T(a,s,e)}function N(e){var t,n,i,o,a,s,l,c,u;if(e!=I&&(t=r()),H[W]==H[$])return t;if(3==H[V].nodeType){if(n=H[V].nodeValue,i=n.substring(H[W],H[$]),e!=O&&(o=H[V],c=H[W],u=H[$]-H[W],0===c&&u>=o.nodeValue.length-1?o.parentNode.removeChild(o):o.deleteData(c,u),H.collapse(F)),e==I)return;return i.length>0&&t.appendChild(M.createTextNode(i)),t}for(o=C(H[V],H[W]),a=H[$]-H[W];o&&a>0;)s=o.nextSibling,l=D(o,e),t&&t.appendChild(l),--a,o=s;return e!=O&&H.collapse(F),t}function k(e,t){var n,i,o,a,s,l;if(t!=I&&(n=r()),i=R(e,t),n&&n.appendChild(i),o=j(e),a=o-H[W],0>=a)return t!=O&&(H.setEndBefore(e),H.collapse(z)),n;for(i=e.previousSibling;a>0;)s=i.previousSibling,l=D(i,t),n&&n.insertBefore(l,n.firstChild),--a,i=s;return t!=O&&(H.setEndBefore(e),H.collapse(z)),n}function S(e,t){var n,i,o,a,s,l;for(t!=I&&(n=r()),o=A(e,t),n&&n.appendChild(o),i=j(e),++i,a=H[$]-i,o=e.nextSibling;o&&a>0;)s=o.nextSibling,l=D(o,t),n&&n.appendChild(l),--a,o=s;return t!=O&&(H.setStartAfter(e),H.collapse(F)),n}function T(e,t,n){var i,o,a,s,l,c,u;for(n!=I&&(o=r()),i=A(e,n),o&&o.appendChild(i),a=j(e),s=j(t),++a,l=s-a,c=e.nextSibling;l>0;)u=c.nextSibling,i=D(c,n),o&&o.appendChild(i),c=u,--l;return i=R(t,n),o&&o.appendChild(i),n!=O&&(H.setStartAfter(e),H.collapse(F)),o}function R(e,t){var n=C(H[U],H[$]-1),r,i,o,a,s,l=n!=H[U];if(n==e)return B(n,l,z,t);for(r=n.parentNode,i=B(r,z,z,t);r;){for(;n;)o=n.previousSibling,a=B(n,l,z,t),t!=I&&i.insertBefore(a,i.firstChild),l=F,n=o;if(r==e)return i;n=r.previousSibling,r=r.parentNode,s=B(r,z,z,t),t!=I&&s.appendChild(i),i=s}}function A(e,t){var n=C(H[V],H[W]),r=n!=H[V],i,o,a,s,l;if(n==e)return B(n,r,F,t);for(i=n.parentNode,o=B(i,z,F,t);i;){for(;n;)a=n.nextSibling,s=B(n,r,F,t),t!=I&&o.appendChild(s),r=F,n=a;if(i==e)return o;n=i.nextSibling,i=i.parentNode,l=B(i,z,F,t),t!=I&&l.appendChild(o),o=l}}function B(e,t,r,i){var o,a,s,l,c;if(t)return D(e,i);if(3==e.nodeType){if(o=e.nodeValue,r?(l=H[W],a=o.substring(l),s=o.substring(0,l)):(l=H[$],a=o.substring(0,l),s=o.substring(l)),i!=O&&(e.nodeValue=s),i==I)return;return c=n.clone(e,z),c.nodeValue=a,c}if(i!=I)return n.clone(e,z)}function D(e,t){return t!=I?t==O?n.clone(e,F):e:void e.parentNode.removeChild(e)}function L(){return n.create(\"body\",null,g()).outerText}var H=this,M=n.doc,P=0,O=1,I=2,F=!0,z=!1,W=\"startOffset\",V=\"startContainer\",U=\"endContainer\",$=\"endOffset\",q=e.extend,j=n.nodeIndex;return q(H,{startContainer:M,startOffset:0,endContainer:M,endOffset:0,collapsed:F,commonAncestorContainer:M,START_TO_START:0,START_TO_END:1,END_TO_END:2,END_TO_START:3,setStart:i,setEnd:o,setStartBefore:a,setStartAfter:s,setEndBefore:l,setEndAfter:c,collapse:u,selectNode:d,selectNodeContents:f,compareBoundaryPoints:p,deleteContents:h,extractContents:m,cloneContents:g,insertNode:v,surroundContents:y,cloneRange:b,toStringIE:L}),H}return t.prototype.toString=function(){return this.toStringIE()},t}),r(g,[d],function(e){function t(e){var t;return t=document.createElement(\"div\"),t.innerHTML=e,t.textContent||t.innerText||e}function n(e,t){var n,r,i,a={};if(e){for(e=e.split(\",\"),t=t||10,n=0;n<e.length;n+=2)r=String.fromCharCode(parseInt(e[n],t)),o[r]||(i=\"&\"+e[n+1]+\";\",a[r]=i,a[i]=r);return a}}var r=e.makeMap,i,o,a,s=/[&<>\\\"\\u0060\\u007E-\\uD7FF\\uE000-\\uFFEF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g,l=/[<>&\\u007E-\\uD7FF\\uE000-\\uFFEF]|[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]/g,c=/[<>&\\\"\\']/g,u=/&(#x|#)?([\\w]+);/g,d={128:\"\\u20ac\",130:\"\\u201a\",131:\"\\u0192\",132:\"\\u201e\",133:\"\\u2026\",134:\"\\u2020\",135:\"\\u2021\",136:\"\\u02c6\",137:\"\\u2030\",138:\"\\u0160\",139:\"\\u2039\",140:\"\\u0152\",142:\"\\u017d\",145:\"\\u2018\",146:\"\\u2019\",147:\"\\u201c\",148:\"\\u201d\",149:\"\\u2022\",150:\"\\u2013\",151:\"\\u2014\",152:\"\\u02dc\",153:\"\\u2122\",154:\"\\u0161\",155:\"\\u203a\",156:\"\\u0153\",158:\"\\u017e\",159:\"\\u0178\"};o={'\"':\"&quot;\",\"'\":\"&#39;\",\"<\":\"&lt;\",\">\":\"&gt;\",\"&\":\"&amp;\",\"`\":\"&#96;\"},a={\"&lt;\":\"<\",\"&gt;\":\">\",\"&amp;\":\"&\",\"&quot;\":'\"',\"&apos;\":\"'\"},i=n(\"50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro\",32);var f={encodeRaw:function(e,t){return e.replace(t?s:l,function(e){return o[e]||e})},encodeAllRaw:function(e){return(\"\"+e).replace(c,function(e){return o[e]||e})},encodeNumeric:function(e,t){return e.replace(t?s:l,function(e){return e.length>1?\"&#\"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+\";\":o[e]||\"&#\"+e.charCodeAt(0)+\";\"})},encodeNamed:function(e,t,n){return n=n||i,e.replace(t?s:l,function(e){return o[e]||n[e]||e})},getEncodeFunc:function(e,t){function a(e,n){return e.replace(n?s:l,function(e){return o[e]||t[e]||\"&#\"+e.charCodeAt(0)+\";\"||e})}function c(e,n){return f.encodeNamed(e,n,t)}return t=n(t)||i,e=r(e.replace(/\\+/g,\",\")),e.named&&e.numeric?a:e.named?t?c:f.encodeNamed:e.numeric?f.encodeNumeric:f.encodeRaw},decode:function(e){return e.replace(u,function(e,n,r){return n?(r=parseInt(r,2===n.length?16:10),r>65535?(r-=65536,String.fromCharCode(55296+(r>>10),56320+(1023&r))):d[r]||String.fromCharCode(r)):a[e]||i[e]||t(e)})}};return f}),r(v,[d],function(e){return function(t,n){function r(e){t.getElementsByTagName(\"head\")[0].appendChild(e)}function i(n,i,l){function c(){for(var e=y.passed,t=e.length;t--;)e[t]();y.status=2,y.passed=[],y.failed=[]}function u(){for(var e=y.failed,t=e.length;t--;)e[t]();y.status=3,y.passed=[],y.failed=[]}function d(){var e=navigator.userAgent.match(/WebKit\\/(\\d*)/);return!!(e&&e[1]<536)}function f(e,t){e()||((new Date).getTime()-v<s?window.setTimeout(t,0):u())}function p(){f(function(){for(var e=t.styleSheets,n,r=e.length,i;r--;)if(n=e[r],i=n.ownerNode?n.ownerNode:n.owningElement,i&&i.id===m.id)return c(),!0},p)}function h(){f(function(){try{var e=g.sheet.cssRules;return c(),!!e}catch(t){}},h)}var m,g,v,y;if(n=e._addCacheSuffix(n),a[n]?y=a[n]:(y={passed:[],failed:[]},a[n]=y),i&&y.passed.push(i),l&&y.failed.push(l),1!=y.status){if(2==y.status)return void c();if(3==y.status)return void u();if(y.status=1,m=t.createElement(\"link\"),m.rel=\"stylesheet\",m.type=\"text/css\",m.id=\"u\"+o++,m.async=!1,m.defer=!1,v=(new Date).getTime(),\"onload\"in m&&!d())m.onload=p,m.onerror=u;else{if(navigator.userAgent.indexOf(\"Firefox\")>0)return g=t.createElement(\"style\"),g.textContent='@import \"'+n+'\"',h(),void r(g);p()}r(m),m.href=n}}var o=0,a={},s;n=n||{},s=n.maxLoadTime||5e3,this.load=i}}),r(y,[c,f,p,l,h,m,g,u,d,v],function(e,n,r,i,o,a,s,l,c,u){function d(e,t){var n={},r=t.keep_values,i;return i={set:function(n,r,i){t.url_converter&&(r=t.url_converter.call(t.url_converter_scope||e,r,i,n[0])),n.attr(\"data-mce-\"+i,r).attr(i,r)},get:function(e,t){return e.attr(\"data-mce-\"+t)||e.attr(t)}},n={style:{set:function(e,t){return null!==t&&\"object\"==typeof t?void e.css(t):(r&&e.attr(\"data-mce-style\",t),void e.attr(\"style\",t))},get:function(t){var n=t.attr(\"data-mce-style\")||t.attr(\"style\");return n=e.serializeStyle(e.parseStyle(n),t[0].nodeName)}}},r&&(n.href=n.src=i),n}function f(e,t){var o=this,a;o.doc=e,o.win=window,o.files={},o.counter=0,o.stdMode=!v||e.documentMode>=8,o.boxModel=!v||\"CSS1Compat\"==e.compatMode||o.stdMode,o.styleSheetLoader=new u(e),o.boundEvents=[],o.settings=t=t||{},o.schema=t.schema,o.styles=new r({url_converter:t.url_converter,url_converter_scope:t.url_converter_scope},t.schema),o.fixDoc(e),o.events=t.ownEvents?new i(t.proxy):i.Event,o.attrHooks=d(o,t),a=t.schema?t.schema.getBlockElements():{},o.$=n.overrideDefaults(function(){return{context:e,element:o.getRoot()}}),o.isBlock=function(e){if(!e)return!1;var t=e.nodeType;return t?!(1!==t||!a[e.nodeName]):!!a[e]}}var p=c.each,h=c.is,m=c.grep,g=c.trim,v=l.ie,y=/^([a-z0-9],?)+$/i,b=/^[ \\t\\r\\n]*$/;return f.prototype={$$:function(e){return\"string\"==typeof e&&(e=this.get(e)),this.$(e)},root:null,fixDoc:function(e){var t=this.settings,n;if(v&&t.schema){\"abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video\".replace(/\\w+/g,function(t){e.createElement(t)});for(n in t.schema.getCustomElements())e.createElement(n)}},clone:function(e,t){var n=this,r,i;return!v||1!==e.nodeType||t?e.cloneNode(t):(i=n.doc,t?r.firstChild:(r=i.createElement(e.nodeName),p(n.getAttribs(e),function(t){n.setAttrib(r,t.nodeName,n.getAttrib(e,t.nodeName))}),r))},getRoot:function(){var e=this;return e.settings.root_element||e.doc.body},getViewPort:function(e){var t,n;return e=e?e:this.win,t=e.document,n=this.boxModel?t.documentElement:t.body,{x:e.pageXOffset||n.scrollLeft,y:e.pageYOffset||n.scrollTop,w:e.innerWidth||n.clientWidth,h:e.innerHeight||n.clientHeight}},getRect:function(e){var t=this,n,r;return e=t.get(e),n=t.getPos(e),r=t.getSize(e),{x:n.x,y:n.y,w:r.w,h:r.h}},getSize:function(e){var t=this,n,r;return e=t.get(e),n=t.getStyle(e,\"width\"),r=t.getStyle(e,\"height\"),-1===n.indexOf(\"px\")&&(n=0),-1===r.indexOf(\"px\")&&(r=0),{w:parseInt(n,10)||e.offsetWidth||e.clientWidth,h:parseInt(r,10)||e.offsetHeight||e.clientHeight}},getParent:function(e,t,n){return this.getParents(e,t,n,!1)},getParents:function(e,n,r,i){var o=this,a,s=[];for(e=o.get(e),i=i===t,r=r||(\"BODY\"!=o.getRoot().nodeName?o.getRoot().parentNode:null),h(n,\"string\")&&(a=n,n=\"*\"===n?function(e){return 1==e.nodeType}:function(e){return o.is(e,a)});e&&e!=r&&e.nodeType&&9!==e.nodeType;){if(!n||n(e)){if(!i)return e;s.push(e)}e=e.parentNode}return i?s:null},get:function(e){var t;return e&&this.doc&&\"string\"==typeof e&&(t=e,e=this.doc.getElementById(e),e&&e.id!==t)?this.doc.getElementsByName(t)[1]:e},getNext:function(e,t){return this._findSib(e,t,\"nextSibling\")},getPrev:function(e,t){return this._findSib(e,t,\"previousSibling\")},select:function(t,n){var r=this;return e(t,r.get(n)||r.settings.root_element||r.doc,[])},is:function(n,r){var i;if(n.length===t){if(\"*\"===r)return 1==n.nodeType;if(y.test(r)){for(r=r.toLowerCase().split(/,/),n=n.nodeName.toLowerCase(),i=r.length-1;i>=0;i--)if(r[i]==n)return!0;return!1}}if(n.nodeType&&1!=n.nodeType)return!1;var o=n.nodeType?[n]:n;return e(r,o[0].ownerDocument||o[0],null,o).length>0},add:function(e,t,n,r,i){var o=this;return this.run(e,function(e){var a;return a=h(t,\"string\")?o.doc.createElement(t):t,o.setAttribs(a,n),r&&(r.nodeType?a.appendChild(r):o.setHTML(a,r)),i?a:e.appendChild(a)})},create:function(e,t,n){return this.add(this.doc.createElement(e),e,t,n,1)},createHTML:function(e,t,n){var r=\"\",i;r+=\"<\"+e;for(i in t)t.hasOwnProperty(i)&&null!==t[i]&&\"undefined\"!=typeof t[i]&&(r+=\" \"+i+'=\"'+this.encode(t[i])+'\"');return\"undefined\"!=typeof n?r+\">\"+n+\"</\"+e+\">\":r+\" />\"},createFragment:function(e){var t,n,r=this.doc,i;for(i=r.createElement(\"div\"),t=r.createDocumentFragment(),e&&(i.innerHTML=e);n=i.firstChild;)t.appendChild(n);return t},remove:function(e,t){return e=this.$$(e),t?e.each(function(){for(var e;e=this.firstChild;)3==e.nodeType&&0===e.data.length?this.removeChild(e):this.parentNode.insertBefore(e,this)}).remove():e.remove(),e.length>1?e.toArray():e[0]},setStyle:function(e,t,n){e=this.$$(e).css(t,n),this.settings.update_styles&&e.attr(\"data-mce-style\",null)},getStyle:function(e,n,r){return e=this.$$(e),r?e.css(n):(n=n.replace(/-(\\D)/g,function(e,t){return t.toUpperCase()}),\"float\"==n&&(n=v?\"styleFloat\":\"cssFloat\"),e[0]&&e[0].style?e[0].style[n]:t)},setStyles:function(e,t){e=this.$$(e).css(t),this.settings.update_styles&&e.attr(\"data-mce-style\",null)},removeAllAttribs:function(e){return this.run(e,function(e){var t,n=e.attributes;for(t=n.length-1;t>=0;t--)e.removeAttributeNode(n.item(t))})},setAttrib:function(e,t,n){var r=this,i,o,a=r.settings;\"\"===n&&(n=null),e=r.$$(e),i=e.attr(t),e.length&&(o=r.attrHooks[t],o&&o.set?o.set(e,n,t):e.attr(t,n),i!=n&&a.onSetAttrib&&a.onSetAttrib({attrElm:e,attrName:t,attrValue:n}))},setAttribs:function(e,t){var n=this;n.$$(e).each(function(e,r){p(t,function(e,t){n.setAttrib(r,t,e)})})},getAttrib:function(e,t,n){var r=this,i,o;return e=r.$$(e),e.length&&(i=r.attrHooks[t],o=i&&i.get?i.get(e,t):e.attr(t)),\"undefined\"==typeof o&&(o=n||\"\"),o},getPos:function(e,t){var r=this,i=0,o=0,a,s=r.doc,l=s.body,c;if(e=r.get(e),t=t||l,e){if(t===l&&e.getBoundingClientRect&&\"static\"===n(l).css(\"position\"))return c=e.getBoundingClientRect(),t=r.boxModel?s.documentElement:l,i=c.left+(s.documentElement.scrollLeft||l.scrollLeft)-t.clientLeft,o=c.top+(s.documentElement.scrollTop||l.scrollTop)-t.clientTop,{x:i,y:o};for(a=e;a&&a!=t&&a.nodeType;)i+=a.offsetLeft||0,o+=a.offsetTop||0,a=a.offsetParent;for(a=e.parentNode;a&&a!=t&&a.nodeType;)i-=a.scrollLeft||0,o-=a.scrollTop||0,a=a.parentNode}return{x:i,y:o}},parseStyle:function(e){return this.styles.parse(e)},serializeStyle:function(e,t){return this.styles.serialize(e,t)},addStyle:function(e){var t=this,n=t.doc,r,i;if(t!==f.DOM&&n===document){var o=f.DOM.addedStyles;if(o=o||[],o[e])return;o[e]=!0,f.DOM.addedStyles=o}i=n.getElementById(\"mceDefaultStyles\"),i||(i=n.createElement(\"style\"),i.id=\"mceDefaultStyles\",i.type=\"text/css\",r=n.getElementsByTagName(\"head\")[0],r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i)),i.styleSheet?i.styleSheet.cssText+=e:i.appendChild(n.createTextNode(e))},loadCSS:function(e){var t=this,n=t.doc,r;return t!==f.DOM&&n===document?void f.DOM.loadCSS(e):(e||(e=\"\"),r=n.getElementsByTagName(\"head\")[0],void p(e.split(\",\"),function(e){var i;e=c._addCacheSuffix(e),t.files[e]||(t.files[e]=!0,i=t.create(\"link\",{rel:\"stylesheet\",href:e}),v&&n.documentMode&&n.recalc&&(i.onload=function(){n.recalc&&n.recalc(),i.onload=null}),r.appendChild(i))}))},addClass:function(e,t){this.$$(e).addClass(t)},removeClass:function(e,t){this.toggleClass(e,t,!1)},hasClass:function(e,t){return this.$$(e).hasClass(t)},toggleClass:function(e,t,r){this.$$(e).toggleClass(t,r).each(function(){\"\"===this.className&&n(this).attr(\"class\",null)})},show:function(e){this.$$(e).show()},hide:function(e){this.$$(e).hide()},isHidden:function(e){return\"none\"==this.$$(e).css(\"display\")},uniqueId:function(e){return(e?e:\"mce_\")+this.counter++},setHTML:function(e,t){e=this.$$(e),v?e.each(function(e,r){if(r.canHaveHTML!==!1){for(;r.firstChild;)r.removeChild(r.firstChild);try{r.innerHTML=\"<br>\"+t,r.removeChild(r.firstChild)}catch(i){n(\"<div>\").html(\"<br>\"+t).contents().slice(1).appendTo(r)}return t}}):e.html(t)},getOuterHTML:function(e){return e=this.get(e),1==e.nodeType?e.outerHTML:n(\"<div>\").append(n(e).clone()).html()},setOuterHTML:function(e,t){var r=this;r.$$(e).each(function(){try{this.outerHTML=t}catch(e){r.remove(n(this).html(t),!0)}})},decode:s.decode,encode:s.encodeAllRaw,insertAfter:function(e,t){return t=this.get(t),this.run(e,function(e){var n,r;return n=t.parentNode,r=t.nextSibling,r?n.insertBefore(e,r):n.appendChild(e),e})},replace:function(e,t,n){var r=this;return r.run(t,function(t){return h(t,\"array\")&&(e=e.cloneNode(!0)),n&&p(m(t.childNodes),function(t){e.appendChild(t)}),t.parentNode.replaceChild(e,t)})},rename:function(e,t){var n=this,r;return e.nodeName!=t.toUpperCase()&&(r=n.create(t),p(n.getAttribs(e),function(t){n.setAttrib(r,t.nodeName,n.getAttrib(e,t.nodeName))}),n.replace(r,e,1)),r||e},findCommonAncestor:function(e,t){for(var n=e,r;n;){for(r=t;r&&n!=r;)r=r.parentNode;if(n==r)break;n=n.parentNode}return!n&&e.ownerDocument?e.ownerDocument.documentElement:n},toHex:function(e){return this.styles.toHex(c.trim(e))},run:function(e,t,n){var r=this,i;return\"string\"==typeof e&&(e=r.get(e)),e?(n=n||this,e.nodeType||!e.length&&0!==e.length?t.call(n,e):(i=[],p(e,function(e,o){e&&(\"string\"==typeof e&&(e=r.get(e)),i.push(t.call(n,e,o)))}),i)):!1},getAttribs:function(e){var t;if(e=this.get(e),!e)return[];if(v){if(t=[],\"OBJECT\"==e.nodeName)return e.attributes;\"OPTION\"===e.nodeName&&this.getAttrib(e,\"selected\")&&t.push({specified:1,nodeName:\"selected\"});var n=/<\\/?[\\w:\\-]+ ?|=[\\\"][^\\\"]+\\\"|=\\'[^\\']+\\'|=[\\w\\-]+|>/gi;return e.cloneNode(!1).outerHTML.replace(n,\"\").replace(/[\\w:\\-]+/gi,function(e){t.push({specified:1,nodeName:e})}),t}return e.attributes},isEmpty:function(e,t){var n=this,r,i,a,s,l,c=0;if(e=e.firstChild){s=new o(e,e.parentNode),t=t||(n.schema?n.schema.getNonEmptyElements():null);do{if(a=e.nodeType,1===a){if(e.getAttribute(\"data-mce-bogus\"))continue;if(l=e.nodeName.toLowerCase(),t&&t[l]){if(\"br\"===l){c++;continue}return!1}for(i=n.getAttribs(e),r=i.length;r--;)if(l=i[r].nodeName,\"name\"===l||\"data-mce-bookmark\"===l)return!1}if(8==a)return!1;if(3===a&&!b.test(e.nodeValue))return!1}while(e=s.next())}return 1>=c},createRng:function(){var e=this.doc;return e.createRange?e.createRange():new a(this)},nodeIndex:function(e,t){var n=0,r,i;if(e)for(r=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)i=e.nodeType,(!t||3!=i||i!=r&&e.nodeValue.length)&&(n++,r=i);return n},split:function(e,t,n){function r(e){function t(e){var t=e.previousSibling&&\"SPAN\"==e.previousSibling.nodeName,n=e.nextSibling&&\"SPAN\"==e.nextSibling.nodeName;return t&&n}var n,o=e.childNodes,a=e.nodeType;if(1!=a||\"bookmark\"!=e.getAttribute(\"data-mce-type\")){for(n=o.length-1;n>=0;n--)r(o[n]);if(9!=a){if(3==a&&e.nodeValue.length>0){var s=g(e.nodeValue).length;if(!i.isBlock(e.parentNode)||s>0||0===s&&t(e))return\n}else if(1==a&&(o=e.childNodes,1==o.length&&o[0]&&1==o[0].nodeType&&\"bookmark\"==o[0].getAttribute(\"data-mce-type\")&&e.parentNode.insertBefore(o[0],e),o.length||/^(br|hr|input|img)$/i.test(e.nodeName)))return;i.remove(e)}return e}}var i=this,o=i.createRng(),a,s,l;return e&&t?(o.setStart(e.parentNode,i.nodeIndex(e)),o.setEnd(t.parentNode,i.nodeIndex(t)),a=o.extractContents(),o=i.createRng(),o.setStart(t.parentNode,i.nodeIndex(t)+1),o.setEnd(e.parentNode,i.nodeIndex(e)+1),s=o.extractContents(),l=e.parentNode,l.insertBefore(r(a),e),n?l.replaceChild(n,t):l.insertBefore(t,e),l.insertBefore(r(s),e),i.remove(e),n||t):void 0},bind:function(e,t,n,r){var i=this;if(c.isArray(e)){for(var o=e.length;o--;)e[o]=i.bind(e[o],t,n,r);return e}return!i.settings.collect||e!==i.doc&&e!==i.win||i.boundEvents.push([e,t,n,r]),i.events.bind(e,t,n,r||i)},unbind:function(e,t,n){var r=this,i;if(c.isArray(e)){for(i=e.length;i--;)e[i]=r.unbind(e[i],t,n);return e}if(r.boundEvents&&(e===r.doc||e===r.win))for(i=r.boundEvents.length;i--;){var o=r.boundEvents[i];e!=o[0]||t&&t!=o[1]||n&&n!=o[2]||this.events.unbind(o[0],o[1],o[2])}return this.events.unbind(e,t,n)},fire:function(e,t,n){return this.events.fire(e,t,n)},getContentEditable:function(e){var t;return e&&1==e.nodeType?(t=e.getAttribute(\"data-mce-contenteditable\"),t&&\"inherit\"!==t?t:\"inherit\"!==e.contentEditable?e.contentEditable:null):null},getContentEditableParent:function(e){for(var t=this.getRoot(),n=null;e&&e!==t&&(n=this.getContentEditable(e),null===n);e=e.parentNode);return n},destroy:function(){var t=this;if(t.boundEvents){for(var n=t.boundEvents.length;n--;){var r=t.boundEvents[n];this.events.unbind(r[0],r[1],r[2])}t.boundEvents=null}e.setDocument&&e.setDocument(),t.win=t.doc=t.root=t.events=t.frag=null},isChildOf:function(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1},dumpRng:function(e){return\"startContainer: \"+e.startContainer.nodeName+\", startOffset: \"+e.startOffset+\", endContainer: \"+e.endContainer.nodeName+\", endOffset: \"+e.endOffset},_findSib:function(e,t,n){var r=this,i=t;if(e)for(\"string\"==typeof i&&(i=function(e){return r.is(e,t)}),e=e[n];e;e=e[n])if(i(e))return e;return null}},f.DOM=new f(document),f}),r(b,[y,d],function(e,t){function n(){function e(e,n){function i(){a.remove(l),s&&(s.onreadystatechange=s.onload=s=null),n()}function o(){\"undefined\"!=typeof console&&console.log&&console.log(\"Failed to load: \"+e)}var a=r,s,l;l=a.uniqueId(),s=document.createElement(\"script\"),s.id=l,s.type=\"text/javascript\",s.src=t._addCacheSuffix(e),\"onreadystatechange\"in s?s.onreadystatechange=function(){/loaded|complete/.test(s.readyState)&&i()}:s.onload=i,s.onerror=o,(document.getElementsByTagName(\"head\")[0]||document.body).appendChild(s)}var n=0,a=1,s=2,l={},c=[],u={},d=[],f=0,p;this.isDone=function(e){return l[e]==s},this.markDone=function(e){l[e]=s},this.add=this.load=function(e,t,r){var i=l[e];i==p&&(c.push(e),l[e]=n),t&&(u[e]||(u[e]=[]),u[e].push({func:t,scope:r||this}))},this.loadQueue=function(e,t){this.loadScripts(c,e,t)},this.loadScripts=function(t,n,r){function c(e){i(u[e],function(e){e.func.call(e.scope)}),u[e]=p}var h;d.push({func:n,scope:r||this}),(h=function(){var n=o(t);t.length=0,i(n,function(t){return l[t]==s?void c(t):void(l[t]!=a&&(l[t]=a,f++,e(t,function(){l[t]=s,f--,c(t),h()})))}),f||(i(d,function(e){e.func.call(e.scope)}),d.length=0)})()}}var r=e.DOM,i=t.each,o=t.grep;return n.ScriptLoader=new n,n}),r(C,[b,d],function(e,n){function r(){var e=this;e.items=[],e.urls={},e.lookup={}}var i=n.each;return r.prototype={get:function(e){return this.lookup[e]?this.lookup[e].instance:t},dependencies:function(e){var t;return this.lookup[e]&&(t=this.lookup[e].dependencies),t||[]},requireLangPack:function(t,n){var i=r.language;if(i&&r.languageLoad!==!1){if(n)if(n=\",\"+n+\",\",-1!=n.indexOf(\",\"+i.substr(0,2)+\",\"))i=i.substr(0,2);else if(-1==n.indexOf(\",\"+i+\",\"))return;e.ScriptLoader.add(this.urls[t]+\"/langs/\"+i+\".js\")}},add:function(e,t,n){return this.items.push(t),this.lookup[e]={instance:t,dependencies:n},t},createUrl:function(e,t){return\"object\"==typeof t?t:{prefix:e.prefix,resource:t,suffix:e.suffix}},addComponents:function(t,n){var r=this.urls[t];i(n,function(t){e.ScriptLoader.add(r+\"/\"+t)})},load:function(n,o,a,s){function l(){var r=c.dependencies(n);i(r,function(e){var n=c.createUrl(o,e);c.load(n.resource,n,t,t)}),a&&a.call(s?s:e)}var c=this,u=o;c.urls[n]||(\"object\"==typeof o&&(u=o.prefix+o.resource+o.suffix),0!==u.indexOf(\"/\")&&-1==u.indexOf(\"://\")&&(u=r.baseURL+\"/\"+u),c.urls[n]=u.substring(0,u.lastIndexOf(\"/\")),c.lookup[n]?l():e.ScriptLoader.add(u,l,s))}},r.PluginManager=new r,r.ThemeManager=new r,r}),r(x,[d,h],function(e,t){function n(e,t){var n=e.childNodes;return t--,t>n.length-1?t=n.length-1:0>t&&(t=0),n[t]||e}function r(e){this.walk=function(t,r){function o(e){var t;return t=e[0],3===t.nodeType&&t===c&&u>=t.nodeValue.length&&e.splice(0,1),t=e[e.length-1],0===f&&e.length>0&&t===d&&3===t.nodeType&&e.splice(e.length-1,1),e}function a(e,t,n){for(var r=[];e&&e!=n;e=e[t])r.push(e);return r}function s(e,t){do{if(e.parentNode==t)return e;e=e.parentNode}while(e)}function l(e,t,n){var i=n?\"nextSibling\":\"previousSibling\";for(g=e,v=g.parentNode;g&&g!=t;g=v)v=g.parentNode,y=a(g==e?g:g[i],i),y.length&&(n||y.reverse(),r(o(y)))}var c=t.startContainer,u=t.startOffset,d=t.endContainer,f=t.endOffset,p,h,m,g,v,y,b;if(b=e.select(\"td.mce-item-selected,th.mce-item-selected\"),b.length>0)return void i(b,function(e){r([e])});if(1==c.nodeType&&c.hasChildNodes()&&(c=c.childNodes[u]),1==d.nodeType&&d.hasChildNodes()&&(d=n(d,f)),c==d)return r(o([c]));for(p=e.findCommonAncestor(c,d),g=c;g;g=g.parentNode){if(g===d)return l(c,p,!0);if(g===p)break}for(g=d;g;g=g.parentNode){if(g===c)return l(d,p);if(g===p)break}h=s(c,p)||c,m=s(d,p)||d,l(c,h,!0),y=a(h==c?h:h.nextSibling,\"nextSibling\",m==d?m.nextSibling:m),y.length&&r(o(y)),l(d,m)},this.split=function(e){function t(e,t){return e.splitText(t)}var n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset;return n==i&&3==n.nodeType?r>0&&r<n.nodeValue.length&&(i=t(n,r),n=i.previousSibling,o>r?(o-=r,n=i=t(i,o).previousSibling,o=i.nodeValue.length,r=0):o=0):(3==n.nodeType&&r>0&&r<n.nodeValue.length&&(n=t(n,r),r=0),3==i.nodeType&&o>0&&o<i.nodeValue.length&&(i=t(i,o).previousSibling,o=i.nodeValue.length)),{startContainer:n,startOffset:r,endContainer:i,endOffset:o}},this.normalize=function(n){function r(r){function a(n,r){for(var i=new t(n,e.getParent(n.parentNode,e.isBlock)||f);n=i[r?\"prev\":\"next\"]();)if(\"BR\"===n.nodeName)return!0}function s(e,t){return e.previousSibling&&e.previousSibling.nodeName==t}function l(n,r){var a,s,l;if(r=r||c,l=e.getParent(r.parentNode,e.isBlock)||f,n&&\"BR\"==r.nodeName&&g&&e.isEmpty(l))return c=r.parentNode,u=e.nodeIndex(r),void(i=!0);for(a=new t(r,l);p=a[n?\"prev\":\"next\"]();){if(\"false\"===e.getContentEditableParent(p))return;if(3===p.nodeType&&p.nodeValue.length>0)return c=p,u=n?p.nodeValue.length:0,void(i=!0);if(e.isBlock(p)||h[p.nodeName.toLowerCase()])return;s=p}o&&s&&(c=s,i=!0,u=0)}var c,u,d,f=e.getRoot(),p,h,m,g;if(c=n[(r?\"start\":\"end\")+\"Container\"],u=n[(r?\"start\":\"end\")+\"Offset\"],g=1==c.nodeType&&u===c.childNodes.length,h=e.schema.getNonEmptyElements(),m=r,1==c.nodeType&&u>c.childNodes.length-1&&(m=!1),9===c.nodeType&&(c=e.getRoot(),u=0),c===f){if(m&&(p=c.childNodes[u>0?u-1:0],p&&(h[p.nodeName]||\"TABLE\"==p.nodeName)))return;if(c.hasChildNodes()&&(u=Math.min(!m&&u>0?u-1:u,c.childNodes.length-1),c=c.childNodes[u],u=0,c.hasChildNodes()&&!/TABLE/.test(c.nodeName))){p=c,d=new t(c,f);do{if(3===p.nodeType&&p.nodeValue.length>0){u=m?0:p.nodeValue.length,c=p,i=!0;break}if(h[p.nodeName.toLowerCase()]){u=e.nodeIndex(p),c=p.parentNode,\"IMG\"!=p.nodeName||m||u++,i=!0;break}}while(p=m?d.next():d.prev())}}o&&(3===c.nodeType&&0===u&&l(!0),1===c.nodeType&&(p=c.childNodes[u],p||(p=c.childNodes[u-1]),!p||\"BR\"!==p.nodeName||s(p,\"A\")||a(p)||a(p,!0)||l(!0,p))),m&&!o&&3===c.nodeType&&u===c.nodeValue.length&&l(!1),i&&n[\"set\"+(r?\"Start\":\"End\")](c,u)}var i,o;return o=n.collapsed,r(!0),o||r(),i&&o&&n.collapse(!0),i}}var i=e.each;return r.compareRanges=function(e,t){if(e&&t){if(!e.item&&!e.duplicate)return e.startContainer==t.startContainer&&e.startOffset==t.startOffset;if(e.item&&t.item&&e.item(0)===t.item(0))return!0;if(e.isEqual&&t.isEqual&&t.isEqual(e))return!0}return!1},r}),r(w,[x],function(e){return function(t){function n(e){var n,r;if(r=t.$(e).parentsUntil(t.getBody()).add(e),r.length===i.length){for(n=r.length;n>=0&&r[n]===i[n];n--);if(-1===n)return i=r,!0}return i=r,!1}var r,i=[];\"onselectionchange\"in t.getDoc()||t.on(\"NodeChange Click MouseUp KeyUp Focus\",function(n){var i,o;i=t.selection.getRng(),o={startContainer:i.startContainer,startOffset:i.startOffset,endContainer:i.endContainer,endOffset:i.endOffset},\"nodechange\"!=n.type&&e.compareRanges(o,r)||t.fire(\"SelectionChange\"),r=o}),t.on(\"contextmenu\",function(){t.fire(\"SelectionChange\")}),t.on(\"SelectionChange\",function(){var e=t.selection.getStart(!0);t.selection.isCollapsed()||n(e)||!t.dom.isChildOf(e,t.getBody())||t.nodeChanged({selectionChange:!0})}),t.on(\"MouseUp\",function(e){e.isDefaultPrevented()||setTimeout(function(){t.nodeChanged()},0)}),this.nodeChanged=function(e){var n=t.selection,r,i,o;t.initialized&&n&&!t.settings.disable_nodechange&&!t.settings.readonly&&(o=t.getBody(),r=n.getStart()||o,r=r.ownerDocument!=t.getDoc()?t.getBody():r,\"IMG\"==r.nodeName&&n.isCollapsed()&&(r=r.parentNode),i=[],t.dom.getParent(r,function(e){return e===o?!0:void i.push(e)}),e=e||{},e.element=r,e.parents=i,t.fire(\"NodeChange\",e))}}}),r(_,[],function(){function e(e,t,n){var r,i,o=n?\"lastChild\":\"firstChild\",a=n?\"prev\":\"next\";if(e[o])return e[o];if(e!==t){if(r=e[a])return r;for(i=e.parent;i&&i!==t;i=i.parent)if(r=i[a])return r}}function t(e,t){this.name=e,this.type=t,1===t&&(this.attributes=[],this.attributes.map={})}var n=/^[ \\t\\r\\n]*$/,r={\"#text\":3,\"#comment\":8,\"#cdata\":4,\"#pi\":7,\"#doctype\":10,\"#document-fragment\":11};return t.prototype={replace:function(e){var t=this;return e.parent&&e.remove(),t.insert(e,t),t.remove(),t},attr:function(e,t){var n=this,r,i,o;if(\"string\"!=typeof e){for(i in e)n.attr(i,e[i]);return n}if(r=n.attributes){if(t!==o){if(null===t){if(e in r.map)for(delete r.map[e],i=r.length;i--;)if(r[i].name===e)return r=r.splice(i,1),n;return n}if(e in r.map){for(i=r.length;i--;)if(r[i].name===e){r[i].value=t;break}}else r.push({name:e,value:t});return r.map[e]=t,n}return r.map[e]}},clone:function(){var e=this,n=new t(e.name,e.type),r,i,o,a,s;if(o=e.attributes){for(s=[],s.map={},r=0,i=o.length;i>r;r++)a=o[r],\"id\"!==a.name&&(s[s.length]={name:a.name,value:a.value},s.map[a.name]=a.value);n.attributes=s}return n.value=e.value,n.shortEnded=e.shortEnded,n},wrap:function(e){var t=this;return t.parent.insert(e,t),e.append(t),t},unwrap:function(){var e=this,t,n;for(t=e.firstChild;t;)n=t.next,e.insert(t,e,!0),t=n;e.remove()},remove:function(){var e=this,t=e.parent,n=e.next,r=e.prev;return t&&(t.firstChild===e?(t.firstChild=n,n&&(n.prev=null)):r.next=n,t.lastChild===e?(t.lastChild=r,r&&(r.next=null)):n.prev=r,e.parent=e.next=e.prev=null),e},append:function(e){var t=this,n;return e.parent&&e.remove(),n=t.lastChild,n?(n.next=e,e.prev=n,t.lastChild=e):t.lastChild=t.firstChild=e,e.parent=t,e},insert:function(e,t,n){var r;return e.parent&&e.remove(),r=t.parent||this,n?(t===r.firstChild?r.firstChild=e:t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e):(t===r.lastChild?r.lastChild=e:t.next.prev=e,e.next=t.next,e.prev=t,t.next=e),e.parent=r,e},getAll:function(t){var n=this,r,i=[];for(r=n.firstChild;r;r=e(r,n))r.name===t&&i.push(r);return i},empty:function(){var t=this,n,r,i;if(t.firstChild){for(n=[],i=t.firstChild;i;i=e(i,t))n.push(i);for(r=n.length;r--;)i=n[r],i.parent=i.firstChild=i.lastChild=i.next=i.prev=null}return t.firstChild=t.lastChild=null,t},isEmpty:function(t){var r=this,i=r.firstChild,o,a;if(i)do{if(1===i.type){if(i.attributes.map[\"data-mce-bogus\"])continue;if(t[i.name])return!1;for(o=i.attributes.length;o--;)if(a=i.attributes[o].name,\"name\"===a||0===a.indexOf(\"data-mce-bookmark\"))return!1}if(8===i.type)return!1;if(3===i.type&&!n.test(i.value))return!1}while(i=e(i,r));return!0},walk:function(t){return e(this,null,t)}},t.create=function(e,n){var i,o;if(i=new t(e,r[e]||1),n)for(o in n)i.attr(o,n[o]);return i},t}),r(E,[d],function(e){function t(e,t){return e?e.split(t||\" \"):[]}function n(e){function n(e,n,r){function i(e,t){var n={},r,i;for(r=0,i=e.length;i>r;r++)n[e[r]]=t||{};return n}var s,c,u,d=arguments;for(r=r||[],n=n||\"\",\"string\"==typeof r&&(r=t(r)),c=3;c<d.length;c++)\"string\"==typeof d[c]&&(d[c]=t(d[c])),r.push.apply(r,d[c]);for(e=t(e),s=e.length;s--;)u=[].concat(l,t(n)),a[e[s]]={attributes:i(u),attributesOrder:u,children:i(r,o)}}function r(e,n){var r,i,o,s;for(e=t(e),r=e.length,n=t(n);r--;)for(i=a[e[r]],o=0,s=n.length;s>o;o++)i.attributes[n[o]]={},i.attributesOrder.push(n[o])}var a={},l,c,u,d,f,p;return i[e]?i[e]:(l=t(\"id accesskey class dir lang style tabindex title\"),c=t(\"address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul\"),u=t(\"a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment\"),\"html4\"!=e&&(l.push.apply(l,t(\"contenteditable contextmenu draggable dropzone hidden spellcheck translate\")),c.push.apply(c,t(\"article aside details dialog figure header footer hgroup section nav\")),u.push.apply(u,t(\"audio canvas command datalist mark meter output progress time wbr video ruby bdi keygen\"))),\"html5-strict\"!=e&&(l.push(\"xml:lang\"),p=t(\"acronym applet basefont big font strike tt\"),u.push.apply(u,p),s(p,function(e){n(e,\"\",u)}),f=t(\"center dir isindex noframes\"),c.push.apply(c,f),d=[].concat(c,u),s(f,function(e){n(e,\"\",d)})),d=d||[].concat(c,u),n(\"html\",\"manifest\",\"head body\"),n(\"head\",\"\",\"base command link meta noscript script style title\"),n(\"title hr noscript br\"),n(\"base\",\"href target\"),n(\"link\",\"href rel media hreflang type sizes hreflang\"),n(\"meta\",\"name http-equiv content charset\"),n(\"style\",\"media type scoped\"),n(\"script\",\"src async defer type charset\"),n(\"body\",\"onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload\",d),n(\"address dt dd div caption\",\"\",d),n(\"h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn\",\"\",u),n(\"blockquote\",\"cite\",d),n(\"ol\",\"reversed start type\",\"li\"),n(\"ul\",\"\",\"li\"),n(\"li\",\"value\",d),n(\"dl\",\"\",\"dt dd\"),n(\"a\",\"href target rel media hreflang type\",u),n(\"q\",\"cite\",u),n(\"ins del\",\"cite datetime\",d),n(\"img\",\"src srcset alt usemap ismap width height\"),n(\"iframe\",\"src name width height\",d),n(\"embed\",\"src type width height\"),n(\"object\",\"data type typemustmatch name usemap form width height\",d,\"param\"),n(\"param\",\"name value\"),n(\"map\",\"name\",d,\"area\"),n(\"area\",\"alt coords shape href target rel media hreflang type\"),n(\"table\",\"border\",\"caption colgroup thead tfoot tbody tr\"+(\"html4\"==e?\" col\":\"\")),n(\"colgroup\",\"span\",\"col\"),n(\"col\",\"span\"),n(\"tbody thead tfoot\",\"\",\"tr\"),n(\"tr\",\"\",\"td th\"),n(\"td\",\"colspan rowspan headers\",d),n(\"th\",\"colspan rowspan headers scope abbr\",d),n(\"form\",\"accept-charset action autocomplete enctype method name novalidate target\",d),n(\"fieldset\",\"disabled form name\",d,\"legend\"),n(\"label\",\"form for\",u),n(\"input\",\"accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width\"),n(\"button\",\"disabled form formaction formenctype formmethod formnovalidate formtarget name type value\",\"html4\"==e?d:u),n(\"select\",\"disabled form multiple name required size\",\"option optgroup\"),n(\"optgroup\",\"disabled label\",\"option\"),n(\"option\",\"disabled label selected value\"),n(\"textarea\",\"cols dirname disabled form maxlength name readonly required rows wrap\"),n(\"menu\",\"type label\",d,\"li\"),n(\"noscript\",\"\",d),\"html4\"!=e&&(n(\"wbr\"),n(\"ruby\",\"\",u,\"rt rp\"),n(\"figcaption\",\"\",d),n(\"mark rt rp summary bdi\",\"\",u),n(\"canvas\",\"width height\",d),n(\"video\",\"src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered\",d,\"track source\"),n(\"audio\",\"src crossorigin preload autoplay mediagroup loop muted controls buffered volume\",d,\"track source\"),n(\"picture\",\"\",\"img source\"),n(\"source\",\"src srcset type media sizes\"),n(\"track\",\"kind src srclang label default\"),n(\"datalist\",\"\",u,\"option\"),n(\"article section nav aside header footer\",\"\",d),n(\"hgroup\",\"\",\"h1 h2 h3 h4 h5 h6\"),n(\"figure\",\"\",d,\"figcaption\"),n(\"time\",\"datetime\",u),n(\"dialog\",\"open\",d),n(\"command\",\"type label icon disabled checked radiogroup command\"),n(\"output\",\"for form name\",u),n(\"progress\",\"value max\",u),n(\"meter\",\"value min max low high optimum\",u),n(\"details\",\"open\",d,\"summary\"),n(\"keygen\",\"autofocus challenge disabled form keytype name\")),\"html5-strict\"!=e&&(r(\"script\",\"language xml:space\"),r(\"style\",\"xml:space\"),r(\"object\",\"declare classid code codebase codetype archive standby align border hspace vspace\"),r(\"embed\",\"align name hspace vspace\"),r(\"param\",\"valuetype type\"),r(\"a\",\"charset name rev shape coords\"),r(\"br\",\"clear\"),r(\"applet\",\"codebase archive code object alt name width height align hspace vspace\"),r(\"img\",\"name longdesc align border hspace vspace\"),r(\"iframe\",\"longdesc frameborder marginwidth marginheight scrolling align\"),r(\"font basefont\",\"size color face\"),r(\"input\",\"usemap align\"),r(\"select\",\"onchange\"),r(\"textarea\"),r(\"h1 h2 h3 h4 h5 h6 div p legend caption\",\"align\"),r(\"ul\",\"type compact\"),r(\"li\",\"type\"),r(\"ol dl menu dir\",\"compact\"),r(\"pre\",\"width xml:space\"),r(\"hr\",\"align noshade size width\"),r(\"isindex\",\"prompt\"),r(\"table\",\"summary width frame rules cellspacing cellpadding align bgcolor\"),r(\"col\",\"width align char charoff valign\"),r(\"colgroup\",\"width align char charoff valign\"),r(\"thead\",\"align char charoff valign\"),r(\"tr\",\"align char charoff valign bgcolor\"),r(\"th\",\"axis align char charoff valign nowrap bgcolor width height\"),r(\"form\",\"accept\"),r(\"td\",\"abbr axis scope align char charoff valign nowrap bgcolor width height\"),r(\"tfoot\",\"align char charoff valign\"),r(\"tbody\",\"align char charoff valign\"),r(\"area\",\"nohref\"),r(\"body\",\"background bgcolor text link vlink alink\")),\"html4\"!=e&&(r(\"input button select textarea\",\"autofocus\"),r(\"input textarea\",\"placeholder\"),r(\"a\",\"download\"),r(\"link script img\",\"crossorigin\"),r(\"iframe\",\"sandbox seamless allowfullscreen\")),s(t(\"a form meter progress dfn\"),function(e){a[e]&&delete a[e].children[e]}),delete a.caption.children.table,i[e]=a,a)}function r(e,t){var n;return e&&(n={},\"string\"==typeof e&&(e={\"*\":e}),s(e,function(e,r){n[r]=\"map\"==t?a(e,/[, ]/):c(e,/[, ]/)})),n}var i={},o={},a=e.makeMap,s=e.each,l=e.extend,c=e.explode,u=e.inArray;return function(e){function o(t,n,r){var o=e[t];return o?o=a(o,/[, ]/,a(o.toUpperCase(),/[, ]/)):(o=i[t],o||(o=a(n,\" \",a(n.toUpperCase(),\" \")),o=l(o,r),i[t]=o)),o}function d(e){return new RegExp(\"^\"+e.replace(/([?+*])/g,\".$1\")+\"$\")}function f(e){var n,r,i,o,s,l,c,f,p,h,m,g,v,b,x,w,_,E,N,k=/^([#+\\-])?([^\\[!\\/]+)(?:\\/([^\\[!]+))?(?:(!?)\\[([^\\]]+)\\])?$/,S=/^([!\\-])?(\\w+::\\w+|[^=:<]+)?(?:([=:<])(.*))?$/,T=/[*?+]/;if(e)for(e=t(e,\",\"),y[\"@\"]&&(w=y[\"@\"].attributes,_=y[\"@\"].attributesOrder),n=0,r=e.length;r>n;n++)if(s=k.exec(e[n])){if(b=s[1],p=s[2],x=s[3],f=s[5],g={},v=[],l={attributes:g,attributesOrder:v},\"#\"===b&&(l.paddEmpty=!0),\"-\"===b&&(l.removeEmpty=!0),\"!\"===s[4]&&(l.removeEmptyAttrs=!0),w){for(E in w)g[E]=w[E];v.push.apply(v,_)}if(f)for(f=t(f,\"|\"),i=0,o=f.length;o>i;i++)if(s=S.exec(f[i])){if(c={},m=s[1],h=s[2].replace(/::/g,\":\"),b=s[3],N=s[4],\"!\"===m&&(l.attributesRequired=l.attributesRequired||[],l.attributesRequired.push(h),c.required=!0),\"-\"===m){delete g[h],v.splice(u(v,h),1);continue}b&&(\"=\"===b&&(l.attributesDefault=l.attributesDefault||[],l.attributesDefault.push({name:h,value:N}),c.defaultValue=N),\":\"===b&&(l.attributesForced=l.attributesForced||[],l.attributesForced.push({name:h,value:N}),c.forcedValue=N),\"<\"===b&&(c.validValues=a(N,\"?\"))),T.test(h)?(l.attributePatterns=l.attributePatterns||[],c.pattern=d(h),l.attributePatterns.push(c)):(g[h]||v.push(h),g[h]=c)}w||\"@\"!=p||(w=g,_=v),x&&(l.outputName=p,y[x]=l),T.test(p)?(l.pattern=d(p),C.push(l)):y[p]=l}}function p(e){y={},C=[],f(e),s(_,function(e,t){b[t]=e.children})}function h(e){var n=/^(~)?(.+)$/;e&&(i.text_block_elements=i.block_elements=null,s(t(e,\",\"),function(e){var t=n.exec(e),r=\"~\"===t[1],i=r?\"span\":\"div\",o=t[2];if(b[o]=b[i],L[o]=i,r||(R[o.toUpperCase()]={},R[o]={}),!y[o]){var a=y[i];a=l({},a),delete a.removeEmptyAttrs,delete a.removeEmpty,y[o]=a}s(b,function(e,t){e[i]&&(b[t]=e=l({},b[t]),e[o]=e[i])})}))}function m(e){var n=/^([+\\-]?)(\\w+)\\[([^\\]]+)\\]$/;e&&s(t(e,\",\"),function(e){var r=n.exec(e),i,o;r&&(o=r[1],i=o?b[r[2]]:b[r[2]]={\"#comment\":{}},i=b[r[2]],s(t(r[3],\"|\"),function(e){\"-\"===o?(b[r[2]]=i=l({},b[r[2]]),delete i[e]):i[e]={}}))})}function g(e){var t=y[e],n;if(t)return t;for(n=C.length;n--;)if(t=C[n],t.pattern.test(e))return t}var v=this,y={},b={},C=[],x,w,_,E,N,k,S,T,R,A,B,D,L={},H={};e=e||{},_=n(e.schema),e.verify_html===!1&&(e.valid_elements=\"*[*]\"),x=r(e.valid_styles),w=r(e.invalid_styles,\"map\"),T=r(e.valid_classes,\"map\"),E=o(\"whitespace_elements\",\"pre script noscript style textarea video audio iframe object\"),N=o(\"self_closing_elements\",\"colgroup dd dt li option p td tfoot th thead tr\"),k=o(\"short_ended_elements\",\"area base basefont br col frame hr img input isindex link meta param embed source wbr track\"),S=o(\"boolean_attributes\",\"checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls\"),A=o(\"non_empty_elements\",\"td th iframe video audio object script\",k),B=o(\"text_block_elements\",\"h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside nav figure\"),R=o(\"block_elements\",\"hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup\",B),D=o(\"text_inline_elements\",\"span strong b em i font strike u var cite dfn code mark q sup sub samp\"),s((e.special||\"script noscript style textarea\").split(\" \"),function(e){H[e]=new RegExp(\"</\"+e+\"[^>]*>\",\"gi\")}),e.valid_elements?p(e.valid_elements):(s(_,function(e,t){y[t]={attributes:e.attributes,attributesOrder:e.attributesOrder},b[t]=e.children}),\"html5\"!=e.schema&&s(t(\"strong/b em/i\"),function(e){e=t(e,\"/\"),y[e[1]].outputName=e[0]}),y.img.attributesDefault=[{name:\"alt\",value:\"\"}],s(t(\"ol ul sub sup blockquote span font a table tbody tr strong em b i\"),function(e){y[e]&&(y[e].removeEmpty=!0)}),s(t(\"p h1 h2 h3 h4 h5 h6 th td pre div address caption\"),function(e){y[e].paddEmpty=!0}),s(t(\"span\"),function(e){y[e].removeEmptyAttrs=!0})),h(e.custom_elements),m(e.valid_children),f(e.extended_valid_elements),m(\"+ol[ul|ol],+ul[ul|ol]\"),e.invalid_elements&&s(c(e.invalid_elements),function(e){y[e]&&delete y[e]}),g(\"span\")||f(\"span[!data-mce-type|*]\"),v.children=b,v.getValidStyles=function(){return x},v.getInvalidStyles=function(){return w},v.getValidClasses=function(){return T},v.getBoolAttrs=function(){return S},v.getBlockElements=function(){return R},v.getTextBlockElements=function(){return B},v.getTextInlineElements=function(){return D},v.getShortEndedElements=function(){return k},v.getSelfClosingElements=function(){return N},v.getNonEmptyElements=function(){return A},v.getWhiteSpaceElements=function(){return E},v.getSpecialElements=function(){return H},v.isValidChild=function(e,t){var n=b[e];return!(!n||!n[t])},v.isValid=function(e,t){var n,r,i=g(e);if(i){if(!t)return!0;if(i.attributes[t])return!0;if(n=i.attributePatterns)for(r=n.length;r--;)if(n[r].pattern.test(e))return!0}return!1},v.getElementRule=g,v.getCustomElements=function(){return L},v.addValidElements=f,v.setValidElements=p,v.addCustomElements=h,v.addValidChildren=m,v.elements=y}}),r(N,[E,g,d],function(e,t,n){function r(e,t,n){var r=1,i,o,a,s;for(s=e.getShortEndedElements(),a=/<([!?\\/])?([A-Za-z0-9\\-_\\:\\.]+)((?:\\s+[^\"\\'>]+(?:(?:\"[^\"]*\")|(?:\\'[^\\']*\\')|[^>]*))*|\\/|\\s+)>/g,a.lastIndex=i=n;o=a.exec(t);){if(i=a.lastIndex,\"/\"===o[1])r--;else if(!o[1]){if(o[2]in s)continue;r++}if(0===r)break}return i}function i(i,a){function s(){}var l=this;i=i||{},l.schema=a=a||new e,i.fix_self_closing!==!1&&(i.fix_self_closing=!0),o(\"comment cdata text start end pi doctype\".split(\" \"),function(e){e&&(l[e]=i[e]||s)}),l.parse=function(e){function o(e){var t,n;for(t=p.length;t--&&p[t].name!==e;);if(t>=0){for(n=p.length-1;n>=t;n--)e=p[n],e.valid&&l.end(e.name);p.length=t}}function s(e,t,n,r,o){var a,s,l=/[\\s\\u0000-\\u001F]+/g;if(t=t.toLowerCase(),n=t in x?t:z(n||r||o||\"\"),_&&!y&&0!==t.indexOf(\"data-\")){if(a=T[t],!a&&R){for(s=R.length;s--&&(a=R[s],!a.pattern.test(t)););-1===s&&(a=null)}if(!a)return;if(a.validValues&&!(n in a.validValues))return}if(V[t]&&!i.allow_script_urls){var c=n.replace(l,\"\");try{c=decodeURIComponent(c)}catch(u){c=unescape(c)}if(U.test(c))return;if(!i.allow_html_data_urls&&$.test(c)&&!/^data:image\\//i.test(c))return}h.map[t]=n,h.push({name:t,value:n})}var l=this,c,u=0,d,f,p=[],h,m,g,v,y,b,C,x,w,_,E,N,k,S,T,R,A,B,D,L,H,M,P,O,I,F=0,z=t.decode,W,V=n.makeMap(\"src,href,data,background,formaction,poster\"),U=/((java|vb)script|mhtml):/i,$=/^data:/i;for(M=new RegExp(\"<(?:(?:!--([\\\\w\\\\W]*?)-->)|(?:!\\\\[CDATA\\\\[([\\\\w\\\\W]*?)\\\\]\\\\]>)|(?:!DOCTYPE([\\\\w\\\\W]*?)>)|(?:\\\\?([^\\\\s\\\\/<>]+) ?([\\\\w\\\\W]*?)[?/]>)|(?:\\\\/([^>]+)>)|(?:([A-Za-z0-9\\\\-_\\\\:\\\\.]+)((?:\\\\s+[^\\\"'>]+(?:(?:\\\"[^\\\"]*\\\")|(?:'[^']*')|[^>]*))*|\\\\/|\\\\s+)>))\",\"g\"),P=/([\\w:\\-]+)(?:\\s*=\\s*(?:(?:\\\"((?:[^\\\"])*)\\\")|(?:\\'((?:[^\\'])*)\\')|([^>\\s]+)))?/g,C=a.getShortEndedElements(),H=i.self_closing_elements||a.getSelfClosingElements(),x=a.getBoolAttrs(),_=i.validate,b=i.remove_internals,W=i.fix_self_closing,O=a.getSpecialElements();c=M.exec(e);){if(u<c.index&&l.text(z(e.substr(u,c.index-u))),d=c[6])d=d.toLowerCase(),\":\"===d.charAt(0)&&(d=d.substr(1)),o(d);else if(d=c[7]){if(d=d.toLowerCase(),\":\"===d.charAt(0)&&(d=d.substr(1)),w=d in C,W&&H[d]&&p.length>0&&p[p.length-1].name===d&&o(d),!_||(E=a.getElementRule(d))){if(N=!0,_&&(T=E.attributes,R=E.attributePatterns),(S=c[8])?(y=-1!==S.indexOf(\"data-mce-type\"),y&&b&&(N=!1),h=[],h.map={},S.replace(P,s)):(h=[],h.map={}),_&&!y){if(A=E.attributesRequired,B=E.attributesDefault,D=E.attributesForced,L=E.removeEmptyAttrs,L&&!h.length&&(N=!1),D)for(m=D.length;m--;)k=D[m],v=k.name,I=k.value,\"{$uid}\"===I&&(I=\"mce_\"+F++),h.map[v]=I,h.push({name:v,value:I});if(B)for(m=B.length;m--;)k=B[m],v=k.name,v in h.map||(I=k.value,\"{$uid}\"===I&&(I=\"mce_\"+F++),h.map[v]=I,h.push({name:v,value:I}));if(A){for(m=A.length;m--&&!(A[m]in h.map););-1===m&&(N=!1)}if(k=h.map[\"data-mce-bogus\"]){if(\"all\"===k){u=r(a,e,M.lastIndex),M.lastIndex=u;continue}N=!1}}N&&l.start(d,h,w)}else N=!1;if(f=O[d]){f.lastIndex=u=c.index+c[0].length,(c=f.exec(e))?(N&&(g=e.substr(u,c.index-u)),u=c.index+c[0].length):(g=e.substr(u),u=e.length),N&&(g.length>0&&l.text(g,!0),l.end(d)),M.lastIndex=u;continue}w||(S&&S.indexOf(\"/\")==S.length-1?N&&l.end(d):p.push({name:d,valid:N}))}else(d=c[1])?(\">\"===d.charAt(0)&&(d=\" \"+d),i.allow_conditional_comments||\"[if\"!==d.substr(0,3)||(d=\" \"+d),l.comment(d)):(d=c[2])?l.cdata(d):(d=c[3])?l.doctype(d):(d=c[4])&&l.pi(d,c[5]);u=c.index+c[0].length}for(u<e.length&&l.text(z(e.substr(u))),m=p.length-1;m>=0;m--)d=p[m],d.valid&&l.end(d.name)}}var o=n.each;return i.findEndTag=r,i}),r(k,[_,E,N,d],function(e,t,n,r){var i=r.makeMap,o=r.each,a=r.explode,s=r.extend;return function(r,l){function c(t){var n,r,o,a,s,c,d,f,p,h,m,g,v,y;for(m=i(\"tr,td,th,tbody,thead,tfoot,table\"),h=l.getNonEmptyElements(),g=l.getTextBlockElements(),n=0;n<t.length;n++)if(r=t[n],r.parent&&!r.fixed)if(g[r.name]&&\"li\"==r.parent.name){for(v=r.next;v&&g[v.name];)v.name=\"li\",v.fixed=!0,r.parent.insert(v,r.parent),v=v.next;r.unwrap(r)}else{for(a=[r],o=r.parent;o&&!l.isValidChild(o.name,r.name)&&!m[o.name];o=o.parent)a.push(o);if(o&&a.length>1){for(a.reverse(),s=c=u.filterNode(a[0].clone()),p=0;p<a.length-1;p++){for(l.isValidChild(c.name,a[p].name)?(d=u.filterNode(a[p].clone()),c.append(d)):d=c,f=a[p].firstChild;f&&f!=a[p+1];)y=f.next,d.append(f),f=y;c=d}s.isEmpty(h)?o.insert(r,a[0],!0):(o.insert(s,a[0],!0),o.insert(r,s)),o=a[0],(o.isEmpty(h)||o.firstChild===o.lastChild&&\"br\"===o.firstChild.name)&&o.empty().remove()}else if(r.parent){if(\"li\"===r.name){if(v=r.prev,v&&(\"ul\"===v.name||\"ul\"===v.name)){v.append(r);continue}if(v=r.next,v&&(\"ul\"===v.name||\"ul\"===v.name)){v.insert(r,v.firstChild,!0);continue}r.wrap(u.filterNode(new e(\"ul\",1)));continue}l.isValidChild(r.parent.name,\"div\")&&l.isValidChild(\"div\",r.name)?r.wrap(u.filterNode(new e(\"div\",1))):\"style\"===r.name||\"script\"===r.name?r.empty().remove():r.unwrap()}}}var u=this,d={},f=[],p={},h={};r=r||{},r.validate=\"validate\"in r?r.validate:!0,r.root_name=r.root_name||\"body\",u.schema=l=l||new t,u.filterNode=function(e){var t,n,r;n in d&&(r=p[n],r?r.push(e):p[n]=[e]),t=f.length;for(;t--;)n=f[t].name,n in e.attributes.map&&(r=h[n],r?r.push(e):h[n]=[e]);return e},u.addNodeFilter=function(e,t){o(a(e),function(e){var n=d[e];n||(d[e]=n=[]),n.push(t)})},u.addAttributeFilter=function(e,t){o(a(e),function(e){var n;for(n=0;n<f.length;n++)if(f[n].name===e)return void f[n].callbacks.push(t);f.push({name:e,callbacks:[t]})})},u.parse=function(t,o){function a(){function e(e){e&&(t=e.firstChild,t&&3==t.type&&(t.value=t.value.replace(R,\"\")),t=e.lastChild,t&&3==t.type&&(t.value=t.value.replace(D,\"\")))}var t=y.firstChild,n,i;if(l.isValidChild(y.name,I.toLowerCase())){for(;t;)n=t.next,3==t.type||1==t.type&&\"p\"!==t.name&&!T[t.name]&&!t.attr(\"data-mce-type\")?i?i.append(t):(i=u(I,1),i.attr(r.forced_root_block_attrs),y.insert(i,t),i.append(t)):(e(i),i=null),t=n;e(i)}}function u(t,n){var r=new e(t,n),i;return t in d&&(i=p[t],i?i.push(r):p[t]=[r]),r}function m(e){var t,n,r;for(t=e.prev;t&&3===t.type;)n=t.value.replace(D,\"\"),n.length>0?(t.value=n,t=t.prev):(r=t.prev,t.remove(),t=r)}function g(e){var t,n={};for(t in e)\"li\"!==t&&\"p\"!=t&&(n[t]=e[t]);return n}var v,y,b,C,x,w,_,E,N,k,S,T,R,A=[],B,D,L,H,M,P,O,I;if(o=o||{},p={},h={},T=s(i(\"script,style,head,html,body,title,meta,param\"),l.getBlockElements()),O=l.getNonEmptyElements(),P=l.children,S=r.validate,I=\"forced_root_block\"in o?o.forced_root_block:r.forced_root_block,M=l.getWhiteSpaceElements(),R=/^[ \\t\\r\\n]+/,D=/[ \\t\\r\\n]+$/,L=/[ \\t\\r\\n]+/g,H=/^[ \\t\\r\\n]+$/,v=new n({validate:S,allow_script_urls:r.allow_script_urls,allow_conditional_comments:r.allow_conditional_comments,self_closing_elements:g(l.getSelfClosingElements()),cdata:function(e){b.append(u(\"#cdata\",4)).value=e},text:function(e,t){var n;B||(e=e.replace(L,\" \"),b.lastChild&&T[b.lastChild.name]&&(e=e.replace(R,\"\"))),0!==e.length&&(n=u(\"#text\",3),n.raw=!!t,b.append(n).value=e)},comment:function(e){b.append(u(\"#comment\",8)).value=e},pi:function(e,t){b.append(u(e,7)).value=t,m(b)},doctype:function(e){var t;t=b.append(u(\"#doctype\",10)),t.value=e,m(b)},start:function(e,t,n){var r,i,o,a,s;if(o=S?l.getElementRule(e):{}){for(r=u(o.outputName||e,1),r.attributes=t,r.shortEnded=n,b.append(r),s=P[b.name],s&&P[r.name]&&!s[r.name]&&A.push(r),i=f.length;i--;)a=f[i].name,a in t.map&&(N=h[a],N?N.push(r):h[a]=[r]);T[e]&&m(r),n||(b=r),!B&&M[e]&&(B=!0)}},end:function(t){var n,r,i,o,a;if(r=S?l.getElementRule(t):{}){if(T[t]&&!B){if(n=b.firstChild,n&&3===n.type)if(i=n.value.replace(R,\"\"),i.length>0)n.value=i,n=n.next;else for(o=n.next,n.remove(),n=o;n&&3===n.type;)i=n.value,o=n.next,(0===i.length||H.test(i))&&(n.remove(),n=o),n=o;if(n=b.lastChild,n&&3===n.type)if(i=n.value.replace(D,\"\"),i.length>0)n.value=i,n=n.prev;else for(o=n.prev,n.remove(),n=o;n&&3===n.type;)i=n.value,o=n.prev,(0===i.length||H.test(i))&&(n.remove(),n=o),n=o}if(B&&M[t]&&(B=!1),(r.removeEmpty||r.paddEmpty)&&b.isEmpty(O))if(r.paddEmpty)b.empty().append(new e(\"#text\",\"3\")).value=\"\\xa0\";else if(!b.attributes.map.name&&!b.attributes.map.id)return a=b.parent,T[b.name]?b.empty().remove():b.unwrap(),void(b=a);\nb=b.parent}}},l),y=b=new e(o.context||r.root_name,11),v.parse(t),S&&A.length&&(o.context?o.invalid=!0:c(A)),I&&(\"body\"==y.name||o.isRootContent)&&a(),!o.invalid){for(k in p){for(N=d[k],C=p[k],_=C.length;_--;)C[_].parent||C.splice(_,1);for(x=0,w=N.length;w>x;x++)N[x](C,k,o)}for(x=0,w=f.length;w>x;x++)if(N=f[x],N.name in h){for(C=h[N.name],_=C.length;_--;)C[_].parent||C.splice(_,1);for(_=0,E=N.callbacks.length;E>_;_++)N.callbacks[_](C,N.name,o)}}return y},r.remove_trailing_brs&&u.addNodeFilter(\"br\",function(t){var n,r=t.length,i,o=s({},l.getBlockElements()),a=l.getNonEmptyElements(),c,u,d,f,p,h;for(o.body=1,n=0;r>n;n++)if(i=t[n],c=i.parent,o[i.parent.name]&&i===c.lastChild){for(d=i.prev;d;){if(f=d.name,\"span\"!==f||\"bookmark\"!==d.attr(\"data-mce-type\")){if(\"br\"!==f)break;if(\"br\"===f){i=null;break}}d=d.prev}i&&(i.remove(),c.isEmpty(a)&&(p=l.getElementRule(c.name),p&&(p.removeEmpty?c.remove():p.paddEmpty&&(c.empty().append(new e(\"#text\",3)).value=\"\\xa0\"))))}else{for(u=i;c&&c.firstChild===u&&c.lastChild===u&&(u=c,!o[c.name]);)c=c.parent;u===c&&(h=new e(\"#text\",3),h.value=\"\\xa0\",i.replace(h))}}),r.allow_html_in_named_anchor||u.addAttributeFilter(\"id,name\",function(e){for(var t=e.length,n,r,i,o;t--;)if(o=e[t],\"a\"===o.name&&o.firstChild&&!o.attr(\"href\")){i=o.parent,n=o.lastChild;do r=n.prev,i.insert(n,o),n=r;while(n)}}),r.validate&&l.getValidClasses()&&u.addAttributeFilter(\"class\",function(e){for(var t=e.length,n,r,i,o,a,s=l.getValidClasses(),c,u;t--;){for(n=e[t],r=n.attr(\"class\").split(\" \"),a=\"\",i=0;i<r.length;i++)o=r[i],u=!1,c=s[\"*\"],c&&c[o]&&(u=!0),c=s[n.name],u||!c||c[o]||(u=!0),u&&(a&&(a+=\" \"),a+=o);a.length||(a=null),n.attr(\"class\",a)}})}}),r(S,[g,d],function(e,t){var n=t.makeMap;return function(t){var r=[],i,o,a,s,l;return t=t||{},i=t.indent,o=n(t.indent_before||\"\"),a=n(t.indent_after||\"\"),s=e.getEncodeFunc(t.entity_encoding||\"raw\",t.entities),l=\"html\"==t.element_format,{start:function(e,t,n){var c,u,d,f;if(i&&o[e]&&r.length>0&&(f=r[r.length-1],f.length>0&&\"\\n\"!==f&&r.push(\"\\n\")),r.push(\"<\",e),t)for(c=0,u=t.length;u>c;c++)d=t[c],r.push(\" \",d.name,'=\"',s(d.value,!0),'\"');r[r.length]=!n||l?\">\":\" />\",n&&i&&a[e]&&r.length>0&&(f=r[r.length-1],f.length>0&&\"\\n\"!==f&&r.push(\"\\n\"))},end:function(e){var t;r.push(\"</\",e,\">\"),i&&a[e]&&r.length>0&&(t=r[r.length-1],t.length>0&&\"\\n\"!==t&&r.push(\"\\n\"))},text:function(e,t){e.length>0&&(r[r.length]=t?e:s(e))},cdata:function(e){r.push(\"<![CDATA[\",e,\"]]>\")},comment:function(e){r.push(\"<!--\",e,\"-->\")},pi:function(e,t){t?r.push(\"<?\",e,\" \",t,\"?>\"):r.push(\"<?\",e,\"?>\"),i&&r.push(\"\\n\")},doctype:function(e){r.push(\"<!DOCTYPE\",e,\">\",i?\"\\n\":\"\")},reset:function(){r.length=0},getContent:function(){return r.join(\"\").replace(/\\n$/,\"\")}}}}),r(T,[S,E],function(e,t){return function(n,r){var i=this,o=new e(n);n=n||{},n.validate=\"validate\"in n?n.validate:!0,i.schema=r=r||new t,i.writer=o,i.serialize=function(e){function t(e){var n=i[e.type],s,l,c,u,d,f,p,h,m;if(n)n(e);else{if(s=e.name,l=e.shortEnded,c=e.attributes,a&&c&&c.length>1){for(f=[],f.map={},m=r.getElementRule(e.name),p=0,h=m.attributesOrder.length;h>p;p++)u=m.attributesOrder[p],u in c.map&&(d=c.map[u],f.map[u]=d,f.push({name:u,value:d}));for(p=0,h=c.length;h>p;p++)u=c[p].name,u in f.map||(d=c.map[u],f.map[u]=d,f.push({name:u,value:d}));c=f}if(o.start(e.name,c,l),!l){if(e=e.firstChild)do t(e);while(e=e.next);o.end(s)}}}var i,a;return a=n.validate,i={3:function(e){o.text(e.value,e.raw)},8:function(e){o.comment(e.value)},7:function(e){o.pi(e.name,e.value)},10:function(e){o.doctype(e.value)},4:function(e){o.cdata(e.value)},11:function(e){if(e=e.firstChild)do t(e);while(e=e.next)}},o.reset(),1!=e.type||n.inner?i[11](e):t(e),o.getContent()}}}),r(R,[y,k,g,T,_,E,u,d],function(e,t,n,r,i,o,a,s){var l=s.each,c=s.trim,u=e.DOM;return function(e,i){var s,d,f;return i&&(s=i.dom,d=i.schema),s=s||u,d=d||new o(e),e.entity_encoding=e.entity_encoding||\"named\",e.remove_trailing_brs=\"remove_trailing_brs\"in e?e.remove_trailing_brs:!0,f=new t(e,d),f.addAttributeFilter(\"data-mce-tabindex\",function(e,t){for(var n=e.length,r;n--;)r=e[n],r.attr(\"tabindex\",r.attributes.map[\"data-mce-tabindex\"]),r.attr(t,null)}),f.addAttributeFilter(\"src,href,style\",function(t,n){for(var r=t.length,i,o,a=\"data-mce-\"+n,l=e.url_converter,c=e.url_converter_scope,u;r--;)i=t[r],o=i.attributes.map[a],o!==u?(i.attr(n,o.length>0?o:null),i.attr(a,null)):(o=i.attributes.map[n],\"style\"===n?o=s.serializeStyle(s.parseStyle(o),i.name):l&&(o=l.call(c,o,n,i.name)),i.attr(n,o.length>0?o:null))}),f.addAttributeFilter(\"class\",function(e){for(var t=e.length,n,r;t--;)n=e[t],r=n.attr(\"class\"),r&&(r=n.attr(\"class\").replace(/(?:^|\\s)mce-item-\\w+(?!\\S)/g,\"\"),n.attr(\"class\",r.length>0?r:null))}),f.addAttributeFilter(\"data-mce-type\",function(e,t,n){for(var r=e.length,i;r--;)i=e[r],\"bookmark\"!==i.attributes.map[\"data-mce-type\"]||n.cleanup||i.remove()}),f.addNodeFilter(\"noscript\",function(e){for(var t=e.length,r;t--;)r=e[t].firstChild,r&&(r.value=n.decode(r.value))}),f.addNodeFilter(\"script,style\",function(e,t){function n(e){return e.replace(/(<!--\\[CDATA\\[|\\]\\]-->)/g,\"\\n\").replace(/^[\\r\\n]*|[\\r\\n]*$/g,\"\").replace(/^\\s*((<!--)?(\\s*\\/\\/)?\\s*<!\\[CDATA\\[|(<!--\\s*)?\\/\\*\\s*<!\\[CDATA\\[\\s*\\*\\/|(\\/\\/)?\\s*<!--|\\/\\*\\s*<!--\\s*\\*\\/)\\s*[\\r\\n]*/gi,\"\").replace(/\\s*(\\/\\*\\s*\\]\\]>\\s*\\*\\/(-->)?|\\s*\\/\\/\\s*\\]\\]>(-->)?|\\/\\/\\s*(-->)?|\\]\\]>|\\/\\*\\s*-->\\s*\\*\\/|\\s*-->\\s*)\\s*$/g,\"\")}for(var r=e.length,i,o,a;r--;)i=e[r],o=i.firstChild?i.firstChild.value:\"\",\"script\"===t?(a=i.attr(\"type\"),a&&i.attr(\"type\",\"mce-no/type\"==a?null:a.replace(/^mce\\-/,\"\")),o.length>0&&(i.firstChild.value=\"// <![CDATA[\\n\"+n(o)+\"\\n// ]]>\")):o.length>0&&(i.firstChild.value=\"<!--\\n\"+n(o)+\"\\n-->\")}),f.addNodeFilter(\"#comment\",function(e){for(var t=e.length,n;t--;)n=e[t],0===n.value.indexOf(\"[CDATA[\")?(n.name=\"#cdata\",n.type=4,n.value=n.value.replace(/^\\[CDATA\\[|\\]\\]$/g,\"\")):0===n.value.indexOf(\"mce:protected \")&&(n.name=\"#text\",n.type=3,n.raw=!0,n.value=unescape(n.value).substr(14))}),f.addNodeFilter(\"xml:namespace,input\",function(e,t){for(var n=e.length,r;n--;)r=e[n],7===r.type?r.remove():1===r.type&&(\"input\"!==t||\"type\"in r.attributes.map||r.attr(\"type\",\"text\"))}),e.fix_list_elements&&f.addNodeFilter(\"ul,ol\",function(e){for(var t=e.length,n,r;t--;)n=e[t],r=n.parent,(\"ul\"===r.name||\"ol\"===r.name)&&n.prev&&\"li\"===n.prev.name&&n.prev.append(n)}),f.addAttributeFilter(\"data-mce-src,data-mce-href,data-mce-style,data-mce-selected,data-mce-expando,data-mce-type,data-mce-resize\",function(e,t){for(var n=e.length;n--;)e[n].attr(t,null)}),{schema:d,addNodeFilter:f.addNodeFilter,addAttributeFilter:f.addAttributeFilter,serialize:function(t,n){var i=this,o,u,p,h,m;return a.ie&&s.select(\"script,style,select,map\").length>0?(m=t.innerHTML,t=t.cloneNode(!1),s.setHTML(t,m)):t=t.cloneNode(!0),o=t.ownerDocument.implementation,o.createHTMLDocument&&(u=o.createHTMLDocument(\"\"),l(\"BODY\"==t.nodeName?t.childNodes:[t],function(e){u.body.appendChild(u.importNode(e,!0))}),t=\"BODY\"!=t.nodeName?u.body.firstChild:u.body,p=s.doc,s.doc=u),n=n||{},n.format=n.format||\"html\",n.selection&&(n.forced_root_block=\"\"),n.no_events||(n.node=t,i.onPreProcess(n)),h=new r(e,d),n.content=h.serialize(f.parse(c(n.getInner?t.innerHTML:s.getOuterHTML(t)),n)),n.cleanup||(n.content=n.content.replace(/\\uFEFF/g,\"\")),n.no_events||i.onPostProcess(n),p&&(s.doc=p),n.node=null,n.content},addRules:function(e){d.addValidElements(e)},setRules:function(e){d.setValidElements(e)},onPreProcess:function(e){i&&i.fire(\"PreProcess\",e)},onPostProcess:function(e){i&&i.fire(\"PostProcess\",e)}}}}),r(A,[],function(){function e(e){function t(t,n){var r,i=0,o,a,s,l,c,u,d=-1,f;if(r=t.duplicate(),r.collapse(n),f=r.parentElement(),f.ownerDocument===e.dom.doc){for(;\"false\"===f.contentEditable;)f=f.parentNode;if(!f.hasChildNodes())return{node:f,inside:1};for(s=f.children,o=s.length-1;o>=i;)if(u=Math.floor((i+o)/2),l=s[u],r.moveToElementText(l),d=r.compareEndPoints(n?\"StartToStart\":\"EndToEnd\",t),d>0)o=u-1;else{if(!(0>d))return{node:l};i=u+1}if(0>d)for(l?r.collapse(!1):(r.moveToElementText(f),r.collapse(!0),l=f,a=!0),c=0;0!==r.compareEndPoints(n?\"StartToStart\":\"StartToEnd\",t)&&0!==r.move(\"character\",1)&&f==r.parentElement();)c++;else for(r.collapse(!0),c=0;0!==r.compareEndPoints(n?\"StartToStart\":\"StartToEnd\",t)&&0!==r.move(\"character\",-1)&&f==r.parentElement();)c++;return{node:l,position:d,offset:c,inside:a}}}function n(){function n(e){var n=t(o,e),r,i,s=0,l,c,u;if(r=n.node,i=n.offset,n.inside&&!r.hasChildNodes())return void a[e?\"setStart\":\"setEnd\"](r,0);if(i===c)return void a[e?\"setStartBefore\":\"setEndAfter\"](r);if(n.position<0){if(l=n.inside?r.firstChild:r.nextSibling,!l)return void a[e?\"setStartAfter\":\"setEndAfter\"](r);if(!i)return void(3==l.nodeType?a[e?\"setStart\":\"setEnd\"](l,0):a[e?\"setStartBefore\":\"setEndBefore\"](l));for(;l;){if(3==l.nodeType&&(u=l.nodeValue,s+=u.length,s>=i)){r=l,s-=i,s=u.length-s;break}l=l.nextSibling}}else{if(l=r.previousSibling,!l)return a[e?\"setStartBefore\":\"setEndBefore\"](r);if(!i)return void(3==r.nodeType?a[e?\"setStart\":\"setEnd\"](l,r.nodeValue.length):a[e?\"setStartAfter\":\"setEndAfter\"](l));for(;l;){if(3==l.nodeType&&(s+=l.nodeValue.length,s>=i)){r=l,s-=i;break}l=l.previousSibling}}a[e?\"setStart\":\"setEnd\"](r,s)}var o=e.getRng(),a=i.createRng(),s,l,c,u,d;if(s=o.item?o.item(0):o.parentElement(),s.ownerDocument!=i.doc)return a;if(l=e.isCollapsed(),o.item)return a.setStart(s.parentNode,i.nodeIndex(s)),a.setEnd(a.startContainer,a.startOffset+1),a;try{n(!0),l||n()}catch(f){if(-2147024809!=f.number)throw f;d=r.getBookmark(2),c=o.duplicate(),c.collapse(!0),s=c.parentElement(),l||(c=o.duplicate(),c.collapse(!1),u=c.parentElement(),u.innerHTML=u.innerHTML),s.innerHTML=s.innerHTML,r.moveToBookmark(d),o=e.getRng(),n(!0),l||n()}return a}var r=this,i=e.dom,o=!1;this.getBookmark=function(n){function r(e){var t,n,r,o,a=[];for(t=e.parentNode,n=i.getRoot().parentNode;t!=n&&9!==t.nodeType;){for(r=t.children,o=r.length;o--;)if(e===r[o]){a.push(o);break}e=t,t=t.parentNode}return a}function o(e){var n;return n=t(a,e),n?{position:n.position,offset:n.offset,indexes:r(n.node),inside:n.inside}:void 0}var a=e.getRng(),s={};return 2===n&&(a.item?s.start={ctrl:!0,indexes:r(a.item(0))}:(s.start=o(!0),e.isCollapsed()||(s.end=o()))),s},this.moveToBookmark=function(e){function t(e){var t,n,r,o;for(t=i.getRoot(),n=e.length-1;n>=0;n--)o=t.children,r=e[n],r<=o.length-1&&(t=o[r]);return t}function n(n){var i=e[n?\"start\":\"end\"],a,s,l,c;i&&(a=i.position>0,s=o.createTextRange(),s.moveToElementText(t(i.indexes)),c=i.offset,c!==l?(s.collapse(i.inside||a),s.moveStart(\"character\",a?-c:c)):s.collapse(n),r.setEndPoint(n?\"StartToStart\":\"EndToStart\",s),n&&r.collapse(!0))}var r,o=i.doc.body;e.start&&(e.start.ctrl?(r=o.createControlRange(),r.addElement(t(e.start.indexes)),r.select()):(r=o.createTextRange(),n(!0),n(),r.select()))},this.addRange=function(t){function n(e){var t,n,a,d,h;a=i.create(\"a\"),t=e?s:c,n=e?l:u,d=r.duplicate(),(t==f||t==f.documentElement)&&(t=p,n=0),3==t.nodeType?(t.parentNode.insertBefore(a,t),d.moveToElementText(a),d.moveStart(\"character\",n),i.remove(a),r.setEndPoint(e?\"StartToStart\":\"EndToEnd\",d)):(h=t.childNodes,h.length?(n>=h.length?i.insertAfter(a,h[h.length-1]):t.insertBefore(a,h[n]),d.moveToElementText(a)):t.canHaveHTML&&(t.innerHTML=\"<span>&#xFEFF;</span>\",a=t.firstChild,d.moveToElementText(a),d.collapse(o)),r.setEndPoint(e?\"StartToStart\":\"EndToEnd\",d),i.remove(a))}var r,a,s,l,c,u,d,f=e.dom.doc,p=f.body,h,m;if(s=t.startContainer,l=t.startOffset,c=t.endContainer,u=t.endOffset,r=p.createTextRange(),s==c&&1==s.nodeType){if(l==u&&!s.hasChildNodes()){if(s.canHaveHTML)return d=s.previousSibling,d&&!d.hasChildNodes()&&i.isBlock(d)?d.innerHTML=\"&#xFEFF;\":d=null,s.innerHTML=\"<span>&#xFEFF;</span><span>&#xFEFF;</span>\",r.moveToElementText(s.lastChild),r.select(),i.doc.selection.clear(),s.innerHTML=\"\",void(d&&(d.innerHTML=\"\"));l=i.nodeIndex(s),s=s.parentNode}if(l==u-1)try{if(m=s.childNodes[l],a=p.createControlRange(),a.addElement(m),a.select(),h=e.getRng(),h.item&&m===h.item(0))return}catch(g){}}n(!0),n(),r.select()},this.getRangeAt=n}return e}),r(B,[u],function(e){return{BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(t){return e.mac?t.metaKey:t.ctrlKey&&!t.altKey}}}),r(D,[B,d,u],function(e,t,n){return function(r,i){function o(e){var t=i.settings.object_resizing;return t===!1||n.iOS?!1:(\"string\"!=typeof t&&(t=\"table,img,div\"),\"false\"===e.getAttribute(\"data-mce-resize\")?!1:i.dom.is(e,t))}function a(t){var n,r,o,a,s;n=t.screenX-T,r=t.screenY-R,P=n*k[2]+D,O=r*k[3]+L,P=5>P?5:P,O=5>O?5:O,o=\"IMG\"==w.nodeName&&i.settings.resize_img_proportional!==!1?!e.modifierPressed(t):e.modifierPressed(t)||\"IMG\"==w.nodeName&&k[2]*k[3]!==0,o&&(W(n)>W(r)?(O=V(P*H),P=V(O/H)):(P=V(O/H),O=V(P*H))),C.setStyles(_,{width:P,height:O}),a=k.startPos.x+n,s=k.startPos.y+r,a=a>0?a:0,s=s>0?s:0,C.setStyles(E,{left:a,top:s,display:\"block\"}),E.innerHTML=P+\" &times; \"+O,k[2]<0&&_.clientWidth<=P&&C.setStyle(_,\"left\",A+(D-P)),k[3]<0&&_.clientHeight<=O&&C.setStyle(_,\"top\",B+(L-O)),n=U.scrollWidth-$,r=U.scrollHeight-q,n+r!==0&&C.setStyles(E,{left:a-n,top:s-r}),M||(i.fire(\"ObjectResizeStart\",{target:w,width:D,height:L}),M=!0)}function s(){function e(e,t){t&&(w.style[e]||!i.schema.isValid(w.nodeName.toLowerCase(),e)?C.setStyle(w,e,t):C.setAttrib(w,e,t))}M=!1,e(\"width\",P),e(\"height\",O),C.unbind(I,\"mousemove\",a),C.unbind(I,\"mouseup\",s),F!=I&&(C.unbind(F,\"mousemove\",a),C.unbind(F,\"mouseup\",s)),C.remove(_),C.remove(E),z&&\"TABLE\"!=w.nodeName||l(w),i.fire(\"ObjectResized\",{target:w,width:P,height:O}),C.setAttrib(w,\"style\",C.getAttrib(w,\"style\")),i.nodeChanged()}function l(e,t,r){var l,u,d,f,p;g(),l=C.getPos(e,U),A=l.x,B=l.y,p=e.getBoundingClientRect(),u=p.width||p.right-p.left,d=p.height||p.bottom-p.top,w!=e&&(m(),w=e,P=O=0),f=i.fire(\"ObjectSelected\",{target:e}),o(e)&&!f.isDefaultPrevented()?x(N,function(e,i){function o(t){T=t.screenX,R=t.screenY,D=w.clientWidth,L=w.clientHeight,H=L/D,k=e,e.startPos={x:u*e[0]+A,y:d*e[1]+B},$=U.scrollWidth,q=U.scrollHeight,_=w.cloneNode(!0),C.addClass(_,\"mce-clonedresizable\"),C.setAttrib(_,\"data-mce-bogus\",\"all\"),_.contentEditable=!1,_.unSelectabe=!0,C.setStyles(_,{left:A,top:B,margin:0}),_.removeAttribute(\"data-mce-selected\"),U.appendChild(_),C.bind(I,\"mousemove\",a),C.bind(I,\"mouseup\",s),F!=I&&(C.bind(F,\"mousemove\",a),C.bind(F,\"mouseup\",s)),E=C.add(U,\"div\",{\"class\":\"mce-resize-helper\",\"data-mce-bogus\":\"all\"},D+\" &times; \"+L)}var l,c;return t?void(i==t&&o(r)):(l=C.get(\"mceResizeHandle\"+i),l?C.show(l):(c=U,l=C.add(c,\"div\",{id:\"mceResizeHandle\"+i,\"data-mce-bogus\":\"all\",\"class\":\"mce-resizehandle\",unselectable:!0,style:\"cursor:\"+i+\"-resize; margin:0; padding:0\"}),n.ie&&(l.contentEditable=!1)),e.elm||(C.bind(l,\"mousedown\",function(e){e.stopImmediatePropagation(),e.preventDefault(),o(e)}),e.elm=l),void C.setStyles(l,{left:u*e[0]+A-l.offsetWidth/2,top:d*e[1]+B-l.offsetHeight/2}))}):c(),w.setAttribute(\"data-mce-selected\",\"1\")}function c(){var e,t;g(),w&&w.removeAttribute(\"data-mce-selected\");for(e in N)t=C.get(\"mceResizeHandle\"+e),t&&(C.unbind(t),C.remove(t))}function u(e){function t(e,t){if(e)do if(e===t)return!0;while(e=e.parentNode)}var n,i;if(!M)return x(C.select(\"img[data-mce-selected],hr[data-mce-selected]\"),function(e){e.removeAttribute(\"data-mce-selected\")}),i=\"mousedown\"==e.type?e.target:r.getNode(),i=C.$(i).closest(z?\"table\":\"table,img,hr\")[0],t(i,U)&&(v(),n=r.getStart(!0),t(n,i)&&t(r.getEnd(!0),i)&&(!z||i!=n&&\"IMG\"!==n.nodeName))?void l(i):void c()}function d(e,t,n){e&&e.attachEvent&&e.attachEvent(\"on\"+t,n)}function f(e,t,n){e&&e.detachEvent&&e.detachEvent(\"on\"+t,n)}function p(e){var t=e.srcElement,n,r,o,a,s,c,u;n=t.getBoundingClientRect(),c=S.clientX-n.left,u=S.clientY-n.top;for(r in N)if(o=N[r],a=t.offsetWidth*o[0],s=t.offsetHeight*o[1],W(a-c)<8&&W(s-u)<8){k=o;break}M=!0,i.fire(\"ObjectResizeStart\",{target:w,width:w.clientWidth,height:w.clientHeight}),i.getDoc().selection.empty(),l(t,r,S)}function h(e){var t=e.srcElement;if(t!=w){if(i.fire(\"ObjectSelected\",{target:t}),m(),0===t.id.indexOf(\"mceResizeHandle\"))return void(e.returnValue=!1);(\"IMG\"==t.nodeName||\"TABLE\"==t.nodeName)&&(c(),w=t,d(t,\"resizestart\",p))}}function m(){f(w,\"resizestart\",p)}function g(){for(var e in N){var t=N[e];t.elm&&(C.unbind(t.elm),delete t.elm)}}function v(){try{i.getDoc().execCommand(\"enableObjectResizing\",!1,!1)}catch(e){}}function y(e){var t;if(z){t=I.body.createControlRange();try{return t.addElement(e),t.select(),!0}catch(n){}}}function b(){w=_=null,z&&(m(),f(U,\"controlselect\",h))}var C=i.dom,x=t.each,w,_,E,N,k,S,T,R,A,B,D,L,H,M,P,O,I=i.getDoc(),F=document,z=n.ie&&n.ie<11,W=Math.abs,V=Math.round,U=i.getBody(),$,q;N={n:[.5,0,0,-1],e:[1,.5,1,0],s:[.5,1,0,1],w:[0,.5,-1,0],nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]};var j=\".mce-content-body\";return i.contentStyles.push(j+\" div.mce-resizehandle {position: absolute;border: 1px solid black;background: #FFF;width: 5px;height: 5px;z-index: 10000}\"+j+\" .mce-resizehandle:hover {background: #000}\"+j+\" img[data-mce-selected], hr[data-mce-selected] {outline: 1px solid black;resize: none}\"+j+\" .mce-clonedresizable {position: absolute;\"+(n.gecko?\"\":\"outline: 1px dashed black;\")+\"opacity: .5;filter: alpha(opacity=50);z-index: 10000}\"+j+\" .mce-resize-helper {background: #555;background: rgba(0,0,0,0.75);border-radius: 3px;border: 1px;color: white;display: none;font-family: sans-serif;font-size: 12px;white-space: nowrap;line-height: 14px;margin: 5px 10px;padding: 5px;position: absolute;z-index: 10001}\"),i.on(\"init\",function(){z?(i.on(\"ObjectResized\",function(e){\"TABLE\"!=e.target.nodeName&&(c(),y(e.target))}),d(U,\"controlselect\",h),i.on(\"mousedown\",function(e){S=e})):(v(),n.ie>=11&&(i.on(\"mouseup\",function(e){var t=e.target.nodeName;!M&&/^(TABLE|IMG|HR)$/.test(t)&&(i.selection.select(e.target,\"TABLE\"==t),i.nodeChanged())}),i.dom.bind(U,\"mscontrolselect\",function(e){/^(TABLE|IMG|HR)$/.test(e.target.nodeName)&&(e.preventDefault(),\"IMG\"==e.target.tagName&&window.setTimeout(function(){i.selection.select(e.target)},0))}))),i.on(\"nodechange ResizeEditor\",u),i.on(\"keydown keyup\",function(e){w&&\"TABLE\"==w.nodeName&&u(e)}),i.on(\"hide\",c)}),i.on(\"remove\",g),{isResizable:o,showResizeRect:l,hideResizeRect:c,updateResizeRect:u,controlSelect:y,destroy:b}}}),r(L,[u,d],function(e,t){function n(n){var r=n.dom;this.getBookmark=function(e,i){function o(e,n){var i=0;return t.each(r.select(e),function(e,t){e==n&&(i=t)}),i}function a(e){function t(t){var n,r,i,o=t?\"start\":\"end\";n=e[o+\"Container\"],r=e[o+\"Offset\"],1==n.nodeType&&\"TR\"==n.nodeName&&(i=n.childNodes,n=i[Math.min(t?r:r-1,i.length-1)],n&&(r=t?0:n.childNodes.length,e[\"set\"+(t?\"Start\":\"End\")](n,r)))}return t(!0),t(),e}function s(){function e(e,t){var n=e[t?\"startContainer\":\"endContainer\"],a=e[t?\"startOffset\":\"endOffset\"],s=[],l,c,u=0;if(3==n.nodeType){if(i)for(l=n.previousSibling;l&&3==l.nodeType;l=l.previousSibling)a+=l.nodeValue.length;s.push(a)}else c=n.childNodes,a>=c.length&&c.length&&(u=1,a=Math.max(0,c.length-1)),s.push(r.nodeIndex(c[a],i)+u);for(;n&&n!=o;n=n.parentNode)s.push(r.nodeIndex(n,i));return s}var t=n.getRng(!0),o=r.getRoot(),a={};return a.start=e(t,!0),n.isCollapsed()||(a.end=e(t)),a}var l,c,u,d,f,p,h=\"&#xFEFF;\",m;if(2==e)return p=n.getNode(),f=p?p.nodeName:null,\"IMG\"==f?{name:f,index:o(f,p)}:n.tridentSel?n.tridentSel.getBookmark(e):s();if(e)return{rng:n.getRng()};if(l=n.getRng(),u=r.uniqueId(),d=n.isCollapsed(),m=\"overflow:hidden;line-height:0px\",l.duplicate||l.item){if(l.item)return p=l.item(0),f=p.nodeName,{name:f,index:o(f,p)};c=l.duplicate();try{l.collapse(),l.pasteHTML('<span data-mce-type=\"bookmark\" id=\"'+u+'_start\" style=\"'+m+'\">'+h+\"</span>\"),d||(c.collapse(!1),l.moveToElementText(c.parentElement()),0===l.compareEndPoints(\"StartToEnd\",c)&&c.move(\"character\",-1),c.pasteHTML('<span data-mce-type=\"bookmark\" id=\"'+u+'_end\" style=\"'+m+'\">'+h+\"</span>\"))}catch(g){return null}}else{if(p=n.getNode(),f=p.nodeName,\"IMG\"==f)return{name:f,index:o(f,p)};c=a(l.cloneRange()),d||(c.collapse(!1),c.insertNode(r.create(\"span\",{\"data-mce-type\":\"bookmark\",id:u+\"_end\",style:m},h))),l=a(l),l.collapse(!0),l.insertNode(r.create(\"span\",{\"data-mce-type\":\"bookmark\",id:u+\"_start\",style:m},h))}return n.moveToBookmark({id:u,keep:1}),{id:u}},this.moveToBookmark=function(i){function o(e){var t=i[e?\"start\":\"end\"],n,r,o,a;if(t){for(o=t[0],r=c,n=t.length-1;n>=1;n--){if(a=r.childNodes,t[n]>a.length-1)return;r=a[t[n]]}3===r.nodeType&&(o=Math.min(t[0],r.nodeValue.length)),1===r.nodeType&&(o=Math.min(t[0],r.childNodes.length)),e?l.setStart(r,o):l.setEnd(r,o)}return!0}function a(n){var o=r.get(i.id+\"_\"+n),a,s,l,c,h=i.keep;if(o&&(a=o.parentNode,\"start\"==n?(h?(a=o.firstChild,s=1):s=r.nodeIndex(o),u=d=a,f=p=s):(h?(a=o.firstChild,s=1):s=r.nodeIndex(o),d=a,p=s),!h)){for(c=o.previousSibling,l=o.nextSibling,t.each(t.grep(o.childNodes),function(e){3==e.nodeType&&(e.nodeValue=e.nodeValue.replace(/\\uFEFF/g,\"\"))});o=r.get(i.id+\"_\"+n);)r.remove(o,1);c&&l&&c.nodeType==l.nodeType&&3==c.nodeType&&!e.opera&&(s=c.nodeValue.length,c.appendData(l.nodeValue),r.remove(l),\"start\"==n?(u=d=c,f=p=s):(d=c,p=s))}}function s(t){return!r.isBlock(t)||t.innerHTML||e.ie||(t.innerHTML='<br data-mce-bogus=\"1\" />'),t}var l,c,u,d,f,p;if(i)if(i.start){if(l=r.createRng(),c=r.getRoot(),n.tridentSel)return n.tridentSel.moveToBookmark(i);o(!0)&&o()&&n.setRng(l)}else i.id?(a(\"start\"),a(\"end\"),u&&(l=r.createRng(),l.setStart(s(u),f),l.setEnd(s(d),p),n.setRng(l))):i.name?n.select(r.select(i.name)[i.index]):i.rng&&n.setRng(i.rng)}}return n.isBookmarkNode=function(e){return e&&\"SPAN\"===e.tagName&&\"bookmark\"===e.getAttribute(\"data-mce-type\")},n}),r(H,[h,A,D,x,L,u,d],function(e,n,r,i,o,a,s){function l(e,t,i,a){var s=this;s.dom=e,s.win=t,s.serializer=i,s.editor=a,s.bookmarkManager=new o(s),s.controlSelection=new r(s,a),s.win.getSelection||(s.tridentSel=new n(s))}var c=s.each,u=s.trim,d=a.ie;return l.prototype={setCursorLocation:function(e,t){var n=this,r=n.dom.createRng();e?(r.setStart(e,t),r.setEnd(e,t),n.setRng(r),n.collapse(!1)):(n._moveEndPoint(r,n.editor.getBody(),!0),n.setRng(r))},getContent:function(e){var n=this,r=n.getRng(),i=n.dom.create(\"body\"),o=n.getSel(),a,s,l;return e=e||{},a=s=\"\",e.get=!0,e.format=e.format||\"html\",e.selection=!0,n.editor.fire(\"BeforeGetContent\",e),\"text\"==e.format?n.isCollapsed()?\"\":r.text||(o.toString?o.toString():\"\"):(r.cloneContents?(l=r.cloneContents(),l&&i.appendChild(l)):r.item!==t||r.htmlText!==t?(i.innerHTML=\"<br>\"+(r.item?r.item(0).outerHTML:r.htmlText),i.removeChild(i.firstChild)):i.innerHTML=r.toString(),/^\\s/.test(i.innerHTML)&&(a=\" \"),/\\s+$/.test(i.innerHTML)&&(s=\" \"),e.getInner=!0,e.content=n.isCollapsed()?\"\":a+n.serializer.serialize(i,e)+s,n.editor.fire(\"GetContent\",e),e.content)},setContent:function(e,t){var n=this,r=n.getRng(),i,o=n.win.document,a,s;if(t=t||{format:\"html\"},t.set=!0,t.selection=!0,e=t.content=e,t.no_events||n.editor.fire(\"BeforeSetContent\",t),e=t.content,r.insertNode){e+='<span id=\"__caret\">_</span>',r.startContainer==o&&r.endContainer==o?o.body.innerHTML=e:(r.deleteContents(),0===o.body.childNodes.length?o.body.innerHTML=e:r.createContextualFragment?r.insertNode(r.createContextualFragment(e)):(a=o.createDocumentFragment(),s=o.createElement(\"div\"),a.appendChild(s),s.outerHTML=e,r.insertNode(a))),i=n.dom.get(\"__caret\"),r=o.createRange(),r.setStartBefore(i),r.setEndBefore(i),n.setRng(r),n.dom.remove(\"__caret\");try{n.setRng(r)}catch(l){}}else r.item&&(o.execCommand(\"Delete\",!1,null),r=n.getRng()),/^\\s+/.test(e)?(r.pasteHTML('<span id=\"__mce_tmp\">_</span>'+e),n.dom.remove(\"__mce_tmp\")):r.pasteHTML(e);t.no_events||n.editor.fire(\"SetContent\",t)},getStart:function(e){var t=this,n=t.getRng(),r,i,o,a;if(n.duplicate||n.item){if(n.item)return n.item(0);for(o=n.duplicate(),o.collapse(1),r=o.parentElement(),r.ownerDocument!==t.dom.doc&&(r=t.dom.getRoot()),i=a=n.parentElement();a=a.parentNode;)if(a==r){r=i;break}return r}return r=n.startContainer,1==r.nodeType&&r.hasChildNodes()&&(e&&n.collapsed||(r=r.childNodes[Math.min(r.childNodes.length-1,n.startOffset)])),r&&3==r.nodeType?r.parentNode:r},getEnd:function(e){var t=this,n=t.getRng(),r,i;return n.duplicate||n.item?n.item?n.item(0):(n=n.duplicate(),n.collapse(0),r=n.parentElement(),r.ownerDocument!==t.dom.doc&&(r=t.dom.getRoot()),r&&\"BODY\"==r.nodeName?r.lastChild||r:r):(r=n.endContainer,i=n.endOffset,1==r.nodeType&&r.hasChildNodes()&&(e&&n.collapsed||(r=r.childNodes[i>0?i-1:i])),r&&3==r.nodeType?r.parentNode:r)},getBookmark:function(e,t){return this.bookmarkManager.getBookmark(e,t)},moveToBookmark:function(e){return this.bookmarkManager.moveToBookmark(e)},select:function(e,t){var n=this,r=n.dom,i=r.createRng(),o;if(n.lastFocusBookmark=null,e){if(!t&&n.controlSelection.controlSelect(e))return;o=r.nodeIndex(e),i.setStart(e.parentNode,o),i.setEnd(e.parentNode,o+1),t&&(n._moveEndPoint(i,e,!0),n._moveEndPoint(i,e)),n.setRng(i)}return e},isCollapsed:function(){var e=this,t=e.getRng(),n=e.getSel();return!t||t.item?!1:t.compareEndPoints?0===t.compareEndPoints(\"StartToEnd\",t):!n||t.collapsed},collapse:function(e){var t=this,n=t.getRng(),r;n.item&&(r=n.item(0),n=t.win.document.body.createTextRange(),n.moveToElementText(r)),n.collapse(!!e),t.setRng(n)},getSel:function(){var e=this.win;return e.getSelection?e.getSelection():e.document.selection},getRng:function(e){function t(e,t,n){try{return t.compareBoundaryPoints(e,n)}catch(r){return-1}}var n=this,r,i,o,a=n.win.document,s;if(!e&&n.lastFocusBookmark){var l=n.lastFocusBookmark;return l.startContainer?(i=a.createRange(),i.setStart(l.startContainer,l.startOffset),i.setEnd(l.endContainer,l.endOffset)):i=l,i}if(e&&n.tridentSel)return n.tridentSel.getRangeAt(0);try{(r=n.getSel())&&(i=r.rangeCount>0?r.getRangeAt(0):r.createRange?r.createRange():a.createRange())}catch(c){}if(d&&i&&i.setStart&&a.selection){try{s=a.selection.createRange()}catch(c){}s&&s.item&&(o=s.item(0),i=a.createRange(),i.setStartBefore(o),i.setEndAfter(o))}return i||(i=a.createRange?a.createRange():a.body.createTextRange()),i.setStart&&9===i.startContainer.nodeType&&i.collapsed&&(o=n.dom.getRoot(),i.setStart(o,0),i.setEnd(o,0)),n.selectedRange&&n.explicitRange&&(0===t(i.START_TO_START,i,n.selectedRange)&&0===t(i.END_TO_END,i,n.selectedRange)?i=n.explicitRange:(n.selectedRange=null,n.explicitRange=null)),i},setRng:function(e,t){var n=this,r;if(e)if(e.select)try{e.select()}catch(i){}else if(n.tridentSel){if(e.cloneRange)try{return void n.tridentSel.addRange(e)}catch(i){}}else if(r=n.getSel()){n.explicitRange=e;try{r.removeAllRanges(),r.addRange(e)}catch(i){}t===!1&&r.extend&&(r.collapse(e.endContainer,e.endOffset),r.extend(e.startContainer,e.startOffset)),n.selectedRange=r.rangeCount>0?r.getRangeAt(0):null}},setNode:function(e){var t=this;return t.setContent(t.dom.getOuterHTML(e)),e},getNode:function(){function e(e,t){for(var n=e;e&&3===e.nodeType&&0===e.length;)e=t?e.nextSibling:e.previousSibling;return e||n}var t=this,n=t.getRng(),r,i=n.startContainer,o=n.endContainer,a=n.startOffset,s=n.endOffset,l=t.dom.getRoot();return n?n.setStart?(r=n.commonAncestorContainer,!n.collapsed&&(i==o&&2>s-a&&i.hasChildNodes()&&(r=i.childNodes[a]),3===i.nodeType&&3===o.nodeType&&(i=i.length===a?e(i.nextSibling,!0):i.parentNode,o=0===s?e(o.previousSibling,!1):o.parentNode,i&&i===o))?i:r&&3==r.nodeType?r.parentNode:r):(r=n.item?n.item(0):n.parentElement(),r.ownerDocument!==t.win.document&&(r=l),r):l},getSelectedBlocks:function(t,n){var r=this,i=r.dom,o,a,s=[];if(a=i.getRoot(),t=i.getParent(t||r.getStart(),i.isBlock),n=i.getParent(n||r.getEnd(),i.isBlock),t&&t!=a&&s.push(t),t&&n&&t!=n){o=t;for(var l=new e(t,a);(o=l.next())&&o!=n;)i.isBlock(o)&&s.push(o)}return n&&t!=n&&n!=a&&s.push(n),s},isForward:function(){var e=this.dom,t=this.getSel(),n,r;return t&&t.anchorNode&&t.focusNode?(n=e.createRng(),n.setStart(t.anchorNode,t.anchorOffset),n.collapse(!0),r=e.createRng(),r.setStart(t.focusNode,t.focusOffset),r.collapse(!0),n.compareBoundaryPoints(n.START_TO_START,r)<=0):!0},normalize:function(){var e=this,t=e.getRng();return!d&&new i(e.dom).normalize(t)&&e.setRng(t,e.isForward()),t},selectorChanged:function(e,t){var n=this,r;return n.selectorChangedData||(n.selectorChangedData={},r={},n.editor.on(\"NodeChange\",function(e){var t=e.element,i=n.dom,o=i.getParents(t,null,i.getRoot()),a={};c(n.selectorChangedData,function(e,t){c(o,function(n){return i.is(n,t)?(r[t]||(c(e,function(e){e(!0,{node:n,selector:t,parents:o})}),r[t]=e),a[t]=e,!1):void 0})}),c(r,function(e,n){a[n]||(delete r[n],c(e,function(e){e(!1,{node:t,selector:n,parents:o})}))})})),n.selectorChangedData[e]||(n.selectorChangedData[e]=[]),n.selectorChangedData[e].push(t),n},getScrollContainer:function(){for(var e,t=this.dom.getRoot();t&&\"BODY\"!=t.nodeName;){if(t.scrollHeight>t.clientHeight){e=t;break}t=t.parentNode}return e},scrollIntoView:function(e){function t(e){for(var t=0,n=0,r=e;r&&r.nodeType;)t+=r.offsetLeft||0,n+=r.offsetTop||0,r=r.offsetParent;return{x:t,y:n}}var n,r,i=this,o=i.dom,a=o.getRoot(),s,l;if(\"BODY\"!=a.nodeName){var c=i.getScrollContainer();if(c)return n=t(e).y-t(c).y,l=c.clientHeight,s=c.scrollTop,void((s>n||n+25>s+l)&&(c.scrollTop=s>n?n:n-l+25))}r=o.getViewPort(i.editor.getWin()),n=o.getPos(e).y,s=r.y,l=r.h,(n<r.y||n+25>s+l)&&i.editor.getWin().scrollTo(0,s>n?n:n-l+25)},placeCaretAt:function(e,t){var n=this.editor.getDoc(),r,i;if(n.caretPositionFromPoint)i=n.caretPositionFromPoint(e,t),r=n.createRange(),r.setStart(i.offsetNode,i.offset),r.collapse(!0);else if(n.caretRangeFromPoint)r=n.caretRangeFromPoint(e,t);else if(n.body.createTextRange){r=n.body.createTextRange();try{r.moveToPoint(e,t),r.collapse(!0)}catch(o){r.collapse(t<n.body.clientHeight)}}this.setRng(r)},_moveEndPoint:function(t,n,r){var i=n,o=new e(n,i),s=this.dom.schema.getNonEmptyElements();do{if(3==n.nodeType&&0!==u(n.nodeValue).length)return void(r?t.setStart(n,0):t.setEnd(n,n.nodeValue.length));if(s[n.nodeName]&&!/^(TD|TH)$/.test(n.nodeName))return void(r?t.setStartBefore(n):\"BR\"==n.nodeName?t.setEndBefore(n):t.setEndAfter(n));if(a.ie&&a.ie<11&&this.dom.isBlock(n)&&this.dom.isEmpty(n))return void(r?t.setStart(n,0):t.setEnd(n,0))}while(n=r?o.next():o.prev());\"BODY\"==i.nodeName&&(r?t.setStart(i,0):t.setEnd(i,i.childNodes.length))},destroy:function(){this.win=null,this.controlSelection.destroy()}},l}),r(M,[L,d],function(e,t){function n(t){this.compare=function(n,i){function o(e){var n={};return r(t.getAttribs(e),function(r){var i=r.nodeName.toLowerCase();0!==i.indexOf(\"_\")&&\"style\"!==i&&\"data-mce-style\"!==i&&(n[i]=t.getAttrib(e,i))}),n}function a(e,t){var n,r;for(r in e)if(e.hasOwnProperty(r)){if(n=t[r],\"undefined\"==typeof n)return!1;if(e[r]!=n)return!1;delete t[r]}for(r in t)if(t.hasOwnProperty(r))return!1;return!0}return n.nodeName!=i.nodeName?!1:a(o(n),o(i))&&a(t.parseStyle(t.getAttrib(n,\"style\")),t.parseStyle(t.getAttrib(i,\"style\")))?!e.isBookmarkNode(n)&&!e.isBookmarkNode(i):!1}}var r=t.each;return n}),r(P,[d],function(e){function t(e,t){function r(e){return e.replace(/%(\\w+)/g,\"\")}var i,o,a=e.dom,s=\"\",l,c;if(c=e.settings.preview_styles,c===!1)return\"\";if(c||(c=\"font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow\"),\"string\"==typeof t){if(t=e.formatter.get(t),!t)return;t=t[0]}return i=t.block||t.inline||\"span\",o=a.create(i),n(t.styles,function(e,t){e=r(e),e&&a.setStyle(o,t,e)}),n(t.attributes,function(e,t){e=r(e),e&&a.setAttrib(o,t,e)}),n(t.classes,function(e){e=r(e),a.hasClass(o,e)||a.addClass(o,e)}),e.fire(\"PreviewFormats\"),a.setStyles(o,{position:\"absolute\",left:-65535}),e.getBody().appendChild(o),l=a.getStyle(e.getBody(),\"fontSize\",!0),l=/px$/.test(l)?parseInt(l,10):0,n(c.split(\" \"),function(t){var n=a.getStyle(o,t,!0);if(!(\"background-color\"==t&&/transparent|rgba\\s*\\([^)]+,\\s*0\\)/.test(n)&&(n=a.getStyle(e.getBody(),t,!0),\"#ffffff\"==a.toHex(n).toLowerCase())||\"color\"==t&&\"#000000\"==a.toHex(n).toLowerCase())){if(\"font-size\"==t&&/em|%$/.test(n)){if(0===l)return;n=parseFloat(n,10)/(/%$/.test(n)?100:1),n=n*l+\"px\"\n}\"border\"==t&&n&&(s+=\"padding:0 2px;\"),s+=t+\":\"+n+\";\"}}),e.fire(\"AfterPreviewFormats\"),a.remove(o),s}var n=e.each;return{getCssText:t}}),r(O,[h,x,L,M,d,P],function(e,t,n,r,i,o){return function(a){function s(e){return e.nodeType&&(e=e.nodeName),!!a.schema.getTextBlockElements()[e.toLowerCase()]}function l(e,t){return U.getParents(e,t,U.getRoot())}function c(e){return 1===e.nodeType&&\"_mce_caret\"===e.id}function u(){p({valigntop:[{selector:\"td,th\",styles:{verticalAlign:\"top\"}}],valignmiddle:[{selector:\"td,th\",styles:{verticalAlign:\"middle\"}}],valignbottom:[{selector:\"td,th\",styles:{verticalAlign:\"bottom\"}}],alignleft:[{selector:\"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li\",styles:{textAlign:\"left\"},defaultBlock:\"div\"},{selector:\"img,table\",collapsed:!1,styles:{\"float\":\"left\"}}],aligncenter:[{selector:\"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li\",styles:{textAlign:\"center\"},defaultBlock:\"div\"},{selector:\"img\",collapsed:!1,styles:{display:\"block\",marginLeft:\"auto\",marginRight:\"auto\"}},{selector:\"table\",collapsed:!1,styles:{marginLeft:\"auto\",marginRight:\"auto\"}}],alignright:[{selector:\"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li\",styles:{textAlign:\"right\"},defaultBlock:\"div\"},{selector:\"img,table\",collapsed:!1,styles:{\"float\":\"right\"}}],alignjustify:[{selector:\"figure,p,h1,h2,h3,h4,h5,h6,td,th,tr,div,ul,ol,li\",styles:{textAlign:\"justify\"},defaultBlock:\"div\"}],bold:[{inline:\"strong\",remove:\"all\"},{inline:\"span\",styles:{fontWeight:\"bold\"}},{inline:\"b\",remove:\"all\"}],italic:[{inline:\"em\",remove:\"all\"},{inline:\"span\",styles:{fontStyle:\"italic\"}},{inline:\"i\",remove:\"all\"}],underline:[{inline:\"span\",styles:{textDecoration:\"underline\"},exact:!0},{inline:\"u\",remove:\"all\"}],strikethrough:[{inline:\"span\",styles:{textDecoration:\"line-through\"},exact:!0},{inline:\"strike\",remove:\"all\"}],forecolor:{inline:\"span\",styles:{color:\"%value\"},links:!0,remove_similar:!0},hilitecolor:{inline:\"span\",styles:{backgroundColor:\"%value\"},links:!0,remove_similar:!0},fontname:{inline:\"span\",styles:{fontFamily:\"%value\"}},fontsize:{inline:\"span\",styles:{fontSize:\"%value\"}},fontsize_class:{inline:\"span\",attributes:{\"class\":\"%value\"}},blockquote:{block:\"blockquote\",wrapper:1,remove:\"all\"},subscript:{inline:\"sub\"},superscript:{inline:\"sup\"},code:{inline:\"code\"},link:{inline:\"a\",selector:\"a\",remove:\"all\",split:!0,deep:!0,onmatch:function(){return!0},onformat:function(e,t,n){at(n,function(t,n){U.setAttrib(e,n,t)})}},removeformat:[{selector:\"b,strong,em,i,font,u,strike,sub,sup,dfn,code,samp,kbd,var,cite,mark,q\",remove:\"all\",split:!0,expand:!1,block_expand:!0,deep:!0},{selector:\"span\",attributes:[\"style\",\"class\"],remove:\"empty\",split:!0,expand:!1,deep:!0},{selector:\"*\",attributes:[\"style\",\"class\"],split:!1,expand:!1,deep:!0}]}),at(\"p h1 h2 h3 h4 h5 h6 div address pre div dt dd samp\".split(/\\s/),function(e){p(e,{block:e,remove:\"all\"})}),p(a.settings.formats)}function d(){a.addShortcut(\"ctrl+b\",\"bold_desc\",\"Bold\"),a.addShortcut(\"ctrl+i\",\"italic_desc\",\"Italic\"),a.addShortcut(\"ctrl+u\",\"underline_desc\",\"Underline\");for(var e=1;6>=e;e++)a.addShortcut(\"ctrl+\"+e,\"\",[\"FormatBlock\",!1,\"h\"+e]);a.addShortcut(\"ctrl+7\",\"\",[\"FormatBlock\",!1,\"p\"]),a.addShortcut(\"ctrl+8\",\"\",[\"FormatBlock\",!1,\"div\"]),a.addShortcut(\"ctrl+9\",\"\",[\"FormatBlock\",!1,\"address\"])}function f(e){return e?V[e]:V}function p(e,t){e&&(\"string\"!=typeof e?at(e,function(e,t){p(t,e)}):(t=t.length?t:[t],at(t,function(e){e.deep===tt&&(e.deep=!e.selector),e.split===tt&&(e.split=!e.selector||e.inline),e.remove===tt&&e.selector&&!e.inline&&(e.remove=\"none\"),e.selector&&e.inline&&(e.mixed=!0,e.block_expand=!0),\"string\"==typeof e.classes&&(e.classes=e.classes.split(/\\s+/))}),V[e]=t))}function h(e){return e&&V[e]&&delete V[e],V}function m(e){var t;return a.dom.getParent(e,function(e){return t=a.dom.getStyle(e,\"text-decoration\"),t&&\"none\"!==t}),t}function g(e){var t;1===e.nodeType&&e.parentNode&&1===e.parentNode.nodeType&&(t=m(e.parentNode),a.dom.getStyle(e,\"color\")&&t?a.dom.setStyle(e,\"text-decoration\",t):a.dom.getStyle(e,\"textdecoration\")===t&&a.dom.setStyle(e,\"text-decoration\",null))}function v(t,n,r){function i(e,t){if(t=t||d,e){if(t.onformat&&t.onformat(e,t,n,r),at(t.styles,function(t,r){U.setStyle(e,r,A(t,n))}),t.styles){var i=U.getAttrib(e,\"style\");i&&e.setAttribute(\"data-mce-style\",i)}at(t.attributes,function(t,r){U.setAttrib(e,r,A(t,n))}),at(t.classes,function(t){t=A(t,n),U.hasClass(e,t)||U.addClass(e,t)})}}function o(){function t(t,n){var i=new e(n);for(r=i.current();r;r=i.prev())if(r.childNodes.length>1||r==t||\"BR\"==r.tagName)return r}var n=a.selection.getRng(),i=n.startContainer,o=n.endContainer;if(i!=o&&0===n.endOffset){var s=t(i,o),l=3==s.nodeType?s.length:s.childNodes.length;n.setEnd(s,l)}return n}function l(e,r,o){var a=[],l,f,p=!0;l=d.inline||d.block,f=U.create(l),i(f),q.walk(e,function(e){function r(e){var g,v,y,b,x;return x=p,g=e.nodeName.toLowerCase(),v=e.parentNode.nodeName.toLowerCase(),1===e.nodeType&&nt(e)&&(x=p,p=\"true\"===nt(e),b=!0),S(g,\"br\")?(h=0,void(d.block&&U.remove(e))):d.wrapper&&C(e,t,n)?void(h=0):p&&!b&&d.block&&!d.wrapper&&s(g)&&j(v,l)?(e=U.rename(e,l),i(e),a.push(e),void(h=0)):d.selector&&(at(u,function(t){\"collapsed\"in t&&t.collapsed!==m||U.is(e,t.selector)&&!c(e)&&(i(e,t),y=!0)}),!d.inline||y)?void(h=0):void(!p||b||!j(l,g)||!j(v,l)||!o&&3===e.nodeType&&1===e.nodeValue.length&&65279===e.nodeValue.charCodeAt(0)||c(e)||d.inline&&Y(e)?(h=0,at(st(e.childNodes),r),b&&(p=x),h=0):(h||(h=U.clone(f,Q),e.parentNode.insertBefore(h,e),a.push(h)),h.appendChild(e)))}var h;at(e,r)}),d.links===!0&&at(a,function(e){function t(e){\"A\"===e.nodeName&&i(e,d),at(st(e.childNodes),t)}t(e)}),at(a,function(e){function r(e){var t=0;return at(e.childNodes,function(e){B(e)||ot(e)||t++}),t}function o(e){var t,n;return at(e.childNodes,function(e){return 1!=e.nodeType||ot(e)||c(e)?void 0:(t=e,Q)}),t&&!ot(t)&&k(t,d)&&(n=U.clone(t,Q),i(n),U.replace(n,e,Z),U.remove(t,1)),n||e}var s;if(s=r(e),(a.length>1||!Y(e))&&0===s)return void U.remove(e,1);if(d.inline||d.wrapper){if(d.exact||1!==s||(e=o(e)),at(u,function(t){at(U.select(t.inline,e),function(e){ot(e)||M(t,n,e,t.exact?e:null)})}),C(e.parentNode,t,n))return U.remove(e,1),e=0,Z;d.merge_with_parents&&U.getParent(e.parentNode,function(r){return C(r,t,n)?(U.remove(e,1),e=0,Z):void 0}),e&&d.merge_siblings!==!1&&(e=I(O(e),e),e=I(e,O(e,Z)))}})}var u=f(t),d=u[0],p,h,m=!r&&$.isCollapsed();if(d)if(r)r.nodeType?(h=U.createRng(),h.setStartBefore(r),h.setEndAfter(r),l(L(h,u),null,!0)):l(r,null,!0);else if(m&&d.inline&&!U.select(\"td.mce-item-selected,th.mce-item-selected\").length)z(\"apply\",t,n);else{var y=a.selection.getNode();K||!u[0].defaultBlock||U.getParent(y,U.isBlock)||v(u[0].defaultBlock),a.selection.setRng(o()),p=$.getBookmark(),l(L($.getRng(Z),u),p),d.styles&&(d.styles.color||d.styles.textDecoration)&&(lt(y,g,\"childNodes\"),g(y)),$.moveToBookmark(p),W($.getRng(Z)),a.nodeChanged()}}function y(e,t,n,r){function i(e){var n,r,o,a,s;if(1===e.nodeType&&nt(e)&&(a=y,y=\"true\"===nt(e),s=!0),n=st(e.childNodes),y&&!s)for(r=0,o=p.length;o>r&&!M(p[r],t,e,e);r++);if(h.deep&&n.length){for(r=0,o=n.length;o>r;r++)i(n[r]);s&&(y=a)}}function o(n){var i;return at(l(n.parentNode).reverse(),function(n){var o;i||\"_start\"==n.id||\"_end\"==n.id||(o=C(n,e,t,r),o&&o.split!==!1&&(i=n))}),i}function s(e,n,r,i){var o,a,s,l,c,u;if(e){for(u=e.parentNode,o=n.parentNode;o&&o!=u;o=o.parentNode){for(a=U.clone(o,Q),c=0;c<p.length;c++)if(M(p[c],t,a,a)){a=0;break}a&&(s&&a.appendChild(s),l||(l=a),s=a)}!i||h.mixed&&Y(e)||(n=U.split(e,n)),s&&(r.parentNode.insertBefore(s,r),l.appendChild(r))}return n}function c(e){return s(o(e),e,e,!0)}function u(e){var t=U.get(e?\"_start\":\"_end\"),n=t[e?\"firstChild\":\"lastChild\"];return ot(n)&&(n=n[e?\"firstChild\":\"lastChild\"]),U.remove(t,!0),n}function d(e){var t,n,r=e.commonAncestorContainer;e=L(e,p,Z),h.split&&(t=F(e,Z),n=F(e),t!=n?(/^(TR|TH|TD)$/.test(t.nodeName)&&t.firstChild&&(t=\"TR\"==t.nodeName?t.firstChild.firstChild||t:t.firstChild||t),r&&/^T(HEAD|BODY|FOOT|R)$/.test(r.nodeName)&&/^(TH|TD)$/.test(n.nodeName)&&n.firstChild&&(n=n.firstChild||n),t=D(t,\"span\",{id:\"_start\",\"data-mce-type\":\"bookmark\"}),n=D(n,\"span\",{id:\"_end\",\"data-mce-type\":\"bookmark\"}),c(t),c(n),t=u(Z),n=u()):t=n=c(t),e.startContainer=t.parentNode,e.startOffset=G(t),e.endContainer=n.parentNode,e.endOffset=G(n)+1),q.walk(e,function(e){at(e,function(e){i(e),1===e.nodeType&&\"underline\"===a.dom.getStyle(e,\"text-decoration\")&&e.parentNode&&\"underline\"===m(e.parentNode)&&M({deep:!1,exact:!0,inline:\"span\",styles:{textDecoration:\"underline\"}},null,e)})})}var p=f(e),h=p[0],g,v,y=!0;return n?void(n.nodeType?(v=U.createRng(),v.setStartBefore(n),v.setEndAfter(n),d(v)):d(n)):void($.isCollapsed()&&h.inline&&!U.select(\"td.mce-item-selected,th.mce-item-selected\").length?z(\"remove\",e,t,r):(g=$.getBookmark(),d($.getRng(Z)),$.moveToBookmark(g),h.inline&&x(e,t,$.getStart())&&W($.getRng(!0)),a.nodeChanged()))}function b(e,t,n){var r=f(e);!x(e,t,n)||\"toggle\"in r[0]&&!r[0].toggle?v(e,t,n):y(e,t,n)}function C(e,t,n,r){function i(e,t,i){var o,a,s=t[i],l;if(t.onmatch)return t.onmatch(e,t,i);if(s)if(s.length===tt){for(o in s)if(s.hasOwnProperty(o)){if(a=\"attributes\"===i?U.getAttrib(e,o):T(e,o),r&&!a&&!t.exact)return;if((!r||t.exact)&&!S(a,R(A(s[o],n),o)))return}}else for(l=0;l<s.length;l++)if(\"attributes\"===i?U.getAttrib(e,s[l]):T(e,s[l]))return t;return t}var o=f(t),a,s,l;if(o&&e)for(s=0;s<o.length;s++)if(a=o[s],k(e,a)&&i(e,a,\"attributes\")&&i(e,a,\"styles\")){if(l=a.classes)for(s=0;s<l.length;s++)if(!U.hasClass(e,l[s]))return;return a}}function x(e,t,n){function r(n){var r=U.getRoot();return n===r?!1:(n=U.getParent(n,function(n){return n.parentNode===r||!!C(n,e,t,!0)}),C(n,e,t))}var i;return n?r(n):(n=$.getNode(),r(n)?Z:(i=$.getStart(),i!=n&&r(i)?Z:Q))}function w(e,t){var n,r=[],i={};return n=$.getStart(),U.getParent(n,function(n){var o,a;for(o=0;o<e.length;o++)a=e[o],!i[a]&&C(n,a,t)&&(i[a]=!0,r.push(a))},U.getRoot()),r}function _(e){var t=f(e),n,r,i,o,a;if(t)for(n=$.getStart(),r=l(n),o=t.length-1;o>=0;o--){if(a=t[o].selector,!a||t[o].defaultBlock)return Z;for(i=r.length-1;i>=0;i--)if(U.is(r[i],a))return Z}return Q}function E(e,t,n){var r;return et||(et={},r={},a.on(\"NodeChange\",function(e){var t=l(e.element),n={};t=i.grep(t,function(e){return 1==e.nodeType&&!e.getAttribute(\"data-mce-bogus\")}),at(et,function(e,i){at(t,function(o){return C(o,i,{},e.similar)?(r[i]||(at(e,function(e){e(!0,{node:o,format:i,parents:t})}),r[i]=e),n[i]=e,!1):void 0})}),at(r,function(i,o){n[o]||(delete r[o],at(i,function(n){n(!1,{node:e.element,format:o,parents:t})}))})})),at(e.split(\",\"),function(e){et[e]||(et[e]=[],et[e].similar=n),et[e].push(t)}),this}function N(e){return o.getCssText(a,e)}function k(e,t){return S(e,t.inline)?Z:S(e,t.block)?Z:t.selector?1==e.nodeType&&U.is(e,t.selector):void 0}function S(e,t){return e=e||\"\",t=t||\"\",e=\"\"+(e.nodeName||e),t=\"\"+(t.nodeName||t),e.toLowerCase()==t.toLowerCase()}function T(e,t){return R(U.getStyle(e,t),t)}function R(e,t){return(\"color\"==t||\"backgroundColor\"==t)&&(e=U.toHex(e)),\"fontWeight\"==t&&700==e&&(e=\"bold\"),\"fontFamily\"==t&&(e=e.replace(/[\\'\\\"]/g,\"\").replace(/,\\s+/g,\",\")),\"\"+e}function A(e,t){return\"string\"!=typeof e?e=e(t):t&&(e=e.replace(/%(\\w+)/g,function(e,n){return t[n]||e})),e}function B(e){return e&&3===e.nodeType&&/^([\\t \\r\\n]+|)$/.test(e.nodeValue)}function D(e,t,n){var r=U.create(t,n);return e.parentNode.insertBefore(r,e),r.appendChild(e),r}function L(t,n,r){function i(e){function t(e){return\"BR\"==e.nodeName&&e.getAttribute(\"data-mce-bogus\")&&!e.nextSibling}var r,i,o,a,s;if(r=i=e?g:y,a=e?\"previousSibling\":\"nextSibling\",s=U.getRoot(),3==r.nodeType&&!B(r)&&(e?v>0:b<r.nodeValue.length))return r;for(;;){if(!n[0].block_expand&&Y(i))return i;for(o=i[a];o;o=o[a])if(!ot(o)&&!B(o)&&!t(o))return i;if(i.parentNode==s){r=i;break}i=i.parentNode}return r}function o(e,t){for(t===tt&&(t=3===e.nodeType?e.length:e.childNodes.length);e&&e.hasChildNodes();)e=e.childNodes[t],e&&(t=3===e.nodeType?e.length:e.childNodes.length);return{node:e,offset:t}}function c(e){for(var t=e;t;){if(1===t.nodeType&&nt(t))return\"false\"===nt(t)?t:e;t=t.parentNode}return e}function u(t,n,i){function o(e,t){var n,o,a=e.nodeValue;return\"undefined\"==typeof t&&(t=i?a.length:0),i?(n=a.lastIndexOf(\" \",t),o=a.lastIndexOf(\"\\xa0\",t),n=n>o?n:o,-1===n||r||n++):(n=a.indexOf(\" \",t),o=a.indexOf(\"\\xa0\",t),n=-1!==n&&(-1===o||o>n)?n:o),n}var s,l,c,u;if(3===t.nodeType){if(c=o(t,n),-1!==c)return{container:t,offset:c};u=t}for(s=new e(t,U.getParent(t,Y)||a.getBody());l=s[i?\"prev\":\"next\"]();)if(3===l.nodeType){if(u=l,c=o(l),-1!==c)return{container:l,offset:c}}else if(Y(l))break;return u?(n=i?0:u.length,{container:u,offset:n}):void 0}function d(e,r){var i,o,a,s;for(3==e.nodeType&&0===e.nodeValue.length&&e[r]&&(e=e[r]),i=l(e),o=0;o<i.length;o++)for(a=0;a<n.length;a++)if(s=n[a],!(\"collapsed\"in s&&s.collapsed!==t.collapsed)&&U.is(i[o],s.selector))return i[o];return e}function f(e,t){var r,i=U.getRoot();if(n[0].wrapper||(r=U.getParent(e,n[0].block,i)),r||(r=U.getParent(3==e.nodeType?e.parentNode:e,function(e){return e!=i&&s(e)})),r&&n[0].wrapper&&(r=l(r,\"ul,ol\").reverse()[0]||r),!r)for(r=e;r[t]&&!Y(r[t])&&(r=r[t],!S(r,\"br\")););return r||e}var p,h,m,g=t.startContainer,v=t.startOffset,y=t.endContainer,b=t.endOffset;if(1==g.nodeType&&g.hasChildNodes()&&(p=g.childNodes.length-1,g=g.childNodes[v>p?p:v],3==g.nodeType&&(v=0)),1==y.nodeType&&y.hasChildNodes()&&(p=y.childNodes.length-1,y=y.childNodes[b>p?p:b-1],3==y.nodeType&&(b=y.nodeValue.length)),g=c(g),y=c(y),(ot(g.parentNode)||ot(g))&&(g=ot(g)?g:g.parentNode,g=g.nextSibling||g,3==g.nodeType&&(v=0)),(ot(y.parentNode)||ot(y))&&(y=ot(y)?y:y.parentNode,y=y.previousSibling||y,3==y.nodeType&&(b=y.length)),n[0].inline&&(t.collapsed&&(m=u(g,v,!0),m&&(g=m.container,v=m.offset),m=u(y,b),m&&(y=m.container,b=m.offset)),h=o(y,b),h.node)){for(;h.node&&0===h.offset&&h.node.previousSibling;)h=o(h.node.previousSibling);h.node&&h.offset>0&&3===h.node.nodeType&&\" \"===h.node.nodeValue.charAt(h.offset-1)&&h.offset>1&&(y=h.node,y.splitText(h.offset-1))}return(n[0].inline||n[0].block_expand)&&(n[0].inline&&3==g.nodeType&&0!==v||(g=i(!0)),n[0].inline&&3==y.nodeType&&b!==y.nodeValue.length||(y=i())),n[0].selector&&n[0].expand!==Q&&!n[0].inline&&(g=d(g,\"previousSibling\"),y=d(y,\"nextSibling\")),(n[0].block||n[0].selector)&&(g=f(g,\"previousSibling\"),y=f(y,\"nextSibling\"),n[0].block&&(Y(g)||(g=i(!0)),Y(y)||(y=i()))),1==g.nodeType&&(v=G(g),g=g.parentNode),1==y.nodeType&&(b=G(y)+1,y=y.parentNode),{startContainer:g,startOffset:v,endContainer:y,endOffset:b}}function H(e,t){return t.links&&\"A\"==e.tagName}function M(e,t,n,r){var i,o,a;if(!k(n,e)&&!H(n,e))return Q;if(\"all\"!=e.remove)for(at(e.styles,function(i,o){i=R(A(i,t),o),\"number\"==typeof o&&(o=i,r=0),(e.remove_similar||!r||S(T(r,o),i))&&U.setStyle(n,o,\"\"),a=1}),a&&\"\"===U.getAttrib(n,\"style\")&&(n.removeAttribute(\"style\"),n.removeAttribute(\"data-mce-style\")),at(e.attributes,function(e,i){var o;if(e=A(e,t),\"number\"==typeof i&&(i=e,r=0),!r||S(U.getAttrib(r,i),e)){if(\"class\"==i&&(e=U.getAttrib(n,i),e&&(o=\"\",at(e.split(/\\s+/),function(e){/mce\\w+/.test(e)&&(o+=(o?\" \":\"\")+e)}),o)))return void U.setAttrib(n,i,o);\"class\"==i&&n.removeAttribute(\"className\"),J.test(i)&&n.removeAttribute(\"data-mce-\"+i),n.removeAttribute(i)}}),at(e.classes,function(e){e=A(e,t),(!r||U.hasClass(r,e))&&U.removeClass(n,e)}),o=U.getAttribs(n),i=0;i<o.length;i++)if(0!==o[i].nodeName.indexOf(\"_\"))return Q;return\"none\"!=e.remove?(P(n,e),Z):void 0}function P(e,t){function n(e,t,n){return e=O(e,t,n),!e||\"BR\"==e.nodeName||Y(e)}var r=e.parentNode,i;t.block&&(K?r==U.getRoot()&&(t.list_block&&S(e,t.list_block)||at(st(e.childNodes),function(e){j(K,e.nodeName.toLowerCase())?i?i.appendChild(e):(i=D(e,K),U.setAttribs(i,a.settings.forced_root_block_attrs)):i=0})):Y(e)&&!Y(r)&&(n(e,Q)||n(e.firstChild,Z,1)||e.insertBefore(U.create(\"br\"),e.firstChild),n(e,Z)||n(e.lastChild,Q,1)||e.appendChild(U.create(\"br\")))),t.selector&&t.inline&&!S(t.inline,e)||U.remove(e,1)}function O(e,t,n){if(e)for(t=t?\"nextSibling\":\"previousSibling\",e=n?e:e[t];e;e=e[t])if(1==e.nodeType||!B(e))return e}function I(e,t){function n(e,t){for(i=e;i;i=i[t]){if(3==i.nodeType&&0!==i.nodeValue.length)return e;if(1==i.nodeType&&!ot(i))return i}return e}var i,o,a=new r(U);if(e&&t&&(e=n(e,\"previousSibling\"),t=n(t,\"nextSibling\"),a.compare(e,t))){for(i=e.nextSibling;i&&i!=t;)o=i,i=i.nextSibling,e.appendChild(o);return U.remove(t),at(st(t.childNodes),function(t){e.appendChild(t)}),e}return t}function F(t,n){var r,i,o;return r=t[n?\"startContainer\":\"endContainer\"],i=t[n?\"startOffset\":\"endOffset\"],1==r.nodeType&&(o=r.childNodes.length-1,!n&&i&&i--,r=r.childNodes[i>o?o:i]),3===r.nodeType&&n&&i>=r.nodeValue.length&&(r=new e(r,a.getBody()).next()||r),3!==r.nodeType||n||0!==i||(r=new e(r,a.getBody()).prev()||r),r}function z(t,n,r,i){function o(e){var t=U.create(\"span\",{id:g,\"data-mce-bogus\":!0,style:b?\"color:red\":\"\"});return e&&t.appendChild(a.getDoc().createTextNode(X)),t}function l(e,t){for(;e;){if(3===e.nodeType&&e.nodeValue!==X||e.childNodes.length>1)return!1;t&&1===e.nodeType&&t.push(e),e=e.firstChild}return!0}function c(e){for(;e;){if(e.id===g)return e;e=e.parentNode}}function u(t){var n;if(t)for(n=new e(t,t),t=n.current();t;t=n.next())if(3===t.nodeType)return t}function d(e,t){var n,r;if(e)r=$.getRng(!0),l(e)?(t!==!1&&(r.setStartBefore(e),r.setEndBefore(e)),U.remove(e)):(n=u(e),n.nodeValue.charAt(0)===X&&(n.deleteData(0,1),r.startContainer==n&&r.startOffset>0&&r.setStart(n,r.startOffset-1),r.endContainer==n&&r.endOffset>0&&r.setEnd(n,r.endOffset-1)),U.remove(e,1)),$.setRng(r);else if(e=c($.getStart()),!e)for(;e=U.get(g);)d(e,!1)}function p(){var e,t,i,a,s,l,d;e=$.getRng(!0),a=e.startOffset,l=e.startContainer,d=l.nodeValue,t=c($.getStart()),t&&(i=u(t)),d&&a>0&&a<d.length&&/\\w/.test(d.charAt(a))&&/\\w/.test(d.charAt(a-1))?(s=$.getBookmark(),e.collapse(!0),e=L(e,f(n)),e=q.split(e),v(n,r,e),$.moveToBookmark(s)):(t&&i.nodeValue===X?v(n,r,t):(t=o(!0),i=t.firstChild,e.insertNode(t),a=1,v(n,r,t)),$.setCursorLocation(i,a))}function h(){var e=$.getRng(!0),t,a,l,c,u,d,p=[],h,m;for(t=e.startContainer,a=e.startOffset,u=t,3==t.nodeType&&(a!=t.nodeValue.length&&(c=!0),u=u.parentNode);u;){if(C(u,n,r,i)){d=u;break}u.nextSibling&&(c=!0),p.push(u),u=u.parentNode}if(d)if(c)l=$.getBookmark(),e.collapse(!0),e=L(e,f(n),!0),e=q.split(e),y(n,r,e),$.moveToBookmark(l);else{for(m=o(),u=m,h=p.length-1;h>=0;h--)u.appendChild(U.clone(p[h],!1)),u=u.firstChild;u.appendChild(U.doc.createTextNode(X)),u=u.firstChild;var g=U.getParent(d,s);g&&U.isEmpty(g)?d.parentNode.replaceChild(m,d):U.insertAfter(m,d),$.setCursorLocation(u,1),U.isEmpty(d)&&U.remove(d)}}function m(){var e;e=c($.getStart()),e&&!U.isEmpty(e)&&lt(e,function(e){1!=e.nodeType||e.id===g||U.isEmpty(e)||U.setAttrib(e,\"data-mce-bogus\",null)},\"childNodes\")}var g=\"_mce_caret\",b=a.settings.caret_debug;a._hasCaretEvents||(it=function(){var e=[],t;if(l(c($.getStart()),e))for(t=e.length;t--;)U.setAttrib(e[t],\"data-mce-bogus\",\"1\")},rt=function(e){var t=e.keyCode;d(),(8==t||37==t||39==t)&&d(c($.getStart())),m()},a.on(\"SetContent\",function(e){e.selection&&m()}),a._hasCaretEvents=!0),\"apply\"==t?p():h()}function W(t){var n=t.startContainer,r=t.startOffset,i,o,a,s,l;if(3==n.nodeType&&r>=n.nodeValue.length&&(r=G(n),n=n.parentNode,i=!0),1==n.nodeType)for(s=n.childNodes,n=s[Math.min(r,s.length-1)],o=new e(n,U.getParent(n,U.isBlock)),(r>s.length-1||i)&&o.next(),a=o.current();a;a=o.next())if(3==a.nodeType&&!B(a))return l=U.create(\"a\",{\"data-mce-bogus\":\"all\"},X),a.parentNode.insertBefore(l,a),t.setStart(a,0),$.setRng(t),void U.remove(l)}var V={},U=a.dom,$=a.selection,q=new t(U),j=a.schema.isValidChild,Y=U.isBlock,K=a.settings.forced_root_block,G=U.nodeIndex,X=\"\\ufeff\",J=/^(src|href|style)$/,Q=!1,Z=!0,et,tt,nt=U.getContentEditable,rt,it,ot=n.isBookmarkNode,at=i.each,st=i.grep,lt=i.walk,ct=i.extend;ct(this,{get:f,register:p,unregister:h,apply:v,remove:y,toggle:b,match:x,matchAll:w,matchNode:C,canApply:_,formatChanged:E,getCssText:N}),u(),d(),a.on(\"BeforeGetContent\",function(e){it&&\"raw\"!=e.format&&it()}),a.on(\"mouseup keydown\",function(e){rt&&rt(e)})}}),r(I,[B,u,d,N],function(e,t,n,r){var i=n.trim,o;return o=new RegExp([\"<span[^>]+data-mce-bogus[^>]+>[\\u200b\\ufeff]+<\\\\/span>\",'\\\\s?data-mce-selected=\"[^\"]+\"'].join(\"|\"),\"gi\"),function(n){function a(){var e=n.getContent({format:\"raw\",no_events:1}),t=/<(\\w+) [^>]*data-mce-bogus=\"all\"[^>]*>/g,a,s,l,c,u,d=n.schema;for(e=e.replace(o,\"\"),u=d.getShortEndedElements();c=t.exec(e);)s=t.lastIndex,l=c[0].length,a=u[c[1]]?s:r.findEndTag(d,e,s),e=e.substring(0,s-l)+e.substring(a),t.lastIndex=s-l;return i(e)}function s(e){l.typing=!1,l.add({},e)}var l=this,c=0,u=[],d,f,p=0;return n.on(\"init\",function(){l.add()}),n.on(\"BeforeExecCommand\",function(e){var t=e.command;\"Undo\"!=t&&\"Redo\"!=t&&\"mceRepaint\"!=t&&l.beforeChange()}),n.on(\"ExecCommand\",function(e){var t=e.command;\"Undo\"!=t&&\"Redo\"!=t&&\"mceRepaint\"!=t&&s(e)}),n.on(\"ObjectResizeStart\",function(){l.beforeChange()}),n.on(\"SaveContent ObjectResized blur\",s),n.on(\"DragEnd\",s),n.on(\"KeyUp\",function(e){var r=e.keyCode;(r>=33&&36>=r||r>=37&&40>=r||45==r||13==r||e.ctrlKey)&&(s(),n.nodeChanged()),(46==r||8==r||t.mac&&(91==r||93==r))&&n.nodeChanged(),f&&l.typing&&(n.isDirty()||(n.isNotDirty=!u[0]||a()==u[0].content,n.isNotDirty||n.fire(\"change\",{level:u[0],lastLevel:null})),n.fire(\"TypingUndo\"),f=!1,n.nodeChanged())}),n.on(\"KeyDown\",function(t){var n=t.keyCode;if(n>=33&&36>=n||n>=37&&40>=n||45==n)return void(l.typing&&s(t));var r=e.modifierPressed(t);!(16>n||n>20)||224==n||91==n||l.typing||r||(l.beforeChange(),l.typing=!0,l.add({},t),f=!0)}),n.on(\"MouseDown\",function(e){l.typing&&s(e)}),n.addShortcut(\"ctrl+z\",\"\",\"Undo\"),n.addShortcut(\"ctrl+y,ctrl+shift+z\",\"\",\"Redo\"),n.on(\"AddUndo Undo Redo ClearUndos\",function(e){e.isDefaultPrevented()||n.nodeChanged()}),l={data:u,typing:!1,beforeChange:function(){p||(d=n.selection.getBookmark(2,!0))},add:function(e,t){var r,i=n.settings,o;if(e=e||{},e.content=a(),p||n.removed)return null;if(o=u[c],n.fire(\"BeforeAddUndo\",{level:e,lastLevel:o,originalEvent:t}).isDefaultPrevented())return null;if(o&&o.content==e.content)return null;if(u[c]&&(u[c].beforeBookmark=d),i.custom_undo_redo_levels&&u.length>i.custom_undo_redo_levels){for(r=0;r<u.length-1;r++)u[r]=u[r+1];u.length--,c=u.length}e.bookmark=n.selection.getBookmark(2,!0),c<u.length-1&&(u.length=c+1),u.push(e),c=u.length-1;var s={level:e,lastLevel:o,originalEvent:t};return n.fire(\"AddUndo\",s),c>0&&(n.isNotDirty=!1,n.fire(\"change\",s)),e},undo:function(){var e;return l.typing&&(l.add(),l.typing=!1),c>0&&(e=u[--c],0===c&&(n.isNotDirty=!0),n.setContent(e.content,{format:\"raw\"}),n.selection.moveToBookmark(e.beforeBookmark),n.fire(\"undo\",{level:e})),e},redo:function(){var e;return c<u.length-1&&(e=u[++c],n.setContent(e.content,{format:\"raw\"}),n.selection.moveToBookmark(e.bookmark),n.fire(\"redo\",{level:e})),e},clear:function(){u=[],c=0,l.typing=!1,n.fire(\"ClearUndos\")},hasUndo:function(){return c>0||l.typing&&u[0]&&a()!=u[0].content},hasRedo:function(){return c<u.length-1&&!this.typing},transact:function(e){l.beforeChange();try{p++,e()}finally{p--}l.add()}}}}),r(F,[h,x,u],function(e,t,n){var r=n.ie&&n.ie<11;return function(i){function o(o){function f(e){return e&&a.isBlock(e)&&!/^(TD|TH|CAPTION|FORM)$/.test(e.nodeName)&&!/^(fixed|absolute)/i.test(e.style.position)&&\"true\"!==a.getContentEditable(e)}function p(e){var t;a.isBlock(e)&&(t=s.getRng(),e.appendChild(a.create(\"span\",null,\"\\xa0\")),s.select(e),e.lastChild.outerHTML=\"\",s.setRng(t))}function h(e){var t=e,n=[],r;if(t){for(;t=t.firstChild;){if(a.isBlock(t))return;1!=t.nodeType||d[t.nodeName.toLowerCase()]||n.push(t)}for(r=n.length;r--;)t=n[r],!t.hasChildNodes()||t.firstChild==t.lastChild&&\"\"===t.firstChild.nodeValue?a.remove(t):\"A\"==t.nodeName&&\" \"===(t.innerText||t.textContent)&&a.remove(t)}}function m(t){function r(e){for(;e;){if(1==e.nodeType||3==e.nodeType&&e.data&&/[\\r\\n\\s]/.test(e.data))return e;e=e.nextSibling}}var i,o,l,c=t,u;if(t){if(n.ie&&n.ie<9&&A&&A.firstChild&&A.firstChild==A.lastChild&&\"BR\"==A.firstChild.tagName&&a.remove(A.firstChild),/^(LI|DT|DD)$/.test(t.nodeName)){var f=r(t.firstChild);f&&/^(UL|OL|DL)$/.test(f.nodeName)&&t.insertBefore(a.doc.createTextNode(\"\\xa0\"),t.firstChild)}if(l=a.createRng(),n.ie||t.normalize(),t.hasChildNodes()){for(i=new e(t,t);o=i.current();){if(3==o.nodeType){l.setStart(o,0),l.setEnd(o,0);break}if(d[o.nodeName.toLowerCase()]){l.setStartBefore(o),l.setEndBefore(o);break}c=o,o=i.next()}o||(l.setStart(c,0),l.setEnd(c,0))}else\"BR\"==t.nodeName?t.nextSibling&&a.isBlock(t.nextSibling)?((!B||9>B)&&(u=a.create(\"br\"),t.parentNode.insertBefore(u,t)),l.setStartBefore(t),l.setEndBefore(t)):(l.setStartAfter(t),l.setEndAfter(t)):(l.setStart(t,0),l.setEnd(t,0));s.setRng(l),a.remove(u),s.scrollIntoView(t)}}function g(e){var t=l.forced_root_block;t&&t.toLowerCase()===e.tagName.toLowerCase()&&a.setAttribs(e,l.forced_root_block_attrs)}function v(e){var t=T,n,i,o,s=u.getTextInlineElements();if(e||\"TABLE\"==P?(n=a.create(e||I),g(n)):n=A.cloneNode(!1),o=n,l.keep_styles!==!1)do if(s[t.nodeName]){if(\"_mce_caret\"==t.id)continue;i=t.cloneNode(!1),a.setAttrib(i,\"id\",\"\"),n.hasChildNodes()?(i.appendChild(n.firstChild),n.appendChild(i)):(o=i,n.appendChild(i))}while(t=t.parentNode);return r||(o.innerHTML='<br data-mce-bogus=\"1\">'),n}function y(t){var n,r,i;if(3==T.nodeType&&(t?R>0:R<T.nodeValue.length))return!1;if(T.parentNode==A&&F&&!t)return!0;if(t&&1==T.nodeType&&T==A.firstChild)return!0;if(\"TABLE\"===T.nodeName||T.previousSibling&&\"TABLE\"==T.previousSibling.nodeName)return F&&!t||!F&&t;for(n=new e(T,A),3==T.nodeType&&(t&&0===R?n.prev():t||R!=T.nodeValue.length||n.next());r=n.current();){if(1===r.nodeType){if(!r.getAttribute(\"data-mce-bogus\")&&(i=r.nodeName.toLowerCase(),d[i]&&\"br\"!==i))return!1}else if(3===r.nodeType&&!/^[ \\t\\r\\n]*$/.test(r.nodeValue))return!1;t?n.prev():n.next()}return!0}function b(e,t){var n,r,o,s,l,c,d=I||\"P\";if(r=a.getParent(e,a.isBlock),c=i.getBody().nodeName.toLowerCase(),!r||!f(r)){if(r=r||S,!r.hasChildNodes())return n=a.create(d),g(n),r.appendChild(n),N.setStart(n,0),N.setEnd(n,0),n;for(s=e;s.parentNode!=r;)s=s.parentNode;for(;s&&!a.isBlock(s);)o=s,s=s.previousSibling;if(o&&u.isValidChild(c,d.toLowerCase())){for(n=a.create(d),g(n),o.parentNode.insertBefore(n,o),s=o;s&&!a.isBlock(s);)l=s.nextSibling,n.appendChild(s),s=l;N.setStart(e,t),N.setEnd(e,t)}}return e}function C(){function e(e){for(var t=M[e?\"firstChild\":\"lastChild\"];t&&1!=t.nodeType;)t=t[e?\"nextSibling\":\"previousSibling\"];return t===A}function t(){var e=M.parentNode;return/^(LI|DT|DD)$/.test(e.nodeName)?e:M}var n=M.parentNode.nodeName;/^(OL|UL|LI)$/.test(n)&&(I=\"LI\"),L=I?v(I):a.create(\"BR\"),e(!0)&&e()?\"LI\"==n?a.insertAfter(L,t()):a.replace(L,M):e(!0)?\"LI\"==n?(a.insertAfter(L,t()),L.appendChild(a.doc.createTextNode(\" \")),L.appendChild(M)):M.parentNode.insertBefore(L,M):e()?(a.insertAfter(L,t()),p(L)):(M=t(),k=N.cloneRange(),k.setStartAfter(A),k.setEndAfter(M),H=k.extractContents(),\"LI\"==I&&\"LI\"==H.firstChild.nodeName?(L=H.firstChild,a.insertAfter(H,M)):(a.insertAfter(H,M),a.insertAfter(L,M))),a.remove(A),m(L),c.add()}function x(){i.execCommand(\"InsertLineBreak\",!1,o)}function w(e){do 3===e.nodeType&&(e.nodeValue=e.nodeValue.replace(/^[\\r\\n]+/,\"\")),e=e.firstChild;while(e)}function _(e){var t=a.getRoot(),n,r;for(n=e;n!==t&&\"false\"!==a.getContentEditable(n);)\"true\"===a.getContentEditable(n)&&(r=n),n=n.parentNode;return n!==t?r:t}function E(e){var t;r||(e.normalize(),t=e.lastChild,(!t||/^(left|right)$/gi.test(a.getStyle(t,\"float\",!0)))&&a.add(e,\"br\"))}var N,k,S,T,R,A,B,D,L,H,M,P,O,I,F;if(N=s.getRng(!0),!o.isDefaultPrevented()){if(!N.collapsed)return void i.execCommand(\"Delete\");if(new t(a).normalize(N),T=N.startContainer,R=N.startOffset,I=(l.force_p_newlines?\"p\":\"\")||l.forced_root_block,I=I?I.toUpperCase():\"\",B=a.doc.documentMode,D=o.shiftKey,1==T.nodeType&&T.hasChildNodes()&&(F=R>T.childNodes.length-1,T=T.childNodes[Math.min(R,T.childNodes.length-1)]||T,R=F&&3==T.nodeType?T.nodeValue.length:0),S=_(T)){if(c.beforeChange(),!a.isBlock(S)&&S!=a.getRoot())return void((!I||D)&&x());if((I&&!D||!I&&D)&&(T=b(T,R)),A=a.getParent(T,a.isBlock),M=A?a.getParent(A.parentNode,a.isBlock):null,P=A?A.nodeName.toUpperCase():\"\",O=M?M.nodeName.toUpperCase():\"\",\"LI\"!=O||o.ctrlKey||(A=M,P=O),/^(LI|DT|DD)$/.test(P)){if(!I&&D)return void x();if(a.isEmpty(A))return void C()}if(\"PRE\"==P&&l.br_in_pre!==!1){if(!D)return void x()}else if(!I&&!D&&\"LI\"!=P||I&&D)return void x();I&&A===i.getBody()||(I=I||\"P\",y()?(L=/^(H[1-6]|PRE|FIGURE)$/.test(P)&&\"HGROUP\"!=O?v(I):v(),l.end_container_on_empty_block&&f(M)&&a.isEmpty(A)?L=a.split(M,A):a.insertAfter(L,A),m(L)):y(!0)?(L=A.parentNode.insertBefore(v(),A),p(L),m(A)):(k=N.cloneRange(),k.setEndAfter(A),H=k.extractContents(),w(H),L=H.firstChild,a.insertAfter(H,A),h(L),E(A),m(L)),a.setAttrib(L,\"id\",\"\"),i.fire(\"NewBlock\",{newBlock:L}),c.add())}}}var a=i.dom,s=i.selection,l=i.settings,c=i.undoManager,u=i.schema,d=u.getNonEmptyElements();i.on(\"keydown\",function(e){13==e.keyCode&&o(e)!==!1&&e.preventDefault()})}}),r(z,[],function(){return function(e){function t(){var t=i.getStart(),s=e.getBody(),l,c,u,d,f,p,h,m=-16777215,g,v,y,b,C;if(C=n.forced_root_block,t&&1===t.nodeType&&C){for(;t&&t!=s;){if(a[t.nodeName])return;t=t.parentNode}if(l=i.getRng(),l.setStart){c=l.startContainer,u=l.startOffset,d=l.endContainer,f=l.endOffset;try{v=e.getDoc().activeElement===s}catch(x){}}else l.item&&(t=l.item(0),l=e.getDoc().body.createTextRange(),l.moveToElementText(t)),v=l.parentElement().ownerDocument===e.getDoc(),y=l.duplicate(),y.collapse(!0),u=-1*y.move(\"character\",m),y.collapsed||(y=l.duplicate(),y.collapse(!1),f=-1*y.move(\"character\",m)-u);for(t=s.firstChild,b=s.nodeName.toLowerCase();t;)if((3===t.nodeType||1==t.nodeType&&!a[t.nodeName])&&o.isValidChild(b,C.toLowerCase())){if(3===t.nodeType&&0===t.nodeValue.length){h=t,t=t.nextSibling,r.remove(h);continue}p||(p=r.create(C,e.settings.forced_root_block_attrs),t.parentNode.insertBefore(p,t),g=!0),h=t,t=t.nextSibling,p.appendChild(h)}else p=null,t=t.nextSibling;if(g&&v){if(l.setStart)l.setStart(c,u),l.setEnd(d,f),i.setRng(l);else try{l=e.getDoc().body.createTextRange(),l.moveToElementText(s),l.collapse(!0),l.moveStart(\"character\",u),f>0&&l.moveEnd(\"character\",f),l.select()}catch(x){}e.nodeChanged()}}}var n=e.settings,r=e.dom,i=e.selection,o=e.schema,a=o.getBlockElements();n.forced_root_block&&e.on(\"NodeChange\",t)}}),r(W,[T,u,d,M,x,h],function(e,n,r,i,o,a){var s=r.each,l=r.extend,c=r.map,u=r.inArray,d=r.explode,f=n.gecko,p=n.ie,h=n.ie&&n.ie<11,m=!0,g=!1;return function(r){function v(e,t,n){var r;return e=e.toLowerCase(),(r=T.exec[e])?(r(e,t,n),m):g}function y(e){var t;return e=e.toLowerCase(),(t=T.state[e])?t(e):-1}function b(e){var t;return e=e.toLowerCase(),(t=T.value[e])?t(e):g}function C(e,t){t=t||\"exec\",s(e,function(e,n){s(n.toLowerCase().split(\",\"),function(n){T[t][n]=e})})}function x(e,n,i){return n===t&&(n=g),i===t&&(i=null),r.getDoc().execCommand(e,n,i)}function w(e){return A.match(e)}function _(e,n){A.toggle(e,n?{value:n}:t),r.nodeChanged()}function E(e){B=S.getBookmark(e)}function N(){S.moveToBookmark(B)}var k=r.dom,S=r.selection,T={state:{},exec:{},value:{}},R=r.settings,A=r.formatter,B;l(this,{execCommand:v,queryCommandState:y,queryCommandValue:b,addCommands:C}),C({\"mceResetDesignMode,mceBeginUndoLevel\":function(){},\"mceEndUndoLevel,mceAddUndoLevel\":function(){r.undoManager.add()},\"Cut,Copy,Paste\":function(e){var t=r.getDoc(),i;try{x(e)}catch(o){i=m}if(i||!t.queryCommandSupported(e)){var a=r.translate(\"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X/C/V keyboard shortcuts instead.\");n.mac&&(a=a.replace(/Ctrl\\+/g,\"\\u2318+\")),r.windowManager.alert(a)}},unlink:function(){if(S.isCollapsed()){var e=S.getNode();return void(\"A\"==e.tagName&&r.dom.remove(e,!0))}A.remove(\"link\")},\"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull\":function(e){var t=e.substring(7);\"full\"==t&&(t=\"justify\"),s(\"left,center,right,justify\".split(\",\"),function(e){t!=e&&A.remove(\"align\"+e)}),_(\"align\"+t),v(\"mceRepaint\")\n},\"InsertUnorderedList,InsertOrderedList\":function(e){var t,n;x(e),t=k.getParent(S.getNode(),\"ol,ul\"),t&&(n=t.parentNode,/^(H[1-6]|P|ADDRESS|PRE)$/.test(n.nodeName)&&(E(),k.split(n,t),N()))},\"Bold,Italic,Underline,Strikethrough,Superscript,Subscript\":function(e){_(e)},\"ForeColor,HiliteColor,FontName\":function(e,t,n){_(e,n)},FontSize:function(e,t,n){var r,i;n>=1&&7>=n&&(i=d(R.font_size_style_values),r=d(R.font_size_classes),n=r?r[n-1]||n:i[n-1]||n),_(e,n)},RemoveFormat:function(e){A.remove(e)},mceBlockQuote:function(){_(\"blockquote\")},FormatBlock:function(e,t,n){return _(n||\"p\")},mceCleanup:function(){var e=S.getBookmark();r.setContent(r.getContent({cleanup:m}),{cleanup:m}),S.moveToBookmark(e)},mceRemoveNode:function(e,t,n){var i=n||S.getNode();i!=r.getBody()&&(E(),r.dom.remove(i,m),N())},mceSelectNodeDepth:function(e,t,n){var i=0;k.getParent(S.getNode(),function(e){return 1==e.nodeType&&i++==n?(S.select(e),g):void 0},r.getBody())},mceSelectNode:function(e,t,n){S.select(n)},mceInsertContent:function(t,n,o){function a(e){function t(e){return r[e]&&3==r[e].nodeType}var n,r,i;return n=S.getRng(!0),r=n.startContainer,i=n.startOffset,3==r.nodeType&&(i>0?e=e.replace(/^&nbsp;/,\" \"):t(\"previousSibling\")||(e=e.replace(/^ /,\"&nbsp;\")),i<r.length?e=e.replace(/&nbsp;(<br>|)$/,\" \"):t(\"nextSibling\")||(e=e.replace(/(&nbsp;| )(<br>|)$/,\"&nbsp;\"))),e}function l(e){if(w)for(b=e.firstChild;b;b=b.walk(!0))_[b.name]&&b.attr(\"data-mce-new\",\"true\")}function c(){if(w){var e=r.getBody(),t=new i(k);s(k.select(\"*[data-mce-new]\"),function(n){n.removeAttribute(\"data-mce-new\");for(var r=n.parentNode;r&&r!=e;r=r.parentNode)t.compare(r,n)&&k.remove(n,!0)})}}var u,d,f,h,m,g,v,y,b,C,x,w,_=r.schema.getTextInlineElements();\"string\"!=typeof o&&(w=o.merge,o=o.content),/^ | $/.test(o)&&(o=a(o)),u=r.parser,d=new e({},r.schema),x='<span id=\"mce_marker\" data-mce-type=\"bookmark\">&#xFEFF;&#x200B;</span>',g={content:o,format:\"html\",selection:!0},r.fire(\"BeforeSetContent\",g),o=g.content,-1==o.indexOf(\"{$caret}\")&&(o+=\"{$caret}\"),o=o.replace(/\\{\\$caret\\}/,x),y=S.getRng();var E=y.startContainer||(y.parentElement?y.parentElement():null),N=r.getBody();E===N&&S.isCollapsed()&&k.isBlock(N.firstChild)&&k.isEmpty(N.firstChild)&&(y=k.createRng(),y.setStart(N.firstChild,0),y.setEnd(N.firstChild,0),S.setRng(y)),S.isCollapsed()||r.getDoc().execCommand(\"Delete\",!1,null),f=S.getNode();var T={context:f.nodeName.toLowerCase()};if(m=u.parse(o,T),l(m),b=m.lastChild,\"mce_marker\"==b.attr(\"id\"))for(v=b,b=b.prev;b;b=b.walk(!0))if(3==b.type||!k.isBlock(b.name)){r.schema.isValidChild(b.parent.name,\"span\")&&b.parent.insert(v,b,\"br\"===b.name);break}if(T.invalid){for(S.setContent(x),f=S.getNode(),h=r.getBody(),9==f.nodeType?f=b=h:b=f;b!==h;)f=b,b=b.parentNode;o=f==h?h.innerHTML:k.getOuterHTML(f),o=d.serialize(u.parse(o.replace(/<span (id=\"mce_marker\"|id=mce_marker).+?<\\/span>/i,function(){return d.serialize(m)}))),f==h?k.setHTML(h,o):k.setOuterHTML(f,o)}else o=d.serialize(m),b=f.firstChild,C=f.lastChild,!b||b===C&&\"BR\"===b.nodeName?k.setHTML(f,o):S.setContent(o);c(),v=k.get(\"mce_marker\"),S.scrollIntoView(v),y=k.createRng(),b=v.previousSibling,b&&3==b.nodeType?(y.setStart(b,b.nodeValue.length),p||(C=v.nextSibling,C&&3==C.nodeType&&(b.appendData(C.data),C.parentNode.removeChild(C)))):(y.setStartBefore(v),y.setEndBefore(v)),k.remove(v),S.setRng(y),r.fire(\"SetContent\",g),r.addVisual()},mceInsertRawHTML:function(e,t,n){S.setContent(\"tiny_mce_marker\"),r.setContent(r.getContent().replace(/tiny_mce_marker/g,function(){return n}))},mceToggleFormat:function(e,t,n){_(n)},mceSetContent:function(e,t,n){r.setContent(n)},\"Indent,Outdent\":function(e){var t,n,i;t=R.indentation,n=/[a-z%]+$/i.exec(t),t=parseInt(t,10),y(\"InsertUnorderedList\")||y(\"InsertOrderedList\")?x(e):(R.forced_root_block||k.getParent(S.getNode(),k.isBlock)||A.apply(\"div\"),s(S.getSelectedBlocks(),function(o){if(\"LI\"!=o.nodeName){var a=r.getParam(\"indent_use_margin\",!1)?\"margin\":\"padding\";a+=\"rtl\"==k.getStyle(o,\"direction\",!0)?\"Right\":\"Left\",\"outdent\"==e?(i=Math.max(0,parseInt(o.style[a]||0,10)-t),k.setStyle(o,a,i?i+n:\"\")):(i=parseInt(o.style[a]||0,10)+t+n,k.setStyle(o,a,i))}}))},mceRepaint:function(){if(f)try{E(m),S.getSel()&&S.getSel().selectAllChildren(r.getBody()),S.collapse(m),N()}catch(e){}},InsertHorizontalRule:function(){r.execCommand(\"mceInsertContent\",!1,\"<hr />\")},mceToggleVisualAid:function(){r.hasVisual=!r.hasVisual,r.addVisual()},mceReplaceContent:function(e,t,n){r.execCommand(\"mceInsertContent\",!1,n.replace(/\\{\\$selection\\}/g,S.getContent({format:\"text\"})))},mceInsertLink:function(e,t,n){var r;\"string\"==typeof n&&(n={href:n}),r=k.getParent(S.getNode(),\"a\"),n.href=n.href.replace(\" \",\"%20\"),r&&n.href||A.remove(\"link\"),n.href&&A.apply(\"link\",n,r)},selectAll:function(){var e=k.getRoot(),t;S.getRng().setStart?(t=k.createRng(),t.setStart(e,0),t.setEnd(e,e.childNodes.length),S.setRng(t)):(t=S.getRng(),t.item||(t.moveToElementText(e),t.select()))},\"delete\":function(){x(\"Delete\");var e=r.getBody();k.isEmpty(e)&&(r.setContent(\"\"),e.firstChild&&k.isBlock(e.firstChild)?r.selection.setCursorLocation(e.firstChild,0):r.selection.setCursorLocation(e,0))},mceNewDocument:function(){r.setContent(\"\")},InsertLineBreak:function(e,t,n){function i(){for(var e=new a(p,v),t,n=r.schema.getNonEmptyElements();t=e.next();)if(n[t.nodeName.toLowerCase()]||t.length>0)return!0}var s=n,l,c,u,d=S.getRng(!0);new o(k).normalize(d);var f=d.startOffset,p=d.startContainer;if(1==p.nodeType&&p.hasChildNodes()){var g=f>p.childNodes.length-1;p=p.childNodes[Math.min(f,p.childNodes.length-1)]||p,f=g&&3==p.nodeType?p.nodeValue.length:0}var v=k.getParent(p,k.isBlock),y=v?v.nodeName.toUpperCase():\"\",b=v?k.getParent(v.parentNode,k.isBlock):null,C=b?b.nodeName.toUpperCase():\"\",x=s&&s.ctrlKey;\"LI\"!=C||x||(v=b,y=C),p&&3==p.nodeType&&f>=p.nodeValue.length&&(h||i()||(l=k.create(\"br\"),d.insertNode(l),d.setStartAfter(l),d.setEndAfter(l),c=!0)),l=k.create(\"br\"),d.insertNode(l);var w=k.doc.documentMode;return h&&\"PRE\"==y&&(!w||8>w)&&l.parentNode.insertBefore(k.doc.createTextNode(\"\\r\"),l),u=k.create(\"span\",{},\"&nbsp;\"),l.parentNode.insertBefore(u,l),S.scrollIntoView(u),k.remove(u),c?(d.setStartBefore(l),d.setEndBefore(l)):(d.setStartAfter(l),d.setEndAfter(l)),S.setRng(d),r.undoManager.add(),m}}),C({\"JustifyLeft,JustifyCenter,JustifyRight,JustifyFull\":function(e){var t=\"align\"+e.substring(7),n=S.isCollapsed()?[k.getParent(S.getNode(),k.isBlock)]:S.getSelectedBlocks(),r=c(n,function(e){return!!A.matchNode(e,t)});return-1!==u(r,m)},\"Bold,Italic,Underline,Strikethrough,Superscript,Subscript\":function(e){return w(e)},mceBlockQuote:function(){return w(\"blockquote\")},Outdent:function(){var e;if(R.inline_styles){if((e=k.getParent(S.getStart(),k.isBlock))&&parseInt(e.style.paddingLeft,10)>0)return m;if((e=k.getParent(S.getEnd(),k.isBlock))&&parseInt(e.style.paddingLeft,10)>0)return m}return y(\"InsertUnorderedList\")||y(\"InsertOrderedList\")||!R.inline_styles&&!!k.getParent(S.getNode(),\"BLOCKQUOTE\")},\"InsertUnorderedList,InsertOrderedList\":function(e){var t=k.getParent(S.getNode(),\"ul,ol\");return t&&(\"insertunorderedlist\"===e&&\"UL\"===t.tagName||\"insertorderedlist\"===e&&\"OL\"===t.tagName)}},\"state\"),C({\"FontSize,FontName\":function(e){var t=0,n;return(n=k.getParent(S.getNode(),\"span\"))&&(t=\"fontsize\"==e?n.style.fontSize:n.style.fontFamily.replace(/, /g,\",\").replace(/[\\'\\\"]/g,\"\").toLowerCase()),t}},\"value\"),C({Undo:function(){r.undoManager.undo()},Redo:function(){r.undoManager.redo()}})}}),r(V,[d],function(e){function t(e,o){var a=this,s,l;if(e=r(e),o=a.settings=o||{},s=o.base_uri,/^([\\w\\-]+):([^\\/]{2})/i.test(e)||/^\\s*#/.test(e))return void(a.source=e);var c=0===e.indexOf(\"//\");0!==e.indexOf(\"/\")||c||(e=(s?s.protocol||\"http\":\"http\")+\"://mce_host\"+e),/^[\\w\\-]*:?\\/\\//.test(e)||(l=o.base_uri?o.base_uri.path:new t(location.href).directory,\"\"===o.base_uri.protocol?e=\"//mce_host\"+a.toAbsPath(l,e):(e=/([^#?]*)([#?]?.*)/.exec(e),e=(s&&s.protocol||\"http\")+\"://mce_host\"+a.toAbsPath(l,e[1])+e[2])),e=e.replace(/@@/g,\"(mce_at)\"),e=/^(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?(?:\\/\\/)?((?:(([^:@\\/]*):?([^:@\\/]*))?@)?([^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/.exec(e),n(i,function(t,n){var r=e[n];r&&(r=r.replace(/\\(mce_at\\)/g,\"@@\")),a[t]=r}),s&&(a.protocol||(a.protocol=s.protocol),a.userInfo||(a.userInfo=s.userInfo),a.port||\"mce_host\"!==a.host||(a.port=s.port),a.host&&\"mce_host\"!==a.host||(a.host=s.host),a.source=\"\"),c&&(a.protocol=\"\")}var n=e.each,r=e.trim,i=\"source protocol authority userInfo user password host port relative path directory file query anchor\".split(\" \"),o={ftp:21,http:80,https:443,mailto:25};return t.prototype={setPath:function(e){var t=this;e=/^(.*?)\\/?(\\w+)?$/.exec(e),t.path=e[0],t.directory=e[1],t.file=e[2],t.source=\"\",t.getURI()},toRelative:function(e){var n=this,r;if(\"./\"===e)return e;if(e=new t(e,{base_uri:n}),\"mce_host\"!=e.host&&n.host!=e.host&&e.host||n.port!=e.port||n.protocol!=e.protocol&&\"\"!==e.protocol)return e.getURI();var i=n.getURI(),o=e.getURI();return i==o||\"/\"==i.charAt(i.length-1)&&i.substr(0,i.length-1)==o?i:(r=n.toRelPath(n.path,e.path),e.query&&(r+=\"?\"+e.query),e.anchor&&(r+=\"#\"+e.anchor),r)},toAbsolute:function(e,n){return e=new t(e,{base_uri:this}),e.getURI(n&&this.isSameOrigin(e))},isSameOrigin:function(e){if(this.host==e.host&&this.protocol==e.protocol){if(this.port==e.port)return!0;var t=o[this.protocol];if(t&&(this.port||t)==(e.port||t))return!0}return!1},toRelPath:function(e,t){var n,r=0,i=\"\",o,a;if(e=e.substring(0,e.lastIndexOf(\"/\")),e=e.split(\"/\"),n=t.split(\"/\"),e.length>=n.length)for(o=0,a=e.length;a>o;o++)if(o>=n.length||e[o]!=n[o]){r=o+1;break}if(e.length<n.length)for(o=0,a=n.length;a>o;o++)if(o>=e.length||e[o]!=n[o]){r=o+1;break}if(1===r)return t;for(o=0,a=e.length-(r-1);a>o;o++)i+=\"../\";for(o=r-1,a=n.length;a>o;o++)i+=o!=r-1?\"/\"+n[o]:n[o];return i},toAbsPath:function(e,t){var r,i=0,o=[],a,s;for(a=/\\/$/.test(t)?\"/\":\"\",e=e.split(\"/\"),t=t.split(\"/\"),n(e,function(e){e&&o.push(e)}),e=o,r=t.length-1,o=[];r>=0;r--)0!==t[r].length&&\".\"!==t[r]&&(\"..\"!==t[r]?i>0?i--:o.push(t[r]):i++);return r=e.length-i,s=0>=r?o.reverse().join(\"/\"):e.slice(0,r).join(\"/\")+\"/\"+o.reverse().join(\"/\"),0!==s.indexOf(\"/\")&&(s=\"/\"+s),a&&s.lastIndexOf(\"/\")!==s.length-1&&(s+=a),s},getURI:function(e){var t,n=this;return(!n.source||e)&&(t=\"\",e||(t+=n.protocol?n.protocol+\"://\":\"//\",n.userInfo&&(t+=n.userInfo+\"@\"),n.host&&(t+=n.host),n.port&&(t+=\":\"+n.port)),n.path&&(t+=n.path),n.query&&(t+=\"?\"+n.query),n.anchor&&(t+=\"#\"+n.anchor),n.source=t),n.source}},t}),r(U,[d],function(e){function t(){}var n=e.each,r=e.extend,i,o;return t.extend=i=function(e){function t(){var e,t,n,r=this;if(!o&&(r.init&&r.init.apply(r,arguments),t=r.Mixins))for(e=t.length;e--;)n=t[e],n.init&&n.init.apply(r,arguments)}function a(){return this}function s(e,t){return function(){var n=this,r=n._super,i;return n._super=c[e],i=t.apply(n,arguments),n._super=r,i}}var l=this,c=l.prototype,u,d,f;o=!0,u=new l,o=!1,e.Mixins&&(n(e.Mixins,function(t){t=t;for(var n in t)\"init\"!==n&&(e[n]=t[n])}),c.Mixins&&(e.Mixins=c.Mixins.concat(e.Mixins))),e.Methods&&n(e.Methods.split(\",\"),function(t){e[t]=a}),e.Properties&&n(e.Properties.split(\",\"),function(t){var n=\"_\"+t;e[t]=function(e){var t=this,r;return e!==r?(t[n]=e,t):t[n]}}),e.Statics&&n(e.Statics,function(e,n){t[n]=e}),e.Defaults&&c.Defaults&&(e.Defaults=r({},c.Defaults,e.Defaults));for(d in e)f=e[d],u[d]=\"function\"==typeof f&&c[d]?s(d,f):f;return t.prototype=u,t.constructor=t,t.extend=i,t},t}),r($,[d],function(e){function t(t){function n(){return!1}function r(){return!0}function i(e,i){var o,s,l,c;if(e=e.toLowerCase(),i=i||{},i.type=e,i.target||(i.target=u),i.preventDefault||(i.preventDefault=function(){i.isDefaultPrevented=r},i.stopPropagation=function(){i.isPropagationStopped=r},i.stopImmediatePropagation=function(){i.isImmediatePropagationStopped=r},i.isDefaultPrevented=n,i.isPropagationStopped=n,i.isImmediatePropagationStopped=n),t.beforeFire&&t.beforeFire(i),o=d[e])for(s=0,l=o.length;l>s;s++){if(c=o[s],c.once&&a(e,c.func),i.isImmediatePropagationStopped())return i.stopPropagation(),i;if(c.func.call(u,i)===!1)return i.preventDefault(),i}return i}function o(t,r,i,o){var a,s,l;if(r===!1&&(r=n),r)for(r={func:r},o&&e.extend(r,o),s=t.toLowerCase().split(\" \"),l=s.length;l--;)t=s[l],a=d[t],a||(a=d[t]=[],f(t,!0)),i?a.unshift(r):a.push(r);return c}function a(e,t){var n,r,i,o,a;if(e)for(o=e.toLowerCase().split(\" \"),n=o.length;n--;){if(e=o[n],r=d[e],!e){for(i in d)f(i,!1),delete d[i];return c}if(r){if(t)for(a=r.length;a--;)r[a].func===t&&(r=r.slice(0,a).concat(r.slice(a+1)),d[e]=r);else r.length=0;r.length||(f(e,!1),delete d[e])}}else{for(e in d)f(e,!1);d={}}return c}function s(e,t,n){return o(e,t,n,{once:!0})}function l(e){return e=e.toLowerCase(),!(!d[e]||0===d[e].length)}var c=this,u,d={},f;t=t||{},u=t.scope||c,f=t.toggleEvent||n,c.fire=i,c.on=o,c.off=a,c.once=s,c.has=l}var n=e.makeMap(\"focus blur focusin focusout click dblclick mousedown mouseup mousemove mouseover beforepaste paste cut copy selectionchange mouseout mouseenter mouseleave wheel keydown keypress keyup input contextmenu dragstart dragend dragover draggesture dragdrop drop drag submit compositionstart compositionend compositionupdate touchstart touchend\",\" \");return t.isNative=function(e){return!!n[e.toLowerCase()]},t}),r(q,[U],function(e){function t(e){for(var t=[],n=e.length,r;n--;)r=e[n],r.__checked||(t.push(r),r.__checked=1);for(n=t.length;n--;)delete t[n].__checked;return t}var n=/^([\\w\\\\*]+)?(?:#([\\w\\\\]+))?(?:\\.([\\w\\\\\\.]+))?(?:\\[\\@?([\\w\\\\]+)([\\^\\$\\*!~]?=)([\\w\\\\]+)\\])?(?:\\:(.+))?/i,r=/((?:\\((?:\\([^()]+\\)|[^()]+)+\\)|\\[(?:\\[[^\\[\\]]*\\]|['\"][^'\"]*['\"]|[^\\[\\]'\"]+)+\\]|\\\\.|[^ >+~,(\\[\\\\]+)+|[>+~])(\\s*,\\s*)?((?:.|\\r|\\n)*)/g,i=/^\\s*|\\s*$/g,o,a=e.extend({init:function(e){function t(e){return e?(e=e.toLowerCase(),function(t){return\"*\"===e||t.type===e}):void 0}function o(e){return e?function(t){return t._name===e}:void 0}function a(e){return e?(e=e.split(\".\"),function(t){for(var n=e.length;n--;)if(!t.hasClass(e[n]))return!1;return!0}):void 0}function s(e,t,n){return e?function(r){var i=r[e]?r[e]():\"\";return t?\"=\"===t?i===n:\"*=\"===t?i.indexOf(n)>=0:\"~=\"===t?(\" \"+i+\" \").indexOf(\" \"+n+\" \")>=0:\"!=\"===t?i!=n:\"^=\"===t?0===i.indexOf(n):\"$=\"===t?i.substr(i.length-n.length)===n:!1:!!n}:void 0}function l(e){var t;return e?(e=/(?:not\\((.+)\\))|(.+)/i.exec(e),e[1]?(t=u(e[1],[]),function(e){return!d(e,t)}):(e=e[2],function(t,n,r){return\"first\"===e?0===n:\"last\"===e?n===r-1:\"even\"===e?n%2===0:\"odd\"===e?n%2===1:t[e]?t[e]():!1})):void 0}function c(e,r,c){function u(e){e&&r.push(e)}var d;return d=n.exec(e.replace(i,\"\")),u(t(d[1])),u(o(d[2])),u(a(d[3])),u(s(d[4],d[5],d[6])),u(l(d[7])),r.psuedo=!!d[7],r.direct=c,r}function u(e,t){var n=[],i,o,a;do if(r.exec(\"\"),o=r.exec(e),o&&(e=o[3],n.push(o[1]),o[2])){i=o[3];break}while(o);for(i&&u(i,t),e=[],a=0;a<n.length;a++)\">\"!=n[a]&&e.push(c(n[a],[],\">\"===n[a-1]));return t.push(e),t}var d=this.match;this._selectors=u(e,[])},match:function(e,t){var n,r,i,o,a,s,l,c,u,d,f,p,h;for(t=t||this._selectors,n=0,r=t.length;r>n;n++){for(a=t[n],o=a.length,h=e,p=0,i=o-1;i>=0;i--)for(c=a[i];h;){if(c.psuedo)for(f=h.parent().items(),u=d=f.length;u--&&f[u]!==h;);for(s=0,l=c.length;l>s;s++)if(!c[s](h,u,d)){s=l+1;break}if(s===l){p++;break}if(i===o-1)break;h=h.parent()}if(p===o)return!0}return!1},find:function(e){function n(e,t,i){var o,a,s,l,c,u=t[i];for(o=0,a=e.length;a>o;o++){for(c=e[o],s=0,l=u.length;l>s;s++)if(!u[s](c,o,a)){s=l+1;break}if(s===l)i==t.length-1?r.push(c):c.items&&n(c.items(),t,i+1);else if(u.direct)return;c.items&&n(c.items(),t,i)}}var r=[],i,s,l=this._selectors;if(e.items){for(i=0,s=l.length;s>i;i++)n(e.items(),l[i],0);s>1&&(r=t(r))}return o||(o=a.Collection),new o(r)}});return a}),r(j,[d,q,U],function(e,t,n){var r,i,o=Array.prototype.push,a=Array.prototype.slice;return i={length:0,init:function(e){e&&this.add(e)},add:function(t){var n=this;return e.isArray(t)?o.apply(n,t):t instanceof r?n.add(t.toArray()):o.call(n,t),n},set:function(e){var t=this,n=t.length,r;for(t.length=0,t.add(e),r=t.length;n>r;r++)delete t[r];return t},filter:function(e){var n=this,i,o,a=[],s,l;for(\"string\"==typeof e?(e=new t(e),l=function(t){return e.match(t)}):l=e,i=0,o=n.length;o>i;i++)s=n[i],l(s)&&a.push(s);return new r(a)},slice:function(){return new r(a.apply(this,arguments))},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},each:function(t){return e.each(this,t),this},toArray:function(){return e.toArray(this)},indexOf:function(e){for(var t=this,n=t.length;n--&&t[n]!==e;);return n},reverse:function(){return new r(e.toArray(this).reverse())},hasClass:function(e){return this[0]?this[0].hasClass(e):!1},prop:function(e,t){var n=this,r,i;return t!==r?(n.each(function(n){n[e]&&n[e](t)}),n):(i=n[0],i&&i[e]?i[e]():void 0)},exec:function(t){var n=this,r=e.toArray(arguments).slice(1);return n.each(function(e){e[t]&&e[t].apply(e,r)}),n},remove:function(){for(var e=this.length;e--;)this[e].remove();return this}},e.each(\"fire on off show hide addClass removeClass append prepend before after reflow\".split(\" \"),function(t){i[t]=function(){var n=e.toArray(arguments);return this.each(function(e){t in e&&e[t].apply(e,n)}),this}}),e.each(\"text name disabled active selected checked visible parent value data\".split(\" \"),function(e){i[e]=function(t){return this.prop(e,t)}}),r=n.extend(i),t.Collection=r,r}),r(Y,[d,y],function(e,t){var n=0;return{id:function(){return\"mceu_\"+n++},createFragment:function(e){return t.DOM.createFragment(e)},getWindowSize:function(){return t.DOM.getViewPort()},getSize:function(e){var t,n;if(e.getBoundingClientRect){var r=e.getBoundingClientRect();t=Math.max(r.width||r.right-r.left,e.offsetWidth),n=Math.max(r.height||r.bottom-r.bottom,e.offsetHeight)}else t=e.offsetWidth,n=e.offsetHeight;return{width:t,height:n}},getPos:function(e,n){return t.DOM.getPos(e,n)},getViewPort:function(e){return t.DOM.getViewPort(e)},get:function(e){return document.getElementById(e)},addClass:function(e,n){return t.DOM.addClass(e,n)},removeClass:function(e,n){return t.DOM.removeClass(e,n)},hasClass:function(e,n){return t.DOM.hasClass(e,n)},toggleClass:function(e,n,r){return t.DOM.toggleClass(e,n,r)},css:function(e,n,r){return t.DOM.setStyle(e,n,r)},getRuntimeStyle:function(e,n){return t.DOM.getStyle(e,n,!0)},on:function(e,n,r,i){return t.DOM.bind(e,n,r,i)},off:function(e,n,r){return t.DOM.unbind(e,n,r)},fire:function(e,n,r){return t.DOM.fire(e,n,r)},innerHtml:function(e,n){t.DOM.setHTML(e,n)}}}),r(K,[U,d,$,j,Y],function(e,t,n,r,i){function o(e){return e._eventDispatcher||(e._eventDispatcher=new n({scope:e,toggleEvent:function(t,r){r&&n.isNative(t)&&(e._nativeEvents||(e._nativeEvents={}),e._nativeEvents[t]=!0,e._rendered&&e.bindPendingEvents())}})),e._eventDispatcher}var a=\"onmousewheel\"in document,s=!1,l=\"mce-\",c=e.extend({Statics:{classPrefix:l},isRtl:function(){return c.rtl},classPrefix:l,init:function(e){var n=this,r,o;if(n.settings=e=t.extend({},n.Defaults,e),n._id=e.id||i.id(),n._text=n._name=\"\",n._width=n._height=0,n._aria={role:e.role},this._elmCache={},r=e.classes)for(r=r.split(\" \"),r.map={},o=r.length;o--;)r.map[r[o]]=!0;n._classes=r||[],n.visible(!0),t.each(\"title text width height name classes visible disabled active value\".split(\" \"),function(t){var r=e[t],i;r!==i?n[t](r):n[\"_\"+t]===i&&(n[\"_\"+t]=!1)}),n.on(\"click\",function(){return n.disabled()?!1:void 0}),e.classes&&t.each(e.classes.split(\" \"),function(e){n.addClass(e)}),n.settings=e,n._borderBox=n.parseBox(e.border),n._paddingBox=n.parseBox(e.padding),n._marginBox=n.parseBox(e.margin),e.hidden&&n.hide()},Properties:\"parent,title,text,width,height,disabled,active,name,value\",Methods:\"renderHtml\",getContainerElm:function(){return document.body},getParentCtrl:function(e){for(var t,n=this.getRoot().controlIdLookup;e&&n&&!(t=n[e.id]);)e=e.parentNode;return t},parseBox:function(e){var t,n=10;if(e)return\"number\"==typeof e?(e=e||0,{top:e,left:e,bottom:e,right:e}):(e=e.split(\" \"),t=e.length,1===t?e[1]=e[2]=e[3]=e[0]:2===t?(e[2]=e[0],e[3]=e[1]):3===t&&(e[3]=e[1]),{top:parseInt(e[0],n)||0,right:parseInt(e[1],n)||0,bottom:parseInt(e[2],n)||0,left:parseInt(e[3],n)||0})},borderBox:function(){return this._borderBox},paddingBox:function(){return this._paddingBox},marginBox:function(){return this._marginBox},measureBox:function(e,t){function n(t){var n=document.defaultView;return n?(t=t.replace(/[A-Z]/g,function(e){return\"-\"+e}),n.getComputedStyle(e,null).getPropertyValue(t)):e.currentStyle[t]}function r(e){var t=parseFloat(n(e),10);return isNaN(t)?0:t}return{top:r(t+\"TopWidth\"),right:r(t+\"RightWidth\"),bottom:r(t+\"BottomWidth\"),left:r(t+\"LeftWidth\")}},initLayoutRect:function(){var e=this,t=e.settings,n,r,o=e.getEl(),a,s,l,c,u,d,f,p;n=e._borderBox=e._borderBox||e.measureBox(o,\"border\"),e._paddingBox=e._paddingBox||e.measureBox(o,\"padding\"),e._marginBox=e._marginBox||e.measureBox(o,\"margin\"),p=i.getSize(o),d=t.minWidth,f=t.minHeight,l=d||p.width,c=f||p.height,a=t.width,s=t.height,u=t.autoResize,u=\"undefined\"!=typeof u?u:!a&&!s,a=a||l,s=s||c;var h=n.left+n.right,m=n.top+n.bottom,g=t.maxWidth||65535,v=t.maxHeight||65535;return e._layoutRect=r={x:t.x||0,y:t.y||0,w:a,h:s,deltaW:h,deltaH:m,contentW:a-h,contentH:s-m,innerW:a-h,innerH:s-m,startMinWidth:d||0,startMinHeight:f||0,minW:Math.min(l,g),minH:Math.min(c,v),maxW:g,maxH:v,autoResize:u,scrollW:0},e._lastLayoutRect={},r},layoutRect:function(e){var t=this,n=t._layoutRect,r,i,o,a,s,l;return n||(n=t.initLayoutRect()),e?(o=n.deltaW,a=n.deltaH,e.x!==s&&(n.x=e.x),e.y!==s&&(n.y=e.y),e.minW!==s&&(n.minW=e.minW),e.minH!==s&&(n.minH=e.minH),i=e.w,i!==s&&(i=i<n.minW?n.minW:i,i=i>n.maxW?n.maxW:i,n.w=i,n.innerW=i-o),i=e.h,i!==s&&(i=i<n.minH?n.minH:i,i=i>n.maxH?n.maxH:i,n.h=i,n.innerH=i-a),i=e.innerW,i!==s&&(i=i<n.minW-o?n.minW-o:i,i=i>n.maxW-o?n.maxW-o:i,n.innerW=i,n.w=i+o),i=e.innerH,i!==s&&(i=i<n.minH-a?n.minH-a:i,i=i>n.maxH-a?n.maxH-a:i,n.innerH=i,n.h=i+a),e.contentW!==s&&(n.contentW=e.contentW),e.contentH!==s&&(n.contentH=e.contentH),r=t._lastLayoutRect,(r.x!==n.x||r.y!==n.y||r.w!==n.w||r.h!==n.h)&&(l=c.repaintControls,l&&l.map&&!l.map[t._id]&&(l.push(t),l.map[t._id]=!0),r.x=n.x,r.y=n.y,r.w=n.w,r.h=n.h),t):n},repaint:function(){var e=this,t,n,r,i,o=0,a=0,s,l;l=document.createRange?function(e){return e}:Math.round,t=e.getEl().style,r=e._layoutRect,s=e._lastRepaintRect||{},i=e._borderBox,o=i.left+i.right,a=i.top+i.bottom,r.x!==s.x&&(t.left=l(r.x)+\"px\",s.x=r.x),r.y!==s.y&&(t.top=l(r.y)+\"px\",s.y=r.y),r.w!==s.w&&(t.width=l(r.w-o)+\"px\",s.w=r.w),r.h!==s.h&&(t.height=l(r.h-a)+\"px\",s.h=r.h),e._hasBody&&r.innerW!==s.innerW&&(n=e.getEl(\"body\").style,n.width=l(r.innerW)+\"px\",s.innerW=r.innerW),e._hasBody&&r.innerH!==s.innerH&&(n=n||e.getEl(\"body\").style,n.height=l(r.innerH)+\"px\",s.innerH=r.innerH),e._lastRepaintRect=s,e.fire(\"repaint\",{},!1)},on:function(e,t){function n(e){var t,n;return\"string\"!=typeof e?e:function(i){return t||r.parentsAndSelf().each(function(r){var i=r.settings.callbacks;return i&&(t=i[e])?(n=r,!1):void 0}),t.call(n,i)}}var r=this;return o(r).on(e,n(t)),r},off:function(e,t){return o(this).off(e,t),this},fire:function(e,t,n){var r=this;if(t=t||{},t.control||(t.control=r),t=o(r).fire(e,t),n!==!1&&r.parent)for(var i=r.parent();i&&!t.isPropagationStopped();)i.fire(e,t,!1),i=i.parent();return t},hasEventListeners:function(e){return o(this).has(e)},parents:function(e){var t=this,n,i=new r;for(n=t.parent();n;n=n.parent())i.add(n);return e&&(i=i.filter(e)),i},parentsAndSelf:function(e){return new r(this).add(this.parents(e))},next:function(){var e=this.parent().items();return e[e.indexOf(this)+1]},prev:function(){var e=this.parent().items();return e[e.indexOf(this)-1]},findCommonAncestor:function(e,t){for(var n;e;){for(n=t;n&&e!=n;)n=n.parent();if(e==n)break;e=e.parent()}return e},hasClass:function(e,t){var n=this._classes[t||\"control\"];return e=this.classPrefix+e,n&&!!n.map[e]},addClass:function(e,t){var n=this,r,i;return e=this.classPrefix+e,r=n._classes[t||\"control\"],r||(r=[],r.map={},n._classes[t||\"control\"]=r),r.map[e]||(r.map[e]=e,r.push(e),n._rendered&&(i=n.getEl(t),i&&(i.className=r.join(\" \")))),n},removeClass:function(e,t){var n=this,r,i,o;if(e=this.classPrefix+e,r=n._classes[t||\"control\"],r&&r.map[e])for(delete r.map[e],i=r.length;i--;)r[i]===e&&r.splice(i,1);return n._rendered&&(o=n.getEl(t),o&&(o.className=r.join(\" \"))),n},toggleClass:function(e,t,n){var r=this;return t?r.addClass(e,n):r.removeClass(e,n),r},classes:function(e){var t=this._classes[e||\"control\"];return t?t.join(\" \"):\"\"},innerHtml:function(e){return i.innerHtml(this.getEl(),e),this},getEl:function(e){var t=e?this._id+\"-\"+e:this._id;return this._elmCache[t]||(this._elmCache[t]=i.get(t)),this._elmCache[t]},visible:function(e){var t=this,n;return\"undefined\"!=typeof e?(t._visible!==e&&(t._rendered&&(t.getEl().style.display=e?\"\":\"none\"),t._visible=e,n=t.parent(),n&&(n._lastRect=null),t.fire(e?\"show\":\"hide\")),t):t._visible},show:function(){return this.visible(!0)},hide:function(){return this.visible(!1)},focus:function(){try{this.getEl().focus()}catch(e){}return this},blur:function(){return this.getEl().blur(),this},aria:function(e,t){var n=this,r=n.getEl(n.ariaTarget);return\"undefined\"==typeof t?n._aria[e]:(n._aria[e]=t,n._rendered&&r.setAttribute(\"role\"==e?e:\"aria-\"+e,t),n)},encode:function(e,t){return t!==!1&&(e=this.translate(e)),(e||\"\").replace(/[&<>\"]/g,function(e){return\"&#\"+e.charCodeAt(0)+\";\"})},translate:function(e){return c.translate?c.translate(e):e},before:function(e){var t=this,n=t.parent();return n&&n.insert(e,n.items().indexOf(t),!0),t},after:function(e){var t=this,n=t.parent();return n&&n.insert(e,n.items().indexOf(t)),t},remove:function(){var e=this,t=e.getEl(),n=e.parent(),r,o;if(e.items){var a=e.items().toArray();for(o=a.length;o--;)a[o].remove()}n&&n.items&&(r=[],n.items().each(function(t){t!==e&&r.push(t)}),n.items().set(r),n._lastRect=null),e._eventsRoot&&e._eventsRoot==e&&i.off(t);var s=e.getRoot().controlIdLookup;return s&&delete s[e._id],t&&t.parentNode&&t.parentNode.removeChild(t),e._rendered=!1,e},renderBefore:function(e){var t=this;return e.parentNode.insertBefore(i.createFragment(t.renderHtml()),e),t.postRender(),t},renderTo:function(e){var t=this;return e=e||t.getContainerElm(),e.appendChild(i.createFragment(t.renderHtml())),t.postRender(),t},postRender:function(){var e=this,t=e.settings,n,r,o,a,s;for(a in t)0===a.indexOf(\"on\")&&e.on(a.substr(2),t[a]);if(e._eventsRoot){for(o=e.parent();!s&&o;o=o.parent())s=o._eventsRoot;if(s)for(a in s._nativeEvents)e._nativeEvents[a]=!0}e.bindPendingEvents(),t.style&&(n=e.getEl(),n&&(n.setAttribute(\"style\",t.style),n.style.cssText=t.style)),e._visible||i.css(e.getEl(),\"display\",\"none\"),e.settings.border&&(r=e.borderBox(),i.css(e.getEl(),{\"border-top-width\":r.top,\"border-right-width\":r.right,\"border-bottom-width\":r.bottom,\"border-left-width\":r.left}));var l=e.getRoot();l.controlIdLookup||(l.controlIdLookup={}),l.controlIdLookup[e._id]=e;for(var c in e._aria)e.aria(c,e._aria[c]);e.fire(\"postrender\",{},!1)},scrollIntoView:function(e){function t(e,t){var n,r,i=e;for(n=r=0;i&&i!=t&&i.nodeType;)n+=i.offsetLeft||0,r+=i.offsetTop||0,i=i.offsetParent;return{x:n,y:r}}var n=this.getEl(),r=n.parentNode,i,o,a,s,l,c,u=t(n,r);return i=u.x,o=u.y,a=n.offsetWidth,s=n.offsetHeight,l=r.clientWidth,c=r.clientHeight,\"end\"==e?(i-=l-a,o-=c-s):\"center\"==e&&(i-=l/2-a/2,o-=c/2-s/2),r.scrollLeft=i,r.scrollTop=o,this},bindPendingEvents:function(){function e(e){var t=o.getParentCtrl(e.target);t&&t.fire(e.type,e)}function t(){var e=d._lastHoverCtrl;e&&(e.fire(\"mouseleave\",{target:e.getEl()}),e.parents().each(function(e){e.fire(\"mouseleave\",{target:e.getEl()})}),d._lastHoverCtrl=null)}function n(e){var t=o.getParentCtrl(e.target),n=d._lastHoverCtrl,r=0,i,a,s;if(t!==n){if(d._lastHoverCtrl=t,a=t.parents().toArray().reverse(),a.push(t),n){for(s=n.parents().toArray().reverse(),s.push(n),r=0;r<s.length&&a[r]===s[r];r++);for(i=s.length-1;i>=r;i--)n=s[i],n.fire(\"mouseleave\",{target:n.getEl()})}for(i=r;i<a.length;i++)t=a[i],t.fire(\"mouseenter\",{target:t.getEl()})}}function r(e){e.preventDefault(),\"mousewheel\"==e.type?(e.deltaY=-1/40*e.wheelDelta,e.wheelDeltaX&&(e.deltaX=-1/40*e.wheelDeltaX)):(e.deltaX=0,e.deltaY=e.detail),e=o.fire(\"wheel\",e)}var o=this,l,c,u,d,f,p;if(o._rendered=!0,f=o._nativeEvents){for(u=o.parents().toArray(),u.unshift(o),l=0,c=u.length;!d&&c>l;l++)d=u[l]._eventsRoot;for(d||(d=u[u.length-1]||o),o._eventsRoot=d,c=l,l=0;c>l;l++)u[l]._eventsRoot=d;var h=d._delegates;h||(h=d._delegates={});for(p in f){if(!f)return!1;\"wheel\"!==p||s?(\"mouseenter\"===p||\"mouseleave\"===p?d._hasMouseEnter||(i.on(d.getEl(),\"mouseleave\",t),i.on(d.getEl(),\"mouseover\",n),d._hasMouseEnter=1):h[p]||(i.on(d.getEl(),p,e),h[p]=!0),f[p]=!1):a?i.on(o.getEl(),\"mousewheel\",r):i.on(o.getEl(),\"DOMMouseScroll\",r)}}},getRoot:function(){for(var e=this,t,n=[];e;){if(e.rootControl){t=e.rootControl;break}n.push(e),t=e,e=e.parent()}t||(t=this);for(var r=n.length;r--;)n[r].rootControl=t;return t},reflow:function(){return this.repaint(),this}});return c}),r(G,[],function(){var e={},t;return{add:function(t,n){e[t.toLowerCase()]=n},has:function(t){return!!e[t.toLowerCase()]},create:function(n,r){var i,o,a;if(!t){a=tinymce.ui;for(o in a)e[o.toLowerCase()]=a[o];t=!0}if(\"string\"==typeof n?(r=r||{},r.type=n):(r=n,n=r.type),n=n.toLowerCase(),i=e[n],!i)throw new Error(\"Could not find control by type: \"+n);return i=new i(r),i.type=n,i}}}),r(X,[],function(){return function(e){function t(e){return e=e||b,e&&e.getAttribute(\"role\")}function n(e){for(var n,r=e||b;r=r.parentNode;)if(n=t(r))return n}function r(e){var t=b;return t?t.getAttribute(\"aria-\"+e):void 0}function i(e){var t=e.tagName.toUpperCase();return\"INPUT\"==t||\"TEXTAREA\"==t}function o(e){return i(e)&&!e.hidden?!0:/^(button|menuitem|checkbox|tab|menuitemcheckbox|option|gridcell)$/.test(t(e))?!0:!1}function a(e){function t(e){if(1==e.nodeType&&\"none\"!=e.style.display){o(e)&&n.push(e);for(var r=0;r<e.childNodes.length;r++)t(e.childNodes[r])}}var n=[];return t(e||y.getEl()),n}function s(e){var t,n;e=e||C,n=e.parents().toArray(),n.unshift(e);for(var r=0;r<n.length&&(t=n[r],!t.settings.ariaRoot);r++);return t}function l(e){var t=s(e),n=a(t.getEl());t.settings.ariaRemember&&\"lastAriaIndex\"in t?c(t.lastAriaIndex,n):c(0,n)}function c(e,t){return 0>e?e=t.length-1:e>=t.length&&(e=0),t[e]&&t[e].focus(),e}function u(e,t){var n=-1,r=s();t=t||a(r.getEl());for(var i=0;i<t.length;i++)t[i]===b&&(n=i);n+=e,r.lastAriaIndex=c(n,t)}function d(){var e=n();\"tablist\"==e?u(-1,a(b.parentNode)):C.parent().submenu?g():u(-1)}function f(){var e=t(),i=n();\"tablist\"==i?u(1,a(b.parentNode)):\"menuitem\"==e&&\"menu\"==i&&r(\"haspopup\")?v():u(1)}function p(){u(-1)}function h(){var e=t(),i=n();\"menuitem\"==e&&\"menubar\"==i?v():\"button\"==e&&r(\"haspopup\")?v({key:\"down\"}):u(1)}function m(e){var t=n();if(\"tablist\"==t){var r=a(C.getEl(\"body\"))[0];r&&r.focus()}else u(e.shiftKey?-1:1)}function g(){C.fire(\"cancel\")}function v(e){e=e||{},C.fire(\"click\",{target:b,aria:e})}var y=e.root,b,C;try{b=document.activeElement}catch(x){b=document.body}return C=y.getParentCtrl(b),y.on(\"keydown\",function(e){function t(e,t){i(b)||t(e)!==!1&&e.preventDefault()}if(!e.isDefaultPrevented())switch(e.keyCode){case 37:t(e,d);break;case 39:t(e,f);break;case 38:t(e,p);break;case 40:t(e,h);break;case 27:g();break;case 14:case 13:case 32:t(e,v);break;case 9:m(e)!==!1&&e.preventDefault()}}),y.on(\"focusin\",function(e){b=e.target,C=e.control}),{focusFirst:l}}}),r(J,[K,j,q,G,X,d,Y],function(e,t,n,r,i,o,a){var s={};return e.extend({layout:\"\",innerClass:\"container-inner\",init:function(e){var n=this;n._super(e),e=n.settings,n._fixed=e.fixed,n._items=new t,n.isRtl()&&n.addClass(\"rtl\"),n.addClass(\"container\"),n.addClass(\"container-body\",\"body\"),e.containerCls&&n.addClass(e.containerCls),n._layout=r.create((e.layout||n.layout)+\"layout\"),n.settings.items&&n.add(n.settings.items),n._hasBody=!0},items:function(){return this._items},find:function(e){return e=s[e]=s[e]||new n(e),e.find(this)},add:function(e){var t=this;return t.items().add(t.create(e)).parent(t),t\n},focus:function(e){var t=this,n,r,i;return e&&(r=t.keyboardNav||t.parents().eq(-1)[0].keyboardNav)?void r.focusFirst(t):(i=t.find(\"*\"),t.statusbar&&i.add(t.statusbar.items()),i.each(function(e){return e.settings.autofocus?(n=null,!1):void(e.canFocus&&(n=n||e))}),n&&n.focus(),t)},replace:function(e,t){for(var n,r=this.items(),i=r.length;i--;)if(r[i]===e){r[i]=t;break}i>=0&&(n=t.getEl(),n&&n.parentNode.removeChild(n),n=e.getEl(),n&&n.parentNode.removeChild(n)),t.parent(this)},create:function(t){var n=this,i,a=[];return o.isArray(t)||(t=[t]),o.each(t,function(t){t&&(t instanceof e||(\"string\"==typeof t&&(t={type:t}),i=o.extend({},n.settings.defaults,t),t.type=i.type=i.type||t.type||n.settings.defaultType||(i.defaults?i.defaults.type:null),t=r.create(i)),a.push(t))}),a},renderNew:function(){var e=this;return e.items().each(function(t,n){var r,i;t.parent(e),t._rendered||(r=e.getEl(\"body\"),i=a.createFragment(t.renderHtml()),r.hasChildNodes()&&n<=r.childNodes.length-1?r.insertBefore(i,r.childNodes[n]):r.appendChild(i),t.postRender())}),e._layout.applyClasses(e),e._lastRect=null,e},append:function(e){return this.add(e).renderNew()},prepend:function(e){var t=this;return t.items().set(t.create(e).concat(t.items().toArray())),t.renderNew()},insert:function(e,t,n){var r=this,i,o,a;return e=r.create(e),i=r.items(),!n&&t<i.length-1&&(t+=1),t>=0&&t<i.length&&(o=i.slice(0,t).toArray(),a=i.slice(t).toArray(),i.set(o.concat(e,a))),r.renderNew()},fromJSON:function(e){var t=this;for(var n in e)t.find(\"#\"+n).value(e[n]);return t},toJSON:function(){var e=this,t={};return e.find(\"*\").each(function(e){var n=e.name(),r=e.value();n&&\"undefined\"!=typeof r&&(t[n]=r)}),t},preRender:function(){},renderHtml:function(){var e=this,t=e._layout,n=this.settings.role;return e.preRender(),t.preRender(e),'<div id=\"'+e._id+'\" class=\"'+e.classes()+'\"'+(n?' role=\"'+this.settings.role+'\"':\"\")+'><div id=\"'+e._id+'-body\" class=\"'+e.classes(\"body\")+'\">'+(e.settings.html||\"\")+t.renderHtml(e)+\"</div></div>\"},postRender:function(){var e=this,t;return e.items().exec(\"postRender\"),e._super(),e._layout.postRender(e),e._rendered=!0,e.settings.style&&a.css(e.getEl(),e.settings.style),e.settings.border&&(t=e.borderBox(),a.css(e.getEl(),{\"border-top-width\":t.top,\"border-right-width\":t.right,\"border-bottom-width\":t.bottom,\"border-left-width\":t.left})),e.parent()||(e.keyboardNav=new i({root:e})),e},initLayoutRect:function(){var e=this,t=e._super();return e._layout.recalc(e),t},recalc:function(){var e=this,t=e._layoutRect,n=e._lastRect;return n&&n.w==t.w&&n.h==t.h?void 0:(e._layout.recalc(e),t=e.layoutRect(),e._lastRect={x:t.x,y:t.y,w:t.w,h:t.h},!0)},reflow:function(){var t;if(this.visible()){for(e.repaintControls=[],e.repaintControls.map={},this.recalc(),t=e.repaintControls.length;t--;)e.repaintControls[t].repaint();\"flow\"!==this.settings.layout&&\"stack\"!==this.settings.layout&&this.repaint(),e.repaintControls=[]}return this}})}),r(Q,[Y],function(e){function t(){var e=document,t,n,r,i,o,a,s,l,c=Math.max;return t=e.documentElement,n=e.body,r=c(t.scrollWidth,n.scrollWidth),i=c(t.clientWidth,n.clientWidth),o=c(t.offsetWidth,n.offsetWidth),a=c(t.scrollHeight,n.scrollHeight),s=c(t.clientHeight,n.clientHeight),l=c(t.offsetHeight,n.offsetHeight),{width:o>r?i:r,height:l>a?s:a}}return function(n,r){function i(){return a.getElementById(r.handle||n)}var o,a=document,s,l,c,u,d,f;r=r||{},l=function(n){var l=t(),p,h;n.preventDefault(),s=n.button,p=i(),d=n.screenX,f=n.screenY,h=window.getComputedStyle?window.getComputedStyle(p,null).getPropertyValue(\"cursor\"):p.runtimeStyle.cursor,o=a.createElement(\"div\"),e.css(o,{position:\"absolute\",top:0,left:0,width:l.width,height:l.height,zIndex:2147483647,opacity:1e-4,cursor:h}),a.body.appendChild(o),e.on(a,\"mousemove\",u),e.on(a,\"mouseup\",c),r.start(n)},u=function(e){return e.button!==s?c(e):(e.deltaX=e.screenX-d,e.deltaY=e.screenY-f,e.preventDefault(),void r.drag(e))},c=function(t){e.off(a,\"mousemove\",u),e.off(a,\"mouseup\",c),o.parentNode.removeChild(o),r.stop&&r.stop(t)},this.destroy=function(){e.off(i())},e.on(i(),\"mousedown\",l)}}),r(Z,[Y,Q],function(e,t){return{init:function(){var e=this;e.on(\"repaint\",e.renderScroll)},renderScroll:function(){function n(){function t(t,a,s,l,c,u){var d,f,p,h,m,g,v,y,b;if(f=i.getEl(\"scroll\"+t)){if(y=a.toLowerCase(),b=s.toLowerCase(),i.getEl(\"absend\")&&e.css(i.getEl(\"absend\"),y,i.layoutRect()[l]-1),!c)return void e.css(f,\"display\",\"none\");e.css(f,\"display\",\"block\"),d=i.getEl(\"body\"),p=i.getEl(\"scroll\"+t+\"t\"),h=d[\"client\"+s]-2*o,h-=n&&r?f[\"client\"+u]:0,m=d[\"scroll\"+s],g=h/m,v={},v[y]=d[\"offset\"+a]+o,v[b]=h,e.css(f,v),v={},v[y]=d[\"scroll\"+a]*g,v[b]=h*g,e.css(p,v)}}var n,r,a;a=i.getEl(\"body\"),n=a.scrollWidth>a.clientWidth,r=a.scrollHeight>a.clientHeight,t(\"h\",\"Left\",\"Width\",\"contentW\",n,\"Height\"),t(\"v\",\"Top\",\"Height\",\"contentH\",r,\"Width\")}function r(){function n(n,r,a,s,l){var c,u=i._id+\"-scroll\"+n,d=i.classPrefix;i.getEl().appendChild(e.createFragment('<div id=\"'+u+'\" class=\"'+d+\"scrollbar \"+d+\"scrollbar-\"+n+'\"><div id=\"'+u+'t\" class=\"'+d+'scrollbar-thumb\"></div></div>')),i.draghelper=new t(u+\"t\",{start:function(){c=i.getEl(\"body\")[\"scroll\"+r],e.addClass(e.get(u),d+\"active\")},drag:function(e){var t,u,d,f,p=i.layoutRect();u=p.contentW>p.innerW,d=p.contentH>p.innerH,f=i.getEl(\"body\")[\"client\"+a]-2*o,f-=u&&d?i.getEl(\"scroll\"+n)[\"client\"+l]:0,t=f/i.getEl(\"body\")[\"scroll\"+a],i.getEl(\"body\")[\"scroll\"+r]=c+e[\"delta\"+s]/t},stop:function(){e.removeClass(e.get(u),d+\"active\")}})}i.addClass(\"scroll\"),n(\"v\",\"Top\",\"Height\",\"Y\",\"Width\"),n(\"h\",\"Left\",\"Width\",\"X\",\"Height\")}var i=this,o=2;i.settings.autoScroll&&(i._hasScroll||(i._hasScroll=!0,r(),i.on(\"wheel\",function(e){var t=i.getEl(\"body\");t.scrollLeft+=10*(e.deltaX||0),t.scrollTop+=10*e.deltaY,n()}),e.on(i.getEl(\"body\"),\"scroll\",n)),n())}}}),r(et,[J,Z],function(e,t){return e.extend({Defaults:{layout:\"fit\",containerCls:\"panel\"},Mixins:[t],renderHtml:function(){var e=this,t=e._layout,n=e.settings.html;return e.preRender(),t.preRender(e),\"undefined\"==typeof n?n='<div id=\"'+e._id+'-body\" class=\"'+e.classes(\"body\")+'\">'+t.renderHtml(e)+\"</div>\":(\"function\"==typeof n&&(n=n.call(e)),e._hasBody=!1),'<div id=\"'+e._id+'\" class=\"'+e.classes()+'\" hidefocus=\"1\" tabindex=\"-1\" role=\"group\">'+(e._preBodyHtml||\"\")+n+\"</div>\"}})}),r(tt,[Y],function(e){function t(t,n,r){var i,o,a,s,l,c,u,d,f,p;return f=e.getViewPort(),o=e.getPos(n),a=o.x,s=o.y,t._fixed&&\"static\"==e.getRuntimeStyle(document.body,\"position\")&&(a-=f.x,s-=f.y),i=t.getEl(),p=e.getSize(i),l=p.width,c=p.height,p=e.getSize(n),u=p.width,d=p.height,r=(r||\"\").split(\"\"),\"b\"===r[0]&&(s+=d),\"r\"===r[1]&&(a+=u),\"c\"===r[0]&&(s+=Math.round(d/2)),\"c\"===r[1]&&(a+=Math.round(u/2)),\"b\"===r[3]&&(s-=c),\"r\"===r[4]&&(a-=l),\"c\"===r[3]&&(s-=Math.round(c/2)),\"c\"===r[4]&&(a-=Math.round(l/2)),{x:a,y:s,w:l,h:c}}return{testMoveRel:function(n,r){for(var i=e.getViewPort(),o=0;o<r.length;o++){var a=t(this,n,r[o]);if(this._fixed){if(a.x>0&&a.x+a.w<i.w&&a.y>0&&a.y+a.h<i.h)return r[o]}else if(a.x>i.x&&a.x+a.w<i.w+i.x&&a.y>i.y&&a.y+a.h<i.h+i.y)return r[o]}return r[0]},moveRel:function(e,n){\"string\"!=typeof n&&(n=this.testMoveRel(e,n));var r=t(this,e,n);return this.moveTo(r.x,r.y)},moveBy:function(e,t){var n=this,r=n.layoutRect();return n.moveTo(r.x+e,r.y+t),n},moveTo:function(t,n){function r(e,t,n){return 0>e?0:e+n>t?(e=t-n,0>e?0:e):e}var i=this;if(i.settings.constrainToViewport){var o=e.getViewPort(window),a=i.layoutRect();t=r(t,o.w+o.x,a.w),n=r(n,o.h+o.y,a.h)}return i._rendered?i.layoutRect({x:t,y:n}).repaint():(i.settings.x=t,i.settings.y=n),i.fire(\"move\",{x:t,y:n}),i}}}),r(nt,[Y],function(e){return{resizeToContent:function(){this._layoutRect.autoResize=!0,this._lastRect=null,this.reflow()},resizeTo:function(t,n){if(1>=t||1>=n){var r=e.getWindowSize();t=1>=t?t*r.w:t,n=1>=n?n*r.h:n}return this._layoutRect.autoResize=!1,this.layoutRect({minW:t,minH:n,w:t,h:n}).reflow()},resizeBy:function(e,t){var n=this,r=n.layoutRect();return n.resizeTo(r.w+e,r.h+t)}}}),r(rt,[et,tt,nt,Y],function(e,t,n,r){function i(){function e(e,t){for(;e;){if(e==t)return!0;e=e.parent()}}u||(u=function(t){if(2!=t.button)for(var n=p.length;n--;){var r=p[n],i=r.getParentCtrl(t.target);if(r.settings.autohide){if(i&&(e(i,r)||r.parent()===i))continue;t=r.fire(\"autohide\",{target:t.target}),t.isDefaultPrevented()||r.hide()}}},r.on(document,\"click\",u))}function o(){d||(d=function(){var e;for(e=p.length;e--;)s(p[e])},r.on(window,\"scroll\",d))}function a(){if(!f){var e=document.documentElement,t=e.clientWidth,n=e.clientHeight;f=function(){document.all&&t==e.clientWidth&&n==e.clientHeight||(t=e.clientWidth,n=e.clientHeight,g.hideAll())},r.on(window,\"resize\",f)}}function s(e){function t(t,n){for(var r,i=0;i<p.length;i++)if(p[i]!=e)for(r=p[i].parent();r&&(r=r.parent());)r==e&&p[i].fixed(t).moveBy(0,n).repaint()}var n=r.getViewPort().y;e.settings.autofix&&(e._fixed?e._autoFixY>n&&(e.fixed(!1).layoutRect({y:e._autoFixY}).repaint(),t(!1,e._autoFixY-n)):(e._autoFixY=e.layoutRect().y,e._autoFixY<n&&(e.fixed(!0).layoutRect({y:0}).repaint(),t(!0,n-e._autoFixY))))}function l(e,t){var n,i=g.zIndex||65535,o;if(e)h.push(t);else for(n=h.length;n--;)h[n]===t&&h.splice(n,1);if(h.length)for(n=0;n<h.length;n++)h[n].modal&&(i++,o=h[n]),h[n].getEl().style.zIndex=i,h[n].zIndex=i,i++;var a=document.getElementById(t.classPrefix+\"modal-block\");o?r.css(a,\"z-index\",o.zIndex-1):a&&(a.parentNode.removeChild(a),m=!1),g.currentZIndex=i}function c(e){var t;for(t=p.length;t--;)p[t]===e&&p.splice(t,1);for(t=h.length;t--;)h[t]===e&&h.splice(t,1)}var u,d,f,p=[],h=[],m,g=e.extend({Mixins:[t,n],init:function(e){var t=this;t._super(e),t._eventsRoot=t,t.addClass(\"floatpanel\"),e.autohide&&(i(),a(),p.push(t)),e.autofix&&(o(),t.on(\"move\",function(){s(this)})),t.on(\"postrender show\",function(e){if(e.control==t){var n,i=t.classPrefix;t.modal&&!m&&(n=r.createFragment('<div id=\"'+i+'modal-block\" class=\"'+i+\"reset \"+i+'fade\"></div>'),n=n.firstChild,t.getContainerElm().appendChild(n),setTimeout(function(){r.addClass(n,i+\"in\"),r.addClass(t.getEl(),i+\"in\")},0),m=!0),l(!0,t)}}),t.on(\"show\",function(){t.parents().each(function(e){return e._fixed?(t.fixed(!0),!1):void 0})}),e.popover&&(t._preBodyHtml='<div class=\"'+t.classPrefix+'arrow\"></div>',t.addClass(\"popover\").addClass(\"bottom\").addClass(t.isRtl()?\"end\":\"start\"))},fixed:function(e){var t=this;if(t._fixed!=e){if(t._rendered){var n=r.getViewPort();e?t.layoutRect().y-=n.y:t.layoutRect().y+=n.y}t.toggleClass(\"fixed\",e),t._fixed=e}return t},show:function(){var e=this,t,n=e._super();for(t=p.length;t--&&p[t]!==e;);return-1===t&&p.push(e),n},hide:function(){return c(this),l(!1,this),this._super()},hideAll:function(){g.hideAll()},close:function(){var e=this;return e.fire(\"close\").isDefaultPrevented()||(e.remove(),l(!1,e)),e},remove:function(){c(this),this._super()},postRender:function(){var e=this;return e.settings.bodyRole&&this.getEl(\"body\").setAttribute(\"role\",e.settings.bodyRole),e._super()}});return g.hideAll=function(){for(var e=p.length;e--;){var t=p[e];t&&t.settings.autohide&&(t.hide(),p.splice(e,1))}},g}),r(it,[rt,et,Y,Q],function(e,t,n,r){var i=e.extend({modal:!0,Defaults:{border:1,layout:\"flex\",containerCls:\"panel\",role:\"dialog\",callbacks:{submit:function(){this.fire(\"submit\",{data:this.toJSON()})},close:function(){this.close()}}},init:function(e){var n=this;n._super(e),n.isRtl()&&n.addClass(\"rtl\"),n.addClass(\"window\"),n._fixed=!0,e.buttons&&(n.statusbar=new t({layout:\"flex\",border:\"1 0 0 0\",spacing:3,padding:10,align:\"center\",pack:n.isRtl()?\"start\":\"end\",defaults:{type:\"button\"},items:e.buttons}),n.statusbar.addClass(\"foot\"),n.statusbar.parent(n)),n.on(\"click\",function(e){-1!=e.target.className.indexOf(n.classPrefix+\"close\")&&n.close()}),n.on(\"cancel\",function(){n.close()}),n.aria(\"describedby\",n.describedBy||n._id+\"-none\"),n.aria(\"label\",e.title),n._fullscreen=!1},recalc:function(){var e=this,t=e.statusbar,r,i,o,a;e._fullscreen&&(e.layoutRect(n.getWindowSize()),e.layoutRect().contentH=e.layoutRect().innerH),e._super(),r=e.layoutRect(),e.settings.title&&!e._fullscreen&&(i=r.headerW,i>r.w&&(o=r.x-Math.max(0,i/2),e.layoutRect({w:i,x:o}),a=!0)),t&&(t.layoutRect({w:e.layoutRect().innerW}).recalc(),i=t.layoutRect().minW+r.deltaW,i>r.w&&(o=r.x-Math.max(0,i-r.w),e.layoutRect({w:i,x:o}),a=!0)),a&&e.recalc()},initLayoutRect:function(){var e=this,t=e._super(),r=0,i;if(e.settings.title&&!e._fullscreen){i=e.getEl(\"head\");var o=n.getSize(i);t.headerW=o.width,t.headerH=o.height,r+=t.headerH}e.statusbar&&(r+=e.statusbar.layoutRect().h),t.deltaH+=r,t.minH+=r,t.h+=r;var a=n.getWindowSize();return t.x=Math.max(0,a.w/2-t.w/2),t.y=Math.max(0,a.h/2-t.h/2),t},renderHtml:function(){var e=this,t=e._layout,n=e._id,r=e.classPrefix,i=e.settings,o=\"\",a=\"\",s=i.html;return e.preRender(),t.preRender(e),i.title&&(o='<div id=\"'+n+'-head\" class=\"'+r+'window-head\"><div id=\"'+n+'-title\" class=\"'+r+'title\">'+e.encode(i.title)+'</div><button type=\"button\" class=\"'+r+'close\" aria-hidden=\"true\">\\xd7</button><div id=\"'+n+'-dragh\" class=\"'+r+'dragh\"></div></div>'),i.url&&(s='<iframe src=\"'+i.url+'\" tabindex=\"-1\"></iframe>'),\"undefined\"==typeof s&&(s=t.renderHtml(e)),e.statusbar&&(a=e.statusbar.renderHtml()),'<div id=\"'+n+'\" class=\"'+e.classes()+'\" hidefocus=\"1\"><div class=\"'+e.classPrefix+'reset\" role=\"application\">'+o+'<div id=\"'+n+'-body\" class=\"'+e.classes(\"body\")+'\">'+s+\"</div>\"+a+\"</div></div>\"},fullscreen:function(e){var t=this,r=document.documentElement,i,o=t.classPrefix,a;if(e!=t._fullscreen)if(n.on(window,\"resize\",function(){var e;if(t._fullscreen)if(i)t._timer||(t._timer=setTimeout(function(){var e=n.getWindowSize();t.moveTo(0,0).resizeTo(e.w,e.h),t._timer=0},50));else{e=(new Date).getTime();var r=n.getWindowSize();t.moveTo(0,0).resizeTo(r.w,r.h),(new Date).getTime()-e>50&&(i=!0)}}),a=t.layoutRect(),t._fullscreen=e,e){t._initial={x:a.x,y:a.y,w:a.w,h:a.h},t._borderBox=t.parseBox(\"0\"),t.getEl(\"head\").style.display=\"none\",a.deltaH-=a.headerH+2,n.addClass(r,o+\"fullscreen\"),n.addClass(document.body,o+\"fullscreen\"),t.addClass(\"fullscreen\");var s=n.getWindowSize();t.moveTo(0,0).resizeTo(s.w,s.h)}else t._borderBox=t.parseBox(t.settings.border),t.getEl(\"head\").style.display=\"\",a.deltaH+=a.headerH,n.removeClass(r,o+\"fullscreen\"),n.removeClass(document.body,o+\"fullscreen\"),t.removeClass(\"fullscreen\"),t.moveTo(t._initial.x,t._initial.y).resizeTo(t._initial.w,t._initial.h);return t.reflow()},postRender:function(){var e=this,t;setTimeout(function(){e.addClass(\"in\")},0),e._super(),e.statusbar&&e.statusbar.postRender(),e.focus(),this.dragHelper=new r(e._id+\"-dragh\",{start:function(){t={x:e.layoutRect().x,y:e.layoutRect().y}},drag:function(n){e.moveTo(t.x+n.deltaX,t.y+n.deltaY)}}),e.on(\"submit\",function(t){t.isDefaultPrevented()||e.close()})},submit:function(){return this.fire(\"submit\",{data:this.toJSON()})},remove:function(){var e=this,t=e.classPrefix;e.dragHelper.destroy(),e._super(),e.statusbar&&this.statusbar.remove(),e._fullscreen&&(n.removeClass(document.documentElement,t+\"fullscreen\"),n.removeClass(document.body,t+\"fullscreen\"))},getContentWindow:function(){var e=this.getEl().getElementsByTagName(\"iframe\")[0];return e?e.contentWindow:null}});return i}),r(ot,[it],function(e){var t=e.extend({init:function(e){e={border:1,padding:20,layout:\"flex\",pack:\"center\",align:\"center\",containerCls:\"panel\",autoScroll:!0,buttons:{type:\"button\",text:\"Ok\",action:\"ok\"},items:{type:\"label\",multiline:!0,maxWidth:500,maxHeight:200}},this._super(e)},Statics:{OK:1,OK_CANCEL:2,YES_NO:3,YES_NO_CANCEL:4,msgBox:function(n){function r(e,t,n){return{type:\"button\",text:e,subtype:n?\"primary\":\"\",onClick:function(e){e.control.parents()[1].close(),o(t)}}}var i,o=n.callback||function(){};switch(n.buttons){case t.OK_CANCEL:i=[r(\"Ok\",!0,!0),r(\"Cancel\",!1)];break;case t.YES_NO:case t.YES_NO_CANCEL:i=[r(\"Yes\",1,!0),r(\"No\",0)],n.buttons==t.YES_NO_CANCEL&&i.push(r(\"Cancel\",-1));break;default:i=[r(\"Ok\",!0,!0)]}return new e({padding:20,x:n.x,y:n.y,minWidth:300,minHeight:100,layout:\"flex\",pack:\"center\",align:\"center\",buttons:i,title:n.title,role:\"alertdialog\",items:{type:\"label\",multiline:!0,maxWidth:500,maxHeight:200,text:n.text},onPostRender:function(){this.aria(\"describedby\",this.items()[0]._id)},onClose:n.onClose,onCancel:function(){o(!1)}}).renderTo(document.body).reflow()},alert:function(e,n){return\"string\"==typeof e&&(e={text:e}),e.callback=n,t.msgBox(e)},confirm:function(e,n){return\"string\"==typeof e&&(e={text:e}),e.callback=n,e.buttons=t.OK_CANCEL,t.msgBox(e)}}});return t}),r(at,[it,ot],function(e,t){return function(n){function r(){return o.length?o[o.length-1]:void 0}var i=this,o=[];i.windows=o,n.on(\"remove\",function(){for(var e=o.length;e--;)o[e].close()}),i.open=function(t,r){var i;return n.editorManager.setActive(n),t.title=t.title||\" \",t.url=t.url||t.file,t.url&&(t.width=parseInt(t.width||320,10),t.height=parseInt(t.height||240,10)),t.body&&(t.items={defaults:t.defaults,type:t.bodyType||\"form\",items:t.body}),t.url||t.buttons||(t.buttons=[{text:\"Ok\",subtype:\"primary\",onclick:function(){i.find(\"form\")[0].submit()}},{text:\"Cancel\",onclick:function(){i.close()}}]),i=new e(t),o.push(i),i.on(\"close\",function(){for(var e=o.length;e--;)o[e]===i&&o.splice(e,1);o.length||n.focus()}),t.data&&i.on(\"postRender\",function(){this.find(\"*\").each(function(e){var n=e.name();n in t.data&&e.value(t.data[n])})}),i.features=t||{},i.params=r||{},1===o.length&&n.nodeChanged(),i.renderTo().reflow()},i.alert=function(e,r,i){t.alert(e,function(){r?r.call(i||this):n.focus()})},i.confirm=function(e,n,r){t.confirm(e,function(e){n.call(r||this,e)})},i.close=function(){r()&&r().close()},i.getParams=function(){return r()?r().params:null},i.setParams=function(e){r()&&(r().params=e)},i.getWindows=function(){return o}}}),r(st,[B,x,_,g,u,d],function(e,t,n,r,i,o){return function(a){function s(e,t){try{a.getDoc().execCommand(e,!1,t)}catch(n){}}function l(){var e=a.getDoc().documentMode;return e?e:6}function c(e){return e.isDefaultPrevented()}function u(){function t(e){var t=new i(function(){});o.each(a.getBody().getElementsByTagName(\"*\"),function(e){\"SPAN\"==e.tagName&&e.setAttribute(\"mce-data-marked\",1),!e.hasAttribute(\"data-mce-style\")&&e.hasAttribute(\"style\")&&a.dom.setAttrib(e,\"style\",a.dom.getAttrib(e,\"style\"))}),t.observe(a.getDoc(),{childList:!0,attributes:!0,subtree:!0,attributeFilter:[\"style\"]}),a.getDoc().execCommand(e?\"ForwardDelete\":\"Delete\",!1,null);var n=a.selection.getRng(),r=n.startContainer.parentNode;o.each(t.takeRecords(),function(e){if(q.isChildOf(e.target,a.getBody())){if(\"style\"==e.attributeName){var t=e.target.getAttribute(\"data-mce-style\");t?e.target.setAttribute(\"style\",t):e.target.removeAttribute(\"style\")}o.each(e.addedNodes,function(e){if(\"SPAN\"==e.nodeName&&!e.getAttribute(\"mce-data-marked\")){var t,i;e==r&&(t=n.startOffset,i=e.firstChild),q.remove(e,!0),i&&(n.setStart(i,t),n.setEnd(i,t),a.selection.setRng(n))}})}}),t.disconnect(),o.each(a.dom.select(\"span[mce-data-marked]\"),function(e){e.removeAttribute(\"mce-data-marked\")})}var n=a.getDoc(),r=\"data:text/mce-internal,\",i=window.MutationObserver,s,l;i||(s=!0,i=function(){function e(e){var t=e.relatedNode||e.target;n.push({target:t,addedNodes:[t]})}function t(e){var t=e.relatedNode||e.target;n.push({target:t,attributeName:e.attrName})}var n=[],r;this.observe=function(n){r=n,r.addEventListener(\"DOMSubtreeModified\",e,!1),r.addEventListener(\"DOMNodeInsertedIntoDocument\",e,!1),r.addEventListener(\"DOMNodeInserted\",e,!1),r.addEventListener(\"DOMAttrModified\",t,!1)},this.disconnect=function(){r.removeEventListener(\"DOMSubtreeModified\",e,!1),r.removeEventListener(\"DOMNodeInsertedIntoDocument\",e,!1),r.removeEventListener(\"DOMNodeInserted\",e,!1),r.removeEventListener(\"DOMAttrModified\",t,!1)},this.takeRecords=function(){return n}}),a.on(\"keydown\",function(n){var r=n.keyCode==$,i=e.metaKeyPressed(n);if(!c(n)&&(r||n.keyCode==U)){var o=a.selection.getRng(),s=o.startContainer,l=o.startOffset;if(!i&&o.collapsed&&3==s.nodeType&&(r?l<s.data.length:l>0))return;n.preventDefault(),i&&a.selection.getSel().modify(\"extend\",r?\"forward\":\"backward\",\"word\"),t(r)}}),a.on(\"keypress\",function(n){c(n)||j.isCollapsed()||!n.charCode||e.metaKeyPressed(n)||(n.preventDefault(),t(!0),a.selection.setContent(String.fromCharCode(n.charCode)))}),a.addCommand(\"Delete\",function(){t()}),a.addCommand(\"ForwardDelete\",function(){t(!0)}),s||(a.on(\"dragstart\",function(e){var t;a.selection.isCollapsed()&&\"IMG\"==e.target.tagName&&j.select(e.target),l=j.getRng(),t=a.selection.getContent(),t.length>0&&e.dataTransfer.setData(\"URL\",\"data:text/mce-internal,\"+escape(t))}),a.on(\"drop\",function(e){if(!c(e)){var i=e.dataTransfer.getData(\"URL\");if(!i||-1==i.indexOf(r)||!n.caretRangeFromPoint)return;i=unescape(i.substr(r.length)),n.caretRangeFromPoint&&(e.preventDefault(),window.setTimeout(function(){var r=n.caretRangeFromPoint(e.x,e.y);l&&(j.setRng(l),l=null),t(),j.setRng(r),a.insertContent(i)},0))}}),a.on(\"cut\",function(e){!c(e)&&e.clipboardData&&(e.preventDefault(),e.clipboardData.clearData(),e.clipboardData.setData(\"text/html\",a.selection.getContent()),e.clipboardData.setData(\"text/plain\",a.selection.getContent({format:\"text\"})),t(!0))}))}function d(){function e(e){var t=q.create(\"body\"),n=e.cloneContents();return t.appendChild(n),j.serializer.serialize(t,{format:\"html\"})}function n(n){if(!n.setStart){if(n.item)return!1;var r=n.duplicate();return r.moveToElementText(a.getBody()),t.compareRanges(n,r)}var i=e(n),o=q.createRng();o.selectNode(a.getBody());var s=e(o);return i===s}a.on(\"keydown\",function(e){var t=e.keyCode,r,i;if(!c(e)&&(t==$||t==U)){if(r=a.selection.isCollapsed(),i=a.getBody(),r&&!q.isEmpty(i))return;if(!r&&!n(a.selection.getRng()))return;e.preventDefault(),a.setContent(\"\"),i.firstChild&&q.isBlock(i.firstChild)?a.selection.setCursorLocation(i.firstChild,0):a.selection.setCursorLocation(i,0),a.nodeChanged()}})}function f(){a.shortcuts.add(\"ctrl+a\",null,\"SelectAll\")}function p(){a.settings.content_editable||(q.bind(a.getDoc(),\"focusin\",function(){j.setRng(j.getRng())}),q.bind(a.getDoc(),\"mousedown mouseup\",function(e){e.target==a.getDoc().documentElement&&(a.getBody().focus(),\"mousedown\"==e.type?j.placeCaretAt(e.clientX,e.clientY):j.setRng(j.getRng()))}))}function h(){a.on(\"keydown\",function(e){if(!c(e)&&e.keyCode===U){if(!a.getBody().getElementsByTagName(\"hr\").length)return;if(j.isCollapsed()&&0===j.getRng(!0).startOffset){var t=j.getNode(),n=t.previousSibling;if(\"HR\"==t.nodeName)return q.remove(t),void e.preventDefault();n&&n.nodeName&&\"hr\"===n.nodeName.toLowerCase()&&(q.remove(n),e.preventDefault())}}})}function m(){window.Range.prototype.getClientRects||a.on(\"mousedown\",function(e){if(!c(e)&&\"HTML\"===e.target.nodeName){var t=a.getBody();t.blur(),setTimeout(function(){t.focus()},0)}})}function g(){a.on(\"click\",function(e){var t=e.target;/^(IMG|HR)$/.test(t.nodeName)&&(e.preventDefault(),j.getSel().setBaseAndExtent(t,0,t,1),a.nodeChanged()),\"A\"==t.nodeName&&q.hasClass(t,\"mce-item-anchor\")&&(e.preventDefault(),j.select(t))})}function v(){function e(){var e=q.getAttribs(j.getStart().cloneNode(!1));return function(){var t=j.getStart();t!==a.getBody()&&(q.setAttrib(t,\"style\",null),V(e,function(e){t.setAttributeNode(e.cloneNode(!0))}))}}function t(){return!j.isCollapsed()&&q.getParent(j.getStart(),q.isBlock)!=q.getParent(j.getEnd(),q.isBlock)}a.on(\"keypress\",function(n){var r;return c(n)||8!=n.keyCode&&46!=n.keyCode||!t()?void 0:(r=e(),a.getDoc().execCommand(\"delete\",!1,null),r(),n.preventDefault(),!1)}),q.bind(a.getDoc(),\"cut\",function(n){var r;!c(n)&&t()&&(r=e(),setTimeout(function(){r()},0))})}function y(){document.body.setAttribute(\"role\",\"application\")}function b(){a.on(\"keydown\",function(e){if(!c(e)&&e.keyCode===U&&j.isCollapsed()&&0===j.getRng(!0).startOffset){var t=j.getNode().previousSibling;if(t&&t.nodeName&&\"table\"===t.nodeName.toLowerCase())return e.preventDefault(),!1}})}function C(){l()>7||(s(\"RespectVisibilityInDesign\",!0),a.contentStyles.push(\".mceHideBrInPre pre br {display: none}\"),q.addClass(a.getBody(),\"mceHideBrInPre\"),K.addNodeFilter(\"pre\",function(e){for(var t=e.length,r,i,o,a;t--;)for(r=e[t].getAll(\"br\"),i=r.length;i--;)o=r[i],a=o.prev,a&&3===a.type&&\"\\n\"!=a.value.charAt(a.value-1)?a.value+=\"\\n\":o.parent.insert(new n(\"#text\",3),o,!0).value=\"\\n\"}),G.addNodeFilter(\"pre\",function(e){for(var t=e.length,n,r,i,o;t--;)for(n=e[t].getAll(\"br\"),r=n.length;r--;)i=n[r],o=i.prev,o&&3==o.type&&(o.value=o.value.replace(/\\r?\\n$/,\"\"))}))}function x(){q.bind(a.getBody(),\"mouseup\",function(){var e,t=j.getNode();\"IMG\"==t.nodeName&&((e=q.getStyle(t,\"width\"))&&(q.setAttrib(t,\"width\",e.replace(/[^0-9%]+/g,\"\")),q.setStyle(t,\"width\",\"\")),(e=q.getStyle(t,\"height\"))&&(q.setAttrib(t,\"height\",e.replace(/[^0-9%]+/g,\"\")),q.setStyle(t,\"height\",\"\")))})}function w(){a.on(\"keydown\",function(t){var n,r,i,o,s;if(!c(t)&&t.keyCode==e.BACKSPACE&&(n=j.getRng(),r=n.startContainer,i=n.startOffset,o=q.getRoot(),s=r,n.collapsed&&0===i)){for(;s&&s.parentNode&&s.parentNode.firstChild==s&&s.parentNode!=o;)s=s.parentNode;\"BLOCKQUOTE\"===s.tagName&&(a.formatter.toggle(\"blockquote\",null,s),n=q.createRng(),n.setStart(r,0),n.setEnd(r,0),j.setRng(n))}})}function _(){function e(){a._refreshContentEditable(),s(\"StyleWithCSS\",!1),s(\"enableInlineTableEditing\",!1),Y.object_resizing||s(\"enableObjectResizing\",!1)}Y.readonly||a.on(\"BeforeExecCommand MouseDown\",e)}function E(){function e(){V(q.select(\"a\"),function(e){var t=e.parentNode,n=q.getRoot();if(t.lastChild===e){for(;t&&!q.isBlock(t);){if(t.parentNode.lastChild!==t||t===n)return;t=t.parentNode}q.add(t,\"br\",{\"data-mce-bogus\":1})}})}a.on(\"SetContent ExecCommand\",function(t){(\"setcontent\"==t.type||\"mceInsertLink\"===t.command)&&e()})}function N(){Y.forced_root_block&&a.on(\"init\",function(){s(\"DefaultParagraphSeparator\",Y.forced_root_block)})}function k(){a.on(\"Undo Redo SetContent\",function(e){e.initial||a.execCommand(\"mceRepaint\")})}function S(){a.on(\"keydown\",function(e){var t;c(e)||e.keyCode!=U||(t=a.getDoc().selection.createRange(),t&&t.item&&(e.preventDefault(),a.undoManager.beforeChange(),q.remove(t.item(0)),a.undoManager.add()))})}function T(){var e;l()>=10&&(e=\"\",V(\"p div h1 h2 h3 h4 h5 h6\".split(\" \"),function(t,n){e+=(n>0?\",\":\"\")+t+\":empty\"}),a.contentStyles.push(e+\"{padding-right: 1px !important}\"))}function R(){l()<9&&(K.addNodeFilter(\"noscript\",function(e){for(var t=e.length,n,r;t--;)n=e[t],r=n.firstChild,r&&n.attr(\"data-mce-innertext\",r.value)}),G.addNodeFilter(\"noscript\",function(e){for(var t=e.length,i,o,a;t--;)i=e[t],o=e[t].firstChild,o?o.value=r.decode(o.value):(a=i.attributes.map[\"data-mce-innertext\"],a&&(i.attr(\"data-mce-innertext\",null),o=new n(\"#text\",3),o.value=a,o.raw=!0,i.append(o)))}))}function A(){function e(e,t){var n=i.createTextRange();try{n.moveToPoint(e,t)}catch(r){n=null}return n}function t(t){var r;t.button?(r=e(t.x,t.y),r&&(r.compareEndPoints(\"StartToStart\",a)>0?r.setEndPoint(\"StartToStart\",a):r.setEndPoint(\"EndToEnd\",a),r.select())):n()}function n(){var e=r.selection.createRange();a&&!e.item&&0===e.compareEndPoints(\"StartToEnd\",e)&&a.select(),q.unbind(r,\"mouseup\",n),q.unbind(r,\"mousemove\",t),a=o=0}var r=q.doc,i=r.body,o,a,s;r.documentElement.unselectable=!0,q.bind(r,\"mousedown contextmenu\",function(i){if(\"HTML\"===i.target.nodeName){if(o&&n(),s=r.documentElement,s.scrollHeight>s.clientHeight)return;o=1,a=e(i.x,i.y),a&&(q.bind(r,\"mouseup\",n),q.bind(r,\"mousemove\",t),q.getRoot().focus(),a.select())}})}function B(){a.on(\"keyup focusin mouseup\",function(t){65==t.keyCode&&e.metaKeyPressed(t)||j.normalize()},!0)}function D(){a.contentStyles.push(\"img:-moz-broken {-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}\")}function L(){a.inline||a.on(\"keydown\",function(){document.activeElement==document.body&&a.getWin().focus()})}function H(){a.inline||(a.contentStyles.push(\"body {min-height: 150px}\"),a.on(\"click\",function(e){\"HTML\"==e.target.nodeName&&(a.getBody().focus(),a.selection.normalize(),a.nodeChanged())}))}function M(){i.mac&&a.on(\"keydown\",function(t){!e.metaKeyPressed(t)||37!=t.keyCode&&39!=t.keyCode||(t.preventDefault(),a.selection.getSel().modify(\"move\",37==t.keyCode?\"backward\":\"forward\",\"word\"))})}function P(){s(\"AutoUrlDetect\",!1)}function O(){a.inline||a.on(\"focus blur beforegetcontent\",function(){var e=a.dom.create(\"br\");a.getBody().appendChild(e),e.parentNode.removeChild(e)},!0)}function I(){a.on(\"click\",function(e){var t=e.target;do if(\"A\"===t.tagName)return void e.preventDefault();while(t=t.parentNode)}),a.contentStyles.push(\".mce-content-body {-webkit-touch-callout: none}\")}function F(){a.on(\"touchstart\",function(e){var t,n,r,i;t=e.target,n=(new Date).getTime(),i=e.changedTouches,!i||i.length>1||(r=i[0],a.once(\"touchend\",function(e){var i=e.changedTouches[0],o;(new Date).getTime()-n>500||Math.abs(r.clientX-i.clientX)>5||Math.abs(r.clientY-i.clientY)>5||(o={target:t},V(\"pageX pageY clientX clientY screenX screenY\".split(\" \"),function(e){o[e]=i[e]}),o=a.fire(\"click\",o),o.isDefaultPrevented()||(a.selection.placeCaretAt(i.clientX,i.clientY),a.nodeChanged()))}))})}function z(){a.on(\"init\",function(){a.dom.bind(a.getBody(),\"submit\",function(e){e.preventDefault()})})}function W(){K.addNodeFilter(\"br\",function(e){for(var t=e.length;t--;)\"Apple-interchange-newline\"==e[t].attr(\"class\")&&e[t].remove()})}var V=o.each,U=e.BACKSPACE,$=e.DELETE,q=a.dom,j=a.selection,Y=a.settings,K=a.parser,G=a.serializer,X=i.gecko,J=i.ie,Q=i.webkit;w(),d(),B(),Q&&(u(),p(),g(),N(),z(),b(),W(),F(),i.iOS?(L(),H(),I()):f()),J&&i.ie<11&&(h(),y(),C(),x(),S(),T(),R(),A()),i.ie>=11&&(H(),O(),b()),i.ie&&(f(),P()),X&&(h(),m(),v(),_(),E(),k(),D(),M(),b())}}),r(lt,[$],function(e){function t(t){return t._eventDispatcher||(t._eventDispatcher=new e({scope:t,toggleEvent:function(n,r){e.isNative(n)&&t.toggleNativeEvent&&t.toggleNativeEvent(n,r)}})),t._eventDispatcher}return{fire:function(e,n,r){var i=this;if(i.removed&&\"remove\"!==e)return n;if(n=t(i).fire(e,n,r),r!==!1&&i.parent)for(var o=i.parent();o&&!n.isPropagationStopped();)o.fire(e,n,!1),o=o.parent();return n},on:function(e,n,r){return t(this).on(e,n,r)},off:function(e,n){return t(this).off(e,n)},once:function(e,n){return t(this).once(e,n)},hasEventListeners:function(e){return t(this).has(e)}}}),r(ct,[lt,y,d],function(e,t,n){function r(e,t){return\"selectionchange\"==t?e.getDoc():!e.inline&&/^mouse|click|contextmenu|drop|dragover|dragend/.test(t)?e.getDoc().documentElement:e.settings.event_root?(e.eventRoot||(e.eventRoot=o.select(e.settings.event_root)[0]),e.eventRoot):e.getBody()}function i(e,t){var n=r(e,t),i;if(e.delegates||(e.delegates={}),!e.delegates[t])if(e.settings.event_root){if(a||(a={},e.editorManager.on(\"removeEditor\",function(){var t;if(!e.editorManager.activeEditor&&a){for(t in a)e.dom.unbind(r(e,t));a=null}})),a[t])return;i=function(n){for(var r=n.target,i=e.editorManager.editors,a=i.length;a--;){var s=i[a].getBody();(s===r||o.isChildOf(r,s))&&(i[a].hidden||i[a].fire(t,n))}},a[t]=i,o.bind(n,t,i)}else i=function(n){e.hidden||e.fire(t,n)},o.bind(n,t,i),e.delegates[t]=i}var o=t.DOM,a,s={bindPendingEventDelegates:function(){var e=this;n.each(e._pendingNativeEvents,function(t){i(e,t)})},toggleNativeEvent:function(e,t){var n=this;n.settings.readonly||\"focus\"!=e&&\"blur\"!=e&&(t?n.initialized?i(n,e):n._pendingNativeEvents?n._pendingNativeEvents.push(e):n._pendingNativeEvents=[e]:n.initialized&&(n.dom.unbind(r(n,e),e,n.delegates[e]),delete n.delegates[e]))},unbindAllNativeEvents:function(){var e=this,t;if(e.delegates){for(t in e.delegates)e.dom.unbind(r(e,t),t,e.delegates[t]);delete e.delegates}e.inline||(e.getBody().onload=null,e.dom.unbind(e.getWin()),e.dom.unbind(e.getDoc())),e.dom.unbind(e.getBody()),e.dom.unbind(e.getContainer())}};return s=n.extend({},e,s)}),r(ut,[d,u],function(e,t){var n=e.each,r=e.explode,i={f9:120,f10:121,f11:122};return function(o){var a=this,s={};o.on(\"keyup keypress keydown\",function(e){(e.altKey||e.ctrlKey||e.metaKey)&&!e.isDefaultPrevented()&&n(s,function(n){var r=t.mac?e.metaKey:e.ctrlKey;if(n.ctrl==r&&n.alt==e.altKey&&n.shift==e.shiftKey)return e.keyCode==n.keyCode||e.charCode&&e.charCode==n.charCode?(e.preventDefault(),\"keydown\"==e.type&&n.func.call(n.scope),!0):void 0\n})}),a.add=function(t,a,l,c){var u;return u=l,\"string\"==typeof l?l=function(){o.execCommand(u,!1,null)}:e.isArray(u)&&(l=function(){o.execCommand(u[0],u[1],u[2])}),n(r(t.toLowerCase()),function(e){var t={func:l,scope:c||o,desc:o.translate(a),alt:!1,ctrl:!1,shift:!1};n(r(e,\"+\"),function(e){switch(e){case\"alt\":case\"ctrl\":case\"shift\":t[e]=!0;break;default:/^[0-9]{2,}$/.test(e)?t.keyCode=parseInt(e,10):(t.charCode=e.charCodeAt(0),t.keyCode=i[e]||e.toUpperCase().charCodeAt(0))}}),s[(t.ctrl?\"ctrl\":\"\")+\",\"+(t.alt?\"alt\":\"\")+\",\"+(t.shift?\"shift\":\"\")+\",\"+t.keyCode]=t}),!0}}}),r(dt,[y,f,C,w,_,R,T,H,O,I,F,z,W,V,b,l,at,E,k,st,u,d,ct,ut],function(e,n,r,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,C,x,w,_,E){function N(e,t,i){var o=this,a,s;a=o.documentBaseUrl=i.documentBaseURL,s=i.baseURI,o.settings=t=R({id:e,theme:\"modern\",delta_width:0,delta_height:0,popup_css:\"\",plugins:\"\",document_base_url:a,add_form_submit_trigger:!0,submit_patch:!0,add_unload_trigger:!0,convert_urls:!0,relative_urls:!0,remove_script_host:!0,object_resizing:!0,doctype:\"<!DOCTYPE html>\",visual:!0,font_size_style_values:\"xx-small,x-small,small,medium,large,x-large,xx-large\",font_size_legacy_values:\"xx-small,small,medium,large,x-large,xx-large,300%\",forced_root_block:\"p\",hidden_input:!0,padd_empty_editor:!0,render_ui:!0,indentation:\"30px\",inline_styles:!0,convert_fonts_to_spans:!0,indent:\"simple\",indent_before:\"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist\",indent_after:\"p,h1,h2,h3,h4,h5,h6,blockquote,div,title,style,pre,script,td,ul,ol,li,dl,dt,dd,area,table,thead,tfoot,tbody,tr,section,article,hgroup,aside,figure,option,optgroup,datalist\",validate:!0,entity_encoding:\"named\",url_converter:o.convertURL,url_converter_scope:o,ie7_compat:!0},t),r.language=t.language||\"en\",r.languageLoad=t.language_load,r.baseURL=i.baseURL,o.id=t.id=e,o.isNotDirty=!0,o.plugins={},o.documentBaseURI=new h(t.document_base_url||a,{base_uri:s}),o.baseURI=s,o.contentCSS=[],o.contentStyles=[],o.shortcuts=new E(o),o.execCommands={},o.queryStateCommands={},o.queryValueCommands={},o.loadedCSS={},t.target&&(o.targetElm=t.target),o.suffix=i.suffix,o.editorManager=i,o.inline=t.inline,t.cache_suffix&&(x.cacheSuffix=t.cache_suffix.replace(/^[\\?\\&]+/,\"\")),i.fire(\"SetupEditor\",o),o.execCallback(\"setup\",o),o.$=n.overrideDefaults(function(){return{context:o.inline?o.getBody():o.getDoc(),element:o.getBody()}})}var k=e.DOM,S=r.ThemeManager,T=r.PluginManager,R=w.extend,A=w.each,B=w.explode,D=w.inArray,L=w.trim,H=w.resolve,M=g.Event,P=x.gecko,O=x.ie;return N.prototype={render:function(){function e(){k.unbind(window,\"ready\",e),n.render()}function t(){var e=m.ScriptLoader;if(r.language&&\"en\"!=r.language&&!r.language_url&&(r.language_url=n.editorManager.baseURL+\"/langs/\"+r.language+\".js\"),r.language_url&&e.add(r.language_url),r.theme&&\"function\"!=typeof r.theme&&\"-\"!=r.theme.charAt(0)&&!S.urls[r.theme]){var t=r.theme_url;t=t?n.documentBaseURI.toAbsolute(t):\"themes/\"+r.theme+\"/theme\"+o+\".js\",S.load(r.theme,t)}w.isArray(r.plugins)&&(r.plugins=r.plugins.join(\" \")),A(r.external_plugins,function(e,t){T.load(t,e),r.plugins+=\" \"+t}),A(r.plugins.split(/[ ,]/),function(e){if(e=L(e),e&&!T.urls[e])if(\"-\"==e.charAt(0)){e=e.substr(1,e.length);var t=T.dependencies(e);A(t,function(e){var t={prefix:\"plugins/\",resource:e,suffix:\"/plugin\"+o+\".js\"};e=T.createUrl(t,e),T.load(e.resource,e)})}else T.load(e,{prefix:\"plugins/\",resource:e,suffix:\"/plugin\"+o+\".js\"})}),e.loadQueue(function(){n.removed||n.init()})}var n=this,r=n.settings,i=n.id,o=n.suffix;if(!M.domLoaded)return void k.bind(window,\"ready\",e);if(n.getElement()&&x.contentEditable){r.inline?n.inline=!0:(n.orgVisibility=n.getElement().style.visibility,n.getElement().style.visibility=\"hidden\");var a=n.getElement().form||k.getParent(i,\"form\");a&&(n.formElement=a,r.hidden_input&&!/TEXTAREA|INPUT/i.test(n.getElement().nodeName)&&(k.insertAfter(k.create(\"input\",{type:\"hidden\",name:i}),i),n.hasHiddenInput=!0),n.formEventDelegate=function(e){n.fire(e.type,e)},k.bind(a,\"submit reset\",n.formEventDelegate),n.on(\"reset\",function(){n.setContent(n.startContent,{format:\"raw\"})}),!r.submit_patch||a.submit.nodeType||a.submit.length||a._mceOldSubmit||(a._mceOldSubmit=a.submit,a.submit=function(){return n.editorManager.triggerSave(),n.isNotDirty=!0,a._mceOldSubmit(a)})),n.windowManager=new v(n),\"xml\"==r.encoding&&n.on(\"GetContent\",function(e){e.save&&(e.content=k.encode(e.content))}),r.add_form_submit_trigger&&n.on(\"submit\",function(){n.initialized&&n.save()}),r.add_unload_trigger&&(n._beforeUnload=function(){!n.initialized||n.destroyed||n.isHidden()||n.save({format:\"raw\",no_events:!0,set_dirty:!1})},n.editorManager.on(\"BeforeUnload\",n._beforeUnload)),t()}},init:function(){function e(n){var r=T.get(n),i,o;i=T.urls[n]||t.documentBaseUrl.replace(/\\/$/,\"\"),n=L(n),r&&-1===D(m,n)&&(A(T.dependencies(n),function(t){e(t)}),o=new r(t,i,t.$),t.plugins[n]=o,o.init&&(o.init(t,i),m.push(n)))}var t=this,n=t.settings,r=t.getElement(),i,o,a,s,l,c,u,d,f,p,h,m=[];if(t.rtl=this.editorManager.i18n.rtl,t.editorManager.add(t),n.aria_label=n.aria_label||k.getAttrib(r,\"aria-label\",t.getLang(\"aria.rich_text_area\")),n.theme&&(\"function\"!=typeof n.theme?(n.theme=n.theme.replace(/-/,\"\"),c=S.get(n.theme),t.theme=new c(t,S.urls[n.theme]),t.theme.init&&t.theme.init(t,S.urls[n.theme]||t.documentBaseUrl.replace(/\\/$/,\"\"),t.$)):t.theme=n.theme),A(n.plugins.replace(/\\-/g,\"\").split(/[ ,]/),e),n.render_ui&&t.theme&&(t.orgDisplay=r.style.display,\"function\"!=typeof n.theme?(i=n.width||r.style.width||r.offsetWidth,o=n.height||r.style.height||r.offsetHeight,a=n.min_height||100,p=/^[0-9\\.]+(|px)$/i,p.test(\"\"+i)&&(i=Math.max(parseInt(i,10),100)),p.test(\"\"+o)&&(o=Math.max(parseInt(o,10),a)),l=t.theme.renderUI({targetNode:r,width:i,height:o,deltaWidth:n.delta_width,deltaHeight:n.delta_height}),n.content_editable||(o=(l.iframeHeight||o)+(\"number\"==typeof o?l.deltaHeight||0:\"\"),a>o&&(o=a))):(l=n.theme(t,r),l.editorContainer.nodeType&&(l.editorContainer=l.editorContainer.id=l.editorContainer.id||t.id+\"_parent\"),l.iframeContainer.nodeType&&(l.iframeContainer=l.iframeContainer.id=l.iframeContainer.id||t.id+\"_iframecontainer\"),o=l.iframeHeight||r.offsetHeight),t.editorContainer=l.editorContainer),n.content_css&&A(B(n.content_css),function(e){t.contentCSS.push(t.documentBaseURI.toAbsolute(e))}),n.content_style&&t.contentStyles.push(n.content_style),n.content_editable)return r=s=l=null,t.initContentBody();for(t.iframeHTML=n.doctype+\"<html><head>\",n.document_base_url!=t.documentBaseUrl&&(t.iframeHTML+='<base href=\"'+t.documentBaseURI.getURI()+'\" />'),!x.caretAfter&&n.ie7_compat&&(t.iframeHTML+='<meta http-equiv=\"X-UA-Compatible\" content=\"IE=7\" />'),t.iframeHTML+='<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />',h=0;h<t.contentCSS.length;h++){var g=t.contentCSS[h];t.iframeHTML+='<link type=\"text/css\" rel=\"stylesheet\" href=\"'+w._addCacheSuffix(g)+'\" />',t.loadedCSS[g]=!0}d=n.body_id||\"tinymce\",-1!=d.indexOf(\"=\")&&(d=t.getParam(\"body_id\",\"\",\"hash\"),d=d[t.id]||d),f=n.body_class||\"\",-1!=f.indexOf(\"=\")&&(f=t.getParam(\"body_class\",\"\",\"hash\"),f=f[t.id]||\"\"),n.content_security_policy&&(t.iframeHTML+='<meta http-equiv=\"Content-Security-Policy\" content=\"'+n.content_security_policy+'\" />'),t.iframeHTML+='</head><body id=\"'+d+'\" class=\"mce-content-body '+f+'\" data-id=\"'+t.id+'\"><br></body></html>';var v='javascript:(function(){document.open();document.domain=\"'+document.domain+'\";var ed = window.parent.tinymce.get(\"'+t.id+'\");document.write(ed.iframeHTML);document.close();ed.initContentBody(true);})()';document.domain!=location.hostname&&(u=v);var y=k.create(\"iframe\",{id:t.id+\"_ifr\",frameBorder:\"0\",allowTransparency:\"true\",title:t.editorManager.translate(\"Rich Text Area. Press ALT-F9 for menu. Press ALT-F10 for toolbar. Press ALT-0 for help\"),style:{width:\"100%\",height:o,display:\"block\"}});if(y.onload=function(){y.onload=null,t.fire(\"load\")},k.setAttrib(y,\"src\",u||'javascript:\"\"'),t.contentAreaContainer=l.iframeContainer,t.iframeElement=y,s=k.add(l.iframeContainer,y),O)try{t.getDoc()}catch(b){s.src=u=v}l.editorContainer&&(k.get(l.editorContainer).style.display=t.orgDisplay,t.hidden=k.isHidden(l.editorContainer)),t.getElement().style.display=\"none\",k.setAttrib(t.id,\"aria-hidden\",!0),u||t.initContentBody(),r=s=l=null},initContentBody:function(t){var n=this,r=n.settings,s=n.getElement(),h=n.getDoc(),m,g;r.inline||(n.getElement().style.visibility=n.orgVisibility),t||r.content_editable||(h.open(),h.write(n.iframeHTML),h.close()),r.content_editable&&(n.on(\"remove\",function(){var e=this.getBody();k.removeClass(e,\"mce-content-body\"),k.removeClass(e,\"mce-edit-focus\"),k.setAttrib(e,\"contentEditable\",null)}),k.addClass(s,\"mce-content-body\"),n.contentDocument=h=r.content_document||document,n.contentWindow=r.content_window||window,n.bodyElement=s,r.content_document=r.content_window=null,r.root_name=s.nodeName.toLowerCase()),m=n.getBody(),m.disabled=!0,r.readonly||(n.inline&&\"static\"==k.getStyle(m,\"position\",!0)&&(m.style.position=\"relative\"),m.contentEditable=n.getParam(\"content_editable_state\",!0)),m.disabled=!1,n.schema=new y(r),n.dom=new e(h,{keep_values:!0,url_converter:n.convertURL,url_converter_scope:n,hex_colors:r.force_hex_style_colors,class_filter:r.class_filter,update_styles:!0,root_element:n.inline?n.getBody():null,collect:r.content_editable,schema:n.schema,onSetAttrib:function(e){n.fire(\"SetAttrib\",e)}}),n.parser=new b(r,n.schema),n.parser.addAttributeFilter(\"src,href,style,tabindex\",function(e,t){for(var r=e.length,i,o=n.dom,a,s;r--;)i=e[r],a=i.attr(t),s=\"data-mce-\"+t,i.attributes.map[s]||(\"style\"===t?(a=o.serializeStyle(o.parseStyle(a),i.name),a.length||(a=null),i.attr(s,a),i.attr(t,a)):\"tabindex\"===t?(i.attr(s,a),i.attr(t,null)):i.attr(s,n.convertURL(a,t,i.name)))}),n.parser.addNodeFilter(\"script\",function(e){for(var t=e.length,n;t--;)n=e[t],n.attr(\"type\",\"mce-\"+(n.attr(\"type\")||\"no/type\"))}),n.parser.addNodeFilter(\"#cdata\",function(e){for(var t=e.length,n;t--;)n=e[t],n.type=8,n.name=\"#comment\",n.value=\"[CDATA[\"+n.value+\"]]\"}),n.parser.addNodeFilter(\"p,h1,h2,h3,h4,h5,h6,div\",function(e){for(var t=e.length,r,i=n.schema.getNonEmptyElements();t--;)r=e[t],r.isEmpty(i)&&(r.append(new o(\"br\",1)).shortEnded=!0)}),n.serializer=new a(r,n),n.selection=new l(n.dom,n.getWin(),n.serializer,n),n.formatter=new c(n),n.undoManager=new u(n),n.forceBlocks=new f(n),n.enterKey=new d(n),n.editorCommands=new p(n),n._nodeChangeDispatcher=new i(n),n.fire(\"PreInit\"),r.browser_spellcheck||r.gecko_spellcheck||(h.body.spellcheck=!1,k.setAttrib(m,\"spellcheck\",\"false\")),n.fire(\"PostRender\"),n.quirks=new C(n),r.directionality&&(m.dir=r.directionality),r.nowrap&&(m.style.whiteSpace=\"nowrap\"),r.protect&&n.on(\"BeforeSetContent\",function(e){A(r.protect,function(t){e.content=e.content.replace(t,function(e){return\"<!--mce:protected \"+escape(e)+\"-->\"})})}),n.on(\"SetContent\",function(){n.addVisual(n.getBody())}),r.padd_empty_editor&&n.on(\"PostProcess\",function(e){e.content=e.content.replace(/^(<p[^>]*>(&nbsp;|&#160;|\\s|\\u00a0|)<\\/p>[\\r\\n]*|<br \\/>[\\r\\n]*)$/,\"\")}),n.load({initial:!0,format:\"html\"}),n.startContent=n.getContent({format:\"raw\"}),n.initialized=!0,n.bindPendingEventDelegates(),n.fire(\"init\"),n.focus(!0),n.nodeChanged({initial:!0}),n.execCallback(\"init_instance_callback\",n),n.contentStyles.length>0&&(g=\"\",A(n.contentStyles,function(e){g+=e+\"\\r\\n\"}),n.dom.addStyle(g)),A(n.contentCSS,function(e){n.loadedCSS[e]||(n.dom.loadCSS(e),n.loadedCSS[e]=!0)}),r.auto_focus&&setTimeout(function(){var e;e=r.auto_focus===!0?n:n.editorManager.get(r.auto_focus),e.focus()},100),s=h=m=null},focus:function(e){var t=this,n=t.selection,r=t.settings.content_editable,i,o,a=t.getDoc(),s;if(!e){if(i=n.getRng(),i.item&&(o=i.item(0)),t._refreshContentEditable(),r||(x.opera||t.getBody().focus(),t.getWin().focus()),P||r){if(s=t.getBody(),s.setActive)try{s.setActive()}catch(l){s.focus()}else s.focus();r&&n.normalize()}o&&o.ownerDocument==a&&(i=a.body.createControlRange(),i.addElement(o),i.select())}t.editorManager.setActive(t)},execCallback:function(e){var t=this,n=t.settings[e],r;if(n)return t.callbackLookup&&(r=t.callbackLookup[e])&&(n=r.func,r=r.scope),\"string\"==typeof n&&(r=n.replace(/\\.\\w+$/,\"\"),r=r?H(r):0,n=H(n),t.callbackLookup=t.callbackLookup||{},t.callbackLookup[e]={func:n,scope:r}),n.apply(r||t,Array.prototype.slice.call(arguments,1))},translate:function(e){var t=this.settings.language||\"en\",n=this.editorManager.i18n;return e?n.data[t+\".\"+e]||e.replace(/\\{\\#([^\\}]+)\\}/g,function(e,r){return n.data[t+\".\"+r]||\"{#\"+r+\"}\"}):\"\"},getLang:function(e,n){return this.editorManager.i18n.data[(this.settings.language||\"en\")+\".\"+e]||(n!==t?n:\"{#\"+e+\"}\")},getParam:function(e,t,n){var r=e in this.settings?this.settings[e]:t,i;return\"hash\"===n?(i={},\"string\"==typeof r?A(r.split(r.indexOf(\"=\")>0?/[;,](?![^=;,]*(?:[;,]|$))/:\",\"),function(e){e=e.split(\"=\"),i[L(e[0])]=L(e.length>1?e[1]:e)}):i=r,i):r},nodeChanged:function(e){this._nodeChangeDispatcher.nodeChanged(e)},addButton:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),t.text||t.icon||(t.icon=e),n.buttons=n.buttons||{},t.tooltip=t.tooltip||t.title,n.buttons[e]=t},addMenuItem:function(e,t){var n=this;t.cmd&&(t.onclick=function(){n.execCommand(t.cmd)}),n.menuItems=n.menuItems||{},n.menuItems[e]=t},addCommand:function(e,t,n){this.execCommands[e]={func:t,scope:n||this}},addQueryStateHandler:function(e,t,n){this.queryStateCommands[e]={func:t,scope:n||this}},addQueryValueHandler:function(e,t,n){this.queryValueCommands[e]={func:t,scope:n||this}},addShortcut:function(e,t,n,r){this.shortcuts.add(e,t,n,r)},execCommand:function(e,t,n,r){var i=this,o=0,a;if(/^(mceAddUndoLevel|mceEndUndoLevel|mceBeginUndoLevel|mceRepaint)$/.test(e)||r&&r.skip_focus||i.focus(),r=R({},r),r=i.fire(\"BeforeExecCommand\",{command:e,ui:t,value:n}),r.isDefaultPrevented())return!1;if((a=i.execCommands[e])&&a.func.call(a.scope,t,n)!==!0)return i.fire(\"ExecCommand\",{command:e,ui:t,value:n}),!0;if(A(i.plugins,function(r){return r.execCommand&&r.execCommand(e,t,n)?(i.fire(\"ExecCommand\",{command:e,ui:t,value:n}),o=!0,!1):void 0}),o)return o;if(i.theme&&i.theme.execCommand&&i.theme.execCommand(e,t,n))return i.fire(\"ExecCommand\",{command:e,ui:t,value:n}),!0;if(i.editorCommands.execCommand(e,t,n))return i.fire(\"ExecCommand\",{command:e,ui:t,value:n}),!0;try{o=i.getDoc().execCommand(e,t,n)}catch(s){}return o?(i.fire(\"ExecCommand\",{command:e,ui:t,value:n}),!0):!1},queryCommandState:function(e){var t=this,n,r;if(!t._isHidden()){if((n=t.queryStateCommands[e])&&(r=n.func.call(n.scope),r===!0||r===!1))return r;if(r=t.editorCommands.queryCommandState(e),-1!==r)return r;try{return t.getDoc().queryCommandState(e)}catch(i){}}},queryCommandValue:function(e){var n=this,r,i;if(!n._isHidden()){if((r=n.queryValueCommands[e])&&(i=r.func.call(r.scope),i!==!0))return i;if(i=n.editorCommands.queryCommandValue(e),i!==t)return i;try{return n.getDoc().queryCommandValue(e)}catch(o){}}},show:function(){var e=this;e.hidden&&(e.hidden=!1,e.inline?e.getBody().contentEditable=!0:(k.show(e.getContainer()),k.hide(e.id)),e.load(),e.fire(\"show\"))},hide:function(){var e=this,t=e.getDoc();e.hidden||(O&&t&&!e.inline&&t.execCommand(\"SelectAll\"),e.save(),e.inline?(e.getBody().contentEditable=!1,e==e.editorManager.focusedEditor&&(e.editorManager.focusedEditor=null)):(k.hide(e.getContainer()),k.setStyle(e.id,\"display\",e.orgDisplay)),e.hidden=!0,e.fire(\"hide\"))},isHidden:function(){return!!this.hidden},setProgressState:function(e,t){this.fire(\"ProgressState\",{state:e,time:t})},load:function(e){var n=this,r=n.getElement(),i;return r?(e=e||{},e.load=!0,i=n.setContent(r.value!==t?r.value:r.innerHTML,e),e.element=r,e.no_events||n.fire(\"LoadContent\",e),e.element=r=null,i):void 0},save:function(e){var t=this,n=t.getElement(),r,i;if(n&&t.initialized)return e=e||{},e.save=!0,e.element=n,r=e.content=t.getContent(e),e.no_events||t.fire(\"SaveContent\",e),r=e.content,/TEXTAREA|INPUT/i.test(n.nodeName)?n.value=r:(t.inline||(n.innerHTML=r),(i=k.getParent(t.id,\"form\"))&&A(i.elements,function(e){return e.name==t.id?(e.value=r,!1):void 0})),e.element=n=null,e.set_dirty!==!1&&(t.isNotDirty=!0),r},setContent:function(e,t){var n=this,r=n.getBody(),i;return t=t||{},t.format=t.format||\"html\",t.set=!0,t.content=e,t.no_events||n.fire(\"BeforeSetContent\",t),e=t.content,0===e.length||/^\\s+$/.test(e)?(i=n.settings.forced_root_block,i&&n.schema.isValidChild(r.nodeName.toLowerCase(),i.toLowerCase())?(e=O&&11>O?\"\":'<br data-mce-bogus=\"1\">',e=n.dom.createHTML(i,n.settings.forced_root_block_attrs,e)):O||(e='<br data-mce-bogus=\"1\">'),n.dom.setHTML(r,e),n.fire(\"SetContent\",t)):(\"raw\"!==t.format&&(e=new s({},n.schema).serialize(n.parser.parse(e,{isRootContent:!0}))),t.content=L(e),n.dom.setHTML(r,t.content),t.no_events||n.fire(\"SetContent\",t)),t.content},getContent:function(e){var t=this,n,r=t.getBody();return e=e||{},e.format=e.format||\"html\",e.get=!0,e.getInner=!0,e.no_events||t.fire(\"BeforeGetContent\",e),n=\"raw\"==e.format?r.innerHTML:\"text\"==e.format?r.innerText||r.textContent:t.serializer.serialize(r,e),e.content=\"text\"!=e.format?L(n):n,e.no_events||t.fire(\"GetContent\",e),e.content},insertContent:function(e,t){t&&(e=R({content:e},t)),this.execCommand(\"mceInsertContent\",!1,e)},isDirty:function(){return!this.isNotDirty},getContainer:function(){var e=this;return e.container||(e.container=k.get(e.editorContainer||e.id+\"_parent\")),e.container},getContentAreaContainer:function(){return this.contentAreaContainer},getElement:function(){return this.targetElm||(this.targetElm=k.get(this.id)),this.targetElm},getWin:function(){var e=this,t;return e.contentWindow||(t=e.iframeElement,t&&(e.contentWindow=t.contentWindow)),e.contentWindow},getDoc:function(){var e=this,t;return e.contentDocument||(t=e.getWin(),t&&(e.contentDocument=t.document)),e.contentDocument},getBody:function(){return this.bodyElement||this.getDoc().body},convertURL:function(e,t,n){var r=this,i=r.settings;return i.urlconverter_callback?r.execCallback(\"urlconverter_callback\",e,n,!0,t):!i.convert_urls||n&&\"LINK\"==n.nodeName||0===e.indexOf(\"file:\")||0===e.length?e:i.relative_urls?r.documentBaseURI.toRelative(e):e=r.documentBaseURI.toAbsolute(e,i.remove_script_host)},addVisual:function(e){var n=this,r=n.settings,i=n.dom,o;e=e||n.getBody(),n.hasVisual===t&&(n.hasVisual=r.visual),A(i.select(\"table,a\",e),function(e){var t;switch(e.nodeName){case\"TABLE\":return o=r.visual_table_class||\"mce-item-table\",t=i.getAttrib(e,\"border\"),void(t&&\"0\"!=t||!n.hasVisual?i.removeClass(e,o):i.addClass(e,o));case\"A\":return void(i.getAttrib(e,\"href\",!1)||(t=i.getAttrib(e,\"name\")||e.id,o=r.visual_anchor_class||\"mce-item-anchor\",t&&n.hasVisual?i.addClass(e,o):i.removeClass(e,o)))}}),n.fire(\"VisualAid\",{element:e,hasVisual:n.hasVisual})},remove:function(){var e=this;e.removed||(e.save(),e.removed=1,e.unbindAllNativeEvents(),e.hasHiddenInput&&k.remove(e.getElement().nextSibling),e.inline||(O&&10>O&&e.getDoc().execCommand(\"SelectAll\",!1,null),k.setStyle(e.id,\"display\",e.orgDisplay),e.getBody().onload=null),e.fire(\"remove\"),e.editorManager.remove(e),k.remove(e.getContainer()),e.destroy())},destroy:function(e){var t=this,n;if(!t.destroyed){if(!e&&!t.removed)return void t.remove();e||(t.editorManager.off(\"beforeunload\",t._beforeUnload),t.theme&&t.theme.destroy&&t.theme.destroy(),t.selection.destroy(),t.dom.destroy()),n=t.formElement,n&&(n._mceOldSubmit&&(n.submit=n._mceOldSubmit,n._mceOldSubmit=null),k.unbind(n,\"submit reset\",t.formEventDelegate)),t.contentAreaContainer=t.formElement=t.container=t.editorContainer=null,t.bodyElement=t.contentDocument=t.contentWindow=null,t.iframeElement=t.targetElm=null,t.selection&&(t.selection=t.selection.win=t.selection.dom=t.selection.dom.doc=null),t.destroyed=1}},_refreshContentEditable:function(){var e=this,t,n;e._isHidden()&&(t=e.getBody(),n=t.parentNode,n.removeChild(t),n.appendChild(t),t.focus())},_isHidden:function(){var e;return P?(e=this.selection.getSel(),!e||!e.rangeCount||0===e.rangeCount):0}},R(N.prototype,_),N}),r(ft,[],function(){var e={};return{rtl:!1,add:function(t,n){for(var r in n)e[r]=n[r];this.rtl=this.rtl||\"rtl\"===e._dir},translate:function(t){if(\"undefined\"==typeof t)return t;if(\"string\"!=typeof t&&t.raw)return t.raw;if(t.push){var n=t.slice(1);t=(e[t[0]]||t[0]).replace(/\\{([^\\}]+)\\}/g,function(e,t){return n[t]})}return e[t]||t},data:e}}),r(pt,[y,u],function(e,t){function n(e){function s(){try{return document.activeElement}catch(e){return document.body}}function l(e,t){if(t&&t.startContainer){if(!e.isChildOf(t.startContainer,e.getRoot())||!e.isChildOf(t.endContainer,e.getRoot()))return;return{startContainer:t.startContainer,startOffset:t.startOffset,endContainer:t.endContainer,endOffset:t.endOffset}}return t}function c(e,t){var n;return t.startContainer?(n=e.getDoc().createRange(),n.setStart(t.startContainer,t.startOffset),n.setEnd(t.endContainer,t.endOffset)):n=t,n}function u(e){return!!a.getParent(e,n.isEditorUIElement)}function d(n){var d=n.editor;d.on(\"init\",function(){(d.inline||t.ie)&&(\"onbeforedeactivate\"in document&&t.ie<9?d.dom.bind(d.getBody(),\"beforedeactivate\",function(e){if(e.target==d.getBody())try{d.lastRng=d.selection.getRng()}catch(t){}}):d.on(\"nodechange mouseup keyup\",function(e){var t=s();\"nodechange\"==e.type&&e.selectionChange||(t&&t.id==d.id+\"_ifr\"&&(t=d.getBody()),d.dom.isChildOf(t,d.getBody())&&(d.lastRng=d.selection.getRng()))}),t.webkit&&!r&&(r=function(){var t=e.activeEditor;if(t&&t.selection){var n=t.selection.getRng();n&&!n.collapsed&&(d.lastRng=n)}},a.bind(document,\"selectionchange\",r)))}),d.on(\"setcontent\",function(){d.lastRng=null}),d.on(\"mousedown\",function(){d.selection.lastFocusBookmark=null}),d.on(\"focusin\",function(){var t=e.focusedEditor;d.selection.lastFocusBookmark&&(d.selection.setRng(c(d,d.selection.lastFocusBookmark)),d.selection.lastFocusBookmark=null),t!=d&&(t&&t.fire(\"blur\",{focusedEditor:d}),e.setActive(d),e.focusedEditor=d,d.fire(\"focus\",{blurredEditor:t}),d.focus(!0)),d.lastRng=null}),d.on(\"focusout\",function(){window.setTimeout(function(){var t=e.focusedEditor;u(s())||t!=d||(d.fire(\"blur\",{focusedEditor:null}),e.focusedEditor=null,d.selection&&(d.selection.lastFocusBookmark=null))},0)}),i||(i=function(t){var n=e.activeEditor;n&&t.target.ownerDocument==document&&(n.selection&&t.target!=n.getBody()&&(n.selection.lastFocusBookmark=l(n.dom,n.lastRng)),t.target==document.body||u(t.target)||e.focusedEditor!=n||(n.fire(\"blur\",{focusedEditor:null}),e.focusedEditor=null))},a.bind(document,\"focusin\",i)),d.inline&&!o&&(o=function(t){var n=e.activeEditor;if(n.inline&&!n.dom.isChildOf(t.target,n.getBody())){var r=n.selection.getRng();r.collapsed||(n.lastRng=r)}},a.bind(document,\"mouseup\",o))}function f(t){e.focusedEditor==t.editor&&(e.focusedEditor=null),e.activeEditor||(a.unbind(document,\"selectionchange\",r),a.unbind(document,\"focusin\",i),a.unbind(document,\"mouseup\",o),r=i=o=null)}e.on(\"AddEditor\",d),e.on(\"RemoveEditor\",f)}var r,i,o,a=e.DOM;return n.isEditorUIElement=function(e){return-1!==e.className.toString().indexOf(\"mce-\")},n}),r(ht,[dt,f,y,V,u,d,lt,ft,pt],function(e,t,n,r,i,o,a,s,l){function c(e){var t=v.editors,n;delete t[e.id];for(var r=0;r<t.length;r++)if(t[r]==e){t.splice(r,1),n=!0;break}return v.activeEditor==e&&(v.activeEditor=t[0]),v.focusedEditor==e&&(v.focusedEditor=null),n}function u(e){return e&&!(e.getContainer()||e.getBody()).parentNode&&(c(e),e.unbindAllNativeEvents(),e.destroy(!0),e=null),e}var d=n.DOM,f=o.explode,p=o.each,h=o.extend,m=0,g,v;return v={$:t,majorVersion:\"4\",minorVersion:\"1.7\",releaseDate:\"2014-11-27\",editors:[],i18n:s,activeEditor:null,setup:function(){var e=this,t,n,i=\"\",o,a;if(n=document.location.href,/^[^:]+:\\/\\/\\/?[^\\/]+\\//.test(n)&&(n=n.replace(/[\\?#].*$/,\"\").replace(/[\\/\\\\][^\\/]+$/,\"\"),/[\\/\\\\]$/.test(n)||(n+=\"/\")),o=window.tinymce||window.tinyMCEPreInit)t=o.base||o.baseURL,i=o.suffix;else{for(var s=document.getElementsByTagName(\"script\"),c=0;c<s.length;c++)if(a=s[c].src,/tinymce(\\.full|\\.jquery|)(\\.min|\\.dev|)\\.js/.test(a)){-1!=a.indexOf(\".min\")&&(i=\".min\"),t=a.substring(0,a.lastIndexOf(\"/\"));break}!t&&document.currentScript&&(a=document.currentScript.src,-1!=a.indexOf(\".min\")&&(i=\".min\"),t=a.substring(0,a.lastIndexOf(\"/\")))}e.baseURL=new r(n).toAbsolute(t),e.documentBaseURL=n,e.baseURI=new r(e.baseURL),e.suffix=i,e.focusManager=new l(e)},init:function(t){function n(e){var t=e.id;return t||(t=e.name,t=t&&!d.get(t)?e.name:d.uniqueId(),e.setAttribute(\"id\",t)),t}function r(t,n,r){if(!u(s.get(t))){var i=new e(t,n,s);i.targetElm=i.targetElm||r,l.push(i),i.render()}}function i(e){var n=t[e];if(n)return n.apply(s,Array.prototype.slice.call(arguments,2))}function o(e,t){return t.constructor===RegExp?t.test(e.className):d.hasClass(e,t)}function a(){var e,s;if(d.unbind(window,\"ready\",a),i(\"onpageload\"),t.types)return void p(t.types,function(e){p(d.select(e.selector),function(i){r(n(i),h({},t,e),i)})});if(t.selector)return void p(d.select(t.selector),function(e){r(n(e),t,e)});switch(t.target&&r(n(t.target),t),t.mode){case\"exact\":e=t.elements||\"\",e.length>0&&p(f(e),function(e){var n;(n=d.get(e))?r(e,t,n):p(document.forms,function(n){p(n.elements,function(n){n.name===e&&(e=\"mce_editor_\"+m++,d.setAttrib(n,\"id\",e),r(e,t,n))})})});break;case\"textareas\":case\"specific_textareas\":p(d.select(\"textarea\"),function(e){t.editor_deselector&&o(e,t.editor_deselector)||(!t.editor_selector||o(e,t.editor_selector))&&r(n(e),t,e)})}t.oninit&&(e=s=0,p(l,function(t){s++,t.initialized?e++:t.on(\"init\",function(){e++,e==s&&i(\"oninit\")}),e==s&&i(\"oninit\")}))}var s=this,l=[];s.settings=t,d.bind(window,\"ready\",a)},get:function(e){return arguments.length?e in this.editors?this.editors[e]:null:this.editors},add:function(e){var t=this,n=t.editors;return n[e.id]=e,n.push(e),t.activeEditor=e,t.fire(\"AddEditor\",{editor:e}),g||(g=function(){t.fire(\"BeforeUnload\")},d.bind(window,\"beforeunload\",g)),e},createEditor:function(t,n){return this.add(new e(t,n,this))},remove:function(e){var t=this,n,r=t.editors,i;{if(e)return\"string\"==typeof e?(e=e.selector||e,void p(d.select(e),function(e){i=r[e.id],i&&t.remove(i)})):(i=e,r[i.id]?(c(i)&&t.fire(\"RemoveEditor\",{editor:i}),r.length||d.unbind(window,\"beforeunload\",g),i.remove(),i):null);for(n=r.length-1;n>=0;n--)t.remove(r[n])}},execCommand:function(t,n,r){var i=this,o=i.get(r);switch(t){case\"mceAddEditor\":return i.get(r)||new e(r,i.settings,i).render(),!0;case\"mceRemoveEditor\":return o&&o.remove(),!0;case\"mceToggleEditor\":return o?(o.isHidden()?o.show():o.hide(),!0):(i.execCommand(\"mceAddEditor\",0,r),!0)}return i.activeEditor?i.activeEditor.execCommand(t,n,r):!1},triggerSave:function(){p(this.editors,function(e){e.save()})},addI18n:function(e,t){s.add(e,t)},translate:function(e){return s.translate(e)},setActive:function(e){var t=this.activeEditor;this.activeEditor!=e&&(t&&t.fire(\"deactivate\",{relatedTarget:e}),e.fire(\"activate\",{relatedTarget:t})),this.activeEditor=e}},h(v,a),v.setup(),window.tinymce=window.tinyMCE=v,v}),r(mt,[ht,d],function(e,t){var n=t.each,r=t.explode;e.on(\"AddEditor\",function(e){var t=e.editor;t.on(\"preInit\",function(){function e(e,t){n(t,function(t,n){t&&s.setStyle(e,n,t)}),s.rename(e,\"span\")}function i(e){s=t.dom,l.convert_fonts_to_spans&&n(s.select(\"font,u,strike\",e.node),function(e){o[e.nodeName.toLowerCase()](s,e)})}var o,a,s,l=t.settings;l.inline_styles&&(a=r(l.font_size_legacy_values),o={font:function(t,n){e(n,{backgroundColor:n.style.backgroundColor,color:n.color,fontFamily:n.face,fontSize:a[parseInt(n.size,10)-1]})},u:function(t,n){e(n,{textDecoration:\"underline\"})},strike:function(t,n){e(n,{textDecoration:\"line-through\"})}},t.on(\"PreProcess SetContent\",i))})})}),r(gt,[lt,d],function(e,t){var n={send:function(e){function t(){!e.async||4==r.readyState||i++>1e4?(e.success&&1e4>i&&200==r.status?e.success.call(e.success_scope,\"\"+r.responseText,r,e):e.error&&e.error.call(e.error_scope,i>1e4?\"TIMED_OUT\":\"GENERAL\",r,e),r=null):setTimeout(t,10)}var r,i=0;if(e.scope=e.scope||this,e.success_scope=e.success_scope||e.scope,e.error_scope=e.error_scope||e.scope,e.async=e.async===!1?!1:!0,e.data=e.data||\"\",r=new XMLHttpRequest){if(r.overrideMimeType&&r.overrideMimeType(e.content_type),r.open(e.type||(e.data?\"POST\":\"GET\"),e.url,e.async),e.crossDomain&&(r.withCredentials=!0),e.content_type&&r.setRequestHeader(\"Content-Type\",e.content_type),r.setRequestHeader(\"X-Requested-With\",\"XMLHttpRequest\"),r=n.fire(\"beforeSend\",{xhr:r,settings:e}).xhr,r.send(e.data),!e.async)return t();setTimeout(t,10)}}};return t.extend(n,e),n}),r(vt,[],function(){function e(t,n){var r,i,o,a;if(n=n||'\"',null===t)return\"null\";if(o=typeof t,\"string\"==o)return i=\"\\bb\tt\\nn\\ff\\rr\\\"\\\"''\\\\\\\\\",n+t.replace(/([\\u0080-\\uFFFF\\x00-\\x1f\\\"\\'\\\\])/g,function(e,t){return'\"'===n&&\"'\"===e?e:(r=i.indexOf(t),r+1?\"\\\\\"+i.charAt(r+1):(e=t.charCodeAt().toString(16),\"\\\\u\"+\"0000\".substring(e.length)+e))})+n;if(\"object\"==o){if(t.hasOwnProperty&&\"[object Array]\"===Object.prototype.toString.call(t)){for(r=0,i=\"[\";r<t.length;r++)i+=(r>0?\",\":\"\")+e(t[r],n);return i+\"]\"}i=\"{\";for(a in t)t.hasOwnProperty(a)&&(i+=\"function\"!=typeof t[a]?(i.length>1?\",\"+n:n)+a+n+\":\"+e(t[a],n):\"\");return i+\"}\"}return\"\"+t}return{serialize:e,parse:function(e){try{return window[String.fromCharCode(101)+\"val\"](\"(\"+e+\")\")}catch(t){}}}}),r(yt,[vt,gt,d],function(e,t,n){function r(e){this.settings=i({},e),this.count=0}var i=n.extend;return r.sendRPC=function(e){return(new r).send(e)},r.prototype={send:function(n){var r=n.error,o=n.success;n=i(this.settings,n),n.success=function(t,i){t=e.parse(t),\"undefined\"==typeof t&&(t={error:\"JSON Parse error.\"}),t.error?r.call(n.error_scope||n.scope,t.error,i):o.call(n.success_scope||n.scope,t.result)},n.error=function(e,t){r&&r.call(n.error_scope||n.scope,e,t)},n.data=e.serialize({id:n.id||\"c\"+this.count++,method:n.method,params:n.params}),n.content_type=\"application/json\",t.send(n)}},r}),r(bt,[y],function(e){return{callbacks:{},count:0,send:function(n){var r=this,i=e.DOM,o=n.count!==t?n.count:r.count,a=\"tinymce_jsonp_\"+o;r.callbacks[o]=function(e){i.remove(a),delete r.callbacks[o],n.callback(e)},i.add(i.doc.body,\"script\",{id:a,src:n.url,type:\"text/javascript\"}),r.count++}}}),r(Ct,[],function(){function e(){s=[];for(var e in a)s.push(e);i.length=s.length}function n(){function n(e){var n,r;return r=e!==t?u+e:i.indexOf(\",\",u),-1===r||r>i.length?null:(n=i.substring(u,r),u=r+1,n)}var r,i,s,u=0;if(a={},c){o.load(l),i=o.getAttribute(l)||\"\";do{var d=n();if(null===d)break;if(r=n(parseInt(d,32)||0),null!==r){if(d=n(),null===d)break;s=n(parseInt(d,32)||0),r&&(a[r]=s)}}while(null!==r);e()}}function r(){var t,n=\"\";if(c){for(var r in a)t=a[r],n+=(n?\",\":\"\")+r.length.toString(32)+\",\"+r+\",\"+t.length.toString(32)+\",\"+t;o.setAttribute(l,n);try{o.save(l)}catch(i){}e()}}var i,o,a,s,l,c;try{if(window.localStorage)return localStorage}catch(u){}return l=\"tinymce\",o=document.documentElement,c=!!o.addBehavior,c&&o.addBehavior(\"#default#userData\"),i={key:function(e){return s[e]},getItem:function(e){return e in a?a[e]:null},setItem:function(e,t){a[e]=\"\"+t,r()},removeItem:function(e){delete a[e],r()},clear:function(){a={},r()}},n(),i}),r(xt,[y,l,b,C,d,u],function(e,t,n,r,i,o){var a=window.tinymce;return a.DOM=e.DOM,a.ScriptLoader=n.ScriptLoader,a.PluginManager=r.PluginManager,a.ThemeManager=r.ThemeManager,a.dom=a.dom||{},a.dom.Event=t.Event,i.each(i,function(e,t){a[t]=e}),i.each(\"isOpera isWebKit isIE isGecko isMac\".split(\" \"),function(e){a[e]=o[e.substr(2).toLowerCase()]}),{}}),r(wt,[U,d],function(e,t){return e.extend({Defaults:{firstControlClass:\"first\",lastControlClass:\"last\"},init:function(e){this.settings=t.extend({},this.Defaults,e)},preRender:function(e){e.addClass(this.settings.containerClass,\"body\")},applyClasses:function(e){var t=this,n=t.settings,r,i,o;r=e.items().filter(\":visible\"),i=n.firstControlClass,o=n.lastControlClass,r.each(function(e){e.removeClass(i).removeClass(o),n.controlClass&&e.addClass(n.controlClass)}),r.eq(0).addClass(i),r.eq(-1).addClass(o)},renderHtml:function(e){var t=this,n=t.settings,r,i=\"\";\nreturn r=e.items(),r.eq(0).addClass(n.firstControlClass),r.eq(-1).addClass(n.lastControlClass),r.each(function(e){n.controlClass&&e.addClass(n.controlClass),i+=e.renderHtml()}),i},recalc:function(){},postRender:function(){}})}),r(_t,[wt],function(e){return e.extend({Defaults:{containerClass:\"abs-layout\",controlClass:\"abs-layout-item\"},recalc:function(e){e.items().filter(\":visible\").each(function(e){var t=e.settings;e.layoutRect({x:t.x,y:t.y,w:t.w,h:t.h}),e.recalc&&e.recalc()})},renderHtml:function(e){return'<div id=\"'+e._id+'-absend\" class=\"'+e.classPrefix+'abs-end\"></div>'+this._super(e)}})}),r(Et,[K,tt],function(e,t){return e.extend({Mixins:[t],Defaults:{classes:\"widget tooltip tooltip-n\"},text:function(e){var t=this;return\"undefined\"!=typeof e?(t._value=e,t._rendered&&(t.getEl().lastChild.innerHTML=t.encode(e)),t):t._value},renderHtml:function(){var e=this,t=e.classPrefix;return'<div id=\"'+e._id+'\" class=\"'+e.classes()+'\" role=\"presentation\"><div class=\"'+t+'tooltip-arrow\"></div><div class=\"'+t+'tooltip-inner\">'+e.encode(e._text)+\"</div></div>\"},repaint:function(){var e=this,t,n;t=e.getEl().style,n=e._layoutRect,t.left=n.x+\"px\",t.top=n.y+\"px\",t.zIndex=131070}})}),r(Nt,[K,Et],function(e,t){var n,r=e.extend({init:function(e){var t=this;t._super(e),e=t.settings,t.canFocus=!0,e.tooltip&&r.tooltips!==!1&&(t.on(\"mouseenter\",function(n){var r=t.tooltip().moveTo(-65535);if(n.control==t){var i=r.text(e.tooltip).show().testMoveRel(t.getEl(),[\"bc-tc\",\"bc-tl\",\"bc-tr\"]);r.toggleClass(\"tooltip-n\",\"bc-tc\"==i),r.toggleClass(\"tooltip-nw\",\"bc-tl\"==i),r.toggleClass(\"tooltip-ne\",\"bc-tr\"==i),r.moveRel(t.getEl(),i)}else r.hide()}),t.on(\"mouseleave mousedown click\",function(){t.tooltip().hide()})),t.aria(\"label\",e.ariaLabel||e.tooltip)},tooltip:function(){return n||(n=new t({type:\"tooltip\"}),n.renderTo()),n},active:function(e){var t=this,n;return e!==n&&(t.aria(\"pressed\",e),t.toggleClass(\"active\",e)),t._super(e)},disabled:function(e){var t=this,n;return e!==n&&(t.aria(\"disabled\",e),t.toggleClass(\"disabled\",e)),t._super(e)},postRender:function(){var e=this,t=e.settings;e._rendered=!0,e._super(),e.parent()||!t.width&&!t.height||(e.initLayoutRect(),e.repaint()),t.autofocus&&e.focus()},remove:function(){this._super(),n&&(n.remove(),n=null)}});return r}),r(kt,[Nt],function(e){return e.extend({Defaults:{classes:\"widget btn\",role:\"button\"},init:function(e){var t=this,n;t.on(\"click mousedown\",function(e){e.preventDefault()}),t._super(e),n=e.size,e.subtype&&t.addClass(e.subtype),n&&t.addClass(\"btn-\"+n)},icon:function(e){var t=this,n=t.classPrefix;if(\"undefined\"==typeof e)return t.settings.icon;if(t.settings.icon=e,e=e?n+\"ico \"+n+\"i-\"+t.settings.icon:\"\",t._rendered){var r=t.getEl().firstChild,i=r.getElementsByTagName(\"i\")[0];e?(i&&i==r.firstChild||(i=document.createElement(\"i\"),r.insertBefore(i,r.firstChild)),i.className=e):i&&r.removeChild(i),t.text(t._text)}return t},repaint:function(){var e=this.getEl().firstChild.style;e.width=e.height=\"100%\",this._super()},text:function(e){var t=this;if(t._rendered){var n=t.getEl().lastChild.lastChild;n&&(n.data=t.translate(e))}return t._super(e)},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix,r=e.settings.icon,i;return i=e.settings.image,i?(r=\"none\",\"string\"!=typeof i&&(i=window.getSelection?i[0]:i[1]),i=\" style=\\\"background-image: url('\"+i+\"')\\\"\"):i=\"\",r=e.settings.icon?n+\"ico \"+n+\"i-\"+r:\"\",'<div id=\"'+t+'\" class=\"'+e.classes()+'\" tabindex=\"-1\" aria-labelledby=\"'+t+'\"><button role=\"presentation\" type=\"button\" tabindex=\"-1\">'+(r?'<i class=\"'+r+'\"'+i+\"></i>\":\"\")+(e._text?(r?\"\\xa0\":\"\")+e.encode(e._text):\"\")+\"</button></div>\"}})}),r(St,[J],function(e){return e.extend({Defaults:{defaultType:\"button\",role:\"group\"},renderHtml:function(){var e=this,t=e._layout;return e.addClass(\"btn-group\"),e.preRender(),t.preRender(e),'<div id=\"'+e._id+'\" class=\"'+e.classes()+'\"><div id=\"'+e._id+'-body\">'+(e.settings.html||\"\")+t.renderHtml(e)+\"</div></div>\"}})}),r(Tt,[Nt],function(e){return e.extend({Defaults:{classes:\"checkbox\",role:\"checkbox\",checked:!1},init:function(e){var t=this;t._super(e),t.on(\"click mousedown\",function(e){e.preventDefault()}),t.on(\"click\",function(e){e.preventDefault(),t.disabled()||t.checked(!t.checked())}),t.checked(t.settings.checked)},checked:function(e){var t=this;return\"undefined\"!=typeof e?(e?t.addClass(\"checked\"):t.removeClass(\"checked\"),t._checked=e,t.aria(\"checked\",e),t):t._checked},value:function(e){return this.checked(e)},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix;return'<div id=\"'+t+'\" class=\"'+e.classes()+'\" unselectable=\"on\" aria-labelledby=\"'+t+'-al\" tabindex=\"-1\"><i class=\"'+n+\"ico \"+n+'i-checkbox\"></i><span id=\"'+t+'-al\" class=\"'+n+'label\">'+e.encode(e._text)+\"</span></div>\"}})}),r(Rt,[Nt,G,Y],function(e,t,n){return e.extend({init:function(e){var t=this;t._super(e),t.addClass(\"combobox\"),t.subinput=!0,t.ariaTarget=\"inp\",e=t.settings,e.menu=e.menu||e.values,e.menu&&(e.icon=\"caret\"),t.on(\"click\",function(n){for(var r=n.target,i=t.getEl();r&&r!=i;)r.id&&-1!=r.id.indexOf(\"-open\")&&(t.fire(\"action\"),e.menu&&(t.showMenu(),n.aria&&t.menu.items()[0].focus())),r=r.parentNode}),t.on(\"keydown\",function(e){\"INPUT\"==e.target.nodeName&&13==e.keyCode&&t.parents().reverse().each(function(n){return e.preventDefault(),t.fire(\"change\"),n.hasEventListeners(\"submit\")&&n.toJSON?(n.fire(\"submit\",{data:n.toJSON()}),!1):void 0})}),e.placeholder&&(t.addClass(\"placeholder\"),t.on(\"focusin\",function(){t._hasOnChange||(n.on(t.getEl(\"inp\"),\"change\",function(){t.fire(\"change\")}),t._hasOnChange=!0),t.hasClass(\"placeholder\")&&(t.getEl(\"inp\").value=\"\",t.removeClass(\"placeholder\"))}),t.on(\"focusout\",function(){0===t.value().length&&(t.getEl(\"inp\").value=e.placeholder,t.addClass(\"placeholder\"))}))},showMenu:function(){var e=this,n=e.settings,r;e.menu||(r=n.menu||[],r.length?r={type:\"menu\",items:r}:r.type=r.type||\"menu\",e.menu=t.create(r).parent(e).renderTo(e.getContainerElm()),e.fire(\"createmenu\"),e.menu.reflow(),e.menu.on(\"cancel\",function(t){t.control===e.menu&&e.focus()}),e.menu.on(\"show hide\",function(t){t.control.items().each(function(t){t.active(t.value()==e.value())})}).fire(\"show\"),e.menu.on(\"select\",function(t){e.value(t.control.value())}),e.on(\"focusin\",function(t){\"INPUT\"==t.target.tagName.toUpperCase()&&e.menu.hide()}),e.aria(\"expanded\",!0)),e.menu.show(),e.menu.layoutRect({w:e.layoutRect().w}),e.menu.moveRel(e.getEl(),e.isRtl()?[\"br-tr\",\"tr-br\"]:[\"bl-tl\",\"tl-bl\"])},value:function(e){var t=this;return\"undefined\"!=typeof e?(t._value=e,t.removeClass(\"placeholder\"),t._rendered&&(t.getEl(\"inp\").value=e),t):t._rendered?(e=t.getEl(\"inp\").value,e!=t.settings.placeholder?e:\"\"):t._value},disabled:function(e){var t=this;return t._rendered&&\"undefined\"!=typeof e&&(t.getEl(\"inp\").disabled=e),t._super(e)},focus:function(){this.getEl(\"inp\").focus()},repaint:function(){var e=this,t=e.getEl(),r=e.getEl(\"open\"),i=e.layoutRect(),o,a;o=r?i.w-n.getSize(r).width-10:i.w-10;var s=document;return s.all&&(!s.documentMode||s.documentMode<=8)&&(a=e.layoutRect().h-2+\"px\"),n.css(t.firstChild,{width:o,lineHeight:a}),e._super(),e},postRender:function(){var e=this;return n.on(this.getEl(\"inp\"),\"change\",function(){e.fire(\"change\")}),e._super()},remove:function(){n.off(this.getEl(\"inp\")),this._super()},renderHtml:function(){var e=this,t=e._id,n=e.settings,r=e.classPrefix,i=n.value||n.placeholder||\"\",o,a,s=\"\",l=\"\";return\"spellcheck\"in n&&(l+=' spellcheck=\"'+n.spellcheck+'\"'),n.maxLength&&(l+=' maxlength=\"'+n.maxLength+'\"'),n.size&&(l+=' size=\"'+n.size+'\"'),n.subtype&&(l+=' type=\"'+n.subtype+'\"'),e.disabled()&&(l+=' disabled=\"disabled\"'),o=n.icon,o&&\"caret\"!=o&&(o=r+\"ico \"+r+\"i-\"+n.icon),a=e._text,(o||a)&&(s='<div id=\"'+t+'-open\" class=\"'+r+\"btn \"+r+'open\" tabIndex=\"-1\" role=\"button\"><button id=\"'+t+'-action\" type=\"button\" hidefocus=\"1\" tabindex=\"-1\">'+(\"caret\"!=o?'<i class=\"'+o+'\"></i>':'<i class=\"'+r+'caret\"></i>')+(a?(o?\" \":\"\")+a:\"\")+\"</button></div>\",e.addClass(\"has-open\")),'<div id=\"'+t+'\" class=\"'+e.classes()+'\"><input id=\"'+t+'-inp\" class=\"'+r+\"textbox \"+r+'placeholder\" value=\"'+i+'\" hidefocus=\"1\"'+l+\" />\"+s+\"</div>\"}})}),r(At,[Rt],function(e){return e.extend({init:function(e){var t=this;e.spellcheck=!1,e.onaction&&(e.icon=\"none\"),t._super(e),t.addClass(\"colorbox\"),t.on(\"change keyup postrender\",function(){t.repaintColor(t.value())})},repaintColor:function(e){var t=this.getEl().getElementsByTagName(\"i\")[0];if(t)try{t.style.background=e}catch(n){}},value:function(e){var t=this;return\"undefined\"!=typeof e&&t._rendered&&t.repaintColor(e),t._super(e)}})}),r(Bt,[kt,rt],function(e,t){return e.extend({showPanel:function(){var e=this,n=e.settings;if(e.active(!0),e.panel)e.panel.show();else{var r=n.panel;r.type&&(r={layout:\"grid\",items:r}),r.role=r.role||\"dialog\",r.popover=!0,r.autohide=!0,r.ariaRoot=!0,e.panel=new t(r).on(\"hide\",function(){e.active(!1)}).on(\"cancel\",function(t){t.stopPropagation(),e.focus(),e.hidePanel()}).parent(e).renderTo(e.getContainerElm()),e.panel.fire(\"show\"),e.panel.reflow()}e.panel.moveRel(e.getEl(),n.popoverAlign||(e.isRtl()?[\"bc-tr\",\"bc-tc\"]:[\"bc-tl\",\"bc-tc\"]))},hidePanel:function(){var e=this;e.panel&&e.panel.hide()},postRender:function(){var e=this;return e.aria(\"haspopup\",!0),e.on(\"click\",function(t){t.control===e&&(e.panel&&e.panel.visible()?e.hidePanel():(e.showPanel(),e.panel.focus(!!t.aria)))}),e._super()},remove:function(){return this.panel&&(this.panel.remove(),this.panel=null),this._super()}})}),r(Dt,[Bt,y],function(e,t){var n=t.DOM;return e.extend({init:function(e){this._super(e),this.addClass(\"colorbutton\")},color:function(e){return e?(this._color=e,this.getEl(\"preview\").style.backgroundColor=e,this):this._color},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix,r=e.settings.icon?n+\"ico \"+n+\"i-\"+e.settings.icon:\"\",i=e.settings.image?\" style=\\\"background-image: url('\"+e.settings.image+\"')\\\"\":\"\";return'<div id=\"'+t+'\" class=\"'+e.classes()+'\" role=\"button\" tabindex=\"-1\" aria-haspopup=\"true\"><button role=\"presentation\" hidefocus=\"1\" type=\"button\" tabindex=\"-1\">'+(r?'<i class=\"'+r+'\"'+i+\"></i>\":\"\")+'<span id=\"'+t+'-preview\" class=\"'+n+'preview\"></span>'+(e._text?(r?\" \":\"\")+e._text:\"\")+'</button><button type=\"button\" class=\"'+n+'open\" hidefocus=\"1\" tabindex=\"-1\"> <i class=\"'+n+'caret\"></i></button></div>'},postRender:function(){var e=this,t=e.settings.onclick;return e.on(\"click\",function(r){r.aria&&\"down\"==r.aria.key||r.control!=e||n.getParent(r.target,\".\"+e.classPrefix+\"open\")||(r.stopImmediatePropagation(),t.call(e,r))}),delete e.settings.onclick,e._super()}})}),r(Lt,[],function(){function e(e){function i(e,i,o){var a,s,l,c,u,d;return a=0,s=0,l=0,e/=255,i/=255,o/=255,u=t(e,t(i,o)),d=n(e,n(i,o)),u==d?(l=u,{h:0,s:0,v:100*l}):(c=e==u?i-o:o==u?e-i:o-e,a=e==u?3:o==u?1:5,a=60*(a-c/(d-u)),s=(d-u)/d,l=d,{h:r(a),s:r(100*s),v:r(100*l)})}function o(e,i,o){var a,s,l,c;if(e=(parseInt(e,10)||0)%360,i=parseInt(i,10)/100,o=parseInt(o,10)/100,i=n(0,t(i,1)),o=n(0,t(o,1)),0===i)return void(d=f=p=r(255*o));switch(a=e/60,s=o*i,l=s*(1-Math.abs(a%2-1)),c=o-s,Math.floor(a)){case 0:d=s,f=l,p=0;break;case 1:d=l,f=s,p=0;break;case 2:d=0,f=s,p=l;break;case 3:d=0,f=l,p=s;break;case 4:d=l,f=0,p=s;break;case 5:d=s,f=0,p=l;break;default:d=f=p=0}d=r(255*(d+c)),f=r(255*(f+c)),p=r(255*(p+c))}function a(){function e(e){return e=parseInt(e,10).toString(16),e.length>1?e:\"0\"+e}return\"#\"+e(d)+e(f)+e(p)}function s(){return{r:d,g:f,b:p}}function l(){return i(d,f,p)}function c(e){var t;return\"object\"==typeof e?\"r\"in e?(d=e.r,f=e.g,p=e.b):\"v\"in e&&o(e.h,e.s,e.v):(t=/rgb\\s*\\(\\s*([0-9]+)\\s*,\\s*([0-9]+)\\s*,\\s*([0-9]+)[^\\)]*\\)/gi.exec(e))?(d=parseInt(t[1],10),f=parseInt(t[2],10),p=parseInt(t[3],10)):(t=/#([0-F]{2})([0-F]{2})([0-F]{2})/gi.exec(e))?(d=parseInt(t[1],16),f=parseInt(t[2],16),p=parseInt(t[3],16)):(t=/#([0-F])([0-F])([0-F])/gi.exec(e))&&(d=parseInt(t[1]+t[1],16),f=parseInt(t[2]+t[2],16),p=parseInt(t[3]+t[3],16)),d=0>d?0:d>255?255:d,f=0>f?0:f>255?255:f,p=0>p?0:p>255?255:p,u}var u=this,d=0,f=0,p=0;e&&c(e),u.toRgb=s,u.toHsv=l,u.toHex=a,u.parse=c}var t=Math.min,n=Math.max,r=Math.round;return e}),r(Ht,[Nt,Q,Y,Lt],function(e,t,n,r){return e.extend({Defaults:{classes:\"widget colorpicker\"},init:function(e){this._super(e)},postRender:function(){function e(e,t){var r=n.getPos(e),i,o;return i=t.pageX-r.x,o=t.pageY-r.y,i=Math.max(0,Math.min(i/e.clientWidth,1)),o=Math.max(0,Math.min(o/e.clientHeight,1)),{x:i,y:o}}function i(e,t){var i=(360-e.h)/360;n.css(d,{top:100*i+\"%\"}),t||n.css(p,{left:e.s+\"%\",top:100-e.v+\"%\"}),f.style.background=new r({s:100,v:100,h:e.h}).toHex(),s.color().parse({s:e.s,v:e.v,h:e.h})}function o(t){var n;n=e(f,t),c.s=100*n.x,c.v=100*(1-n.y),i(c),s.fire(\"change\")}function a(t){var n;n=e(u,t),c=l.toHsv(),c.h=360*(1-n.y),i(c,!0),s.fire(\"change\")}var s=this,l=s.color(),c,u,d,f,p;u=s.getEl(\"h\"),d=s.getEl(\"hp\"),f=s.getEl(\"sv\"),p=s.getEl(\"svp\"),s._repaint=function(){c=l.toHsv(),i(c)},s._super(),s._svdraghelper=new t(s._id+\"-sv\",{start:o,drag:o}),s._hdraghelper=new t(s._id+\"-h\",{start:a,drag:a}),s._repaint()},rgb:function(){return this.color().toRgb()},value:function(e){var t=this;return arguments.length?(t.color().parse(e),void(t._rendered&&t._repaint())):t.color().toHex()},color:function(){return this._color||(this._color=new r),this._color},renderHtml:function(){function e(){var e,t,n=\"\",i,a;for(i=\"filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr=\",a=o.split(\",\"),e=0,t=a.length-1;t>e;e++)n+='<div class=\"'+r+'colorpicker-h-chunk\" style=\"height:'+100/t+\"%;\"+i+a[e]+\",endColorstr=\"+a[e+1]+\");-ms-\"+i+a[e]+\",endColorstr=\"+a[e+1]+')\"></div>';return n}var t=this,n=t._id,r=t.classPrefix,i,o=\"#ff0000,#ff0080,#ff00ff,#8000ff,#0000ff,#0080ff,#00ffff,#00ff80,#00ff00,#80ff00,#ffff00,#ff8000,#ff0000\",a=\"background: -ms-linear-gradient(top,\"+o+\");background: linear-gradient(to bottom,\"+o+\");\";return i='<div id=\"'+n+'-h\" class=\"'+r+'colorpicker-h\" style=\"'+a+'\">'+e()+'<div id=\"'+n+'-hp\" class=\"'+r+'colorpicker-h-marker\"></div></div>','<div id=\"'+n+'\" class=\"'+t.classes()+'\"><div id=\"'+n+'-sv\" class=\"'+r+'colorpicker-sv\"><div class=\"'+r+'colorpicker-overlay1\"><div class=\"'+r+'colorpicker-overlay2\"><div id=\"'+n+'-svp\" class=\"'+r+'colorpicker-selector1\"><div class=\"'+r+'colorpicker-selector2\"></div></div></div></div></div>'+i+\"</div>\"}})}),r(Mt,[Nt],function(e){return e.extend({init:function(e){var t=this;e.delimiter||(e.delimiter=\"\\xbb\"),t._super(e),t.addClass(\"path\"),t.canFocus=!0,t.on(\"click\",function(e){var n,r=e.target;(n=r.getAttribute(\"data-index\"))&&t.fire(\"select\",{value:t.data()[n],index:n})})},focus:function(){var e=this;return e.getEl().firstChild.focus(),e},data:function(e){var t=this;return\"undefined\"!=typeof e?(t._data=e,t.update(),t):t._data},update:function(){this.innerHtml(this._getPathHtml())},postRender:function(){var e=this;e._super(),e.data(e.settings.data)},renderHtml:function(){var e=this;return'<div id=\"'+e._id+'\" class=\"'+e.classes()+'\">'+e._getPathHtml()+\"</div>\"},_getPathHtml:function(){var e=this,t=e._data||[],n,r,i=\"\",o=e.classPrefix;for(n=0,r=t.length;r>n;n++)i+=(n>0?'<div class=\"'+o+'divider\" aria-hidden=\"true\"> '+e.settings.delimiter+\" </div>\":\"\")+'<div role=\"button\" class=\"'+o+\"path-item\"+(n==r-1?\" \"+o+\"last\":\"\")+'\" data-index=\"'+n+'\" tabindex=\"-1\" id=\"'+e._id+\"-\"+n+'\" aria-level=\"'+n+'\">'+t[n].name+\"</div>\";return i||(i='<div class=\"'+o+'path-item\">\\xa0</div>'),i}})}),r(Pt,[Mt,ht],function(e,t){return e.extend({postRender:function(){function e(e){if(1===e.nodeType){if(\"BR\"==e.nodeName||e.getAttribute(\"data-mce-bogus\"))return!0;if(\"bookmark\"===e.getAttribute(\"data-mce-type\"))return!0}return!1}var n=this,r=t.activeEditor;return n.on(\"select\",function(e){r.focus(),r.selection.select(this.data()[e.index].element),r.nodeChanged()}),r.on(\"nodeChange\",function(t){for(var i=[],o=t.parents,a=o.length;a--;)if(1==o[a].nodeType&&!e(o[a])){var s=r.fire(\"ResolveName\",{name:o[a].nodeName.toLowerCase(),target:o[a]});if(s.isDefaultPrevented()||i.push({name:s.name,element:o[a]}),s.isPropagationStopped())break}n.data(i)}),n._super()}})}),r(Ot,[J],function(e){return e.extend({Defaults:{layout:\"flex\",align:\"center\",defaults:{flex:1}},renderHtml:function(){var e=this,t=e._layout,n=e.classPrefix;return e.addClass(\"formitem\"),t.preRender(e),'<div id=\"'+e._id+'\" class=\"'+e.classes()+'\" hidefocus=\"1\" tabindex=\"-1\">'+(e.settings.title?'<div id=\"'+e._id+'-title\" class=\"'+n+'title\">'+e.settings.title+\"</div>\":\"\")+'<div id=\"'+e._id+'-body\" class=\"'+e.classes(\"body\")+'\">'+(e.settings.html||\"\")+t.renderHtml(e)+\"</div></div>\"}})}),r(It,[J,Ot,d],function(e,t,n){return e.extend({Defaults:{containerCls:\"form\",layout:\"flex\",direction:\"column\",align:\"stretch\",flex:1,padding:20,labelGap:30,spacing:10,callbacks:{submit:function(){this.submit()}}},preRender:function(){var e=this,r=e.items();e.settings.formItemDefaults||(e.settings.formItemDefaults={layout:\"flex\",autoResize:\"overflow\",defaults:{flex:1}}),r.each(function(r){var i,o=r.settings.label;o&&(i=new t(n.extend({items:{type:\"label\",id:r._id+\"-l\",text:o,flex:0,forId:r._id,disabled:r.disabled()}},e.settings.formItemDefaults)),i.type=\"formitem\",r.aria(\"labelledby\",r._id+\"-l\"),\"undefined\"==typeof r.settings.flex&&(r.settings.flex=1),e.replace(r,i),i.add(r))})},recalcLabels:function(){var e=this,t=0,n=[],r,i,o;if(e.settings.labelGapCalc!==!1)for(o=\"children\"==e.settings.labelGapCalc?e.find(\"formitem\"):e.items(),o.filter(\"formitem\").each(function(e){var r=e.items()[0],i=r.getEl().clientWidth;t=i>t?i:t,n.push(r)}),i=e.settings.labelGap||0,r=n.length;r--;)n[r].settings.minWidth=t+i},visible:function(e){var t=this._super(e);return e===!0&&this._rendered&&this.recalcLabels(),t},submit:function(){return this.fire(\"submit\",{data:this.toJSON()})},postRender:function(){var e=this;e._super(),e.recalcLabels(),e.fromJSON(e.settings.data)}})}),r(Ft,[It],function(e){return e.extend({Defaults:{containerCls:\"fieldset\",layout:\"flex\",direction:\"column\",align:\"stretch\",flex:1,padding:\"25 15 5 15\",labelGap:30,spacing:10,border:1},renderHtml:function(){var e=this,t=e._layout,n=e.classPrefix;return e.preRender(),t.preRender(e),'<fieldset id=\"'+e._id+'\" class=\"'+e.classes()+'\" hidefocus=\"1\" tabindex=\"-1\">'+(e.settings.title?'<legend id=\"'+e._id+'-title\" class=\"'+n+'fieldset-title\">'+e.settings.title+\"</legend>\":\"\")+'<div id=\"'+e._id+'-body\" class=\"'+e.classes(\"body\")+'\">'+(e.settings.html||\"\")+t.renderHtml(e)+\"</div></fieldset>\"}})}),r(zt,[Rt,d],function(e,t){return e.extend({init:function(e){var n=this,r=tinymce.activeEditor,i=r.settings,o,a,s;e.spellcheck=!1,s=i.file_picker_types||i.file_browser_callback_types,s&&(s=t.makeMap(s,/[, ]/)),(!s||s[e.filetype])&&(a=i.file_picker_callback,!a||s&&!s[e.filetype]?(a=i.file_browser_callback,!a||s&&!s[e.filetype]||(o=function(){a(n.getEl(\"inp\").id,n.value(),e.filetype,window)})):o=function(){var i=n.fire(\"beforecall\").meta;i=t.extend({filetype:e.filetype},i),a.call(r,function(e,t){n.value(e).fire(\"change\",{meta:t})},n.value(),i)}),o&&(e.icon=\"browse\",e.onaction=o),n._super(e)}})}),r(Wt,[_t],function(e){return e.extend({recalc:function(e){var t=e.layoutRect(),n=e.paddingBox();e.items().filter(\":visible\").each(function(e){e.layoutRect({x:n.left,y:n.top,w:t.innerW-n.right-n.left,h:t.innerH-n.top-n.bottom}),e.recalc&&e.recalc()})}})}),r(Vt,[_t],function(e){return e.extend({recalc:function(e){var t,n,r,i,o,a,s,l,c,u,d,f,p,h,m,g,v=[],y,b,C,x,w,_,E,N,k,S,T,R,A,B,D,L,H,M,P,O,I,F,z=Math.max,W=Math.min;for(r=e.items().filter(\":visible\"),i=e.layoutRect(),o=e._paddingBox,a=e.settings,f=e.isRtl()?a.direction||\"row-reversed\":a.direction,s=a.align,l=e.isRtl()?a.pack||\"end\":a.pack,c=a.spacing||0,(\"row-reversed\"==f||\"column-reverse\"==f)&&(r=r.set(r.toArray().reverse()),f=f.split(\"-\")[0]),\"column\"==f?(k=\"y\",E=\"h\",N=\"minH\",S=\"maxH\",R=\"innerH\",T=\"top\",A=\"deltaH\",B=\"contentH\",P=\"left\",H=\"w\",D=\"x\",L=\"innerW\",M=\"minW\",O=\"right\",I=\"deltaW\",F=\"contentW\"):(k=\"x\",E=\"w\",N=\"minW\",S=\"maxW\",R=\"innerW\",T=\"left\",A=\"deltaW\",B=\"contentW\",P=\"top\",H=\"h\",D=\"y\",L=\"innerH\",M=\"minH\",O=\"bottom\",I=\"deltaH\",F=\"contentH\"),d=i[R]-o[T]-o[T],_=u=0,t=0,n=r.length;n>t;t++)p=r[t],h=p.layoutRect(),m=p.settings,g=m.flex,d-=n-1>t?c:0,g>0&&(u+=g,h[S]&&v.push(p),h.flex=g),d-=h[N],y=o[P]+h[M]+o[O],y>_&&(_=y);if(x={},x[N]=0>d?i[N]-d+i[A]:i[R]-d+i[A],x[M]=_+i[I],x[B]=i[R]-d,x[F]=_,x.minW=W(x.minW,i.maxW),x.minH=W(x.minH,i.maxH),x.minW=z(x.minW,i.startMinWidth),x.minH=z(x.minH,i.startMinHeight),!i.autoResize||x.minW==i.minW&&x.minH==i.minH){for(C=d/u,t=0,n=v.length;n>t;t++)p=v[t],h=p.layoutRect(),b=h[S],y=h[N]+h.flex*C,y>b?(d-=h[S]-h[N],u-=h.flex,h.flex=0,h.maxFlexSize=b):h.maxFlexSize=0;for(C=d/u,w=o[T],x={},0===u&&(\"end\"==l?w=d+o[T]:\"center\"==l?(w=Math.round(i[R]/2-(i[R]-d)/2)+o[T],0>w&&(w=o[T])):\"justify\"==l&&(w=o[T],c=Math.floor(d/(r.length-1)))),x[D]=o[P],t=0,n=r.length;n>t;t++)p=r[t],h=p.layoutRect(),y=h.maxFlexSize||h[N],\"center\"===s?x[D]=Math.round(i[L]/2-h[H]/2):\"stretch\"===s?(x[H]=z(h[M]||0,i[L]-o[P]-o[O]),x[D]=o[P]):\"end\"===s&&(x[D]=i[L]-h[H]-o.top),h.flex>0&&(y+=h.flex*C),x[E]=y,x[k]=w,p.layoutRect(x),p.recalc&&p.recalc(),w+=y+c}else if(x.w=x.minW,x.h=x.minH,e.layoutRect(x),this.recalc(e),null===e._lastRect){var V=e.parent();V&&(V._lastRect=null,V.recalc())}}})}),r(Ut,[wt],function(e){return e.extend({Defaults:{containerClass:\"flow-layout\",controlClass:\"flow-layout-item\",endClass:\"break\"},recalc:function(e){e.items().filter(\":visible\").each(function(e){e.recalc&&e.recalc()})}})}),r($t,[K,Nt,rt,d,ht,u],function(e,t,n,r,i,o){function a(e){function t(t,n){return function(){var r=this;e.on(\"nodeChange\",function(i){var o=e.formatter,a=null;s(i.parents,function(e){return s(t,function(t){return n?o.matchNode(e,n,{value:t.value})&&(a=t.value):o.matchNode(e,t.value)&&(a=t.value),a?!1:void 0}),a?!1:void 0}),r.value(a)})}}function r(e){e=e.replace(/;$/,\"\").split(\";\");for(var t=e.length;t--;)e[t]=e[t].split(\"=\");return e}function i(){function t(e){var n=[];if(e)return s(e,function(e){var o={text:e.title,icon:e.icon};if(e.items)o.menu=t(e.items);else{var a=e.format||\"custom\"+r++;e.format||(e.name=a,i.push(e)),o.format=a,o.cmd=e.cmd}n.push(o)}),n}function n(){var n;return n=t(e.settings.style_formats_merge?e.settings.style_formats?o.concat(e.settings.style_formats):o:e.settings.style_formats||o)}var r=0,i=[],o=[{title:\"Headings\",items:[{title:\"Heading 1\",format:\"h1\"},{title:\"Heading 2\",format:\"h2\"},{title:\"Heading 3\",format:\"h3\"},{title:\"Heading 4\",format:\"h4\"},{title:\"Heading 5\",format:\"h5\"},{title:\"Heading 6\",format:\"h6\"}]},{title:\"Inline\",items:[{title:\"Bold\",icon:\"bold\",format:\"bold\"},{title:\"Italic\",icon:\"italic\",format:\"italic\"},{title:\"Underline\",icon:\"underline\",format:\"underline\"},{title:\"Strikethrough\",icon:\"strikethrough\",format:\"strikethrough\"},{title:\"Superscript\",icon:\"superscript\",format:\"superscript\"},{title:\"Subscript\",icon:\"subscript\",format:\"subscript\"},{title:\"Code\",icon:\"code\",format:\"code\"}]},{title:\"Blocks\",items:[{title:\"Paragraph\",format:\"p\"},{title:\"Blockquote\",format:\"blockquote\"},{title:\"Div\",format:\"div\"},{title:\"Pre\",format:\"pre\"}]},{title:\"Alignment\",items:[{title:\"Left\",icon:\"alignleft\",format:\"alignleft\"},{title:\"Center\",icon:\"aligncenter\",format:\"aligncenter\"},{title:\"Right\",icon:\"alignright\",format:\"alignright\"},{title:\"Justify\",icon:\"alignjustify\",format:\"alignjustify\"}]}];return e.on(\"init\",function(){s(i,function(t){e.formatter.register(t.name,t)})}),{type:\"menu\",items:n(),onPostRender:function(t){e.fire(\"renderFormatsMenu\",{control:t.control})},itemDefaults:{preview:!0,textStyle:function(){return this.settings.format?e.formatter.getCssText(this.settings.format):void 0},onPostRender:function(){var t=this;t.parent().on(\"show\",function(){var n,r;n=t.settings.format,n&&(t.disabled(!e.formatter.canApply(n)),t.active(e.formatter.match(n))),r=t.settings.cmd,r&&t.active(e.queryCommandState(r))})},onclick:function(){this.settings.format&&l(this.settings.format),this.settings.cmd&&e.execCommand(this.settings.cmd)}}}}function o(t){return function(){function n(){return e.undoManager?e.undoManager[t]():!1}var r=this;t=\"redo\"==t?\"hasRedo\":\"hasUndo\",r.disabled(!n()),e.on(\"Undo Redo AddUndo TypingUndo ClearUndos\",function(){r.disabled(!n())})}}function a(){var t=this;e.on(\"VisualAid\",function(e){t.active(e.hasVisual)}),t.active(e.hasVisual)}function l(t){t.control&&(t=t.control.value()),t&&e.execCommand(\"mceToggleFormat\",!1,t)}var c;c=i(),s({bold:\"Bold\",italic:\"Italic\",underline:\"Underline\",strikethrough:\"Strikethrough\",subscript:\"Subscript\",superscript:\"Superscript\"},function(t,n){e.addButton(n,{tooltip:t,onPostRender:function(){var t=this;e.formatter?e.formatter.formatChanged(n,function(e){t.active(e)}):e.on(\"init\",function(){e.formatter.formatChanged(n,function(e){t.active(e)})})},onclick:function(){l(n)}})}),s({outdent:[\"Decrease indent\",\"Outdent\"],indent:[\"Increase indent\",\"Indent\"],cut:[\"Cut\",\"Cut\"],copy:[\"Copy\",\"Copy\"],paste:[\"Paste\",\"Paste\"],help:[\"Help\",\"mceHelp\"],selectall:[\"Select all\",\"SelectAll\"],removeformat:[\"Clear formatting\",\"RemoveFormat\"],visualaid:[\"Visual aids\",\"mceToggleVisualAid\"],newdocument:[\"New document\",\"mceNewDocument\"]},function(t,n){e.addButton(n,{tooltip:t[0],cmd:t[1]})}),s({blockquote:[\"Blockquote\",\"mceBlockQuote\"],numlist:[\"Numbered list\",\"InsertOrderedList\"],bullist:[\"Bullet list\",\"InsertUnorderedList\"],subscript:[\"Subscript\",\"Subscript\"],superscript:[\"Superscript\",\"Superscript\"],alignleft:[\"Align left\",\"JustifyLeft\"],aligncenter:[\"Align center\",\"JustifyCenter\"],alignright:[\"Align right\",\"JustifyRight\"],alignjustify:[\"Justify\",\"JustifyFull\"]},function(t,n){e.addButton(n,{tooltip:t[0],cmd:t[1],onPostRender:function(){var t=this;e.formatter?e.formatter.formatChanged(n,function(e){t.active(e)}):e.on(\"init\",function(){e.formatter.formatChanged(n,function(e){t.active(e)})})}})}),e.addButton(\"undo\",{tooltip:\"Undo\",onPostRender:o(\"undo\"),cmd:\"undo\"}),e.addButton(\"redo\",{tooltip:\"Redo\",onPostRender:o(\"redo\"),cmd:\"redo\"}),e.addMenuItem(\"newdocument\",{text:\"New document\",shortcut:\"Ctrl+N\",icon:\"newdocument\",cmd:\"mceNewDocument\"}),e.addMenuItem(\"undo\",{text:\"Undo\",icon:\"undo\",shortcut:\"Ctrl+Z\",onPostRender:o(\"undo\"),cmd:\"undo\"}),e.addMenuItem(\"redo\",{text:\"Redo\",icon:\"redo\",shortcut:\"Ctrl+Y\",onPostRender:o(\"redo\"),cmd:\"redo\"}),e.addMenuItem(\"visualaid\",{text:\"Visual aids\",selectable:!0,onPostRender:a,cmd:\"mceToggleVisualAid\"}),s({cut:[\"Cut\",\"Cut\",\"Ctrl+X\"],copy:[\"Copy\",\"Copy\",\"Ctrl+C\"],paste:[\"Paste\",\"Paste\",\"Ctrl+V\"],selectall:[\"Select all\",\"SelectAll\",\"Ctrl+A\"],bold:[\"Bold\",\"Bold\",\"Ctrl+B\"],italic:[\"Italic\",\"Italic\",\"Ctrl+I\"],underline:[\"Underline\",\"Underline\"],strikethrough:[\"Strikethrough\",\"Strikethrough\"],subscript:[\"Subscript\",\"Subscript\"],superscript:[\"Superscript\",\"Superscript\"],removeformat:[\"Clear formatting\",\"RemoveFormat\"]},function(t,n){e.addMenuItem(n,{text:t[0],icon:n,shortcut:t[2],cmd:t[1]})}),e.on(\"mousedown\",function(){n.hideAll()}),e.addButton(\"styleselect\",{type:\"menubutton\",text:\"Formats\",menu:c}),e.addButton(\"formatselect\",function(){var n=[],i=r(e.settings.block_formats||\"Paragraph=p;Address=address;Pre=pre;Heading 1=h1;Heading 2=h2;Heading 3=h3;Heading 4=h4;Heading 5=h5;Heading 6=h6\");return s(i,function(t){n.push({text:t[0],value:t[1],textStyle:function(){return e.formatter.getCssText(t[1])}})}),{type:\"listbox\",text:i[0][0],values:n,fixedWidth:!0,onselect:l,onPostRender:t(n)}}),e.addButton(\"fontselect\",function(){var n=\"Andale Mono=andale mono,times;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier;Georgia=georgia,palatino;Helvetica=helvetica;Impact=impact,chicago;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Trebuchet MS=trebuchet ms,geneva;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats\",i=[],o=r(e.settings.font_formats||n);return s(o,function(e){i.push({text:{raw:e[0]},value:e[1],textStyle:-1==e[1].indexOf(\"dings\")?\"font-family:\"+e[1]:\"\"})}),{type:\"listbox\",text:\"Font Family\",tooltip:\"Font Family\",values:i,fixedWidth:!0,onPostRender:t(i,\"fontname\"),onselect:function(t){t.control.settings.value&&e.execCommand(\"FontName\",!1,t.control.settings.value)}}}),e.addButton(\"fontsizeselect\",function(){var n=[],r=\"8pt 10pt 12pt 14pt 18pt 24pt 36pt\",i=e.settings.fontsize_formats||r;return s(i.split(\" \"),function(e){var t=e,r=e,i=e.split(\"=\");i.length>1&&(t=i[0],r=i[1]),n.push({text:t,value:r})}),{type:\"listbox\",text:\"Font Sizes\",tooltip:\"Font Sizes\",values:n,fixedWidth:!0,onPostRender:t(n,\"fontsize\"),onclick:function(t){t.control.settings.value&&e.execCommand(\"FontSize\",!1,t.control.settings.value)}}}),e.addMenuItem(\"formats\",{text:\"Formats\",menu:c})}var s=r.each;i.on(\"AddEditor\",function(t){t.editor.rtl&&(e.rtl=!0),a(t.editor)}),e.translate=function(e){return i.translate(e)},t.tooltips=!o.iOS}),r(qt,[_t],function(e){return e.extend({recalc:function(e){var t=e.settings,n,r,i,o,a,s,l,c,u,d,f,p,h,m,g,v,y,b,C,x,w,_,E=[],N=[],k,S,T,R,A,B;t=e.settings,i=e.items().filter(\":visible\"),o=e.layoutRect(),r=t.columns||Math.ceil(Math.sqrt(i.length)),n=Math.ceil(i.length/r),y=t.spacingH||t.spacing||0,b=t.spacingV||t.spacing||0,C=t.alignH||t.align,x=t.alignV||t.align,g=e._paddingBox,A=\"reverseRows\"in t?t.reverseRows:e.isRtl(),C&&\"string\"==typeof C&&(C=[C]),x&&\"string\"==typeof x&&(x=[x]);for(d=0;r>d;d++)E.push(0);for(f=0;n>f;f++)N.push(0);for(f=0;n>f;f++)for(d=0;r>d&&(u=i[f*r+d],u);d++)c=u.layoutRect(),k=c.minW,S=c.minH,E[d]=k>E[d]?k:E[d],N[f]=S>N[f]?S:N[f];for(T=o.innerW-g.left-g.right,w=0,d=0;r>d;d++)w+=E[d]+(d>0?y:0),T-=(d>0?y:0)+E[d];for(R=o.innerH-g.top-g.bottom,_=0,f=0;n>f;f++)_+=N[f]+(f>0?b:0),R-=(f>0?b:0)+N[f];if(w+=g.left+g.right,_+=g.top+g.bottom,l={},l.minW=w+(o.w-o.innerW),l.minH=_+(o.h-o.innerH),l.contentW=l.minW-o.deltaW,l.contentH=l.minH-o.deltaH,l.minW=Math.min(l.minW,o.maxW),l.minH=Math.min(l.minH,o.maxH),l.minW=Math.max(l.minW,o.startMinWidth),l.minH=Math.max(l.minH,o.startMinHeight),!o.autoResize||l.minW==o.minW&&l.minH==o.minH){o.autoResize&&(l=e.layoutRect(l),l.contentW=l.minW-o.deltaW,l.contentH=l.minH-o.deltaH);var D;D=\"start\"==t.packV?0:R>0?Math.floor(R/n):0;var L=0,H=t.flexWidths;if(H)for(d=0;d<H.length;d++)L+=H[d];else L=r;var M=T/L;for(d=0;r>d;d++)E[d]+=H?H[d]*M:M;for(h=g.top,f=0;n>f;f++){for(p=g.left,s=N[f]+D,d=0;r>d&&(B=A?f*r+r-1-d:f*r+d,u=i[B],u);d++)m=u.settings,c=u.layoutRect(),a=Math.max(E[d],c.startMinWidth),c.x=p,c.y=h,v=m.alignH||(C?C[d]||C[0]:null),\"center\"==v?c.x=p+a/2-c.w/2:\"right\"==v?c.x=p+a-c.w:\"stretch\"==v&&(c.w=a),v=m.alignV||(x?x[d]||x[0]:null),\"center\"==v?c.y=h+s/2-c.h/2:\"bottom\"==v?c.y=h+s-c.h:\"stretch\"==v&&(c.h=s),u.layoutRect(c),p+=a+y,u.recalc&&u.recalc();h+=s+b}}else if(l.w=l.minW,l.h=l.minH,e.layoutRect(l),this.recalc(e),null===e._lastRect){var P=e.parent();P&&(P._lastRect=null,P.recalc())}}})}),r(jt,[Nt],function(e){return e.extend({renderHtml:function(){var e=this;return e.addClass(\"iframe\"),e.canFocus=!1,'<iframe id=\"'+e._id+'\" class=\"'+e.classes()+'\" tabindex=\"-1\" src=\"'+(e.settings.url||\"javascript:''\")+'\" frameborder=\"0\"></iframe>'},src:function(e){this.getEl().src=e},html:function(e,t){var n=this,r=this.getEl().contentWindow.document.body;return r?(r.innerHTML=e,t&&t()):setTimeout(function(){n.html(e)},0),this}})}),r(Yt,[Nt,Y],function(e,t){return e.extend({init:function(e){var t=this;t._super(e),t.addClass(\"widget\"),t.addClass(\"label\"),t.canFocus=!1,e.multiline&&t.addClass(\"autoscroll\"),e.strong&&t.addClass(\"strong\")},initLayoutRect:function(){var e=this,n=e._super();if(e.settings.multiline){var r=t.getSize(e.getEl());r.width>n.maxW&&(n.minW=n.maxW,e.addClass(\"multiline\")),e.getEl().style.width=n.minW+\"px\",n.startMinH=n.h=n.minH=Math.min(n.maxH,t.getSize(e.getEl()).height)}return n},repaint:function(){var e=this;return e.settings.multiline||(e.getEl().style.lineHeight=e.layoutRect().h+\"px\"),e._super()},text:function(e){var t=this;return t._rendered&&e&&this.innerHtml(t.encode(e)),t._super(e)},renderHtml:function(){var e=this,t=e.settings.forId;return'<label id=\"'+e._id+'\" class=\"'+e.classes()+'\"'+(t?' for=\"'+t+'\"':\"\")+\">\"+e.encode(e._text)+\"</label>\"\n}})}),r(Kt,[J],function(e){return e.extend({Defaults:{role:\"toolbar\",layout:\"flow\"},init:function(e){var t=this;t._super(e),t.addClass(\"toolbar\")},postRender:function(){var e=this;return e.items().addClass(\"toolbar-item\"),e._super()}})}),r(Gt,[Kt],function(e){return e.extend({Defaults:{role:\"menubar\",containerCls:\"menubar\",ariaRoot:!0,defaults:{type:\"menubutton\"}}})}),r(Xt,[kt,G,Gt],function(e,t,n){function r(e,t){for(;e;){if(t===e)return!0;e=e.parentNode}return!1}var i=e.extend({init:function(e){var t=this;t._renderOpen=!0,t._super(e),t.addClass(\"menubtn\"),e.fixedWidth&&t.addClass(\"fixed-width\"),t.aria(\"haspopup\",!0),t.hasPopup=!0},showMenu:function(){var e=this,n=e.settings,r;return e.menu&&e.menu.visible()?e.hideMenu():(e.menu||(r=n.menu||[],r.length?r={type:\"menu\",items:r}:r.type=r.type||\"menu\",e.menu=t.create(r).parent(e).renderTo(),e.fire(\"createmenu\"),e.menu.reflow(),e.menu.on(\"cancel\",function(t){t.control.parent()===e.menu&&(t.stopPropagation(),e.focus(),e.hideMenu())}),e.menu.on(\"select\",function(){e.focus()}),e.menu.on(\"show hide\",function(t){t.control==e.menu&&e.activeMenu(\"show\"==t.type),e.aria(\"expanded\",\"show\"==t.type)}).fire(\"show\")),e.menu.show(),e.menu.layoutRect({w:e.layoutRect().w}),void e.menu.moveRel(e.getEl(),e.isRtl()?[\"br-tr\",\"tr-br\"]:[\"bl-tl\",\"tl-bl\"]))},hideMenu:function(){var e=this;e.menu&&(e.menu.items().each(function(e){e.hideMenu&&e.hideMenu()}),e.menu.hide())},activeMenu:function(e){this.toggleClass(\"active\",e)},renderHtml:function(){var e=this,t=e._id,r=e.classPrefix,i=e.settings.icon,o;return o=e.settings.image,o?(i=\"none\",\"string\"!=typeof o&&(o=window.getSelection?o[0]:o[1]),o=\" style=\\\"background-image: url('\"+o+\"')\\\"\"):o=\"\",i=e.settings.icon?r+\"ico \"+r+\"i-\"+i:\"\",e.aria(\"role\",e.parent()instanceof n?\"menuitem\":\"button\"),'<div id=\"'+t+'\" class=\"'+e.classes()+'\" tabindex=\"-1\" aria-labelledby=\"'+t+'\"><button id=\"'+t+'-open\" role=\"presentation\" type=\"button\" tabindex=\"-1\">'+(i?'<i class=\"'+i+'\"'+o+\"></i>\":\"\")+\"<span>\"+(e._text?(i?\"\\xa0\":\"\")+e.encode(e._text):\"\")+'</span> <i class=\"'+r+'caret\"></i></button></div>'},postRender:function(){var e=this;return e.on(\"click\",function(t){t.control===e&&r(t.target,e.getEl())&&(e.showMenu(),t.aria&&e.menu.items()[0].focus())}),e.on(\"mouseenter\",function(t){var n=t.control,r=e.parent(),o;n&&r&&n instanceof i&&n.parent()==r&&(r.items().filter(\"MenuButton\").each(function(e){e.hideMenu&&e!=n&&(e.menu&&e.menu.visible()&&(o=!0),e.hideMenu())}),o&&(n.focus(),n.showMenu()))}),e._super()},text:function(e){var t=this,n,r;if(t._rendered)for(r=t.getEl(\"open\").getElementsByTagName(\"span\"),n=0;n<r.length;n++)r[n].innerHTML=(t.settings.icon&&e?\"\\xa0\":\"\")+t.encode(e);return this._super(e)},remove:function(){this._super(),this.menu&&this.menu.remove()}});return i}),r(Jt,[Xt],function(e){return e.extend({init:function(e){function t(r){for(var a=0;a<r.length;a++){if(i=r[a].selected||e.value===r[a].value){o=o||r[a].text,n._value=r[a].value;break}r[a].menu&&t(r[a].menu)}}var n=this,r,i,o,a;n._values=r=e.values,r&&(\"undefined\"!=typeof e.value&&t(r),!i&&r.length>0&&(o=r[0].text,n._value=r[0].value),e.menu=r),e.text=e.text||o||r[0].text,n._super(e),n.addClass(\"listbox\"),n.on(\"select\",function(t){var r=t.control;a&&(t.lastControl=a),e.multiple?r.active(!r.active()):n.value(t.control.settings.value),a=r})},value:function(e){function t(e,n){e.items().each(function(e){i=e.value()===n,i&&(o=o||e.text()),e.active(i),e.menu&&t(e.menu,n)})}function n(t){for(var r=0;r<t.length;r++)i=t[r].value==e,i&&(o=o||t[r].text),t[r].active=i,t[r].menu&&n(t[r].menu)}var r=this,i,o,a;return\"undefined\"!=typeof e&&(r.menu?t(r.menu,e):(a=r.settings.menu,n(a)),r.text(o||this.settings.text)),r._super(e)}})}),r(Qt,[Nt,G,u],function(e,t,n){return e.extend({Defaults:{border:0,role:\"menuitem\"},init:function(e){var t=this;t.hasPopup=!0,t._super(e),e=t.settings,t.addClass(\"menu-item\"),e.menu&&t.addClass(\"menu-item-expand\"),e.preview&&t.addClass(\"menu-item-preview\"),(\"-\"===t._text||\"|\"===t._text)&&(t.addClass(\"menu-item-sep\"),t.aria(\"role\",\"separator\"),t._text=\"-\"),e.selectable&&(t.aria(\"role\",\"menuitemcheckbox\"),t.addClass(\"menu-item-checkbox\"),e.icon=\"selected\"),e.preview||e.selectable||t.addClass(\"menu-item-normal\"),t.on(\"mousedown\",function(e){e.preventDefault()}),e.menu&&!e.ariaHideMenu&&t.aria(\"haspopup\",!0)},hasMenus:function(){return!!this.settings.menu},showMenu:function(){var e=this,n=e.settings,r,i=e.parent();if(i.items().each(function(t){t!==e&&t.hideMenu()}),n.menu){r=e.menu,r?r.show():(r=n.menu,r.length?r={type:\"menu\",items:r}:r.type=r.type||\"menu\",i.settings.itemDefaults&&(r.itemDefaults=i.settings.itemDefaults),r=e.menu=t.create(r).parent(e).renderTo(),r.reflow(),r.on(\"cancel\",function(t){t.stopPropagation(),e.focus(),r.hide()}),r.on(\"show hide\",function(e){e.control.items().each(function(e){e.active(e.settings.selected)})}).fire(\"show\"),r.on(\"hide\",function(t){t.control===r&&e.removeClass(\"selected\")}),r.submenu=!0),r._parentMenu=i,r.addClass(\"menu-sub\");var o=r.testMoveRel(e.getEl(),e.isRtl()?[\"tl-tr\",\"bl-br\",\"tr-tl\",\"br-bl\"]:[\"tr-tl\",\"br-bl\",\"tl-tr\",\"bl-br\"]);r.moveRel(e.getEl(),o),r.rel=o,o=\"menu-sub-\"+o,r.removeClass(r._lastRel),r.addClass(o),r._lastRel=o,e.addClass(\"selected\"),e.aria(\"expanded\",!0)}},hideMenu:function(){var e=this;return e.menu&&(e.menu.items().each(function(e){e.hideMenu&&e.hideMenu()}),e.menu.hide(),e.aria(\"expanded\",!1)),e},renderHtml:function(){var e=this,t=e._id,r=e.settings,i=e.classPrefix,o=e.encode(e._text),a=e.settings.icon,s=\"\",l=r.shortcut;return a&&e.parent().addClass(\"menu-has-icons\"),r.image&&(a=\"none\",s=\" style=\\\"background-image: url('\"+r.image+\"')\\\"\"),l&&n.mac&&(l=l.replace(/ctrl\\+alt\\+/i,\"&#x2325;&#x2318;\"),l=l.replace(/ctrl\\+/i,\"&#x2318;\"),l=l.replace(/alt\\+/i,\"&#x2325;\"),l=l.replace(/shift\\+/i,\"&#x21E7;\")),a=i+\"ico \"+i+\"i-\"+(e.settings.icon||\"none\"),'<div id=\"'+t+'\" class=\"'+e.classes()+'\" tabindex=\"-1\">'+(\"-\"!==o?'<i class=\"'+a+'\"'+s+\"></i>\\xa0\":\"\")+(\"-\"!==o?'<span id=\"'+t+'-text\" class=\"'+i+'text\">'+o+\"</span>\":\"\")+(l?'<div id=\"'+t+'-shortcut\" class=\"'+i+'menu-shortcut\">'+l+\"</div>\":\"\")+(r.menu?'<div class=\"'+i+'caret\"></div>':\"\")+\"</div>\"},postRender:function(){var e=this,t=e.settings,n=t.textStyle;if(\"function\"==typeof n&&(n=n.call(this)),n){var r=e.getEl(\"text\");r&&r.setAttribute(\"style\",n)}return e.on(\"mouseenter click\",function(n){n.control===e&&(t.menu||\"click\"!==n.type?(e.showMenu(),n.aria&&e.menu.focus(!0)):(e.fire(\"select\"),e.parent().hideAll()))}),e._super(),e},active:function(e){return\"undefined\"!=typeof e&&this.aria(\"checked\",e),this._super(e)},remove:function(){this._super(),this.menu&&this.menu.remove()}})}),r(Zt,[rt,Qt,d],function(e,t,n){var r=e.extend({Defaults:{defaultType:\"menuitem\",border:1,layout:\"stack\",role:\"application\",bodyRole:\"menu\",ariaRoot:!0},init:function(e){var t=this;if(e.autohide=!0,e.constrainToViewport=!0,e.itemDefaults)for(var r=e.items,i=r.length;i--;)r[i]=n.extend({},e.itemDefaults,r[i]);t._super(e),t.addClass(\"menu\")},repaint:function(){return this.toggleClass(\"menu-align\",!0),this._super(),this.getEl().style.height=\"\",this.getEl(\"body\").style.height=\"\",this},cancel:function(){var e=this;e.hideAll(),e.fire(\"select\")},hideAll:function(){var e=this;return this.find(\"menuitem\").exec(\"hideMenu\"),e._super()},preRender:function(){var e=this;return e.items().each(function(t){var n=t.settings;return n.icon||n.selectable?(e._hasIcons=!0,!1):void 0}),e._super()}});return r}),r(en,[Tt],function(e){return e.extend({Defaults:{classes:\"radio\",role:\"radio\"}})}),r(tn,[Nt,Q],function(e,t){return e.extend({renderHtml:function(){var e=this,t=e.classPrefix;return e.addClass(\"resizehandle\"),\"both\"==e.settings.direction&&e.addClass(\"resizehandle-both\"),e.canFocus=!1,'<div id=\"'+e._id+'\" class=\"'+e.classes()+'\"><i class=\"'+t+\"ico \"+t+'i-resize\"></i></div>'},postRender:function(){var e=this;e._super(),e.resizeDragHelper=new t(this._id,{start:function(){e.fire(\"ResizeStart\")},drag:function(t){\"both\"!=e.settings.direction&&(t.deltaX=0),e.fire(\"Resize\",t)},stop:function(){e.fire(\"ResizeEnd\")}})},remove:function(){return this.resizeDragHelper&&this.resizeDragHelper.destroy(),this._super()}})}),r(nn,[Nt],function(e){return e.extend({renderHtml:function(){var e=this;return e.addClass(\"spacer\"),e.canFocus=!1,'<div id=\"'+e._id+'\" class=\"'+e.classes()+'\"></div>'}})}),r(rn,[Xt,Y],function(e,t){return e.extend({Defaults:{classes:\"widget btn splitbtn\",role:\"button\"},repaint:function(){var e=this,n=e.getEl(),r=e.layoutRect(),i,o;return e._super(),i=n.firstChild,o=n.lastChild,t.css(i,{width:r.w-t.getSize(o).width,height:r.h-2}),t.css(o,{height:r.h-2}),e},activeMenu:function(e){var n=this;t.toggleClass(n.getEl().lastChild,n.classPrefix+\"active\",e)},renderHtml:function(){var e=this,t=e._id,n=e.classPrefix,r,i=e.settings.icon;return r=e.settings.image,r?(i=\"none\",\"string\"!=typeof r&&(r=window.getSelection?r[0]:r[1]),r=\" style=\\\"background-image: url('\"+r+\"')\\\"\"):r=\"\",i=e.settings.icon?n+\"ico \"+n+\"i-\"+i:\"\",'<div id=\"'+t+'\" class=\"'+e.classes()+'\" role=\"button\" tabindex=\"-1\"><button type=\"button\" hidefocus=\"1\" tabindex=\"-1\">'+(i?'<i class=\"'+i+'\"'+r+\"></i>\":\"\")+(e._text?(i?\" \":\"\")+e._text:\"\")+'</button><button type=\"button\" class=\"'+n+'open\" hidefocus=\"1\" tabindex=\"-1\">'+(e._menuBtnText?(i?\"\\xa0\":\"\")+e._menuBtnText:\"\")+' <i class=\"'+n+'caret\"></i></button></div>'},postRender:function(){var e=this,t=e.settings.onclick;return e.on(\"click\",function(e){var n=e.target;if(e.control==this)for(;n;){if(e.aria&&\"down\"!=e.aria.key||\"BUTTON\"==n.nodeName&&-1==n.className.indexOf(\"open\"))return e.stopImmediatePropagation(),void t.call(this,e);n=n.parentNode}}),delete e.settings.onclick,e._super()}})}),r(on,[Ut],function(e){return e.extend({Defaults:{containerClass:\"stack-layout\",controlClass:\"stack-layout-item\",endClass:\"break\"}})}),r(an,[et,Y],function(e,t){return e.extend({Defaults:{layout:\"absolute\",defaults:{type:\"panel\"}},activateTab:function(e){var n;this.activeTabId&&(n=this.getEl(this.activeTabId),t.removeClass(n,this.classPrefix+\"active\"),n.setAttribute(\"aria-selected\",\"false\")),this.activeTabId=\"t\"+e,n=this.getEl(\"t\"+e),n.setAttribute(\"aria-selected\",\"true\"),t.addClass(n,this.classPrefix+\"active\"),this.items()[e].show().fire(\"showtab\"),this.reflow(),this.items().each(function(t,n){e!=n&&t.hide()})},renderHtml:function(){var e=this,t=e._layout,n=\"\",r=e.classPrefix;return e.preRender(),t.preRender(e),e.items().each(function(t,i){var o=e._id+\"-t\"+i;t.aria(\"role\",\"tabpanel\"),t.aria(\"labelledby\",o),n+='<div id=\"'+o+'\" class=\"'+r+'tab\" unselectable=\"on\" role=\"tab\" aria-controls=\"'+t._id+'\" aria-selected=\"false\" tabIndex=\"-1\">'+e.encode(t.settings.title)+\"</div>\"}),'<div id=\"'+e._id+'\" class=\"'+e.classes()+'\" hidefocus=\"1\" tabindex=\"-1\"><div id=\"'+e._id+'-head\" class=\"'+r+'tabs\" role=\"tablist\">'+n+'</div><div id=\"'+e._id+'-body\" class=\"'+e.classes(\"body\")+'\">'+t.renderHtml(e)+\"</div></div>\"},postRender:function(){var e=this;e._super(),e.settings.activeTab=e.settings.activeTab||0,e.activateTab(e.settings.activeTab),this.on(\"click\",function(t){var n=t.target.parentNode;if(t.target.parentNode.id==e._id+\"-head\")for(var r=n.childNodes.length;r--;)n.childNodes[r]==t.target&&e.activateTab(r)})},initLayoutRect:function(){var e=this,n,r,i;r=t.getSize(e.getEl(\"head\")).width,r=0>r?0:r,i=0,e.items().each(function(e){r=Math.max(r,e.layoutRect().minW),i=Math.max(i,e.layoutRect().minH)}),e.items().each(function(e){e.settings.x=0,e.settings.y=0,e.settings.w=r,e.settings.h=i,e.layoutRect({x:0,y:0,w:r,h:i})});var o=t.getSize(e.getEl(\"head\")).height;return e.settings.minWidth=r,e.settings.minHeight=i+o,n=e._super(),n.deltaH+=o,n.innerH=n.h-n.deltaH,n}})}),r(sn,[Nt,Y],function(e,t){return e.extend({init:function(e){var t=this;t._super(e),t._value=e.value||\"\",t.addClass(\"textbox\"),e.multiline?t.addClass(\"multiline\"):t.on(\"keydown\",function(e){13==e.keyCode&&t.parents().reverse().each(function(t){return e.preventDefault(),t.hasEventListeners(\"submit\")&&t.toJSON?(t.fire(\"submit\",{data:t.toJSON()}),!1):void 0})})},disabled:function(e){var t=this;return t._rendered&&\"undefined\"!=typeof e&&(t.getEl().disabled=e),t._super(e)},value:function(e){var t=this;return\"undefined\"!=typeof e?(t._value=e,t._rendered&&(t.getEl().value=e),t):t._rendered?t.getEl().value:t._value},repaint:function(){var e=this,t,n,r,i=0,o=0,a;t=e.getEl().style,n=e._layoutRect,a=e._lastRepaintRect||{};var s=document;return!e.settings.multiline&&s.all&&(!s.documentMode||s.documentMode<=8)&&(t.lineHeight=n.h-o+\"px\"),r=e._borderBox,i=r.left+r.right+8,o=r.top+r.bottom+(e.settings.multiline?8:0),n.x!==a.x&&(t.left=n.x+\"px\",a.x=n.x),n.y!==a.y&&(t.top=n.y+\"px\",a.y=n.y),n.w!==a.w&&(t.width=n.w-i+\"px\",a.w=n.w),n.h!==a.h&&(t.height=n.h-o+\"px\",a.h=n.h),e._lastRepaintRect=a,e.fire(\"repaint\",{},!1),e},renderHtml:function(){var e=this,t=e._id,n=e.settings,r=e.encode(e._value,!1),i=\"\";return\"spellcheck\"in n&&(i+=' spellcheck=\"'+n.spellcheck+'\"'),n.maxLength&&(i+=' maxlength=\"'+n.maxLength+'\"'),n.size&&(i+=' size=\"'+n.size+'\"'),n.subtype&&(i+=' type=\"'+n.subtype+'\"'),e.disabled()&&(i+=' disabled=\"disabled\"'),n.multiline?'<textarea id=\"'+t+'\" class=\"'+e.classes()+'\" '+(n.rows?' rows=\"'+n.rows+'\"':\"\")+' hidefocus=\"1\"'+i+\">\"+r+\"</textarea>\":'<input id=\"'+t+'\" class=\"'+e.classes()+'\" value=\"'+r+'\" hidefocus=\"1\"'+i+\" />\"},postRender:function(){var e=this;return t.on(e.getEl(),\"change\",function(t){e.fire(\"change\",t)}),e._super()},remove:function(){t.off(this.getEl()),this._super()}})}),r(ln,[Y,K],function(e,t){return function(n,r){var i=this,o,a=t.classPrefix;i.show=function(t){return i.hide(),o=!0,window.setTimeout(function(){o&&n.appendChild(e.createFragment('<div class=\"'+a+\"throbber\"+(r?\" \"+a+\"throbber-inline\":\"\")+'\"></div>'))},t||0),i},i.hide=function(){var e=n.lastChild;return e&&-1!=e.className.indexOf(\"throbber\")&&e.parentNode.removeChild(e),o=!1,i}}}),a([l,c,u,d,f,p,h,m,g,y,b,C,_,E,N,k,S,T,R,A,B,D,L,H,M,O,I,F,z,W,V,U,$,q,j,Y,K,G,X,J,Q,Z,et,tt,nt,rt,it,ot,at,st,lt,ct,ut,dt,ft,pt,ht,mt,gt,vt,yt,bt,Ct,xt,wt,_t,Et,Nt,kt,St,Tt,Rt,At,Bt,Dt,Lt,Ht,Mt,Pt,Ot,It,Ft,zt,Wt,Vt,Ut,$t,qt,jt,Yt,Kt,Gt,Xt,Jt,Qt,Zt,en,tn,nn,rn,on,an,sn,ln])}(this);"
  },
  {
    "path": "l10n/de.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"Vor # Tag\",\n\"# days ago\" : \"Vor # Tagen\",\n\"# hour ago\" : \"Vor # Stunde\",\n\"# hours ago\" : \"Vor # Stunden\",\n\"# minute ago\" : \"Vor # Minute\",\n\"# minutes ago\" : \"Vor # Minuten\",\n\"# month ago\" : \"Vor # Monat\",\n\"# months ago\" : \"Vor # Monaten\",\n\"# second ago\" : \"Vor # Sekunde\",\n\"# seconds ago\" : \"Vor # Sekunden\",\n\"# week ago\" : \"Vor # Woche\",\n\"# weeks ago\" : \"Vor # Wochen\",\n\"# year ago\" : \"Vor # Jahr\",\n\"# years ago\" : \"Vor # Jahren\",\n\"All\" : \"Alles\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Ein nicht gruppierter Eintrag hat denselben Namen wie ein Eintrag in dieser Gruppe.\",\n\"Cancel\" : \"Abbrechen\",\n\"Create\" : \"Erstellen\",\n\"Dismiss\" : \"Verwerfen\",\n\"Filename/group already exists.\" : \"Den Dateinamen oder die Gruppe gibt es schon.\",\n\"Group\" : \"Gruppe\",\n\"Group already exists.\" : \"Diese Gruppe existiert schon.\",\n\"Just now\" : \"Sofort\",\n\"Modified\" : \"Geändert\",\n\"Name\" : \"Name\",\n\"New\" : \"Neu\",\n\"Not grouped\" : \"Nicht gruppiert\",\n\"Note\" : \"Notiz\",\n\"Notes\" : \"Notizen\",\n\"Quick Save\" : \"Schnellspeichern\",\n\"Save\" : \"Speichern\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Mitteilungen sind unauffällig und werden nur für wichtige Nachrichten, wie das Erscheinen von neuen mobilen oder Desktop-Anwendungen, verwendet. Sie werden nicht bei regulären Updates benutzt und können von Ihren Nutzern leicht abgeschaltet werden.\",\n\"Database and folder\" : \"Datenbank und Verzeichnis\",\n\"Database only\" : \"Nur Datenbank\",\n\"Disable announcements\" : \"Mitteilungen abschalten?\",\n\"How would you like to store your notes?\" : \"Wie möchten Sie Ihre Notizen speichern?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Bitte den Verzeichnisnamen für das Speichern von Notizen eingeben, dieser darf keine Schrägstriche '/' enthalten.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Möchten Sie die Mitteilungen ausschalten? (nicht empfohlen)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/de.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"Vor # Tag\",\n\"# days ago\" : \"Vor # Tagen\",\n\"# hour ago\" : \"Vor # Stunde\",\n\"# hours ago\" : \"Vor # Stunden\",\n\"# minute ago\" : \"Vor # Minute\",\n\"# minutes ago\" : \"Vor # Minuten\",\n\"# month ago\" : \"Vor # Monat\",\n\"# months ago\" : \"Vor # Monaten\",\n\"# second ago\" : \"Vor # Sekunde\",\n\"# seconds ago\" : \"Vor # Sekunden\",\n\"# week ago\" : \"Vor # Woche\",\n\"# weeks ago\" : \"Vor # Wochen\",\n\"# year ago\" : \"Vor # Jahr\",\n\"# years ago\" : \"Vor # Jahren\",\n\"All\" : \"Alles\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Ein nicht gruppierter Eintrag hat denselben Namen wie ein Eintrag in dieser Gruppe.\",\n\"Cancel\" : \"Abbrechen\",\n\"Create\" : \"Erstellen\",\n\"Dismiss\" : \"Verwerfen\",\n\"Filename/group already exists.\" : \"Den Dateinamen oder die Gruppe gibt es schon.\",\n\"Group\" : \"Gruppe\",\n\"Group already exists.\" : \"Diese Gruppe existiert schon.\",\n\"Just now\" : \"Sofort\",\n\"Modified\" : \"Geändert\",\n\"Name\" : \"Name\",\n\"New\" : \"Neu\",\n\"Not grouped\" : \"Nicht gruppiert\",\n\"Note\" : \"Notiz\",\n\"Notes\" : \"Notizen\",\n\"Quick Save\" : \"Schnellspeichern\",\n\"Save\" : \"Speichern\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Mitteilungen sind unauffällig und werden nur für wichtige Nachrichten, wie das Erscheinen von neuen mobilen oder Desktop-Anwendungen, verwendet. Sie werden nicht bei regulären Updates benutzt und können von Ihren Nutzern leicht abgeschaltet werden.\",\n\"Database and folder\" : \"Datenbank und Verzeichnis\",\n\"Database only\" : \"Nur Datenbank\",\n\"Disable announcements\" : \"Mitteilungen abschalten?\",\n\"How would you like to store your notes?\" : \"Wie möchten Sie Ihre Notizen speichern?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Bitte den Verzeichnisnamen für das Speichern von Notizen eingeben, dieser darf keine Schrägstriche '/' enthalten.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Möchten Sie die Mitteilungen ausschalten? (nicht empfohlen)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/de.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"Vor # Tag\",\n\"# days ago\" => \"Vor # Tagen\",\n\"# hour ago\" => \"Vor # Stunde\",\n\"# hours ago\" => \"Vor # Stunden\",\n\"# minute ago\" => \"Vor # Minute\",\n\"# minutes ago\" => \"Vor # Minuten\",\n\"# month ago\" => \"Vor # Monat\",\n\"# months ago\" => \"Vor # Monaten\",\n\"# second ago\" => \"Vor # Sekunde\",\n\"# seconds ago\" => \"Vor # Sekunden\",\n\"# week ago\" => \"Vor # Woche\",\n\"# weeks ago\" => \"Vor # Wochen\",\n\"# year ago\" => \"Vor # Jahr\",\n\"# years ago\" => \"Vor # Jahren\",\n\"All\" => \"Alles\",\n\"An ungrouped file has the same name as a file in this group.\" => \"Ein nicht gruppierter Eintrag hat denselben Namen wie ein Eintrag in dieser Gruppe.\",\n\"Cancel\" => \"Abbrechen\",\n\"Create\" => \"Erstellen\",\n\"Dismiss\" => \"Verwerfen\",\n\"Filename/group already exists.\" => \"Den Dateinamen oder die Gruppe gibt es schon.\",\n\"Group\" => \"Gruppe\",\n\"Group already exists.\" => \"Diese Gruppe existiert schon.\",\n\"Just now\" => \"Sofort\",\n\"Modified\" => \"Geändert\",\n\"Name\" => \"Name\",\n\"New\" => \"Neu\",\n\"Not grouped\" => \"Nicht gruppiert\",\n\"Note\" => \"Notiz\",\n\"Notes\" => \"Notizen\",\n\"Quick Save\" => \"Schnellspeichern\",\n\"Save\" => \"Speichern\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Mitteilungen sind unauffällig und werden nur für wichtige Nachrichten, wie das Erscheinen von neuen mobilen oder Desktop-Anwendungen, verwendet. Sie werden nicht bei regulären Updates benutzt und können von Ihren Nutzern leicht abgeschaltet werden.\",\n\"Database and folder\" => \"Datenbank und Verzeichnis\",\n\"Database only\" => \"Nur Datenbank\",\n\"Disable announcements\" => \"Mitteilungen abschalten?\",\n\"How would you like to store your notes?\" => \"Wie möchten Sie Ihre Notizen speichern?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Bitte den Verzeichnisnamen für das Speichern von Notizen eingeben, dieser darf keine Schrägstriche '/' enthalten.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Möchten Sie die Mitteilungen ausschalten? (nicht empfohlen)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/de_DE.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"Vor # Tag\",\n\"# days ago\" : \"Vor # Tagen\",\n\"# hour ago\" : \"Vor # Stunde\",\n\"# hours ago\" : \"Vor # Stunden\",\n\"# minute ago\" : \"Vor # Minute\",\n\"# minutes ago\" : \"Vor # Minuten\",\n\"# month ago\" : \"Vor # Monat\",\n\"# months ago\" : \"Vor # Monaten\",\n\"# second ago\" : \"Vor # Sekunde\",\n\"# seconds ago\" : \"Vor # Sekunden\",\n\"# week ago\" : \"Vor # Woche\",\n\"# weeks ago\" : \"Vor # Wochen\",\n\"# year ago\" : \"Vor # Jahr\",\n\"# years ago\" : \"Vor # Jahren\",\n\"All\" : \"Alles\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Ein nicht gruppierter Eintrag hat denselben Namen wie ein Eintrag in dieser Gruppe.\",\n\"Cancel\" : \"Abbrechen\",\n\"Create\" : \"Erstellen\",\n\"Dismiss\" : \"Verwerfen\",\n\"Filename/group already exists.\" : \"Den Dateinamen oder die Gruppe gibt es schon.\",\n\"Group\" : \"Gruppe\",\n\"Group already exists.\" : \"Diese Gruppe existiert schon.\",\n\"Just now\" : \"Sofort\",\n\"Modified\" : \"Geändert\",\n\"Name\" : \"Name\",\n\"New\" : \"Neu\",\n\"Not grouped\" : \"Nicht gruppiert\",\n\"Note\" : \"Notiz\",\n\"Notes\" : \"Notizen\",\n\"Quick Save\" : \"Schnellspeichern\",\n\"Save\" : \"Speichern\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Mitteilungen sind unauffällig und werden nur für wichtige Nachrichten, wie das Erscheinen von neuen mobilen oder Desktop-Anwendungen, verwendet. Sie werden nicht bei regulären Updates benutzt und können von Ihren Nutzern leicht abgeschaltet werden.\",\n\"Database and folder\" : \"Datenbank und Verzeichnis\",\n\"Database only\" : \"Nur Datenbank\",\n\"Disable announcements\" : \"Mitteilungen abschalten?\",\n\"How would you like to store your notes?\" : \"Wie möchten Sie Ihre Notizen speichern?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Bitte den Verzeichnisnamen für das Speichern von Notizen eingeben, dieser darf keine Schrägstriche '/' enthalten.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Möchten Sie die Mitteilungen ausschalten? (nicht empfohlen)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/de_DE.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"Vor # Tag\",\n\"# days ago\" : \"Vor # Tagen\",\n\"# hour ago\" : \"Vor # Stunde\",\n\"# hours ago\" : \"Vor # Stunden\",\n\"# minute ago\" : \"Vor # Minute\",\n\"# minutes ago\" : \"Vor # Minuten\",\n\"# month ago\" : \"Vor # Monat\",\n\"# months ago\" : \"Vor # Monaten\",\n\"# second ago\" : \"Vor # Sekunde\",\n\"# seconds ago\" : \"Vor # Sekunden\",\n\"# week ago\" : \"Vor # Woche\",\n\"# weeks ago\" : \"Vor # Wochen\",\n\"# year ago\" : \"Vor # Jahr\",\n\"# years ago\" : \"Vor # Jahren\",\n\"All\" : \"Alles\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Ein nicht gruppierter Eintrag hat denselben Namen wie ein Eintrag in dieser Gruppe.\",\n\"Cancel\" : \"Abbrechen\",\n\"Create\" : \"Erstellen\",\n\"Dismiss\" : \"Verwerfen\",\n\"Filename/group already exists.\" : \"Den Dateinamen oder die Gruppe gibt es schon.\",\n\"Group\" : \"Gruppe\",\n\"Group already exists.\" : \"Diese Gruppe existiert schon.\",\n\"Just now\" : \"Sofort\",\n\"Modified\" : \"Geändert\",\n\"Name\" : \"Name\",\n\"New\" : \"Neu\",\n\"Not grouped\" : \"Nicht gruppiert\",\n\"Note\" : \"Notiz\",\n\"Notes\" : \"Notizen\",\n\"Quick Save\" : \"Schnellspeichern\",\n\"Save\" : \"Speichern\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Mitteilungen sind unauffällig und werden nur für wichtige Nachrichten, wie das Erscheinen von neuen mobilen oder Desktop-Anwendungen, verwendet. Sie werden nicht bei regulären Updates benutzt und können von Ihren Nutzern leicht abgeschaltet werden.\",\n\"Database and folder\" : \"Datenbank und Verzeichnis\",\n\"Database only\" : \"Nur Datenbank\",\n\"Disable announcements\" : \"Mitteilungen abschalten?\",\n\"How would you like to store your notes?\" : \"Wie möchten Sie Ihre Notizen speichern?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Bitte den Verzeichnisnamen für das Speichern von Notizen eingeben, dieser darf keine Schrägstriche '/' enthalten.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Möchten Sie die Mitteilungen ausschalten? (nicht empfohlen)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/de_DE.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"Vor # Tag\",\n\"# days ago\" => \"Vor # Tagen\",\n\"# hour ago\" => \"Vor # Stunde\",\n\"# hours ago\" => \"Vor # Stunden\",\n\"# minute ago\" => \"Vor # Minute\",\n\"# minutes ago\" => \"Vor # Minuten\",\n\"# month ago\" => \"Vor # Monat\",\n\"# months ago\" => \"Vor # Monaten\",\n\"# second ago\" => \"Vor # Sekunde\",\n\"# seconds ago\" => \"Vor # Sekunden\",\n\"# week ago\" => \"Vor # Woche\",\n\"# weeks ago\" => \"Vor # Wochen\",\n\"# year ago\" => \"Vor # Jahr\",\n\"# years ago\" => \"Vor # Jahren\",\n\"All\" => \"Alles\",\n\"An ungrouped file has the same name as a file in this group.\" => \"Ein nicht gruppierter Eintrag hat denselben Namen wie ein Eintrag in dieser Gruppe.\",\n\"Cancel\" => \"Abbrechen\",\n\"Create\" => \"Erstellen\",\n\"Dismiss\" => \"Verwerfen\",\n\"Filename/group already exists.\" => \"Den Dateinamen oder die Gruppe gibt es schon.\",\n\"Group\" => \"Gruppe\",\n\"Group already exists.\" => \"Diese Gruppe existiert schon.\",\n\"Just now\" => \"Sofort\",\n\"Modified\" => \"Geändert\",\n\"Name\" => \"Name\",\n\"New\" => \"Neu\",\n\"Not grouped\" => \"Nicht gruppiert\",\n\"Note\" => \"Notiz\",\n\"Notes\" => \"Notizen\",\n\"Quick Save\" => \"Schnellspeichern\",\n\"Save\" => \"Speichern\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Mitteilungen sind unauffällig und werden nur für wichtige Nachrichten, wie das Erscheinen von neuen mobilen oder Desktop-Anwendungen, verwendet. Sie werden nicht bei regulären Updates benutzt und können von Ihren Nutzern leicht abgeschaltet werden.\",\n\"Database and folder\" => \"Datenbank und Verzeichnis\",\n\"Database only\" => \"Nur Datenbank\",\n\"Disable announcements\" => \"Mitteilungen abschalten?\",\n\"How would you like to store your notes?\" => \"Wie möchten Sie Ihre Notizen speichern?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Bitte den Verzeichnisnamen für das Speichern von Notizen eingeben, dieser darf keine Schrägstriche '/' enthalten.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Möchten Sie die Mitteilungen ausschalten? (nicht empfohlen)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/en.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/en.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/en.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/en_AU.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/en_AU.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/en_AU.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/en_US.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/en_US.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/en_US.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/es.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# día atrás\",\n\"# days ago\" : \"# días atrás\",\n\"# hour ago\" : \"# hora atrás\",\n\"# hours ago\" : \"# horas atrás\",\n\"# minute ago\" : \"# minuto atrás\",\n\"# minutes ago\" : \"# minutos atrás\",\n\"# month ago\" : \"# mes atrás\",\n\"# months ago\" : \"# meses atrás\",\n\"# second ago\" : \"# segundo atrás\",\n\"# seconds ago\" : \"# segundos atrás\",\n\"# week ago\" : \"# semana atrás\",\n\"# weeks ago\" : \"# semanas atrás\",\n\"# year ago\" : \"# año atrás\",\n\"# years ago\" : \"# años atrás\",\n\"All\" : \"Todo\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Un archivo sin grupo tiene el mismo nombre que un archivo en este grupo.\",\n\"Cancel\" : \"Cancelar\",\n\"Create\" : \"Crear\",\n\"Dismiss\" : \"Descartar\",\n\"Filename/group already exists.\" : \"Nombre de archivo/Grupo ya existe.\",\n\"Group\" : \"Grupo\",\n\"Group already exists.\" : \"El grupo ya existe.\",\n\"Just now\" : \"Justo ahora\",\n\"Modified\" : \"Modificado\",\n\"Name\" : \"Nombre\",\n\"New\" : \"Nuevo\",\n\"Not grouped\" : \"Sin grupo\",\n\"Note\" : \"Nota\",\n\"Notes\" : \"Notas\",\n\"Quick Save\" : \"Guardar Rápido\",\n\"Save\" : \"Guardar\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Los anuncios son discretos y sólo se utiliza para las notificaciones importantes, tales como el lanzamiento de una nueva aplicación móvil o de escritorio. No van a ser utilizadas para las actualizaciones regulares, y son fácilmente descartables.\",\n\"Database and folder\" : \"Base de datos y carpetas\",\n\"Database only\" : \"Base de datos solo\",\n\"Disable announcements\" : \"Desactivar anuncios\",\n\"How would you like to store your notes?\" : \"¿Cómo le gustaría para guardar sus notas?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Por favor introduzca el nombre de la carpeta que desea utilizar para almacenar sus notas, sin espacios.\",\n\"Would you like to disable announcements? (not recommended)\" : \"¿Quieres desactivar los anuncios? (no recomendado)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/es.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# día atrás\",\n\"# days ago\" : \"# días atrás\",\n\"# hour ago\" : \"# hora atrás\",\n\"# hours ago\" : \"# horas atrás\",\n\"# minute ago\" : \"# minuto atrás\",\n\"# minutes ago\" : \"# minutos atrás\",\n\"# month ago\" : \"# mes atrás\",\n\"# months ago\" : \"# meses atrás\",\n\"# second ago\" : \"# segundo atrás\",\n\"# seconds ago\" : \"# segundos atrás\",\n\"# week ago\" : \"# semana atrás\",\n\"# weeks ago\" : \"# semanas atrás\",\n\"# year ago\" : \"# año atrás\",\n\"# years ago\" : \"# años atrás\",\n\"All\" : \"Todo\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Un archivo sin grupo tiene el mismo nombre que un archivo en este grupo.\",\n\"Cancel\" : \"Cancelar\",\n\"Create\" : \"Crear\",\n\"Dismiss\" : \"Descartar\",\n\"Filename/group already exists.\" : \"Nombre de archivo/Grupo ya existe.\",\n\"Group\" : \"Grupo\",\n\"Group already exists.\" : \"El grupo ya existe.\",\n\"Just now\" : \"Justo ahora\",\n\"Modified\" : \"Modificado\",\n\"Name\" : \"Nombre\",\n\"New\" : \"Nuevo\",\n\"Not grouped\" : \"Sin grupo\",\n\"Note\" : \"Nota\",\n\"Notes\" : \"Notas\",\n\"Quick Save\" : \"Guardar Rápido\",\n\"Save\" : \"Guardar\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Los anuncios son discretos y sólo se utiliza para las notificaciones importantes, tales como el lanzamiento de una nueva aplicación móvil o de escritorio. No van a ser utilizadas para las actualizaciones regulares, y son fácilmente descartables.\",\n\"Database and folder\" : \"Base de datos y carpetas\",\n\"Database only\" : \"Base de datos solo\",\n\"Disable announcements\" : \"Desactivar anuncios\",\n\"How would you like to store your notes?\" : \"¿Cómo le gustaría para guardar sus notas?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Por favor introduzca el nombre de la carpeta que desea utilizar para almacenar sus notas, sin espacios.\",\n\"Would you like to disable announcements? (not recommended)\" : \"¿Quieres desactivar los anuncios? (no recomendado)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/es.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# día atrás\",\n\"# days ago\" => \"# días atrás\",\n\"# hour ago\" => \"# hora atrás\",\n\"# hours ago\" => \"# horas atrás\",\n\"# minute ago\" => \"# minuto atrás\",\n\"# minutes ago\" => \"# minutos atrás\",\n\"# month ago\" => \"# mes atrás\",\n\"# months ago\" => \"# meses atrás\",\n\"# second ago\" => \"# segundo atrás\",\n\"# seconds ago\" => \"# segundos atrás\",\n\"# week ago\" => \"# semana atrás\",\n\"# weeks ago\" => \"# semanas atrás\",\n\"# year ago\" => \"# año atrás\",\n\"# years ago\" => \"# años atrás\",\n\"All\" => \"Todo\",\n\"An ungrouped file has the same name as a file in this group.\" => \"Un archivo sin grupo tiene el mismo nombre que un archivo en este grupo.\",\n\"Cancel\" => \"Cancelar\",\n\"Create\" => \"Crear\",\n\"Dismiss\" => \"Descartar\",\n\"Filename/group already exists.\" => \"Nombre de archivo/Grupo ya existe.\",\n\"Group\" => \"Grupo\",\n\"Group already exists.\" => \"El grupo ya existe.\",\n\"Just now\" => \"Justo ahora\",\n\"Modified\" => \"Modificado\",\n\"Name\" => \"Nombre\",\n\"New\" => \"Nuevo\",\n\"Not grouped\" => \"Sin grupo\",\n\"Note\" => \"Nota\",\n\"Notes\" => \"Notas\",\n\"Quick Save\" => \"Guardar Rápido\",\n\"Save\" => \"Guardar\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Los anuncios son discretos y sólo se utiliza para las notificaciones importantes, tales como el lanzamiento de una nueva aplicación móvil o de escritorio. No van a ser utilizadas para las actualizaciones regulares, y son fácilmente descartables.\",\n\"Database and folder\" => \"Base de datos y carpetas\",\n\"Database only\" => \"Base de datos solo\",\n\"Disable announcements\" => \"Desactivar anuncios\",\n\"How would you like to store your notes?\" => \"¿Cómo le gustaría para guardar sus notas?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Por favor introduzca el nombre de la carpeta que desea utilizar para almacenar sus notas, sin espacios.\",\n\"Would you like to disable announcements? (not recommended)\" => \"¿Quieres desactivar los anuncios? (no recomendado)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/es_ES.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/es_ES.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/es_ES.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/fr.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"Il y a # jour\",\n\"# days ago\" : \"Il y a # jours\",\n\"# hour ago\" : \"Il y a # heure\",\n\"# hours ago\" : \"Il y a # heures\",\n\"# minute ago\" : \"Il y a # minute\",\n\"# minutes ago\" : \"Il y a # minutes\",\n\"# month ago\" : \"Il y a # mois\",\n\"# months ago\" : \"Il y a # mois\",\n\"# second ago\" : \"Il y a # seconde\",\n\"# seconds ago\" : \"Il y a # secondes\",\n\"# week ago\" : \"Il y a # semaine\",\n\"# weeks ago\" : \"Il y a # semaines\",\n\"# year ago\" : \"Il y a # an\",\n\"# years ago\" : \"Il y a # ans\",\n\"All\" : \"Tous\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Un fichier non groupé a le même nom qu'un fichier de ce groupe.\",\n\"Cancel\" : \"Annuler\",\n\"Create\" : \"Créer\",\n\"Dismiss\" : \"Annuler\",\n\"Filename/group already exists.\" : \"Le nom de fichier/groupe existe déjà.\",\n\"Group\" : \"Groupe\",\n\"Group already exists.\" : \"Le groupe existe déjà.\",\n\"Just now\" : \"À l'instant\",\n\"Modified\" : \"Modifié\",\n\"Name\" : \"Nom\",\n\"New\" : \"Nouveau\",\n\"Not grouped\" : \"Non groupés\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Sauvegarde rapide\",\n\"Save\" : \"Sauvegarder\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Les annonces sont discrètes et ne sont utilisées que pour les notifications importantes comme la sortie d'une nouvelle version d'application mobile ou desktop. Elles ne seront pas utilisées pour les mises à jours regulières et sont facilement désactivables par vos utilisateurs.\",\n\"Database and folder\" : \"Base de données et répertoire\",\n\"Database only\" : \"Base de données seulement\",\n\"Disable announcements\" : \"Désactiver les annonces\",\n\"How would you like to store your notes?\" : \"Comment voulez-vous sauvegarder vos notes ?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Entrez le nom du répertoire dans lequel sauvegarder les notes, sans slash '/'.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Voulez-vous désactiver les annonces ? (pas recommandé)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/fr.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"Il y a # jour\",\n\"# days ago\" : \"Il y a # jours\",\n\"# hour ago\" : \"Il y a # heure\",\n\"# hours ago\" : \"Il y a # heures\",\n\"# minute ago\" : \"Il y a # minute\",\n\"# minutes ago\" : \"Il y a # minutes\",\n\"# month ago\" : \"Il y a # mois\",\n\"# months ago\" : \"Il y a # mois\",\n\"# second ago\" : \"Il y a # seconde\",\n\"# seconds ago\" : \"Il y a # secondes\",\n\"# week ago\" : \"Il y a # semaine\",\n\"# weeks ago\" : \"Il y a # semaines\",\n\"# year ago\" : \"Il y a # an\",\n\"# years ago\" : \"Il y a # ans\",\n\"All\" : \"Tous\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Un fichier non groupé a le même nom qu'un fichier de ce groupe.\",\n\"Cancel\" : \"Annuler\",\n\"Create\" : \"Créer\",\n\"Dismiss\" : \"Annuler\",\n\"Filename/group already exists.\" : \"Le nom de fichier/groupe existe déjà.\",\n\"Group\" : \"Groupe\",\n\"Group already exists.\" : \"Le groupe existe déjà.\",\n\"Just now\" : \"À l'instant\",\n\"Modified\" : \"Modifié\",\n\"Name\" : \"Nom\",\n\"New\" : \"Nouveau\",\n\"Not grouped\" : \"Non groupés\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Sauvegarde rapide\",\n\"Save\" : \"Sauvegarder\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Les annonces sont discrètes et ne sont utilisées que pour les notifications importantes comme la sortie d'une nouvelle version d'application mobile ou desktop. Elles ne seront pas utilisées pour les mises à jours regulières et sont facilement désactivables par vos utilisateurs.\",\n\"Database and folder\" : \"Base de données et répertoire\",\n\"Database only\" : \"Base de données seulement\",\n\"Disable announcements\" : \"Désactiver les annonces\",\n\"How would you like to store your notes?\" : \"Comment voulez-vous sauvegarder vos notes ?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Entrez le nom du répertoire dans lequel sauvegarder les notes, sans slash '/'.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Voulez-vous désactiver les annonces ? (pas recommandé)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/fr.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"Il y a # jour\",\n\"# days ago\" => \"Il y a # jours\",\n\"# hour ago\" => \"Il y a # heure\",\n\"# hours ago\" => \"Il y a # heures\",\n\"# minute ago\" => \"Il y a # minute\",\n\"# minutes ago\" => \"Il y a # minutes\",\n\"# month ago\" => \"Il y a # mois\",\n\"# months ago\" => \"Il y a # mois\",\n\"# second ago\" => \"Il y a # seconde\",\n\"# seconds ago\" => \"Il y a # secondes\",\n\"# week ago\" => \"Il y a # semaine\",\n\"# weeks ago\" => \"Il y a # semaines\",\n\"# year ago\" => \"Il y a # an\",\n\"# years ago\" => \"Il y a # ans\",\n\"All\" => \"Tous\",\n\"An ungrouped file has the same name as a file in this group.\" => \"Un fichier non groupé a le même nom qu'un fichier de ce groupe.\",\n\"Cancel\" => \"Annuler\",\n\"Create\" => \"Créer\",\n\"Dismiss\" => \"Annuler\",\n\"Filename/group already exists.\" => \"Le nom de fichier/groupe existe déjà.\",\n\"Group\" => \"Groupe\",\n\"Group already exists.\" => \"Le groupe existe déjà.\",\n\"Just now\" => \"À l'instant\",\n\"Modified\" => \"Modifié\",\n\"Name\" => \"Nom\",\n\"New\" => \"Nouveau\",\n\"Not grouped\" => \"Non groupés\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Sauvegarde rapide\",\n\"Save\" => \"Sauvegarder\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Les annonces sont discrètes et ne sont utilisées que pour les notifications importantes comme la sortie d'une nouvelle version d'application mobile ou desktop. Elles ne seront pas utilisées pour les mises à jours regulières et sont facilement désactivables par vos utilisateurs.\",\n\"Database and folder\" => \"Base de données et répertoire\",\n\"Database only\" => \"Base de données seulement\",\n\"Disable announcements\" => \"Désactiver les annonces\",\n\"How would you like to store your notes?\" => \"Comment voulez-vous sauvegarder vos notes ?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Entrez le nom du répertoire dans lequel sauvegarder les notes, sans slash '/'.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Voulez-vous désactiver les annonces (pas recommandé)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/fr_BE.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/fr_BE.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/fr_BE.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/gl.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/gl.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/gl.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/gl_ES.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/gl_ES.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/gl_ES.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/id.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/id.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/id.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/id_ID.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/id_ID.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/id_ID.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/it.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/it.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/it.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/it_IT.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/it_IT.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/it_IT.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/ja.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"#日前\",\n\"# days ago\" : \"#日前\",\n\"# hour ago\" : \"#時前\",\n\"# hours ago\" : \"#時前\",\n\"# minute ago\" : \"#分前\",\n\"# minutes ago\" : \"#分前\",\n\"# month ago\" : \"#月前\",\n\"# months ago\" : \"#月前\",\n\"# second ago\" : \"#秒前\",\n\"# seconds ago\" : \"#秒前\",\n\"# week ago\" : \"#週前\",\n\"# weeks ago\" : \"#週前\",\n\"# year ago\" : \"#年前\",\n\"# years ago\" : \"#年前\",\n\"All\" : \"全て\",\n\"An ungrouped file has the same name as a file in this group.\" : \"未グループのファイルはグループされたファイルと同名になってます。\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"ファイル名・グループはすでに存在します。\",\n\"Group\" : \"グループ\",\n\"Group already exists.\" : \"グループはすでに存在します。\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"編集\",\n\"Name\" : \"ノート名\",\n\"New\" : \"新ノート\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"ノート\",\n\"Notes\" : \"ノート\",\n\"Quick Save\" : \"クイック保存\",\n\"Save\" : \"保存\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"データベースとフォルダー\",\n\"Database only\" : \"データベースのみ\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"ノートの保存先のフォルダー名を入力してください。\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/ja.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"#日前\",\n\"# days ago\" : \"#日前\",\n\"# hour ago\" : \"#時前\",\n\"# hours ago\" : \"#時前\",\n\"# minute ago\" : \"#分前\",\n\"# minutes ago\" : \"#分前\",\n\"# month ago\" : \"#月前\",\n\"# months ago\" : \"#月前\",\n\"# second ago\" : \"#秒前\",\n\"# seconds ago\" : \"#秒前\",\n\"# week ago\" : \"#週前\",\n\"# weeks ago\" : \"#週前\",\n\"# year ago\" : \"#年前\",\n\"# years ago\" : \"#年前\",\n\"All\" : \"全て\",\n\"An ungrouped file has the same name as a file in this group.\" : \"未グループのファイルはグループされたファイルと同名になってます。\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"ファイル名・グループはすでに存在します。\",\n\"Group\" : \"グループ\",\n\"Group already exists.\" : \"グループはすでに存在します。\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"編集\",\n\"Name\" : \"ノート名\",\n\"New\" : \"新ノート\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"ノート\",\n\"Notes\" : \"ノート\",\n\"Quick Save\" : \"クイック保存\",\n\"Save\" : \"保存\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"データベースとフォルダー\",\n\"Database only\" : \"データベースのみ\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"ノートの保存先のフォルダー名を入力してください。\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/ja.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"#日前\",\n\"# days ago\" => \"#日前\",\n\"# hour ago\" => \"#時前\",\n\"# hours ago\" => \"#時前\",\n\"# minute ago\" => \"#分前\",\n\"# minutes ago\" => \"#分前\",\n\"# month ago\" => \"#月前\",\n\"# months ago\" => \"#月前\",\n\"# second ago\" => \"#秒前\",\n\"# seconds ago\" => \"#秒前\",\n\"# week ago\" => \"#週前\",\n\"# weeks ago\" => \"#週前\",\n\"# year ago\" => \"#年前\",\n\"# years ago\" => \"#年前\",\n\"All\" => \"全て\",\n\"An ungrouped file has the same name as a file in this group.\" => \"未グループのファイルはグループされたファイルと同名になってます。\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"ファイル名・グループはすでに存在します。\",\n\"Group\" => \"グループ\",\n\"Group already exists.\" => \"グループはすでに存在します。\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"編集\",\n\"Name\" => \"ノート名\",\n\"New\" => \"新ノート\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"ノート\",\n\"Notes\" => \"ノート\",\n\"Quick Save\" => \"クイック保存\",\n\"Save\" => \"保存\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"データベースとフォルダー\",\n\"Database only\" => \"データベースのみ\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"ノートの保存先のフォルダー名を入力してください。\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/lb.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/lb.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/lb.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/nl.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/nl.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/nl.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/pl.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# dzień temu\",\n\"# days ago\" : \"# dni temu\",\n\"# hour ago\" : \"# godzinę temu\",\n\"# hours ago\" : \"# godz. temu\",\n\"# minute ago\" : \"# minutę temu\",\n\"# minutes ago\" : \"# min. temu\",\n\"# month ago\" : \"# miesiąc temu\",\n\"# months ago\" : \"# mies. temu\",\n\"# second ago\" : \"# sekundę temu\",\n\"# seconds ago\" : \"# sek. temu\",\n\"# week ago\" : \"# tydzień temu\",\n\"# weeks ago\" : \"# tyg. temu\",\n\"# year ago\" : \"# rok temu\",\n\"# years ago\" : \"# lat temu\",\n\"All\" : \"Wszystko\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Niezgrupowany plik ma taką samą nazwę jak plik z tej grupy.\",\n\"Cancel\" : \"Anuluj\",\n\"Create\" : \"Utwórz\",\n\"Dismiss\" : \"Odrzuć\",\n\"Filename/group already exists.\" : \"Nazwa pliku/grupy już istnieje.\",\n\"Group\" : \"Grupa\",\n\"Group already exists.\" : \"Grupa już istnieje.\",\n\"Just now\" : \"Tylko teraz\",\n\"Modified\" : \"Zmodyfikowano\",\n\"Name\" : \"Nazwa\",\n\"New\" : \"Nowy\",\n\"Not grouped\" : \"Bez grupy\",\n\"Note\" : \"Notatka\",\n\"Notes\" : \"Notatki\",\n\"Quick Save\" : \"Szybki zapis\",\n\"Save\" : \"Zapisz\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Powiadomienia są dyskretne i wykorzystywane wyłącznie do informowania o wydaniu głównych wersji aplikacji dla telefonu lub komputera. Nie będą wykorzystywane do informowania o regularnych aktualizacjach i użytkownik może łatwo je wyłączyć.\",\n\"Database and folder\" : \"Baza danych i folder\",\n\"Database only\" : \"Tylko baza danych\",\n\"Disable announcements\" : \"Wyłącz powiadomienia\",\n\"How would you like to store your notes?\" : \"Jak chcesz zapisać swoje notatki?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Proszę wpisz nazwę foldera, którego chcesz użyć do przechowywania notatek. Nie używaj ukośników.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Chcesz wyłączyć komunikaty? (niezalecane)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/pl.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# dzień temu\",\n\"# days ago\" : \"# dni temu\",\n\"# hour ago\" : \"# godzinę temu\",\n\"# hours ago\" : \"# godz. temu\",\n\"# minute ago\" : \"# minutę temu\",\n\"# minutes ago\" : \"# min. temu\",\n\"# month ago\" : \"# miesiąc temu\",\n\"# months ago\" : \"# mies. temu\",\n\"# second ago\" : \"# sekundę temu\",\n\"# seconds ago\" : \"# sek. temu\",\n\"# week ago\" : \"# tydzień temu\",\n\"# weeks ago\" : \"# tyg. temu\",\n\"# year ago\" : \"# rok temu\",\n\"# years ago\" : \"# lat temu\",\n\"All\" : \"Wszystko\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Niezgrupowany plik ma taką samą nazwę jak plik z tej grupy.\",\n\"Cancel\" : \"Anuluj\",\n\"Create\" : \"Utwórz\",\n\"Dismiss\" : \"Odrzuć\",\n\"Filename/group already exists.\" : \"Nazwa pliku/grupy już istnieje.\",\n\"Group\" : \"Grupa\",\n\"Group already exists.\" : \"Grupa już istnieje.\",\n\"Just now\" : \"Tylko teraz\",\n\"Modified\" : \"Zmodyfikowano\",\n\"Name\" : \"Nazwa\",\n\"New\" : \"Nowy\",\n\"Not grouped\" : \"Bez grupy\",\n\"Note\" : \"Notatka\",\n\"Notes\" : \"Notatki\",\n\"Quick Save\" : \"Szybki zapis\",\n\"Save\" : \"Zapisz\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Powiadomienia są dyskretne i wykorzystywane wyłącznie do informowania o wydaniu głównych wersji aplikacji dla telefonu lub komputera. Nie będą wykorzystywane do informowania o regularnych aktualizacjach i użytkownik może łatwo je wyłączyć.\",\n\"Database and folder\" : \"Baza danych i folder\",\n\"Database only\" : \"Tylko baza danych\",\n\"Disable announcements\" : \"Wyłącz powiadomienia\",\n\"How would you like to store your notes?\" : \"Jak chcesz zapisać swoje notatki?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Proszę wpisz nazwę foldera, którego chcesz użyć do przechowywania notatek. Nie używaj ukośników.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Chcesz wyłączyć komunikaty? (niezalecane)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/pl.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# dzień temu\",\n\"# days ago\" => \"# dni temu\",\n\"# hour ago\" => \"# godzinę temu\",\n\"# hours ago\" => \"# godz. temu\",\n\"# minute ago\" => \"# minutę temu\",\n\"# minutes ago\" => \"# min. temu\",\n\"# month ago\" => \"# miesiąc temu\",\n\"# months ago\" => \"# mies. temu\",\n\"# second ago\" => \"# sekundę temu\",\n\"# seconds ago\" => \"# sek. temu\",\n\"# week ago\" => \"# tydzień temu\",\n\"# weeks ago\" => \"# tyg. temu\",\n\"# year ago\" => \"# rok temu\",\n\"# years ago\" => \"# lat temu\",\n\"All\" => \"Wszystko\",\n\"An ungrouped file has the same name as a file in this group.\" => \"Niezgrupowany plik ma taką samą nazwę jak plik z tej grupy.\",\n\"Cancel\" => \"Anuluj\",\n\"Create\" => \"Utwórz\",\n\"Dismiss\" => \"Odrzuć\",\n\"Filename/group already exists.\" => \"Nazwa pliku/grupy już istnieje.\",\n\"Group\" => \"Grupa\",\n\"Group already exists.\" => \"Grupa już istnieje.\",\n\"Just now\" => \"Tylko teraz\",\n\"Modified\" => \"Zmodyfikowano\",\n\"Name\" => \"Nazwa\",\n\"New\" => \"Nowy\",\n\"Not grouped\" => \"Bez grupy\",\n\"Note\" => \"Notatka\",\n\"Notes\" => \"Notatki\",\n\"Quick Save\" => \"Szybki zapis\",\n\"Save\" => \"Zapisz\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Powiadomienia są dyskretne i wykorzystywane wyłącznie do informowania o wydaniu głównych wersji aplikacji dla telefonu lub komputera. Nie będą wykorzystywane do informowania o regularnych aktualizacjach i użytkownik może łatwo je wyłączyć.\",\n\"Database and folder\" => \"Baza danych i folder\",\n\"Database only\" => \"Tylko baza danych\",\n\"Disable announcements\" => \"Wyłącz powiadomienia\",\n\"How would you like to store your notes?\" => \"Jak chcesz zapisać swoje notatki?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Proszę wpisz nazwę foldera, którego chcesz użyć do przechowywania notatek. Nie używaj ukośników.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Chcesz wyłączyć komunikaty? (niezalecane)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/pl_PL.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/pl_PL.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/pl_PL.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/pt_BR.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/pt_BR.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/pt_BR.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/ru.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# день назад\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# час назад\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# минуту назад\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# месяц назад\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# секунду назад\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# неделю назад\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# год назад\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"Все\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Файл без группы имеет такое же название, что и файл в этой группе.\",\n\"Cancel\" : \"Отмена\",\n\"Create\" : \"Создать\",\n\"Dismiss\" : \"Отменить\",\n\"Filename/group already exists.\" : \"Имя файла/группы уже существует.\",\n\"Group\" : \"Группа\",\n\"Group already exists.\" : \"Группа уже существует.\",\n\"Just now\" : \"Только что\",\n\"Modified\" : \"Изменено\",\n\"Name\" : \"Имя\",\n\"New\" : \"Новая\",\n\"Not grouped\" : \"Нет группы\",\n\"Note\" : \"Заметка\",\n\"Notes\" : \"Заметки\",\n\"Quick Save\" : \"Быстрое сохранение\",\n\"Save\" : \"Сохранение\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Уведомления ненавязчивы и используются только для информирования о важных вещах, таких как релиз мобильного или настольного клиента. Они не будут использоваться для оповещения об обновлениях, и легко отключаются вашими пользователями.\",\n\"Database and folder\" : \"База данных и папка\",\n\"Database only\" : \"Только база данных\",\n\"Disable announcements\" : \"Отключить уведомления\",\n\"How would you like to store your notes?\" : \"Где вы желаете хранить свои заметки?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Пожалуйста, введите имя папки, где вы желаете хранить заметки, без слешей.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Вы желаете отключить уведомления? (Не рекомендуется)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/ru.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# день назад\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# час назад\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# минуту назад\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# месяц назад\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# секунду назад\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# неделю назад\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# год назад\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"Все\",\n\"An ungrouped file has the same name as a file in this group.\" : \"Файл без группы имеет такое же название, что и файл в этой группе.\",\n\"Cancel\" : \"Отмена\",\n\"Create\" : \"Создать\",\n\"Dismiss\" : \"Отменить\",\n\"Filename/group already exists.\" : \"Имя файла/группы уже существует.\",\n\"Group\" : \"Группа\",\n\"Group already exists.\" : \"Группа уже существует.\",\n\"Just now\" : \"Только что\",\n\"Modified\" : \"Изменено\",\n\"Name\" : \"Имя\",\n\"New\" : \"Новая\",\n\"Not grouped\" : \"Нет группы\",\n\"Note\" : \"Заметка\",\n\"Notes\" : \"Заметки\",\n\"Quick Save\" : \"Быстрое сохранение\",\n\"Save\" : \"Сохранение\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Уведомления ненавязчивы и используются только для информирования о важных вещах, таких как релиз мобильного или настольного клиента. Они не будут использоваться для оповещения об обновлениях, и легко отключаются вашими пользователями.\",\n\"Database and folder\" : \"База данных и папка\",\n\"Database only\" : \"Только база данных\",\n\"Disable announcements\" : \"Отключить уведомления\",\n\"How would you like to store your notes?\" : \"Где вы желаете хранить свои заметки?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Пожалуйста, введите имя папки, где вы желаете хранить заметки, без слешей.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Вы желаете отключить уведомления? (Не рекомендуется)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/ru.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# день назад\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# час назад\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# минуту назад\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# месяц назад\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# секунду назад\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# неделю назад\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# год назад\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"Все\",\n\"An ungrouped file has the same name as a file in this group.\" => \"Файл без группы имеет такое же название, что и файл в этой группе.\",\n\"Cancel\" => \"Отмена\",\n\"Create\" => \"Создать\",\n\"Dismiss\" => \"Отменить\",\n\"Filename/group already exists.\" => \"Имя файла/группы уже существует.\",\n\"Group\" => \"Группа\",\n\"Group already exists.\" => \"Группа уже существует.\",\n\"Just now\" => \"Только что\",\n\"Modified\" => \"Изменено\",\n\"Name\" => \"Имя\",\n\"New\" => \"Новая\",\n\"Not grouped\" => \"Нет группы\",\n\"Note\" => \"Заметка\",\n\"Notes\" => \"Заметки\",\n\"Quick Save\" => \"Быстрое сохранение\",\n\"Save\" => \"Сохранение\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Уведомления ненавязчивы и используются только для информирования о важных вещах, таких как релиз мобильного или настольного клиента. Они не будут использоваться для оповещения об обновлениях, и легко отключаются вашими пользователями.\",\n\"Database and folder\" => \"База данных и папка\",\n\"Database only\" => \"Только база данных\",\n\"Disable announcements\" => \"Отключить уведомления\",\n\"How would you like to store your notes?\" => \"Где вы желаете хранить свои заметки?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Пожалуйста, введите имя папки, где вы желаете хранить заметки, без слешей.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Вы желаете отключить уведомления? (Не рекомендуется)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/sl_SI.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/sl_SI.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/sl_SI.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/tr_TR.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/tr_TR.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/tr_TR.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/zh.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/zh.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# day ago\",\n\"# days ago\" : \"# days ago\",\n\"# hour ago\" : \"# hour ago\",\n\"# hours ago\" : \"# hours ago\",\n\"# minute ago\" : \"# minute ago\",\n\"# minutes ago\" : \"# minutes ago\",\n\"# month ago\" : \"# month ago\",\n\"# months ago\" : \"# months ago\",\n\"# second ago\" : \"# second ago\",\n\"# seconds ago\" : \"# seconds ago\",\n\"# week ago\" : \"# week ago\",\n\"# weeks ago\" : \"# weeks ago\",\n\"# year ago\" : \"# year ago\",\n\"# years ago\" : \"# years ago\",\n\"All\" : \"All\",\n\"An ungrouped file has the same name as a file in this group.\" : \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" : \"Cancel\",\n\"Create\" : \"Create\",\n\"Dismiss\" : \"Dismiss\",\n\"Filename/group already exists.\" : \"Filename/group already exists.\",\n\"Group\" : \"Group\",\n\"Group already exists.\" : \"Group already exists.\",\n\"Just now\" : \"Just now\",\n\"Modified\" : \"Modified\",\n\"Name\" : \"Name\",\n\"New\" : \"New\",\n\"Not grouped\" : \"Not grouped\",\n\"Note\" : \"Note\",\n\"Notes\" : \"Notes\",\n\"Quick Save\" : \"Quick Save\",\n\"Save\" : \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" : \"Database and folder\",\n\"Database only\" : \"Database only\",\n\"Disable announcements\" : \"Disable announcements\",\n\"How would you like to store your notes?\" : \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" : \"Would you like to disable announcements? (not recommended)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/zh.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# day ago\",\n\"# days ago\" => \"# days ago\",\n\"# hour ago\" => \"# hour ago\",\n\"# hours ago\" => \"# hours ago\",\n\"# minute ago\" => \"# minute ago\",\n\"# minutes ago\" => \"# minutes ago\",\n\"# month ago\" => \"# month ago\",\n\"# months ago\" => \"# months ago\",\n\"# second ago\" => \"# second ago\",\n\"# seconds ago\" => \"# seconds ago\",\n\"# week ago\" => \"# week ago\",\n\"# weeks ago\" => \"# weeks ago\",\n\"# year ago\" => \"# year ago\",\n\"# years ago\" => \"# years ago\",\n\"All\" => \"All\",\n\"An ungrouped file has the same name as a file in this group.\" => \"An ungrouped file has the same name as a file in this group.\",\n\"Cancel\" => \"Cancel\",\n\"Create\" => \"Create\",\n\"Dismiss\" => \"Dismiss\",\n\"Filename/group already exists.\" => \"Filename/group already exists.\",\n\"Group\" => \"Group\",\n\"Group already exists.\" => \"Group already exists.\",\n\"Just now\" => \"Just now\",\n\"Modified\" => \"Modified\",\n\"Name\" => \"Name\",\n\"New\" => \"New\",\n\"Not grouped\" => \"Not grouped\",\n\"Note\" => \"Note\",\n\"Notes\" => \"Notes\",\n\"Quick Save\" => \"Quick Save\",\n\"Save\" => \"Save\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\",\n\"Database and folder\" => \"Database and folder\",\n\"Database only\" => \"Database only\",\n\"Disable announcements\" => \"Disable announcements\",\n\"How would you like to store your notes?\" => \"How would you like to store your notes?\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"Please enter the folder name you would like to use to store notes, with no slashes.\",\n\"Would you like to disable announcements? (not recommended)\" => \"Would you like to disable announcements? (not recommended)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "l10n/zh_TW.js",
    "content": "OC.L10N.register(\n\"ownnote\",\n{\n\"# day ago\" : \"# 天前\",\n\"# days ago\" : \"# 天前\",\n\"# hour ago\" : \"# 小時前\",\n\"# hours ago\" : \"# 小時前\",\n\"# minute ago\" : \"# 分鐘前\",\n\"# minutes ago\" : \"# 分鐘前\",\n\"# month ago\" : \"# 月前\",\n\"# months ago\" : \"# 月前\",\n\"# second ago\" : \"# 秒前\",\n\"# seconds ago\" : \"# 秒前\",\n\"# week ago\" : \"# 週前\",\n\"# weeks ago\" : \"# 週前\",\n\"# year ago\" : \"# 年前\",\n\"# years ago\" : \"# 年前\",\n\"All\" : \"全部\",\n\"An ungrouped file has the same name as a file in this group.\" : \"檔名衝突(某一未分群組檔案名稱與本群組中檔案名稱相同)\",\n\"Cancel\" : \"取消\",\n\"Create\" : \"建立\",\n\"Dismiss\" : \"解除\",\n\"Filename/group already exists.\" : \"檔案/群組已存在\",\n\"Group\" : \"群組\",\n\"Group already exists.\" : \"群組已存在\",\n\"Just now\" : \"剛剛\",\n\"Modified\" : \"修正\",\n\"Name\" : \"名稱\",\n\"New\" : \"新建\",\n\"Not grouped\" : \"未分群組\",\n\"Note\" : \"備註\",\n\"Notes\" : \"備註\",\n\"Quick Save\" : \"儲存\",\n\"Save\" : \"儲存並離開\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"系統通告位於左側群組列表下方，只用來作為通知，例如桌機、手機、平板程式版本升級等。但無法自動更新程式，可以輕易為使用者解除顯示。\",\n\"Database and folder\" : \"資料庫及檔案夾\",\n\"Database only\" : \"僅資料庫\",\n\"Disable announcements\" : \"取消系統通告\",\n\"How would you like to store your notes?\" : \"記事儲存方式\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"命名儲存記事的資料夾，不可含有斜線 ( / ) \",\n\"Would you like to disable announcements? (not recommended)\" : \"取消宣告？(不建議)\"\n},\n\"nplurals=2; plural=(n > 1);\");\n"
  },
  {
    "path": "l10n/zh_TW.json",
    "content": "{ \"translations\": {\n\"# day ago\" : \"# 天前\",\n\"# days ago\" : \"# 天前\",\n\"# hour ago\" : \"# 小時前\",\n\"# hours ago\" : \"# 小時前\",\n\"# minute ago\" : \"# 分鐘前\",\n\"# minutes ago\" : \"# 分鐘前\",\n\"# month ago\" : \"# 月前\",\n\"# months ago\" : \"# 月前\",\n\"# second ago\" : \"# 秒前\",\n\"# seconds ago\" : \"# 秒前\",\n\"# week ago\" : \"# 週前\",\n\"# weeks ago\" : \"# 週前\",\n\"# year ago\" : \"# 年前\",\n\"# years ago\" : \"# 年前\",\n\"All\" : \"全部\",\n\"An ungrouped file has the same name as a file in this group.\" : \"檔名衝突(某一未分群組檔案名稱與本群組中檔案名稱相同)\",\n\"Cancel\" : \"取消\",\n\"Create\" : \"建立\",\n\"Dismiss\" : \"解除\",\n\"Filename/group already exists.\" : \"檔案/群組已存在\",\n\"Group\" : \"群組\",\n\"Group already exists.\" : \"群組已存在\",\n\"Just now\" : \"剛剛\",\n\"Modified\" : \"修正\",\n\"Name\" : \"名稱\",\n\"New\" : \"新建\",\n\"Not grouped\" : \"未分群組\",\n\"Note\" : \"備註\",\n\"Notes\" : \"備註\",\n\"Quick Save\" : \"儲存\",\n\"Save\" : \"儲存並離開\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" : \"系統通告位於左側群組列表下方，只用來作為通知，例如桌機、手機、平板程式版本升級等。但無法自動更新程式，可以輕易為使用者解除顯示。\",\n\"Database and folder\" : \"資料庫及檔案夾\",\n\"Database only\" : \"僅資料庫\",\n\"Disable announcements\" : \"取消系統通告\",\n\"How would you like to store your notes?\" : \"記事儲存方式\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" : \"命名儲存記事的資料夾，不可含有斜線 ( / ) \",\n\"Would you like to disable announcements? (not recommended)\" : \"取消宣告？(不建議)\"\n},\"pluralForm\" :\"nplurals=2; plural=(n > 1);\"\n}\n"
  },
  {
    "path": "l10n/zh_TW.php",
    "content": "<?php\n$TRANSLATIONS = array(\n\"# day ago\" => \"# 天前\",\n\"# days ago\" => \"# 天前\",\n\"# hour ago\" => \"# 小時前\",\n\"# hours ago\" => \"# 小時前\",\n\"# minute ago\" => \"# 分鐘前\",\n\"# minutes ago\" => \"# 分鐘前\",\n\"# month ago\" => \"# 月前\",\n\"# months ago\" => \"# 月前\",\n\"# second ago\" => \"# 秒前\",\n\"# seconds ago\" => \"# 秒前\",\n\"# week ago\" => \"# 週前\",\n\"# weeks ago\" => \"# 週前\",\n\"# year ago\" => \"# 年前\",\n\"# years ago\" => \"# 年前\",\n\"All\" => \"全部\",\n\"An ungrouped file has the same name as a file in this group.\" => \"檔名衝突(某一未分群組檔案名稱與本群組中檔案名稱相同)\",\n\"Cancel\" => \"取消\",\n\"Create\" => \"建立\",\n\"Dismiss\" => \"解除\",\n\"Filename/group already exists.\" => \"檔案/群組已存在\",\n\"Group\" => \"群組\",\n\"Group already exists.\" => \"群組已存在\",\n\"Just now\" => \"剛剛\",\n\"Modified\" => \"修正\",\n\"Name\" => \"名稱\",\n\"New\" => \"新建\",\n\"Not grouped\" => \"未分群組\",\n\"Note\" => \"備註\",\n\"Notes\" => \"備註\",\n\"Quick Save\" => \"儲存\",\n\"Save\" => \"儲存並離開\",\n\"Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\" => \"系統通告位於左側群組列表下方，只用來作為通知，例如桌機、手機、平板程式版本升級等。但無法自動更新程式，可以輕易為使用者解除顯示。\",\n\"Database and folder\" => \"資料庫及檔案夾\",\n\"Database only\" => \"僅資料庫\",\n\"Disable announcements\" => \"取消系統通告\",\n\"How would you like to store your notes?\" => \"記事儲存方式\",\n\"Please enter the folder name you would like to use to store notes, with no slashes.\" => \"命名儲存記事的資料夾，不可含有斜線 ( / ) \",\n\"Would you like to disable announcements? (not recommended)\" => \"取消宣告？(不建議)\"\n);\n$PLURAL_FORMS = \"nplurals=2; plural=(n > 1);\";\n"
  },
  {
    "path": "lib/backend.php",
    "content": "<?php\n\nnamespace OCA\\OwnNote\\Lib;\n\n\\OCP\\User::checkLoggedIn();\n\nuse DateTime;\nuse DOMDocument;\n\nclass Backend {\n\n\tprivate $db;\n\n\tpublic function __construct() {\n\t\t$this->db = \\OC::$server->getDatabaseConnection();\n\t}\n\n\tpublic function startsWith($haystack, $needle) {\n\t\treturn $needle === \"\" || strripos($haystack, $needle, -strlen($haystack)) !== FALSE;\n\t}\n\n\tpublic function endsWith($string, $test) {\n\t\t$strlen = strlen($string);\n\t\t$testlen = strlen($test);\n\t\tif ($testlen > $strlen) return false;\n\t\treturn substr_compare($string, $test, $strlen - $testlen, $testlen, true) === 0;\n\t}\n\n\tpublic function getAnnouncement() {\n\t\t$ret = \"\";\n\t\t$url = 'https://raw.githubusercontent.com/Fmstrat/announcements/master/ownnote/announcement.html';\n\t\t$ch = curl_init();\n\t\tcurl_setopt($ch, CURLOPT_URL, $url);\n\t\tcurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\n\t\tcurl_setopt($ch, CURLOPT_FRESH_CONNECT, TRUE);\n\t\t//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);\n\t\t//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);\n\t\tcurl_setopt($ch, CURLOPT_USERAGENT, \"Mozilla/4.0 (compatible; MSIE 5.0; S60/3.0 NokiaN73-1/2.0(2.0617.0.0.7) Profile/MIDP-2.0 Configuration/CLDC-1.1)\");\n\t\t$result = curl_exec($ch);\n\t\tif ($result === FALSE) {\n\t\t\tdie('Curl failed: ' . curl_error($ch));\n\t\t} else {\n\t\t\t$ret = $result;\n\t\t}\n\t\tcurl_close($ch);\n\t\treturn $ret;\n\t}\n\n\tpublic function checkEvernote($folder, $file) {\n\t\t$html = \"\";\n\t\tif ($html = \\OCP\\Files\\Storage\\IStorage::file_get_contents($folder.\"/\".$file)) {\n\t\t\t$DOM = new DOMDocument;\n\t\t\t$DOM->loadHTML($html);\n\t\t\t$items = $DOM->getElementsByTagName('meta');\n\t\t\t$isEvernote = false;\n\t\t\tfor ($i = 0; $i < $items->length; $i++) {\n\t\t\t\t$item = $items->item($i);\n\t\t\t\tif ($item->hasAttributes()) {\n\t\t\t\t\t$attrs = $item->attributes;\n\t\t\t\t\tforeach ($attrs as $a => $attr) {\n\t\t\t\t\t\tif ($attr->name == \"name\") {\n\t\t\t\t\t\t\tif ($attr->value == \"exporter-version\" || $attr->value == \"Generator\") {\n\t\t\t\t\t\t\t\t$isEvernote = true;\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($isEvernote) {\n\t\t\t\t$items = $DOM->getElementsByTagName('img');\n\t\t\t\t$isEvernote = false;\n\t\t\t\tfor ($i = 0; $i < $items->length; $i++) {\n\t\t\t\t\t$item = $items->item($i);\n\t\t\t\t\tif ($item->hasAttributes()) {\n\t\t\t\t\t\t$attrs = $item->attributes;\n\t\t\t\t\t\tforeach ($attrs as $a => $attr) {\n\t\t\t\t\t\t\tif ($attr->name == \"src\") {\n\t\t\t\t\t\t\t\t$url = $attr->value;\n\t\t\t\t\t\t\t\tif (!$this->startsWith($url, \"http\") && !$this->startsWith($url, \"/\") && !$this->startsWith($url,\"data\")) {\n\t\t\t\t\t\t\t\t\tif ($data = \\OCP\\Files\\Storage\\IStorage::file_get_contents($folder.\"/\".$url)) {\n\t\t\t\t\t\t\t\t\t\t$type = pathinfo($url, PATHINFO_EXTENSION);\n\t\t\t\t\t\t\t\t\t\t$base64 = \"data:image/\".$type.\";base64,\".base64_encode($data);\n\t\t\t\t\t\t\t\t\t\t$html = str_replace($url, $base64, $html);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\\OC\\Files\\Filesystem::file_put_contents($folder.\"/\".$file, $html);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic function getTimeString($filetime, $now, $l) {\n\t\t$difftime = $filetime->diff($now);\n\t\t$years = $difftime->y;\n\t\t$months = $difftime->m;\n\t\t$days = $difftime->d;\n\t\t$hours = $difftime->h;\n\t\t$minutes = $difftime->i;\n\t\t$seconds = $difftime->s;\n\t\t$timestring = \"\";\n\t\tif ($timestring == \"\" && $years == 1) $timestring = str_replace('#', $years, $l->t(\"# year ago\"));\n\t\tif ($timestring == \"\" && $years > 0) $timestring = str_replace('#', $years, $l->t(\"# years ago\"));\n\t\tif ($timestring == \"\" && $months == 1) $timestring = str_replace('#', $months, $l->t(\"# month ago\"));\n\t\tif ($timestring == \"\" && $months > 0) $timestring = str_replace('#', $months, $l->t(\"# months ago\"));\n\t\tif ($timestring == \"\" && $days == 1) $timestring = str_replace('#', $days, $l->t(\"# day ago\"));\n\t\tif ($timestring == \"\" && $days > 0) $timestring = str_replace('#', $days, $l->t(\"# days ago\"));\n\t\tif ($timestring == \"\" && $hours == 1) $timestring = str_replace('#', $hours, $l->t(\"# hour ago\"));\n\t\tif ($timestring == \"\" && $hours > 0) $timestring = str_replace('#', $hours, $l->t(\"# hours ago\"));\n\t\tif ($timestring == \"\" && $minutes == 1) $timestring = str_replace('#', $minutes, $l->t(\"# minute ago\"));\n\t\tif ($timestring == \"\" && $minutes > 0) $timestring = str_replace('#', $minutes, $l->t(\"# minutes ago\"));\n\t\tif ($timestring == \"\" && $seconds == 1) $timestring = str_replace('#', $seconds, $l->t(\"# second ago\"));\n\t\tif ($timestring == \"\" && $seconds > 0) $timestring = str_replace('#', $seconds, $l->t(\"# seconds ago\"));\n\t\treturn $timestring;\n\t}\n\n\tpublic function splitContent($str) {\n\t\t$maxlength = 2621440; // 5 Megs (2 bytes per character)\n\t\t$count = 0;\n\t\t$strarray = array();\n\t\twhile (true) { \n\t\t\tif (strlen($str) <= $maxlength) { \n\t\t\t\t$strarray[$count++] = $str;\n\t\t\t\treturn $strarray;\n\t\t\t} else {\n\t\t\t\t$strarray[$count++] = substr($str, 0, $maxlength);\n\t\t\t\t$str = substr($str, $maxlength);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic function getListing($FOLDER, $showdel) {\n\t\t// Get the listing from the database\n\t\t$requery = false;\n\t\t$uid = \\OCP\\User::getUser();\n\t\t$query = \"SELECT id, name, grouping, mtime, deleted FROM *PREFIX*ownnote WHERE uid=? ORDER BY name\";\n\t\t$results = $this->db->executeQuery($query, Array($uid))->fetchAll();\n\t\t$results2 = $results;\n\t\tif ($results)\n\t\t\tforeach($results as $result)\n\t\t\t\tforeach($results2 as $result2)\n\t\t\t\t\tif ($result['id'] != $result2['id'] && $result['name'] == $result2['name'] && $result['grouping'] == $result2['grouping']) {\n\t\t\t\t\t\t// We have a duplicate that should not exist. Need to remove the offending record first\n\t\t\t\t\t\t$delid = -1;\n\t\t\t\t\t\tif ($result['mtime'] == $result2['mtime']) {\n\t\t\t\t\t\t\t// If the mtime's match, delete the oldest ID.\n\t\t\t\t\t\t\t$delid = $result['id'];\n\t\t\t\t\t\t\tif ($result['id'] > $result2['id'])\n\t\t\t\t\t\t\t\t$delid = $result2['id'];\n\t\t\t\t\t\t} elseif ($result['mtime'] > $result2['mtime']) {\n\t\t\t\t\t\t\t// Again, delete the oldest\n\t\t\t\t\t\t\t$delid = $result2['id'];\n\t\t\t\t\t\t} elseif ($result['mtime'] < $result2['mtime']) {\n\t\t\t\t\t\t\t// The only thing left is if result is older\n\t\t\t\t\t\t\t$delid = $result['id'];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif ($delid != -1) {\n\t\t\t\t\t\t\t$delquery = \"DELETE FROM *PREFIX*ownnote WHERE id=?\";\n\t\t\t\t\t\t\t$this->db->executeQuery($delquery, Array($delid));\n\t\t\t\t\t\t\t$requery = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\tif ($requery) {\n\t\t\t$query = \"SELECT id, name, grouping, mtime, deleted FROM *PREFIX*ownnote WHERE uid=? ORDER BY name\";\n\t\t\t$results = $this->db->executeQuery($query, Array($uid))->fetchAll();\n\t\t\t$requery = false;\n\t\t}\n\t\t// Tests to add a bunch of notes\n\t\t//$now = new DateTime();\n\t\t//for ($x = 0; $x < 199; $x++) {\n\t\t\t//saveNote('', \"Test \".$x, '', '', $now->getTimestamp());\n\t\t//}\n\t\t$farray = array();\n\t\tif ($FOLDER != '') {\n\t\t\t// Create the folder if it doesn't exist\n\t\t\tif (!\\OC\\Files\\Filesystem::is_dir($FOLDER)) {\n\t\t\t\tif (!\\OCP\\Files\\Storage\\IStorage::mkdir($FOLDER)) {\n\t\t\t\t\techo \"ERROR: Could not create ownNote directory.\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Synchronize files to the database\n\t\t\t$filearr = array();\n\t\t\t$folderview = new \\OC\\Files\\Storage\\Local(array(\"datadir\" => $FOLDER));\n\t\t\tif ($listing = $folderview->opendir('.')) {\n\t\t\t\tif (!$listing) {\n\t\t\t\t\techo \"ERROR: Error listing directory.\";\n\t\t\t\t\texit;\n\t\t\t\t}\n\t\t\t\twhile (($file = readdir($listing)) !== false) {\n\t\t\t\t\t$tmpfile = $file;\n\t\t\t\t\tif ($tmpfile == \".\" || $tmpfile == \"..\") continue;\n\t\t\t\t\tif (!$this->endsWith($tmpfile, \".htm\") && !$this->endsWith($tmpfile, \".html\")) continue;\n\t\t\t\t\tif ($info = \\OC\\Files\\Filesystem::getFileInfo($FOLDER.\"/\".$tmpfile)) {\n\t\t\t\t\t\t// Check for EVERNOTE but wait to rename them to get around:\n\t\t\t\t\t\t// https://github.com/owncloud/core/issues/16202\n\t\t\t\t\t\tif ($this->endsWith($tmpfile, \".html\")) {\n\t\t\t\t\t\t\t$this->checkEvernote($FOLDER, $tmpfile);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Separate the name and group name\n\t\t\t\t\t\t$name = preg_replace('/\\\\.[^.\\\\s]{3,4}$/', '', $tmpfile);\n\t\t\t\t\t\t$group = \"\";\n\t\t\t\t\t\tif (substr($name,0,1) == \"[\") {\n\t\t\t\t\t\t\t$end = strpos($name, ']');\n\t\t\t\t\t\t\t$group = substr($name, 1, $end-1);\t\n\t\t\t\t\t\t\t$name = substr($name, $end+1, strlen($name)-$end+1);\n\t\t\t\t\t\t\t$name = trim($name);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// Set array for later checking\n\t\t\t\t\t\t$filearr[] = $tmpfile;\n\t\t\t\t\t\t// Check to see if the file is in the DB\n\t\t\t\t\t\t$fileindb = false;\n\t\t\t\t\t\tif ($results)\n\t\t\t\t\t\t\tforeach($results as $result)\n\t\t\t\t\t\t\t\tif ($result['deleted'] == 0)\n\t\t\t\t\t\t\t\t\tif ($name == $result['name'] && $group == $result['grouping']) {\n\t\t\t\t\t\t\t\t\t\t$fileindb = true;\n\t\t\t\t\t\t\t\t\t\t// If it is in the DB, check if the filesystem file is newer than the DB\n\t\t\t\t\t\t\t\t\t\tif ($result['mtime'] < $info['mtime']) {\n\t\t\t\t\t\t\t\t\t\t\t// File is newer, this could happen if a user updates a file\n\t\t\t\t\t\t\t\t\t\t\t$html = \"\";\n\t\t\t\t\t\t\t\t\t\t\t$html = \\OCP\\Files\\Storage\\IStorage::file_get_contents($FOLDER.\"/\".$tmpfile);\n\t\t\t\t\t\t\t\t\t\t\t$this->saveNote('', $result['name'], $result['grouping'], $html, $info['mtime']);\n\t\t\t\t\t\t\t\t\t\t\t$requery = true;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (! $fileindb) {\n\t\t\t\t\t\t\t// If it's not in the DB, add it.\n\t\t\t\t\t\t\t$html = \"\";\n\t\t\t\t\t\t\tif ($html = \\OCP\\Files\\Storage\\IStorage::file_get_contents($FOLDER.\"/\".$tmpfile)) {\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t$html = \"\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t$this->saveNote('', $name, $group, $html, $info['mtime']);\n\t\t\t\t\t\t\t$requery = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// We moved the rename down here to overcome the OC issue\n\t\t\t\t\t\tif ($this->endsWith($tmpfile, \".html\")) {\n\t\t\t\t\t\t\t$tmpfile = substr($tmpfile,0,-1);\n\t\t\t\t\t\t\tif (!\\OCP\\Files\\Storage\\IStorage::file_exists($FOLDER.\"/\".$tmpfile)) {\n\t\t\t\t\t\t\t\t\\OCP\\Files\\Storage\\IStorage::rename($FOLDER.\"/\".$file, $FOLDER.\"/\".$tmpfile);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ($requery) {\n\t\t\t\t$query = \"SELECT id, name, grouping, mtime, deleted FROM *PREFIX*ownnote WHERE uid=? ORDER BY name\";\n\t\t\t\t$results = $this->db->executeQuery($query, Array($uid))->fetchAll();\n\t\t\t}\n\t\t\t// Now also make sure the files exist, they may not if the user switched folders in admin.\n\t\t\tif ($results)\n\t\t\t\tforeach($results as $result)\n\t\t\t\t\tif ($result['deleted'] == 0) {\n\t\t\t\t\t\t$tmpfile = $result['name'].\".htm\";\n\t\t\t\t\t\tif ($result['grouping'] != '')\n\t\t\t\t\t\t\t$tmpfile = '['.$result['grouping'].'] '.$result['name'].'.htm';\n\t\t\t\t\t\t$filefound = false;\n\t\t\t\t\t\tforeach ($filearr as $f)\n\t\t\t\t\t\t\tif ($f == $tmpfile) {\n\t\t\t\t\t\t\t\t$filefound = true;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (! $filefound) {\n\t\t\t\t\t\t\t$content = $this->editNote($result['name'], $result['grouping']);\n\t\t\t\t\t\t\t$this->saveNote($FOLDER, $result['name'], $result['grouping'], $content, 0);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t}\n\t\t// Now loop through and return the listing\n\t\tif ($results) {\n\t\t\t$count = 0;\n\t\t\t$now = new DateTime();\n\t\t\t$filetime = new DateTime();\n\t\t\t$l = \\OCP\\Util::getL10N('ownnote');\n\t\t\tforeach($results as $result)\n\t\t\t\tif ($result['deleted'] == 0 || $showdel == true) {\n\t\t\t\t\t$filetime->setTimestamp($result['mtime']);\n\t\t\t\t\t$timestring = $this->getTimeString($filetime, $now, $l);\n\t\t\t\t\t$f = array();\n\t\t\t\t\t$f['id'] = $result['id'];\n\t\t\t\t\t$f['name'] = $result['name'];\n\t\t\t\t\t$f['group'] = $result['grouping'];\n\t\t\t\t\t$f['timestring'] = $timestring;\n\t\t\t\t\t$f['mtime'] = $result['mtime'];\n\t\t\t\t\t$f['timediff'] = $now->getTimestamp()-$result['mtime'];\n\t\t\t\t\t$f['deleted'] = $result['deleted'];\n\t\t\t\t\t$farray[$count] = $f;\n\t\t\t\t\t$count++;\n\t\t\t\t}\n\t\t}\n\t\treturn $farray;\n\t}\n\n\tpublic function createNote($FOLDER, $in_name, $in_group) {\n\t\t$name = str_replace(\"\\\\\", \"-\", str_replace(\"/\", \"-\", $in_name));\n\t\t$group = str_replace(\"\\\\\", \"-\", str_replace(\"/\", \"-\", $in_group));\n\t\t$now = new DateTime();\n\t\t$mtime = $now->getTimestamp();\n\t\t$uid = \\OCP\\User::getUser();\n\t\t$fileindb = false;\n\t\t$filedeldb = false;\n\t\t$ret = -1;\n\t\t$query = \"SELECT id, name, grouping, mtime, deleted FROM *PREFIX*ownnote WHERE uid=? and name=? and grouping=?\";\n\t\t$results = $this->db->executeQuery($query, Array($uid, $name, $group))->fetchAll();\n\t\tforeach($results as $result)\n\t\t\tif ($result['deleted'] == 0) {\n\t\t\t\t$fileindb = true;\n\t\t\t\t$ret = $result['id'];\n\t\t\t} else {\n\t\t\t\t$filedeldb = true;\n\t\t\t}\n\t\tif ($filedeldb) {\n\t\t\t$query = \"DELETE FROM *PREFIX*ownnote WHERE uid=? and name=? and grouping=?\";\n\t\t\t$results = $this->db->executeQuery($query, Array($uid, $name, $group));\n\t\t}\n\t\tif (! $fileindb) {\n\t\t\tif ($FOLDER != '') {\n\t\t\t\t$tmpfile = $FOLDER.\"/\".$name.\".htm\";\n\t\t\t\tif ($group != '')\n\t\t\t\t\t$tmpfile = $FOLDER.\"/[\".$group.\"] \".$name.\".htm\";\n\t\t\t\tif (!\\OCP\\Files\\Storage\\IStorage::file_exists($tmpfile)) {\n\t\t\t\t\t\\OCP\\Files\\Storage\\IStorage::touch($tmpfile);\n\t\t\t\t}\n\t\t\t\tif ($info = \\OC\\Files\\Filesystem::getFileInfo($tmpfile)) {\n\t\t\t\t\t$mtime = $info['mtime'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$query = \"INSERT INTO *PREFIX*ownnote (uid, name, grouping, mtime, note, shared) VALUES (?,?,?,?,?,?)\";\n\t\t\t$this->db->executeQuery($query, Array($uid,$name,$group,$mtime,'',''));\n\t\t\t$ret = $this->db->lastInsertId('*PREFIX*ownnote');\n\t\t}\n\t\treturn $ret;\n\t}\n\n\n\tpublic function deleteNote($FOLDER, $name, $group) {\n\t\t$now = new DateTime();\n\t\t$mtime = $now->getTimestamp();\n\t\t$uid = \\OCP\\User::getUser();\n\t\t$query = \"UPDATE *PREFIX*ownnote set note='', deleted=1, mtime=? WHERE uid=? and name=? and grouping=?\";\n\t\t$results = $this->db->executeQuery($query, Array($mtime, $uid, $name, $group));\n\t\t$query = \"SELECT id FROM *PREFIX*ownnote WHERE uid=? and name=? and grouping=?\";\n\t\t$results = $this->db->executeQuery($query, Array($uid, $name, $group))->fetchAll();\n\t\tforeach($results as $result) {\n\t\t\t$query2 = \"DELETE FROM *PREFIX*ownnote_parts WHERE id=?\";\n\t\t\t$results2 = $this->db->executeQuery($query2, Array($result['id']));\n\t\t}\n\t\tif ($FOLDER != '') {\n\t\t\t$tmpfile = $FOLDER.\"/\".$name.\".htm\";\n\t\t\tif ($group != '')\n\t\t\t\t$tmpfile = $FOLDER.\"/[\".$group.\"] \".$name.\".htm\";\n\t\t\tif (\\OCP\\Files\\Storage\\IStorage::file_exists($tmpfile))\n\t\t\t\t\\OCP\\Files\\Storage\\IStorage::unlink($tmpfile);\n\t\t}\n\t\treturn \"DONE\";\n\t}\n\n\n\tpublic function editNote($name, $group) {\n\t\t$ret = \"\";\n\t\t$uid = \\OCP\\User::getUser();\n\t\t$query = \"SELECT id,note FROM *PREFIX*ownnote WHERE uid=? and name=? and grouping=?\";\n\t\t$results = $this->db->executeQuery($query, Array($uid, $name, $group))->fetchAll();\n\t\tforeach($results as $result) {\n\t\t\t$ret = $result['note'];\n\t\t\tif ($ret == '') {\n\t\t\t\t$query2 = \"SELECT note FROM *PREFIX*ownnote_parts WHERE id=? order by pid\";\n\t\t\t\t$results2 = $this->db->executeQuery($query2, Array($result['id']))->fetchAll();\n\t\t\t\tforeach($results2 as $result2) {\n\t\t\t\t\t$ret .= $result2['note'];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn $ret;\n\t}\n\n\tpublic function saveNote($FOLDER, $name, $group, $content, $in_mtime) {\n\t\t$maxlength = 2621440; // 5 Megs (2 bytes per character)\n\t\t$now = new DateTime();\n\t\t$mtime = $now->getTimestamp();\n\t\tif ($in_mtime != 0)\n\t\t\t$mtime = $in_mtime;\n\t\t$uid = \\OCP\\User::getUser();\n\t\t// First check to see if we're creating a new note, createNote handles all of this\n\t\t$id = $this->createNote($FOLDER, $name, $group);\n\t\tif ($id != -1) {\n\t\t\tif ($FOLDER != '') {\n\t\t\t\t$tmpfile = $FOLDER.\"/\".$name.\".htm\";\n\t\t\t\tif ($group != '')\n\t\t\t\t\t$tmpfile = $FOLDER.\"/[\".$group.\"] \".$name.\".htm\";\n\t\t\t\t\t\\OC\\Files\\Filesystem::file_put_contents($tmpfile, $content);\n\t\t\t\tif ($info = \\OC\\Files\\Filesystem::getFileInfo($tmpfile)) {\n\t\t\t\t\t$mtime = $info['mtime'];\n\t\t\t\t}\n\t\t\t}\n\t\t\t$query = \"UPDATE *PREFIX*ownnote set note='', mtime=? WHERE uid=? and name=? and grouping=?\";\n\t\t\t$results = $this->db->executeQuery($query, Array($mtime, $uid, $name, $group));\n\t\t\t$query = \"DELETE FROM *PREFIX*ownnote_parts WHERE id=?\";\n\t\t\t$results = $this->db->executeQuery($query, Array($id));\n\t\t\t$contentarr = $this->splitContent($content);\n\t\t\tfor ($i = 0; $i < count($contentarr); $i++) {\n\t\t\t\t$query = \"INSERT INTO *PREFIX*ownnote_parts (id, note) values (?,?)\";\n\t\t\t\t$results = $this->db->executeQuery($query, Array($id, $contentarr[$i]));\n\t\t\t}\n\n\t\t}\n\t\treturn \"DONE\";\n\t}\n\n\tpublic function renameNote($FOLDER, $name, $group, $in_newname, $in_newgroup) {\n\t\t$newname = str_replace(\"\\\\\", \"-\", str_replace(\"/\", \"-\", $in_newname));\n\t\t$newgroup = str_replace(\"\\\\\", \"-\", str_replace(\"/\", \"-\", $in_newgroup));\n\t\t// We actually need to delete and create so that the delete flag exists for syncing clients\n\t\t$content = $this->editNote($name, $group);\n\t\t$this->deleteNote($FOLDER, $name, $group);\n\t\t$this->createNote($FOLDER, $newname, $newgroup);\n\t\t// BUG: Don't need createNote above?\n\t\t$this->saveNote($FOLDER, $newname, $newgroup, $content, 0);\n\t\treturn \"DONE\";\n\t}\n\n\tpublic function deleteGroup($FOLDER, $group) {\n\t\t// We actually need to just rename all the notes\n\t\t$uid = \\OCP\\User::getUser();\n\t\t$query = \"SELECT id, name, grouping, mtime FROM *PREFIX*ownnote WHERE deleted=0 and uid=? and grouping=?\";\n\t\t$results = $this->db->executeQuery($query, Array($uid, $group))->fetchAll();\n\t\tforeach($results as $result) {\n\t\t\t$this->renameNote($FOLDER, $result['name'], $group, $result['name'], '');\n\t\t}\n\t\treturn \"DONE\";\n\t}\n\n\tpublic function renameGroup($FOLDER, $group, $newgroup) {\n\t\t$uid = \\OCP\\User::getUser();\n\t\t$query = \"SELECT id, name, grouping, mtime FROM *PREFIX*ownnote WHERE deleted=0 and uid=? and grouping=?\";\n\t\t$results = $this->db->executeQuery($query, Array($uid, $group))->fetchAll();\n\t\tforeach($results as $result) {\n\t\t\t$this->renameNote($FOLDER, $result['name'], $group, $result['name'], $newgroup);\n\t\t}\n\t\treturn \"DONE\";\n\t}\n\n\tpublic function getVersion() {\n\t\t$v = file_get_contents(__DIR__.\"/../appinfo/version\");\n\t\tif ($v)\n\t\t\treturn trim($v);\n\t\telse\n\t\t\treturn \"\";\n\t}\n\n\tpublic function setAdminVal($option, $value) {\n\t\t\\OC::$server->getConfig()->setAppValue('ownnote', $option, $value);\n\t}\n}\n\n?>\n"
  },
  {
    "path": "templates/admin.php",
    "content": "<?php\n\n\\OCP\\Util::addScript('ownnote', 'admin');\n\n$folder = $_['folder'];\n$l = OCP\\Util::getL10N('ownnote');\n\n?>\n\n<div class=\"section\">\n        <h2>ownNote</h2>\n\t<label for=\"ownnote-type\"><?php p($l->t(\"How would you like to store your notes?\")); ?></label><br>\n\t<select id=\"ownnote-type\">\n\t\t<option <?php if ($folder == \"\") echo \"selected\"; ?> value=\"\"><?php p($l->t(\"Database only\")); ?></option>\n\t\t<option <?php if ($folder != \"\") echo \"selected\"; ?> value=\"folder\"><?php p($l->t(\"Database and folder\")); ?></option>\n\t</select><br>\n\t<br>\n\t<div id=\"ownnote-folder-settings\" style=\"display: <?php if ($folder != \"\") echo \"block\"; else echo \"none\"; ?>\">\n\t\t<label for=\"ownnote-folder\"><?php p($l->t(\"Please enter the folder name you would like to use to store notes, with no slashes.\")); ?></label><br>\n\t\t<input type=\"text\" style=\"width: 250pt\" name=\"ownnote-folder\" id=\"ownnote-folder\" value=\"<?php p($folder) ?>\" /><br>\n\t\t<br>\n\t</div>\n</div>\n"
  },
  {
    "path": "templates/main.php",
    "content": "<?php\n\\OCP\\Util::addScript('ownnote', 'script');\n\\OCP\\Util::addScript('ownnote','tinymce/tinymce.min');\n\\OCP\\Util::addStyle('ownnote', 'style');\n\n$disableAnnouncement = true;\n$l = OCP\\Util::getL10N('ownnote');\n\n$ocVersionArray = OCP\\Util::getVersion();\n$ocVersion = \"\";\n$oci = 0;\n$ocl = sizeof($ocVersionArray);\nforeach ($ocVersionArray as $v) {\n\t$ocVersion .= $v;\n\t$oci++;\n\tif ($oci < $ocl)\n\t\t$ocVersion .= \".\";\n}\n\n?>\n<input type=\"hidden\" name=\"nextNonce\" id=\"nextNonce\" value=\"<?php p(\\OC::$server->getContentSecurityPolicyNonceManager()->getNonce()) ?>\" />\n<div id=\"app\">\n\t<div id=\"app-navigation\">\n\t\t<ul id=\"grouplist\">\n\t\t</ul>\n\t</div>\n\t<div id=\"app-content\">\n\t\t<div id=\"ownnote\"></div>\n\t</div>\n\t<div id=\"ownnote-l10n\">\n\t\t<input type=\"hidden\" id=\"l10n # day ago\" value=\"<?php p($l->t(\"# day ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # days ago\" value=\"<?php p($l->t(\"# days ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # hour ago\" value=\"<?php p($l->t(\"# hour ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # hours ago\" value=\"<?php p($l->t(\"# hours ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # minute ago\" value=\"<?php p($l->t(\"# minute ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # minutes ago\" value=\"<?php p($l->t(\"# minutes ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # month ago\" value=\"<?php p($l->t(\"# month ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # months ago\" value=\"<?php p($l->t(\"# months ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # second ago\" value=\"<?php p($l->t(\"# second ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # seconds ago\" value=\"<?php p($l->t(\"# seconds ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # week ago\" value=\"<?php p($l->t(\"# week ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # weeks ago\" value=\"<?php p($l->t(\"# weeks ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # year ago\" value=\"<?php p($l->t(\"# year ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n # years ago\" value=\"<?php p($l->t(\"# years ago\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n All\" value=\"<?php p($l->t(\"All\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n An ungrouped file has the same name as a file in this group\" value=\"] = \"<?php p($l->t(\"An ungrouped file has the same name as a file in this group\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Cancel\" value=\"<?php p($l->t(\"Cancel\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Create\" value=\"<?php p($l->t(\"Create\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Dismiss\" value=\"<?php p($l->t(\"Dismiss\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Filename/group already exists\" value=\"] = \"<?php p($l->t(\"Filename/group already exists.\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Group\" value=\"<?php p($l->t(\"Group\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Group already exists\" value=\"] = \"<?php p($l->t(\"Group already exists.\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Just now\" value=\"<?php p($l->t(\"Just now\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Modified\" value=\"<?php p($l->t(\"Modified\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Name\" value=\"<?php p($l->t(\"Name\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n New\" value=\"<?php p($l->t(\"New\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Not grouped\" value=\"<?php p($l->t(\"Not grouped\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Note\" value=\"<?php p($l->t(\"Note\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Notes\" value=\"<?php p($l->t(\"Notes\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Quick Save\" value=\"<?php p($l->t(\"Quick Save\")); ?>\">\n\t\t<input type=\"hidden\" id=\"l10n Save\" value=\"<?php p($l->t(\"Save\")); ?>\">\n\t</div>\n</div>\n"
  },
  {
    "path": "transifex/import.sh",
    "content": "#!/bin/bash\n\n#\n# Generates translation files from transifex outputs\n#\n\nif [ -z \"${1}\" ]; then\n\techo \"Usage: import.sh <ownnote folder> <translation folder>\";\n\texit;\nfi;\nif [ -z \"${2}\" ]; then\n\techo \"Usage: import.sh <ownnote folder> <translation folder>\";\n\texit;\nfi;\n\ncd \"${2}/ownnote.server\"\nLANGUAGES=$(ls *.txt | sed -e 's/\\..*$//')\ncd \"${1}\"\n\n\n# PHP include\necho \"The following should be used in templates/main.php:\"\necho \"\"\npaste \"${1}/transifex/server.txt\" \"${1}/transifex/server.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\"] = \"<?php p(\\$l->t(\"/g' | sed 's/^/l10n[\"/g' | sed 's/$/\")); ?>\";/g'\n#paste \"${1}/transifex/serveradmin.txt\" \"${1}/transifex/serveradmin.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\"] = \"<?php p(\\$l->t(\"/g' | sed 's/^/l10n[\"/g' | sed 's/$/\")); ?>\";/g'\n\n# JS file\necho -n \"\" > l10n/en.js\necho \"OC.L10N.register(\" >> l10n/en.js\necho \"\\\"ownnote\\\",\" >> l10n/en.js\necho \"{\" >> l10n/en.js\npaste \"${1}/transifex/server.txt\" \"${1}/transifex/server.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" : \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/en.js\npaste \"${1}/transifex/serveradmin.txt\" \"${1}/transifex/serveradmin.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" : \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/en.js\nsed -i '$s/,$//' l10n/en.js\necho \"},\" >> l10n/en.js\necho \"\\\"nplurals=2; plural=(n > 1);\\\");\" >> l10n/en.js\n\n# JSON file\necho -n \"\" > l10n/en.json\necho \"{ \\\"translations\\\": {\" >> l10n/en.json\npaste \"${1}/transifex/server.txt\" \"${1}/transifex/server.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" : \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/en.json\npaste \"${1}/transifex/serveradmin.txt\" \"${1}/transifex/serveradmin.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" : \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/en.json\nsed -i '$s/,$//' l10n/en.json\necho \"},\\\"pluralForm\\\" :\\\"nplurals=2; plural=(n > 1);\\\"\" >> l10n/en.json\necho \"}\" >> l10n/en.json\n\n# PHP file\necho -n \"\" > l10n/en.php\necho \"<?php\" >> l10n/en.php\necho \"\\$TRANSLATIONS = array(\" >> l10n/en.php\npaste \"${1}/transifex/server.txt\" \"${1}/transifex/server.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" => \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/en.php\npaste \"${1}/transifex/serveradmin.txt\" \"${1}/transifex/serveradmin.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" => \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/en.php\nsed -i '$s/,$//' l10n/en.php\necho \");\" >> l10n/en.php\necho \"\\$PLURAL_FORMS = \\\"nplurals=2; plural=(n > 1);\\\";\" >> l10n/en.php\n\nfor L in ${LANGUAGES}; do\n\t# Fix pounds\n\tsed -i 's/＃/#/g' \"${2}/ownnote.server/${L}.txt\"\n\tsed -i 's/＃/#/g' \"${2}/ownnote.serveradmin/${L}.txt\"\n\n\t# JS file\n\techo -n \"\" > l10n/${L}.js\n\techo \"OC.L10N.register(\" >> l10n/${L}.js\n    \techo \"\\\"ownnote\\\",\" >> l10n/${L}.js\n\techo \"{\" >> l10n/${L}.js\n\tpaste \"${1}/transifex/server.txt\" \"${2}/ownnote.server/${L}.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" : \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/${L}.js\n\tpaste \"${1}/transifex/serveradmin.txt\" \"${2}/ownnote.serveradmin/${L}.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" : \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/${L}.js\n\tsed -i '$s/,$//' l10n/${L}.js\n\techo \"},\" >> l10n/${L}.js\n\techo \"\\\"nplurals=2; plural=(n > 1);\\\");\" >> l10n/${L}.js\n\n\t# JSON file\n\techo -n \"\" > l10n/${L}.json\n\techo \"{ \\\"translations\\\": {\" >> l10n/${L}.json\n\tpaste \"${1}/transifex/server.txt\" \"${2}/ownnote.server/${L}.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" : \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/${L}.json\n\tpaste \"${1}/transifex/serveradmin.txt\" \"${2}/ownnote.serveradmin/${L}.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" : \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/${L}.json\n\tsed -i '$s/,$//' l10n/${L}.json\n\techo \"},\\\"pluralForm\\\" :\\\"nplurals=2; plural=(n > 1);\\\"\" >> l10n/${L}.json\n\techo \"}\" >> l10n/${L}.json\n\n\t# PHP file\n\techo -n \"\" > l10n/${L}.php\n\techo \"<?php\" >> l10n/${L}.php\n\techo \"\\$TRANSLATIONS = array(\" >> l10n/${L}.php\n\tpaste \"${1}/transifex/server.txt\" \"${2}/ownnote.server/${L}.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" => \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/${L}.php\n\tpaste \"${1}/transifex/serveradmin.txt\" \"${2}/ownnote.serveradmin/${L}.txt\" | sed 's/\"/\\\\\"/g' | sed 's/\\t/\" => \"/g' | sed 's/^/\"/g' | sed 's/$/\",/g' >> l10n/${L}.php\n\tsed -i '$s/,$//' l10n/${L}.php\n\techo \");\" >> l10n/${L}.php\n\techo \"\\$PLURAL_FORMS = \\\"nplurals=2; plural=(n > 1);\\\";\" >> l10n/${L}.php\ndone;\n"
  },
  {
    "path": "transifex/server.txt",
    "content": "# day ago\n# days ago\n# hour ago\n# hours ago\n# minute ago\n# minutes ago\n# month ago\n# months ago\n# second ago\n# seconds ago\n# week ago\n# weeks ago\n# year ago\n# years ago\nAll\nAn ungrouped file has the same name as a file in this group.\nCancel\nCreate\nDismiss\nFilename/group already exists.\nGroup\nGroup already exists.\nJust now\nModified\nName\nNew\nNot grouped\nNote\nNotes\nQuick Save\nSave"
  },
  {
    "path": "transifex/serveradmin.txt",
    "content": "Announcements are unobtrusive and only used for major notifications such as the release of a new mobile or desktop companion application. They will not be used for regular updates, and are easily dismissed by your users.\nDatabase and folder\nDatabase only\nDisable announcements\nHow would you like to store your notes?\nPlease enter the folder name you would like to use to store notes, with no slashes.\nWould you like to disable announcements? (not recommended)"
  }
]