Repository: mwinteringham/restful-booker Branch: main Commit: 00461155995c Files: 113 Total size: 521.0 KB Directory structure: gitextract__blxwpvx/ ├── .dockerignore ├── .github/ │ └── workflows/ │ ├── main.yml │ └── test.yml ├── .gitignore ├── Dockerfile ├── LICENSE ├── Procfile ├── README.md ├── app.js ├── app.json ├── bin/ │ └── www ├── docker-compose.yml ├── helpers/ │ ├── bookingcreator.js │ ├── parser.js │ ├── validationrules.js │ └── validator.js ├── models/ │ └── booking.js ├── package.json ├── public/ │ ├── apidoc/ │ │ ├── api_data.js │ │ ├── api_data.json │ │ ├── api_project.js │ │ ├── api_project.json │ │ ├── css/ │ │ │ └── style.css │ │ ├── index.html │ │ ├── locales/ │ │ │ ├── ca.js │ │ │ ├── cs.js │ │ │ ├── de.js │ │ │ ├── es.js │ │ │ ├── fr.js │ │ │ ├── it.js │ │ │ ├── locale.js │ │ │ ├── nl.js │ │ │ ├── pl.js │ │ │ ├── pt_br.js │ │ │ ├── ro.js │ │ │ ├── ru.js │ │ │ ├── tr.js │ │ │ ├── vi.js │ │ │ ├── zh.js │ │ │ └── zh_cn.js │ │ ├── main.js │ │ ├── utils/ │ │ │ ├── handlebars_helper.js │ │ │ ├── send_sample_request.js │ │ │ └── send_sample_request_utils.js │ │ └── vendor/ │ │ ├── path-to-regexp/ │ │ │ ├── LICENSE │ │ │ └── index.js │ │ ├── polyfill.js │ │ ├── prettify/ │ │ │ ├── lang-Splus.js │ │ │ ├── lang-aea.js │ │ │ ├── lang-agc.js │ │ │ ├── lang-apollo.js │ │ │ ├── lang-basic.js │ │ │ ├── lang-cbm.js │ │ │ ├── lang-cl.js │ │ │ ├── lang-clj.js │ │ │ ├── lang-css.js │ │ │ ├── lang-dart.js │ │ │ ├── lang-el.js │ │ │ ├── lang-erl.js │ │ │ ├── lang-erlang.js │ │ │ ├── lang-fs.js │ │ │ ├── lang-go.js │ │ │ ├── lang-hs.js │ │ │ ├── lang-lasso.js │ │ │ ├── lang-lassoscript.js │ │ │ ├── lang-latex.js │ │ │ ├── lang-lgt.js │ │ │ ├── lang-lisp.js │ │ │ ├── lang-ll.js │ │ │ ├── lang-llvm.js │ │ │ ├── lang-logtalk.js │ │ │ ├── lang-ls.js │ │ │ ├── lang-lsp.js │ │ │ ├── lang-lua.js │ │ │ ├── lang-matlab.js │ │ │ ├── lang-ml.js │ │ │ ├── lang-mumps.js │ │ │ ├── lang-n.js │ │ │ ├── lang-nemerle.js │ │ │ ├── lang-pascal.js │ │ │ ├── lang-proto.js │ │ │ ├── lang-r.js │ │ │ ├── lang-rd.js │ │ │ ├── lang-rkt.js │ │ │ ├── lang-rust.js │ │ │ ├── lang-s.js │ │ │ ├── lang-scala.js │ │ │ ├── lang-scm.js │ │ │ ├── lang-sql.js │ │ │ ├── lang-ss.js │ │ │ ├── lang-swift.js │ │ │ ├── lang-tcl.js │ │ │ ├── lang-tex.js │ │ │ ├── lang-vb.js │ │ │ ├── lang-vbs.js │ │ │ ├── lang-vhd.js │ │ │ ├── lang-vhdl.js │ │ │ ├── lang-wiki.js │ │ │ ├── lang-xq.js │ │ │ ├── lang-xquery.js │ │ │ ├── lang-yaml.js │ │ │ ├── lang-yml.js │ │ │ ├── prettify.css │ │ │ ├── prettify.js │ │ │ └── run_prettify.js │ │ ├── prettify.css │ │ ├── prism.css │ │ ├── prism.js │ │ └── webfontloader.js │ └── index.html ├── routes/ │ ├── apidoc.json │ └── index.js └── tests/ └── spec.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .dockerignore ================================================ node-modules/ .git/ .gitignore ================================================ FILE: .github/workflows/main.yml ================================================ name: Deploy on: push: branches: - main pull_request: branches: - main jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - name: Install Heroku CLI # <- IMPORTANT!!! Make sure the cli is installed before using the action run: | curl https://cli-assets.heroku.com/install.sh | sh - uses: akhileshns/heroku-deploy@v3.14.15 # This is the action with: heroku_api_key: ${{secrets.HEROKU_API_KEY}} heroku_app_name: ${{ secrets.HEROKU_APP_NAME }} #Must be unique in Heroku heroku_email: ${{ secrets.HEROKU_EMAIL }} ================================================ FILE: .github/workflows/test.yml ================================================ name: UnitTests on: [push] jobs: build: runs-on: ubuntu-latest strategy: matrix: node-version: [22.x] steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} uses: actions/setup-node@v1 with: node-version: ${{ matrix.node-version }} - run: npm i - run: npm run test ================================================ FILE: .gitignore ================================================ **/node_modules **/.DS_Store .vscode/ npm-debug.log .idea ================================================ FILE: Dockerfile ================================================ FROM node:22 # Copy restful-booker across RUN mkdir /restful-booker WORKDIR /restful-booker COPY ./ ./ RUN npm install CMD npm start ================================================ FILE: LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . Also add information on how to contact you by electronic and paper mail. If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode: Copyright (C) This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box". You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see . The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read . ================================================ FILE: Procfile ================================================ web: npm start ================================================ FILE: README.md ================================================ # restful-booker A simple Node booking form for testing RESTful web services. # Requirements - Docker 17.09.0 - Docker Compose 1.16.1 # Installation 1. Ensure mongo is up and running by executing ```mongod``` in your terminal 2. Clone the repo 3. Navigate into the restful-booker root folder 4. Run ```npm install``` 5. Run ```npm start``` Or you can run this via Docker: 1. Clone the repo 2. Navigate into the restful-booker root folder 3. Run ```docker-compose build``` 4. Run ```docker-compose up``` 5. APIs are exposed on http://localhost:3001 # API API details can be found on the [publically deployed version of Restful-Booker](https://restful-booker.herokuapp.com/). ================================================ FILE: app.js ================================================ const express = require('express'); const path = require('path'); const logger = require('morgan'); const cookieParser = require('cookie-parser'); const xmlparser = require('express-xml-bodyparser'); const routes = require('./routes/index'); const app = express(); app.use(logger('dev')); app.use(express.json()); app.use(express.urlencoded({ extended: true })); app.use(cookieParser()); app.use(express.static(path.join(__dirname, 'public'))); app.use(xmlparser({trim: false, explicitArray: false})); app.use('/', routes); // catch 404 and forward to error handler app.use(function(req, res, next) { const err = new Error('Not Found'); err.status = 404; next(err); }); // error handlers // development error handler // will print stacktrace if (app.get('env') === 'development') { app.use(function(err, req, res, next) { console.log(err); res.sendStatus(err.status || 500); }); } // production error handler // no stacktraces leaked to user app.use(function(err, req, res, next) { res.sendStatus(err.status || 500); }); module.exports = app; ================================================ FILE: app.json ================================================ { "name": "restful-booker", "description": "An API for practising your testing skills against", "image": "mwinteringham/restful-booker" } ================================================ FILE: bin/www ================================================ #!/usr/bin/env node /** * Module dependencies. */ const app = require('../app'); const debug = require('debug')('restful-booker-v2:server'); const http = require('http'); /** * Get port from environment and store in Express. */ const port = normalizePort(process.env.PORT || '3001'); app.set('port', port); /** * Create HTTP server. */ const server = http.createServer(app); /** * Listen on provided port, on all network interfaces. */ server.listen(port); server.on('error', onError); server.on('listening', onListening); /** * Normalize a port into a number, string, or false. */ function normalizePort(val) { const port = parseInt(val, 10); if (isNaN(port)) { // named pipe return val; } if (port >= 0) { // port number return port; } return false; } /** * Event listener for HTTP server "error" event. */ function onError(error) { if (error.syscall !== 'listen') { throw error; } const bind = typeof port === 'string' ? 'Pipe ' + port : 'Port ' + port; // handle specific listen errors with friendly messages switch (error.code) { case 'EACCES': console.error(bind + ' requires elevated privileges'); process.exit(1); break; case 'EADDRINUSE': console.error(bind + ' is already in use'); process.exit(1); break; default: throw error; } } /** * Event listener for HTTP server "listening" event. */ function onListening() { const addr = server.address(); const bind = typeof addr === 'string' ? 'pipe ' + addr : 'port ' + addr.port; debug('Listening on ' + bind); } ================================================ FILE: docker-compose.yml ================================================ version: '2' services: restful-booker: build: ./ ports: - "3001:3001" ================================================ FILE: helpers/bookingcreator.js ================================================ date = require('date-and-time'); const randomiseDate = function (start, end) { return new Date(start.getTime() + Math.random() * (end.getTime() - start.getTime())); }; const randomiseNumber = function (from, to) { return Math.floor(Math.random() * (to - from + 1) + from); }; const randomiseFirstName = function () { const name = ["Mark", "Mary", "Sally", "Jim", "Eric", "Susan"]; return name[randomiseNumber(0, name.length - 1)]; }; const randomiseLastName = function () { const surname = ["Jones", "Wilson", "Jackson", "Brown", "Smith", "Ericsson"]; return surname[randomiseNumber(0, surname.length - 1)]; }; const randomiseBool = function () { const bool = [true, false]; return bool[randomiseNumber(0, bool.length - 1)]; }; exports.createBooking = function(){ const checkInDate = randomiseDate(new Date(2015, 1, 1), new Date()); const latestDate = new Date(); latestDate.setDate(latestDate.getDate() + 3) const booking = { firstname: randomiseFirstName(), lastname: randomiseLastName(), totalprice: randomiseNumber(100, 1000), depositpaid: randomiseBool(), bookingdates: { checkin: date.format(new Date(checkInDate.setHours(15, 0, 0, 0)), 'YYYY-MM-DD'), checkout: date.format(new Date(randomiseDate(checkInDate, latestDate).setHours(12, 0, 0, 0)), 'YYYY-MM-DD') } }; if(randomiseBool()){ booking.additionalneeds = "Breakfast"; } return booking; } ================================================ FILE: helpers/parser.js ================================================ const js2xmlparser = require("js2xmlparser"), formurlencoded = require('form-urlencoded').default, date = require('date-and-time'); exports.bookingids = function(req, rawBooking){ const payload = []; rawBooking.forEach(function(b){ const tmpBooking = { bookingid: b.bookingid, }; payload.push(tmpBooking); }); return payload; } exports.booking = function(accept, rawBooking){ try { const booking = { 'firstname': rawBooking.firstname, 'lastname': rawBooking.lastname, 'totalprice': parseInt(rawBooking.totalprice), 'depositpaid': Boolean(rawBooking.depositpaid), 'bookingdates': { 'checkin': date.format(new Date(rawBooking.bookingdates.checkin), 'YYYY-MM-DD'), 'checkout': date.format(new Date(rawBooking.bookingdates.checkout), 'YYYY-MM-DD'), } }; if(typeof(rawBooking.additionalneeds) !== 'undefined'){ booking.additionalneeds = rawBooking.additionalneeds; } switch(accept){ case 'application/xml': return js2xmlparser.parse('booking', booking); case 'application/json': return booking; case 'application/x-www-form-urlencoded': return formurlencoded(booking); case '*/*': return booking; default: return null; } } catch(err) { return err.message; } } exports.bookingWithId = function(req, rawBooking){ try { const booking = { 'firstname': rawBooking.firstname, 'lastname': rawBooking.lastname, 'totalprice': parseInt(rawBooking.totalprice), 'depositpaid': Boolean(rawBooking.depositpaid), 'bookingdates': { 'checkin': date.format(new Date(rawBooking.bookingdates.checkin), 'YYYY-MM-DD'), 'checkout': date.format(new Date(rawBooking.bookingdates.checkout), 'YYYY-MM-DD'), } }; if(typeof(rawBooking.additionalneeds) !== 'undefined'){ booking.additionalneeds = rawBooking.additionalneeds; } const payload = { "bookingid": rawBooking.bookingid, "booking": booking }; switch(req.headers.accept){ case 'application/xml': return js2xmlparser.parse('created-booking', payload); case 'application/json': return payload; case 'application/x-www-form-urlencoded': return formurlencoded(payload); case '*/*': return payload; default: return null; } } catch(err) { return err.message; } } ================================================ FILE: helpers/validationrules.js ================================================ exports.returnRuleSet = function(){ const constraints = { firstname: {presence: true}, lastname: {presence: true}, totalprice: {presence: true}, depositpaid: {presence: true}, 'bookingdates.checkin': {presence: true}, 'bookingdates.checkout': {presence: true}, }; return constraints } ================================================ FILE: helpers/validator.js ================================================ const rules = require('../helpers/validationrules'), validate = require('validate.js'); exports.scrubAndValidate = function(payload, callback){ if(payload.firstname){ payload.firstname = payload.firstname.trim(); } if(payload.lastname){ payload.lastname = payload.lastname.trim(); } callback(payload, validate(payload, rules.returnRuleSet())) }; ================================================ FILE: models/booking.js ================================================ const loki = require('lokijs'); let counter = 0; const db = new loki('booking.db'); const booking = db.addCollection('bookings'); exports.getIDs = function(query, callback) { try { // Convert nedb-style query to LokiJS query const results = booking.find(query); callback(null, results); } catch (err) { callback(err); } }; exports.get = function(id, callback) { try { const result = booking.findOne({ bookingid: parseInt(id) }); callback(null, result); } catch (err) { callback(err, null); } }; exports.create = function(payload, callback) { try { counter++; payload.bookingid = counter; booking.insert(payload); callback(null, payload); } catch (err) { callback(err); } }; exports.update = function(id, updatedBooking, callback) { try { const doc = booking.findOne({ bookingid: parseInt(id) }); if (!doc) { return callback(new Error(`Booking ${id} not found`)); } Object.assign(doc, updatedBooking); booking.update(doc); callback(null); } catch (err) { callback(err); } }; exports.delete = function(id, callback) { try { const doc = booking.findOne({ bookingid: parseInt(id) }); if (!doc) { return callback(new Error(`Booking ${id} not found`)); } booking.remove(doc); callback(null); } catch (err) { callback(err); } }; exports.deleteAll = function(callback) { try { counter = 0; booking.clear(); callback(null); } catch (err) { callback(err); } }; ================================================ FILE: package.json ================================================ { "name": "restful-booker", "version": "1.0.0", "private": true, "scripts": { "start": "cross-env SEED=true node ./bin/www", "test": "mocha -R spec tests/spec.js", "build_docs": "apidoc -i ./routes/ -o public/apidoc/" }, "dependencies": { "body-parser": "2.2.2", "cookie-parser": "1.4.7", "cross-env": "10.1.0", "date-and-time": "4.3.1", "debug": "4.4.3", "express": "5.2.1", "express-xml-bodyparser": "0.4.1", "form-urlencoded": "6.1.6", "js2xmlparser": "5.0.0", "lokijs": "^1.5.12", "morgan": "1.10.1", "pug": "3.0.4", "uuid": "13.0.0", "validate.js": "0.13.1", "xml2js": "0.6.2" }, "devDependencies": { "chai": "6.2.2", "mocha": "11.7.5", "supertest": "7.2.2" } } ================================================ FILE: public/apidoc/api_data.js ================================================ define({ "api": [ { "type": "post", "url": "auth", "title": "CreateToken", "name": "CreateToken", "group": "Auth", "version": "1.0.0", "description": "

Creates a new auth token to use for access to the PUT and DELETE /booking

", "parameter": { "fields": { "Request body": [ { "group": "Request body", "type": "String", "optional": false, "field": "username", "defaultValue": "admin", "description": "

Username for authentication

" }, { "group": "Request body", "type": "String", "optional": false, "field": "password", "defaultValue": "password123", "description": "

Password for authentication

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Content-Type", "defaultValue": "application/json", "description": "

Sets the format of payload you are sending

" } ] } }, "examples": [ { "title": "Example 1:", "content": "curl -X POST \\\n https://restful-booker.herokuapp.com/auth \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"username\" : \"admin\",\n \"password\" : \"password123\"\n}'", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "token", "description": "

Token to use in future requests

" } ] }, "examples": [ { "title": "Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"token\": \"abc123\"\n}", "type": "json" } ] }, "filename": "routes/index.js", "groupTitle": "Auth" }, { "type": "post", "url": "booking", "title": "CreateBooking", "name": "CreateBooking", "group": "Booking", "version": "1.0.0", "description": "

Creates a new booking in the API

", "parameter": { "fields": { "Request body": [ { "group": "Request body", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Request body", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Request body", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Request body", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Request body", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Request body", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Request body", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Content-Type", "defaultValue": "application/json", "description": "

Sets the format of payload you are sending. Can be application/json or text/xml

" }, { "group": "Header", "type": "string", "optional": false, "field": "Accept", "defaultValue": "application/json", "description": "

Sets what format the response body is returned in. Can be application/json or application/xml

" } ] } }, "examples": [ { "title": "JSON example usage:", "content": "curl -X POST \\\n https://restful-booker.herokuapp.com/booking \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstname\" : \"Jim\",\n \"lastname\" : \"Brown\",\n \"totalprice\" : 111,\n \"depositpaid\" : true,\n \"bookingdates\" : {\n \"checkin\" : \"2018-01-01\",\n \"checkout\" : \"2019-01-01\"\n },\n \"additionalneeds\" : \"Breakfast\"\n}'", "type": "json" }, { "title": "XML example usage:", "content": "curl -X POST \\\n https://restful-booker.herokuapp.com/booking \\\n -H 'Content-Type: text/xml' \\\n -d '\n Jim\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n '", "type": "json" }, { "title": "URLencoded example usage:", "content": "curl -X POST \\\n https://restful-booker.herokuapp.com/booking \\\n -H 'Content-Type: application/x-www-form-urlencoded' \\\n -d 'firstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2018-01-02'", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Number", "optional": false, "field": "bookingid", "description": "

ID for newly created booking

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "booking", "description": "

Object that contains

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "booking.firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "booking.lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "booking.totalprice", "description": "

The total price for the booking

" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "booking.depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "booking.bookingdates", "description": "

Sub-object that contains the checkin and checkout dates

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "booking.bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "booking.bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "booking.additionalneeds", "description": "

Any other needs the guest has

" } ] }, "examples": [ { "title": "JSON Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"bookingid\": 1,\n \"booking\": {\n \"firstname\": \"Jim\",\n \"lastname\": \"Brown\",\n \"totalprice\": 111,\n \"depositpaid\": true,\n \"bookingdates\": {\n \"checkin\": \"2018-01-01\",\n \"checkout\": \"2019-01-01\"\n },\n \"additionalneeds\": \"Breakfast\"\n }\n}", "type": "json" }, { "title": "XML Response:", "content": "HTTP/1.1 200 OK\n\n\n\n 1\n \n Jim\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n \n", "type": "xml" }, { "title": "URL Response:", "content": "HTTP/1.1 200 OK\n\nbookingid=1&booking%5Bfirstname%5D=Jim&booking%5Blastname%5D=Brown&booking%5Btotalprice%5D=111&booking%5Bdepositpaid%5D=true&booking%5Bbookingdates%5D%5Bcheckin%5D=2018-01-01&booking%5Bbookingdates%5D%5Bcheckout%5D=2019-01-01", "type": "url" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "delete", "url": "booking/1", "title": "DeleteBooking", "name": "DeleteBooking", "group": "Booking", "version": "1.0.0", "description": "

Deletes a booking from the API. Requires an authorization token to be set in the header or a Basic auth header.

", "parameter": { "fields": { "Url Parameter": [ { "group": "Url Parameter", "type": "Number", "optional": false, "field": "id", "description": "

ID for the booking you want to update

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": true, "field": "Cookie", "defaultValue": "token=<token_value>", "description": "

Sets an authorization token to access the DELETE endpoint, can be used as an alternative to the Authorization

" }, { "group": "Header", "type": "string", "optional": true, "field": "Authorization", "defaultValue": "Basic", "description": "

YWRtaW46cGFzc3dvcmQxMjM=] Basic authorization header to access the DELETE endpoint, can be used as an alternative to the Cookie header

" } ] } }, "examples": [ { "title": "Example 1 (Cookie):", "content": "curl -X DELETE \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/json' \\\n -H 'Cookie: token=abc123'", "type": "json" }, { "title": "Example 2 (Basic auth):", "content": "curl -X DELETE \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM='", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "OK", "description": "

Default HTTP 201 response

" } ] }, "examples": [ { "title": "Response:", "content": "HTTP/1.1 201 Created", "type": "json" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "get", "url": "booking/:id", "title": "GetBooking", "name": "GetBooking", "group": "Booking", "version": "1.0.0", "description": "

Returns a specific booking based upon the booking id provided

", "parameter": { "fields": { "Url Parameter": [ { "group": "Url Parameter", "type": "String", "optional": false, "field": "id", "description": "

The id of the booking you would like to retrieve

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Accept", "defaultValue": "application/json", "description": "

Sets what format the response body is returned in. Can be application/json or application/xml

" } ] } }, "examples": [ { "title": "Example 1 (Get booking):", "content": "curl -i https://restful-booker.herokuapp.com/booking/1", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "bookingdates", "description": "

Sub-object that contains the checkin and checkout dates

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] }, "examples": [ { "title": "JSON Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"firstname\": \"Sally\",\n \"lastname\": \"Brown\",\n \"totalprice\": 111,\n \"depositpaid\": true,\n \"bookingdates\": {\n \"checkin\": \"2013-02-23\",\n \"checkout\": \"2014-10-23\"\n },\n \"additionalneeds\": \"Breakfast\"\n}", "type": "json" }, { "title": "XML Response:", "content": "HTTP/1.1 200 OK\n\n\n Sally\n Brown\n 111\n true\n \n 2013-02-23\n 2014-10-23\n \n Breakfast\n", "type": "xml" }, { "title": "URL Response:", "content": "HTTP/1.1 200 OK\n\nfirstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2019-01-01", "type": "url" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "get", "url": "booking", "title": "GetBookingIds", "name": "GetBookings", "group": "Booking", "version": "1.0.0", "description": "

Returns the ids of all the bookings that exist within the API. Can take optional query strings to search and return a subset of booking ids.

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": true, "field": "firstname", "description": "

Return bookings with a specific firstname

" }, { "group": "Parameter", "type": "String", "optional": true, "field": "lastname", "description": "

Return bookings with a specific lastname

" }, { "group": "Parameter", "type": "date", "optional": true, "field": "checkin", "description": "

Return bookings that have a checkin date greater than or equal to the set checkin date. Format must be CCYY-MM-DD

" }, { "group": "Parameter", "type": "date", "optional": true, "field": "checkout", "description": "

Return bookings that have a checkout date greater than or equal to the set checkout date. Format must be CCYY-MM-DD

" } ] } }, "examples": [ { "title": "Example 1 (All IDs):", "content": "curl -i https://restful-booker.herokuapp.com/booking", "type": "json" }, { "title": "Example 2 (Filter by name):", "content": "curl -i https://restful-booker.herokuapp.com/booking?firstname=sally&lastname=brown", "type": "json" }, { "title": "Example 3 (Filter by checkin/checkout date):", "content": "curl -i https://restful-booker.herokuapp.com/booking?checkin=2014-03-13&checkout=2014-05-21", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "object[]", "optional": false, "field": "object", "description": "

Array of objects that contain unique booking IDs

" }, { "group": "Success 200", "type": "number", "optional": false, "field": "object.bookingid", "description": "

ID of a specific booking that matches search criteria

" } ] }, "examples": [ { "title": "Response:", "content": "HTTP/1.1 200 OK\n\n[\n {\n \"bookingid\": 1\n },\n {\n \"bookingid\": 2\n },\n {\n \"bookingid\": 3\n },\n {\n \"bookingid\": 4\n }\n]", "type": "json" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "patch", "url": "booking/:id", "title": "PartialUpdateBooking", "name": "PartialUpdateBooking", "group": "Booking", "version": "1.0.0", "description": "

Updates a current booking with a partial payload

", "parameter": { "fields": { "Url Parameter": [ { "group": "Url Parameter", "type": "Number", "optional": false, "field": "id", "description": "

ID for the booking you want to update

" } ], "Request body": [ { "group": "Request body", "type": "String", "optional": true, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Request body", "type": "String", "optional": true, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Request body", "type": "Number", "optional": true, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Request body", "type": "Boolean", "optional": true, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Request body", "type": "Date", "optional": true, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Request body", "type": "Date", "optional": true, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Request body", "type": "String", "optional": true, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Content-Type", "defaultValue": "application/json", "description": "

Sets the format of payload you are sending. Can be application/json or text/xml

" }, { "group": "Header", "type": "string", "optional": false, "field": "Accept", "defaultValue": "application/json", "description": "

Sets what format the response body is returned in. Can be application/json or application/xml

" }, { "group": "Header", "type": "string", "optional": true, "field": "Cookie", "defaultValue": "token=<token_value>", "description": "

Sets an authorization token to access the PUT endpoint, can be used as an alternative to the Authorization

" }, { "group": "Header", "type": "string", "optional": true, "field": "Authorization", "defaultValue": "Basic", "description": "

YWRtaW46cGFzc3dvcmQxMjM=] Basic authorization header to access the PUT endpoint, can be used as an alternative to the Cookie header

" } ] } }, "examples": [ { "title": "JSON example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/json' \\\n -H 'Accept: application/json' \\\n -H 'Cookie: token=abc123' \\\n -d '{\n \"firstname\" : \"James\",\n \"lastname\" : \"Brown\"\n}'", "type": "json" }, { "title": "XML example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: text/xml' \\\n -H 'Accept: application/xml' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \\\n -d '\n James\n Brown\n '", "type": "json" }, { "title": "URLencoded example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/x-www-form-urlencoded' \\\n -H 'Accept: application/x-www-form-urlencoded' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \\\n -d 'firstname=Jim&lastname=Brown'", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "bookingdates", "description": "

Sub-object that contains the checkin and checkout dates

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] }, "examples": [ { "title": "JSON Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"firstname\" : \"James\",\n \"lastname\" : \"Brown\",\n \"totalprice\" : 111,\n \"depositpaid\" : true,\n \"bookingdates\" : {\n \"checkin\" : \"2018-01-01\",\n \"checkout\" : \"2019-01-01\"\n },\n \"additionalneeds\" : \"Breakfast\"\n}", "type": "json" }, { "title": "XML Response:", "content": "HTTP/1.1 200 OK\n\n\n James\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n", "type": "xml" }, { "title": "URL Response:", "content": "HTTP/1.1 200 OK\n\nfirstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2019-01-01", "type": "url" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "put", "url": "booking/:id", "title": "UpdateBooking", "name": "UpdateBooking", "group": "Booking", "version": "1.0.0", "description": "

Updates a current booking

", "parameter": { "fields": { "Url Parameter": [ { "group": "Url Parameter", "type": "Number", "optional": false, "field": "id", "description": "

ID for the booking you want to update

" } ], "Request body": [ { "group": "Request body", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Request body", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Request body", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Request body", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Request body", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Request body", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Request body", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Content-Type", "defaultValue": "application/json", "description": "

Sets the format of payload you are sending. Can be application/json or text/xml

" }, { "group": "Header", "type": "string", "optional": false, "field": "Accept", "defaultValue": "application/json", "description": "

Sets what format the response body is returned in. Can be application/json or application/xml

" }, { "group": "Header", "type": "string", "optional": true, "field": "Cookie", "defaultValue": "token=<token_value>", "description": "

Sets an authorization token to access the PUT endpoint, can be used as an alternative to the Authorization

" }, { "group": "Header", "type": "string", "optional": true, "field": "Authorization", "defaultValue": "Basic", "description": "

YWRtaW46cGFzc3dvcmQxMjM=] Basic authorization header to access the PUT endpoint, can be used as an alternative to the Cookie header

" } ] } }, "examples": [ { "title": "JSON example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/json' \\\n -H 'Accept: application/json' \\\n -H 'Cookie: token=abc123' \\\n -d '{\n \"firstname\" : \"James\",\n \"lastname\" : \"Brown\",\n \"totalprice\" : 111,\n \"depositpaid\" : true,\n \"bookingdates\" : {\n \"checkin\" : \"2018-01-01\",\n \"checkout\" : \"2019-01-01\"\n },\n \"additionalneeds\" : \"Breakfast\"\n}'", "type": "json" }, { "title": "XML example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: text/xml' \\\n -H 'Accept: application/xml' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \\\n -d '\n James\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n '", "type": "json" }, { "title": "URLencoded example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/x-www-form-urlencoded' \\\n -H 'Accept: application/x-www-form-urlencoded' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \\\n -d 'firstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2018-01-02'", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "bookingdates", "description": "

Sub-object that contains the checkin and checkout dates

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] }, "examples": [ { "title": "JSON Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"firstname\" : \"James\",\n \"lastname\" : \"Brown\",\n \"totalprice\" : 111,\n \"depositpaid\" : true,\n \"bookingdates\" : {\n \"checkin\" : \"2018-01-01\",\n \"checkout\" : \"2019-01-01\"\n },\n \"additionalneeds\" : \"Breakfast\"\n}", "type": "json" }, { "title": "XML Response:", "content": "HTTP/1.1 200 OK\n\n\n James\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n", "type": "xml" }, { "title": "URL Response:", "content": "HTTP/1.1 200 OK\n\nfirstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2019-01-01", "type": "url" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "get", "url": "ping", "title": "HealthCheck", "name": "Ping", "group": "Ping", "version": "1.0.0", "description": "

A simple health check endpoint to confirm whether the API is up and running.

", "examples": [ { "title": "Ping server:", "content": "curl -i https://restful-booker.herokuapp.com/ping", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "OK", "description": "

Default HTTP 201 response

" } ] }, "examples": [ { "title": "Response:", "content": "HTTP/1.1 201 Created", "type": "json" } ] }, "filename": "routes/index.js", "groupTitle": "Ping" } ] }); ================================================ FILE: public/apidoc/api_data.json ================================================ [ { "type": "post", "url": "auth", "title": "CreateToken", "name": "CreateToken", "group": "Auth", "version": "1.0.0", "description": "

Creates a new auth token to use for access to the PUT and DELETE /booking

", "parameter": { "fields": { "Request body": [ { "group": "Request body", "type": "String", "optional": false, "field": "username", "defaultValue": "admin", "description": "

Username for authentication

" }, { "group": "Request body", "type": "String", "optional": false, "field": "password", "defaultValue": "password123", "description": "

Password for authentication

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Content-Type", "defaultValue": "application/json", "description": "

Sets the format of payload you are sending

" } ] } }, "examples": [ { "title": "Example 1:", "content": "curl -X POST \\\n https://restful-booker.herokuapp.com/auth \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"username\" : \"admin\",\n \"password\" : \"password123\"\n}'", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "token", "description": "

Token to use in future requests

" } ] }, "examples": [ { "title": "Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"token\": \"abc123\"\n}", "type": "json" } ] }, "filename": "routes/index.js", "groupTitle": "Auth" }, { "type": "post", "url": "booking", "title": "CreateBooking", "name": "CreateBooking", "group": "Booking", "version": "1.0.0", "description": "

Creates a new booking in the API

", "parameter": { "fields": { "Request body": [ { "group": "Request body", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Request body", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Request body", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Request body", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Request body", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Request body", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Request body", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Content-Type", "defaultValue": "application/json", "description": "

Sets the format of payload you are sending. Can be application/json or text/xml

" }, { "group": "Header", "type": "string", "optional": false, "field": "Accept", "defaultValue": "application/json", "description": "

Sets what format the response body is returned in. Can be application/json or application/xml

" } ] } }, "examples": [ { "title": "JSON example usage:", "content": "curl -X POST \\\n https://restful-booker.herokuapp.com/booking \\\n -H 'Content-Type: application/json' \\\n -d '{\n \"firstname\" : \"Jim\",\n \"lastname\" : \"Brown\",\n \"totalprice\" : 111,\n \"depositpaid\" : true,\n \"bookingdates\" : {\n \"checkin\" : \"2018-01-01\",\n \"checkout\" : \"2019-01-01\"\n },\n \"additionalneeds\" : \"Breakfast\"\n}'", "type": "json" }, { "title": "XML example usage:", "content": "curl -X POST \\\n https://restful-booker.herokuapp.com/booking \\\n -H 'Content-Type: text/xml' \\\n -d '\n Jim\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n '", "type": "json" }, { "title": "URLencoded example usage:", "content": "curl -X POST \\\n https://restful-booker.herokuapp.com/booking \\\n -H 'Content-Type: application/x-www-form-urlencoded' \\\n -d 'firstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2018-01-02'", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "Number", "optional": false, "field": "bookingid", "description": "

ID for newly created booking

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "booking", "description": "

Object that contains

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "booking.firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "booking.lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "booking.totalprice", "description": "

The total price for the booking

" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "booking.depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "booking.bookingdates", "description": "

Sub-object that contains the checkin and checkout dates

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "booking.bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "booking.bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "booking.additionalneeds", "description": "

Any other needs the guest has

" } ] }, "examples": [ { "title": "JSON Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"bookingid\": 1,\n \"booking\": {\n \"firstname\": \"Jim\",\n \"lastname\": \"Brown\",\n \"totalprice\": 111,\n \"depositpaid\": true,\n \"bookingdates\": {\n \"checkin\": \"2018-01-01\",\n \"checkout\": \"2019-01-01\"\n },\n \"additionalneeds\": \"Breakfast\"\n }\n}", "type": "json" }, { "title": "XML Response:", "content": "HTTP/1.1 200 OK\n\n\n\n 1\n \n Jim\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n \n", "type": "xml" }, { "title": "URL Response:", "content": "HTTP/1.1 200 OK\n\nbookingid=1&booking%5Bfirstname%5D=Jim&booking%5Blastname%5D=Brown&booking%5Btotalprice%5D=111&booking%5Bdepositpaid%5D=true&booking%5Bbookingdates%5D%5Bcheckin%5D=2018-01-01&booking%5Bbookingdates%5D%5Bcheckout%5D=2019-01-01", "type": "url" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "delete", "url": "booking/1", "title": "DeleteBooking", "name": "DeleteBooking", "group": "Booking", "version": "1.0.0", "description": "

Deletes a booking from the API. Requires an authorization token to be set in the header or a Basic auth header.

", "parameter": { "fields": { "Url Parameter": [ { "group": "Url Parameter", "type": "Number", "optional": false, "field": "id", "description": "

ID for the booking you want to update

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": true, "field": "Cookie", "defaultValue": "token=<token_value>", "description": "

Sets an authorization token to access the DELETE endpoint, can be used as an alternative to the Authorization

" }, { "group": "Header", "type": "string", "optional": true, "field": "Authorization", "defaultValue": "Basic", "description": "

YWRtaW46cGFzc3dvcmQxMjM=] Basic authorization header to access the DELETE endpoint, can be used as an alternative to the Cookie header

" } ] } }, "examples": [ { "title": "Example 1 (Cookie):", "content": "curl -X DELETE \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/json' \\\n -H 'Cookie: token=abc123'", "type": "json" }, { "title": "Example 2 (Basic auth):", "content": "curl -X DELETE \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/json' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM='", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "OK", "description": "

Default HTTP 201 response

" } ] }, "examples": [ { "title": "Response:", "content": "HTTP/1.1 201 Created", "type": "json" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "get", "url": "booking/:id", "title": "GetBooking", "name": "GetBooking", "group": "Booking", "version": "1.0.0", "description": "

Returns a specific booking based upon the booking id provided

", "parameter": { "fields": { "Url Parameter": [ { "group": "Url Parameter", "type": "String", "optional": false, "field": "id", "description": "

The id of the booking you would like to retrieve

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Accept", "defaultValue": "application/json", "description": "

Sets what format the response body is returned in. Can be application/json or application/xml

" } ] } }, "examples": [ { "title": "Example 1 (Get booking):", "content": "curl -i https://restful-booker.herokuapp.com/booking/1", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "bookingdates", "description": "

Sub-object that contains the checkin and checkout dates

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] }, "examples": [ { "title": "JSON Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"firstname\": \"Sally\",\n \"lastname\": \"Brown\",\n \"totalprice\": 111,\n \"depositpaid\": true,\n \"bookingdates\": {\n \"checkin\": \"2013-02-23\",\n \"checkout\": \"2014-10-23\"\n },\n \"additionalneeds\": \"Breakfast\"\n}", "type": "json" }, { "title": "XML Response:", "content": "HTTP/1.1 200 OK\n\n\n Sally\n Brown\n 111\n true\n \n 2013-02-23\n 2014-10-23\n \n Breakfast\n", "type": "xml" }, { "title": "URL Response:", "content": "HTTP/1.1 200 OK\n\nfirstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2019-01-01", "type": "url" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "get", "url": "booking", "title": "GetBookingIds", "name": "GetBookings", "group": "Booking", "version": "1.0.0", "description": "

Returns the ids of all the bookings that exist within the API. Can take optional query strings to search and return a subset of booking ids.

", "parameter": { "fields": { "Parameter": [ { "group": "Parameter", "type": "String", "optional": true, "field": "firstname", "description": "

Return bookings with a specific firstname

" }, { "group": "Parameter", "type": "String", "optional": true, "field": "lastname", "description": "

Return bookings with a specific lastname

" }, { "group": "Parameter", "type": "date", "optional": true, "field": "checkin", "description": "

Return bookings that have a checkin date greater than or equal to the set checkin date. Format must be CCYY-MM-DD

" }, { "group": "Parameter", "type": "date", "optional": true, "field": "checkout", "description": "

Return bookings that have a checkout date greater than or equal to the set checkout date. Format must be CCYY-MM-DD

" } ] } }, "examples": [ { "title": "Example 1 (All IDs):", "content": "curl -i https://restful-booker.herokuapp.com/booking", "type": "json" }, { "title": "Example 2 (Filter by name):", "content": "curl -i https://restful-booker.herokuapp.com/booking?firstname=sally&lastname=brown", "type": "json" }, { "title": "Example 3 (Filter by checkin/checkout date):", "content": "curl -i https://restful-booker.herokuapp.com/booking?checkin=2014-03-13&checkout=2014-05-21", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "object[]", "optional": false, "field": "object", "description": "

Array of objects that contain unique booking IDs

" }, { "group": "Success 200", "type": "number", "optional": false, "field": "object.bookingid", "description": "

ID of a specific booking that matches search criteria

" } ] }, "examples": [ { "title": "Response:", "content": "HTTP/1.1 200 OK\n\n[\n {\n \"bookingid\": 1\n },\n {\n \"bookingid\": 2\n },\n {\n \"bookingid\": 3\n },\n {\n \"bookingid\": 4\n }\n]", "type": "json" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "patch", "url": "booking/:id", "title": "PartialUpdateBooking", "name": "PartialUpdateBooking", "group": "Booking", "version": "1.0.0", "description": "

Updates a current booking with a partial payload

", "parameter": { "fields": { "Url Parameter": [ { "group": "Url Parameter", "type": "Number", "optional": false, "field": "id", "description": "

ID for the booking you want to update

" } ], "Request body": [ { "group": "Request body", "type": "String", "optional": true, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Request body", "type": "String", "optional": true, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Request body", "type": "Number", "optional": true, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Request body", "type": "Boolean", "optional": true, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Request body", "type": "Date", "optional": true, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Request body", "type": "Date", "optional": true, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Request body", "type": "String", "optional": true, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Content-Type", "defaultValue": "application/json", "description": "

Sets the format of payload you are sending. Can be application/json or text/xml

" }, { "group": "Header", "type": "string", "optional": false, "field": "Accept", "defaultValue": "application/json", "description": "

Sets what format the response body is returned in. Can be application/json or application/xml

" }, { "group": "Header", "type": "string", "optional": true, "field": "Cookie", "defaultValue": "token=<token_value>", "description": "

Sets an authorization token to access the PUT endpoint, can be used as an alternative to the Authorization

" }, { "group": "Header", "type": "string", "optional": true, "field": "Authorization", "defaultValue": "Basic", "description": "

YWRtaW46cGFzc3dvcmQxMjM=] Basic authorization header to access the PUT endpoint, can be used as an alternative to the Cookie header

" } ] } }, "examples": [ { "title": "JSON example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/json' \\\n -H 'Accept: application/json' \\\n -H 'Cookie: token=abc123' \\\n -d '{\n \"firstname\" : \"James\",\n \"lastname\" : \"Brown\"\n}'", "type": "json" }, { "title": "XML example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: text/xml' \\\n -H 'Accept: application/xml' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \\\n -d '\n James\n Brown\n '", "type": "json" }, { "title": "URLencoded example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/x-www-form-urlencoded' \\\n -H 'Accept: application/x-www-form-urlencoded' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \\\n -d 'firstname=Jim&lastname=Brown'", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "bookingdates", "description": "

Sub-object that contains the checkin and checkout dates

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] }, "examples": [ { "title": "JSON Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"firstname\" : \"James\",\n \"lastname\" : \"Brown\",\n \"totalprice\" : 111,\n \"depositpaid\" : true,\n \"bookingdates\" : {\n \"checkin\" : \"2018-01-01\",\n \"checkout\" : \"2019-01-01\"\n },\n \"additionalneeds\" : \"Breakfast\"\n}", "type": "json" }, { "title": "XML Response:", "content": "HTTP/1.1 200 OK\n\n\n James\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n", "type": "xml" }, { "title": "URL Response:", "content": "HTTP/1.1 200 OK\n\nfirstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2019-01-01", "type": "url" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "put", "url": "booking/:id", "title": "UpdateBooking", "name": "UpdateBooking", "group": "Booking", "version": "1.0.0", "description": "

Updates a current booking

", "parameter": { "fields": { "Url Parameter": [ { "group": "Url Parameter", "type": "Number", "optional": false, "field": "id", "description": "

ID for the booking you want to update

" } ], "Request body": [ { "group": "Request body", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Request body", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Request body", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Request body", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Request body", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Request body", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Request body", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] } }, "header": { "fields": { "Header": [ { "group": "Header", "type": "string", "optional": false, "field": "Content-Type", "defaultValue": "application/json", "description": "

Sets the format of payload you are sending. Can be application/json or text/xml

" }, { "group": "Header", "type": "string", "optional": false, "field": "Accept", "defaultValue": "application/json", "description": "

Sets what format the response body is returned in. Can be application/json or application/xml

" }, { "group": "Header", "type": "string", "optional": true, "field": "Cookie", "defaultValue": "token=<token_value>", "description": "

Sets an authorization token to access the PUT endpoint, can be used as an alternative to the Authorization

" }, { "group": "Header", "type": "string", "optional": true, "field": "Authorization", "defaultValue": "Basic", "description": "

YWRtaW46cGFzc3dvcmQxMjM=] Basic authorization header to access the PUT endpoint, can be used as an alternative to the Cookie header

" } ] } }, "examples": [ { "title": "JSON example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/json' \\\n -H 'Accept: application/json' \\\n -H 'Cookie: token=abc123' \\\n -d '{\n \"firstname\" : \"James\",\n \"lastname\" : \"Brown\",\n \"totalprice\" : 111,\n \"depositpaid\" : true,\n \"bookingdates\" : {\n \"checkin\" : \"2018-01-01\",\n \"checkout\" : \"2019-01-01\"\n },\n \"additionalneeds\" : \"Breakfast\"\n}'", "type": "json" }, { "title": "XML example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: text/xml' \\\n -H 'Accept: application/xml' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \\\n -d '\n James\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n '", "type": "json" }, { "title": "URLencoded example usage:", "content": "curl -X PUT \\\n https://restful-booker.herokuapp.com/booking/1 \\\n -H 'Content-Type: application/x-www-form-urlencoded' \\\n -H 'Accept: application/x-www-form-urlencoded' \\\n -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \\\n -d 'firstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2018-01-02'", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "firstname", "description": "

Firstname for the guest who made the booking

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "lastname", "description": "

Lastname for the guest who made the booking

" }, { "group": "Success 200", "type": "Number", "optional": false, "field": "totalprice", "description": "

The total price for the booking

" }, { "group": "Success 200", "type": "Boolean", "optional": false, "field": "depositpaid", "description": "

Whether the deposit has been paid or not

" }, { "group": "Success 200", "type": "Object", "optional": false, "field": "bookingdates", "description": "

Sub-object that contains the checkin and checkout dates

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkin", "description": "

Date the guest is checking in

" }, { "group": "Success 200", "type": "Date", "optional": false, "field": "bookingdates.checkout", "description": "

Date the guest is checking out

" }, { "group": "Success 200", "type": "String", "optional": false, "field": "additionalneeds", "description": "

Any other needs the guest has

" } ] }, "examples": [ { "title": "JSON Response:", "content": "HTTP/1.1 200 OK\n\n{\n \"firstname\" : \"James\",\n \"lastname\" : \"Brown\",\n \"totalprice\" : 111,\n \"depositpaid\" : true,\n \"bookingdates\" : {\n \"checkin\" : \"2018-01-01\",\n \"checkout\" : \"2019-01-01\"\n },\n \"additionalneeds\" : \"Breakfast\"\n}", "type": "json" }, { "title": "XML Response:", "content": "HTTP/1.1 200 OK\n\n\n James\n Brown\n 111\n true\n \n 2018-01-01\n 2019-01-01\n \n Breakfast\n", "type": "xml" }, { "title": "URL Response:", "content": "HTTP/1.1 200 OK\n\nfirstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2019-01-01", "type": "url" } ] }, "filename": "routes/index.js", "groupTitle": "Booking" }, { "type": "get", "url": "ping", "title": "HealthCheck", "name": "Ping", "group": "Ping", "version": "1.0.0", "description": "

A simple health check endpoint to confirm whether the API is up and running.

", "examples": [ { "title": "Ping server:", "content": "curl -i https://restful-booker.herokuapp.com/ping", "type": "json" } ], "success": { "fields": { "Success 200": [ { "group": "Success 200", "type": "String", "optional": false, "field": "OK", "description": "

Default HTTP 201 response

" } ] }, "examples": [ { "title": "Response:", "content": "HTTP/1.1 201 Created", "type": "json" } ] }, "filename": "routes/index.js", "groupTitle": "Ping" } ] ================================================ FILE: public/apidoc/api_project.js ================================================ define({ "name": "restful-booker", "version": "1.0.0", "description": "API documentation for the playground API restful-booker. Click here to go back to Home", "title": "Restful-booker", "url": "https://restful-booker.herokuapp.com/", "order": [ "GetBookings", "GetBooking", "CreateBooking", "UpdateBooking", "PartialUpdateBooking", "DeleteBooking" ], "sampleUrl": false, "defaultVersion": "0.0.0", "apidoc": "0.3.0", "generator": { "name": "apidoc", "time": "2025-06-11T20:24:26.733Z", "url": "https://apidocjs.com", "version": "0.25.0" } }); ================================================ FILE: public/apidoc/api_project.json ================================================ { "name": "restful-booker", "version": "1.0.0", "description": "API documentation for the playground API restful-booker. Click here to go back to Home", "title": "Restful-booker", "url": "https://restful-booker.herokuapp.com/", "order": [ "GetBookings", "GetBooking", "CreateBooking", "UpdateBooking", "PartialUpdateBooking", "DeleteBooking" ], "sampleUrl": false, "defaultVersion": "0.0.0", "apidoc": "0.3.0", "generator": { "name": "apidoc", "time": "2025-06-11T20:24:26.733Z", "url": "https://apidocjs.com", "version": "0.25.0" } } ================================================ FILE: public/apidoc/css/style.css ================================================ /* ------------------------------------------------------------------------------------------ * Content * ------------------------------------------------------------------------------------------ */ body { max-width: 1280px; } body, p, a, div, th, td { font-family: "Source Sans Pro", sans-serif; font-weight: 400; font-size: 16px; } @media (min-width: 1200px) { body.container-fluid { padding-right: 0px; padding-left: 0px; margin-right: 0px; margin-left: 0px; } } td.code { font-size: 14px; font-family: "Source Code Pro", monospace; font-style: normal; font-weight: 400; } #content { padding-top: 16px; z-Index: -1; margin-left: 270px; } p { color: #808080; } h1 { font-family: "Source Sans Pro Semibold", sans-serif; font-weight: normal; font-size: 44px; line-height: 50px; margin: 0 0 10px 0; padding: 0; } h2 { font-family: "Source Sans Pro", sans-serif; font-weight: normal; font-size: 24px; line-height: 40px; margin: 0 0 20px 0; padding: 0; } section { border-top: 1px solid #ebebeb; padding: 30px 0; } section h1 { font-family: "Source Sans Pro", sans-serif; font-weight: 700; font-size: 32px; line-height: 40px; padding-bottom: 14px; margin: 0 0 20px 0; padding: 0; } article { padding: 14px 0 30px 0; } article h1 { font-family: "Source Sans Pro Bold", sans-serif; font-weight: 600; font-size: 24px; line-height: 26px; } article h2 { font-family: "Source Sans Pro", sans-serif; font-weight: 600; font-size: 18px; line-height: 24px; margin: 0 0 10px 0; } article h3 { font-family: "Source Sans Pro", sans-serif; font-weight: 600; font-size: 16px; line-height: 18px; margin: 0 0 10px 0; } article h4 { font-family: "Source Sans Pro", sans-serif; font-weight: 600; font-size: 14px; line-height: 16px; margin: 0 0 8px 0; } table { border-collapse: collapse; width: 100%; margin: 0 0 20px 0; } th { background-color: #f5f5f5; text-align: left; font-family: "Source Sans Pro", sans-serif; font-weight: 700; padding: 4px 8px; border: #e0e0e0 1px solid; } td { vertical-align: top; padding: 10px 8px 0 8px; border: #e0e0e0 1px solid; } #generator .content { color: #b0b0b0; border-top: 1px solid #ebebeb; padding: 10px 0; } .label-optional { float: right; background-color: grey; margin-top: 4px; } .open-left { right: 0; left: auto; } /* ------------------------------------------------------------------------------------------ * apidoc - intro * ------------------------------------------------------------------------------------------ */ #apidoc .apidoc { border-top: 1px solid #ebebeb; padding: 30px 0; } #apidoc h1 { font-family: "Source Sans Pro", sans-serif; font-weight: 700; font-size: 32px; line-height: 40px; padding-bottom: 14px; margin: 0 0 20px 0; padding: 0; } #apidoc h2 { font-family: "Source Sans Pro Bold", sans-serif; font-weight: 600; font-size: 22px; line-height: 26px; padding-top: 14px; } /* ------------------------------------------------------------------------------------------ * Request type * ------------------------------------------------------------------------------------------ */ .type { font-family: "Source Sans Pro", sans-serif; font-weight: 600; font-size: 15px; display: inline-block; margin: 0 0 5px 0; padding: 4px 5px; border-radius: 6px; text-transform: uppercase; background-color: #3387CC; color: #ffffff; } .type__get { background-color: green; } .type__put { background-color: #e5c500; } .type__post { background-color: #4070ec; } .type__delete { background-color: #ed0039; } /* ------------------------------------------------------------------------------------------ * Sidenav * ------------------------------------------------------------------------------------------ */ .sidenav { width: 228px; margin: 0; padding: 0 20px 20px 20px; position: fixed; top: 50px; left: 0; bottom: 0; overflow-x: hidden; overflow-y: auto; background-color: #f5f5f5; z-index: 10; } .sidenav > li > a { display: block; width: 192px; margin: 0; padding: 2px 11px; border: 0; border-left: transparent 4px solid; border-right: transparent 4px solid; font-family: "Source Sans Pro", sans-serif; font-weight: 400; font-size: 14px; } .sidenav > li.nav-header { margin-top: 8px; margin-bottom: 8px; } .sidenav > li.nav-header > a { padding: 5px 15px; border: 1px solid #e5e5e5; width: 190px; font-family: "Source Sans Pro", sans-serif; font-weight: 700; font-size: 16px; background-color: #ffffff; } .sidenav > li.active > a { position: relative; z-index: 2; background-color: #0088cc; color: #ffffff; } .sidenav > li.has-modifications a { border-right: #60d060 4px solid; } .sidenav > li.is-new a { border-left: #e5e5e5 4px solid; } /* ------------------------------------------------------------------------------------------ * Side nav search * ------------------------------------------------------------------------------------------ */ .sidenav-search { width: 228px; left: 0px; position: fixed; padding: 16px 20px 10px 20px; background-color: #F5F5F5; z-index: 11; } .sidenav-search .search { height: 26px; } .search-reset { position: absolute; display: block; cursor: pointer; width: 20px; height: 20px; text-align: center; right: 28px; top: 17px; background-color: #fff; } /* ------------------------------------------------------------------------------------------ * Compare * ------------------------------------------------------------------------------------------ */ ins { background: #60d060; text-decoration: none; color: #000000; } del { background: #f05050; color: #000000; } .label-ins { background-color: #60d060; } .label-del { background-color: #f05050; text-decoration: line-through; } pre.ins { background-color: #60d060; } pre.del { background-color: #f05050; text-decoration: line-through; } table.ins th, table.ins td { background-color: #60d060; } table.del th, table.del td { background-color: #f05050; text-decoration: line-through; } tr.ins td { background-color: #60d060; } tr.del td { background-color: #f05050; text-decoration: line-through; } /* ------------------------------------------------------------------------------------------ * Spinner * ------------------------------------------------------------------------------------------ */ #loader { position: absolute; width: 100%; } #loader p { padding-top: 80px; margin-left: -4px; } .spinner { margin: 200px auto; width: 60px; height: 60px; position: relative; } .container1 > div, .container2 > div, .container3 > div { width: 14px; height: 14px; background-color: #0088cc; border-radius: 100%; position: absolute; -webkit-animation: bouncedelay 1.2s infinite ease-in-out; animation: bouncedelay 1.2s infinite ease-in-out; /* Prevent first frame from flickering when animation starts */ -webkit-animation-fill-mode: both; animation-fill-mode: both; } .spinner .spinner-container { position: absolute; width: 100%; height: 100%; } .container2 { -webkit-transform: rotateZ(45deg); transform: rotateZ(45deg); } .container3 { -webkit-transform: rotateZ(90deg); transform: rotateZ(90deg); } .circle1 { top: 0; left: 0; } .circle2 { top: 0; right: 0; } .circle3 { right: 0; bottom: 0; } .circle4 { left: 0; bottom: 0; } .container2 .circle1 { -webkit-animation-delay: -1.1s; animation-delay: -1.1s; } .container3 .circle1 { -webkit-animation-delay: -1.0s; animation-delay: -1.0s; } .container1 .circle2 { -webkit-animation-delay: -0.9s; animation-delay: -0.9s; } .container2 .circle2 { -webkit-animation-delay: -0.8s; animation-delay: -0.8s; } .container3 .circle2 { -webkit-animation-delay: -0.7s; animation-delay: -0.7s; } .container1 .circle3 { -webkit-animation-delay: -0.6s; animation-delay: -0.6s; } .container2 .circle3 { -webkit-animation-delay: -0.5s; animation-delay: -0.5s; } .container3 .circle3 { -webkit-animation-delay: -0.4s; animation-delay: -0.4s; } .container1 .circle4 { -webkit-animation-delay: -0.3s; animation-delay: -0.3s; } .container2 .circle4 { -webkit-animation-delay: -0.2s; animation-delay: -0.2s; } .container3 .circle4 { -webkit-animation-delay: -0.1s; animation-delay: -0.1s; } @-webkit-keyframes bouncedelay { 0%, 80%, 100% { -webkit-transform: scale(0.0) } 40% { -webkit-transform: scale(1.0) } } @keyframes bouncedelay { 0%, 80%, 100% { transform: scale(0.0); -webkit-transform: scale(0.0); } 40% { transform: scale(1.0); -webkit-transform: scale(1.0); } } /* ------------------------------------------------------------------------------------------ * Tabs * ------------------------------------------------------------------------------------------ */ ul.nav-tabs { margin: 0; } p.deprecated span{ color: #ff0000; font-weight: bold; text-decoration: underline; } /* ------------------------------------------------------------------------------------------ * Print * ------------------------------------------------------------------------------------------ */ @media print { #sidenav, #version, #versions, section .version, section .versions { display: none; } #content { margin-left: 0; } a { text-decoration: none; color: inherit; } a:after { content: " [" attr(href) "] "; } p { color: #000000 } pre { background-color: #ffffff; color: #000000; padding: 10px; border: #808080 1px solid; border-radius: 6px; position: relative; margin: 10px 0 20px 0; } } /* /@media print */ ================================================ FILE: public/apidoc/index.html ================================================ Loading...

Loading...

================================================ FILE: public/apidoc/locales/ca.js ================================================ define({ ca: { 'Allowed values:' : 'Valors permesos:', 'Compare all with predecessor': 'Comparar tot amb versió anterior', 'compare changes to:' : 'comparar canvis amb:', 'compared to' : 'comparat amb', 'Default value:' : 'Valor per defecte:', 'Description' : 'Descripció', 'Field' : 'Camp', 'General' : 'General', 'Generated with' : 'Generat amb', 'Name' : 'Nom', 'No response values.' : 'Sense valors en la resposta.', 'optional' : 'opcional', 'Parameter' : 'Paràmetre', 'Permission:' : 'Permisos:', 'Response' : 'Resposta', 'Send' : 'Enviar', 'Send a Sample Request' : 'Enviar una petició d\'exemple', 'show up to version:' : 'mostrar versió:', 'Size range:' : 'Tamany de rang:', 'Type' : 'Tipus', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/cs.js ================================================ define({ cs: { 'Allowed values:' : 'Povolené hodnoty:', 'Compare all with predecessor': 'Porovnat vše s předchozími verzemi', 'compare changes to:' : 'porovnat změny s:', 'compared to' : 'porovnat s', 'Default value:' : 'Výchozí hodnota:', 'Description' : 'Popis', 'Field' : 'Pole', 'General' : 'Obecné', 'Generated with' : 'Vygenerováno pomocí', 'Name' : 'Název', 'No response values.' : 'Nebyly vráceny žádné hodnoty.', 'optional' : 'volitelné', 'Parameter' : 'Parametr', 'Permission:' : 'Oprávnění:', 'Response' : 'Odpověď', 'Send' : 'Odeslat', 'Send a Sample Request' : 'Odeslat ukázkový požadavek', 'show up to version:' : 'zobrazit po verzi:', 'Size range:' : 'Rozsah velikosti:', 'Type' : 'Typ', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/de.js ================================================ define({ de: { 'Allowed values:' : 'Erlaubte Werte:', 'Compare all with predecessor': 'Vergleiche alle mit ihren Vorgängern', 'compare changes to:' : 'vergleiche Änderungen mit:', 'compared to' : 'verglichen mit', 'Default value:' : 'Standardwert:', 'Description' : 'Beschreibung', 'Field' : 'Feld', 'General' : 'Allgemein', 'Generated with' : 'Erstellt mit', 'Name' : 'Name', 'No response values.' : 'Keine Rückgabewerte.', 'optional' : 'optional', 'Parameter' : 'Parameter', 'Permission:' : 'Berechtigung:', 'Response' : 'Antwort', 'Send' : 'Senden', 'Send a Sample Request' : 'Eine Beispielanfrage senden', 'show up to version:' : 'zeige bis zur Version:', 'Size range:' : 'Größenbereich:', 'Type' : 'Typ', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/es.js ================================================ define({ es: { 'Allowed values:' : 'Valores permitidos:', 'Compare all with predecessor': 'Comparar todo con versión anterior', 'compare changes to:' : 'comparar cambios con:', 'compared to' : 'comparado con', 'Default value:' : 'Valor por defecto:', 'Description' : 'Descripción', 'Field' : 'Campo', 'General' : 'General', 'Generated with' : 'Generado con', 'Name' : 'Nombre', 'No response values.' : 'Sin valores en la respuesta.', 'optional' : 'opcional', 'Parameter' : 'Parámetro', 'Permission:' : 'Permisos:', 'Response' : 'Respuesta', 'Send' : 'Enviar', 'Send a Sample Request' : 'Enviar una petición de ejemplo', 'show up to version:' : 'mostrar a versión:', 'Size range:' : 'Tamaño de rango:', 'Type' : 'Tipo', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/fr.js ================================================ define({ fr: { 'Allowed values:' : 'Valeurs autorisées :', 'Compare all with predecessor': 'Tout comparer avec ...', 'compare changes to:' : 'comparer les changements à :', 'compared to' : 'comparer à', 'Default value:' : 'Valeur par défaut :', 'Description' : 'Description', 'Field' : 'Champ', 'General' : 'Général', 'Generated with' : 'Généré avec', 'Name' : 'Nom', 'No response values.' : 'Aucune valeur de réponse.', 'optional' : 'optionnel', 'Parameter' : 'Paramètre', 'Permission:' : 'Permission :', 'Response' : 'Réponse', 'Send' : 'Envoyer', 'Send a Sample Request' : 'Envoyer une requête représentative', 'show up to version:' : 'Montrer à partir de la version :', 'Size range:' : 'Ordre de grandeur :', 'Type' : 'Type', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/it.js ================================================ define({ it: { 'Allowed values:' : 'Valori permessi:', 'Compare all with predecessor': 'Confronta tutto con versioni precedenti', 'compare changes to:' : 'confronta modifiche con:', 'compared to' : 'confrontato con', 'Default value:' : 'Valore predefinito:', 'Description' : 'Descrizione', 'Field' : 'Campo', 'General' : 'Generale', 'Generated with' : 'Creato con', 'Name' : 'Nome', 'No response values.' : 'Nessun valore di risposta.', 'optional' : 'opzionale', 'Parameter' : 'Parametro', 'Permission:' : 'Permessi:', 'Response' : 'Risposta', 'Send' : 'Invia', 'Send a Sample Request' : 'Invia una richiesta di esempio', 'show up to version:' : 'mostra alla versione:', 'Size range:' : 'Intervallo dimensione:', 'Type' : 'Tipo', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/locale.js ================================================ define([ './locales/ca.js', './locales/cs.js', './locales/de.js', './locales/es.js', './locales/fr.js', './locales/it.js', './locales/nl.js', './locales/pl.js', './locales/pt_br.js', './locales/ro.js', './locales/ru.js', './locales/tr.js', './locales/vi.js', './locales/zh.js', './locales/zh_cn.js' ], function() { var langId = (navigator.language || navigator.userLanguage).toLowerCase().replace('-', '_'); var language = langId.substr(0, 2); var locales = {}; for (index in arguments) { for (property in arguments[index]) locales[property] = arguments[index][property]; } if ( ! locales['en']) locales['en'] = {}; if ( ! locales[langId] && ! locales[language]) language = 'en'; var locale = (locales[langId] ? locales[langId] : locales[language]); function __(text) { var index = locale[text]; if (index === undefined) return text; return index; }; function setLanguage(language) { locale = locales[language]; } return { __ : __, locales : locales, locale : locale, setLanguage: setLanguage }; }); ================================================ FILE: public/apidoc/locales/nl.js ================================================ define({ nl: { 'Allowed values:' : 'Toegestane waarden:', 'Compare all with predecessor': 'Vergelijk alle met voorgaande versie', 'compare changes to:' : 'vergelijk veranderingen met:', 'compared to' : 'vergelijk met', 'Default value:' : 'Standaard waarde:', 'Description' : 'Omschrijving', 'Field' : 'Veld', 'General' : 'Algemeen', 'Generated with' : 'Gegenereerd met', 'Name' : 'Naam', 'No response values.' : 'Geen response waardes.', 'optional' : 'optioneel', 'Parameter' : 'Parameter', 'Permission:' : 'Permissie:', 'Response' : 'Antwoorden', 'Send' : 'Sturen', 'Send a Sample Request' : 'Stuur een sample aanvragen', 'show up to version:' : 'toon tot en met versie:', 'Size range:' : 'Maatbereik:', 'Type' : 'Type', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/pl.js ================================================ define({ pl: { 'Allowed values:' : 'Dozwolone wartości:', 'Compare all with predecessor': 'Porównaj z poprzednimi wersjami', 'compare changes to:' : 'porównaj zmiany do:', 'compared to' : 'porównaj do:', 'Default value:' : 'Wartość domyślna:', 'Description' : 'Opis', 'Field' : 'Pole', 'General' : 'Generalnie', 'Generated with' : 'Wygenerowano z', 'Name' : 'Nazwa', 'No response values.' : 'Brak odpowiedzi.', 'optional' : 'opcjonalny', 'Parameter' : 'Parametr', 'Permission:' : 'Uprawnienia:', 'Response' : 'Odpowiedź', 'Send' : 'Wyślij', 'Send a Sample Request' : 'Wyślij przykładowe żądanie', 'show up to version:' : 'pokaż do wersji:', 'Size range:' : 'Zakres rozmiaru:', 'Type' : 'Typ', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/pt_br.js ================================================ define({ 'pt_br': { 'Allowed values:' : 'Valores permitidos:', 'Compare all with predecessor': 'Compare todos com antecessores', 'compare changes to:' : 'comparar alterações com:', 'compared to' : 'comparado com', 'Default value:' : 'Valor padrão:', 'Description' : 'Descrição', 'Field' : 'Campo', 'General' : 'Geral', 'Generated with' : 'Gerado com', 'Name' : 'Nome', 'No response values.' : 'Sem valores de resposta.', 'optional' : 'opcional', 'Parameter' : 'Parâmetro', 'Permission:' : 'Permissão:', 'Response' : 'Resposta', 'Send' : 'Enviar', 'Send a Sample Request' : 'Enviar um Exemplo de Pedido', 'show up to version:' : 'aparecer para a versão:', 'Size range:' : 'Faixa de tamanho:', 'Type' : 'Tipo', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/ro.js ================================================ define({ ro: { 'Allowed values:' : 'Valori permise:', 'Compare all with predecessor': 'Compară toate cu versiunea precedentă', 'compare changes to:' : 'compară cu versiunea:', 'compared to' : 'comparat cu', 'Default value:' : 'Valoare implicită:', 'Description' : 'Descriere', 'Field' : 'Câmp', 'General' : 'General', 'Generated with' : 'Generat cu', 'Name' : 'Nume', 'No response values.' : 'Nici o valoare returnată.', 'optional' : 'opțional', 'Parameter' : 'Parametru', 'Permission:' : 'Permisiune:', 'Response' : 'Răspuns', 'Send' : 'Trimite', 'Send a Sample Request' : 'Trimite o cerere de probă', 'show up to version:' : 'arată până la versiunea:', 'Size range:' : 'Interval permis:', 'Type' : 'Tip', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/ru.js ================================================ define({ ru: { 'Allowed values:' : 'Допустимые значения:', 'Compare all with predecessor': 'Сравнить с предыдущей версией', 'compare changes to:' : 'сравнить с:', 'compared to' : 'в сравнении с', 'Default value:' : 'По умолчанию:', 'Description' : 'Описание', 'Field' : 'Название', 'General' : 'Общая информация', 'Generated with' : 'Сгенерировано с помощью', 'Name' : 'Название', 'No response values.' : 'Нет значений для ответа.', 'optional' : 'необязательный', 'Parameter' : 'Параметр', 'Permission:' : 'Разрешено:', 'Response' : 'Ответ', 'Send' : 'Отправить', 'Send a Sample Request' : 'Отправить тестовый запрос', 'show up to version:' : 'показать версию:', 'Size range:' : 'Ограничения:', 'Type' : 'Тип', 'url' : 'URL' } }); ================================================ FILE: public/apidoc/locales/tr.js ================================================ define({ tr: { 'Allowed values:' : 'İzin verilen değerler:', 'Compare all with predecessor': 'Tümünü öncekiler ile karşılaştır', 'compare changes to:' : 'değişiklikleri karşılaştır:', 'compared to' : 'karşılaştır', 'Default value:' : 'Varsayılan değer:', 'Description' : 'Açıklama', 'Field' : 'Alan', 'General' : 'Genel', 'Generated with' : 'Oluşturan', 'Name' : 'İsim', 'No response values.' : 'Dönüş verisi yok.', 'optional' : 'opsiyonel', 'Parameter' : 'Parametre', 'Permission:' : 'İzin:', 'Response' : 'Dönüş', 'Send' : 'Gönder', 'Send a Sample Request' : 'Örnek istek gönder', 'show up to version:' : 'bu versiyona kadar göster:', 'Size range:' : 'Boyut aralığı:', 'Type' : 'Tip', 'url' : 'url' } }); ================================================ FILE: public/apidoc/locales/vi.js ================================================ define({ vi: { 'Allowed values:' : 'Giá trị chấp nhận:', 'Compare all with predecessor': 'So sánh với tất cả phiên bản trước', 'compare changes to:' : 'so sánh sự thay đổi với:', 'compared to' : 'so sánh với', 'Default value:' : 'Giá trị mặc định:', 'Description' : 'Chú thích', 'Field' : 'Trường dữ liệu', 'General' : 'Tổng quan', 'Generated with' : 'Được tạo bởi', 'Name' : 'Tên', 'No response values.' : 'Không có kết quả trả về.', 'optional' : 'Tùy chọn', 'Parameter' : 'Tham số', 'Permission:' : 'Quyền hạn:', 'Response' : 'Kết quả', 'Send' : 'Gửi', 'Send a Sample Request' : 'Gửi một yêu cầu mẫu', 'show up to version:' : 'hiển thị phiên bản:', 'Size range:' : 'Kích cỡ:', 'Type' : 'Kiểu', 'url' : 'liên kết' } }); ================================================ FILE: public/apidoc/locales/zh.js ================================================ define({ zh: { 'Allowed values​​:' : '允許值:', 'Compare all with predecessor': '預先比較所有', 'compare changes to:' : '比較變更:', 'compared to' : '對比', 'Default value:' : '預設值:', 'Description' : '描述', 'Field' : '欄位', 'General' : '概括', 'Generated with' : '生成工具', 'Name' : '名稱', 'No response values​​.' : '無對應資料.', 'optional' : '選填', 'Parameter' : '參數', 'Permission:' : '權限:', 'Response' : '回應', 'Send' : '發送', 'Send a Sample Request' : '發送試用需求', 'show up to version:' : '顯示到版本:', 'Size range:' : '區間:', 'Type' : '類型', 'url' : '網址' } }); ================================================ FILE: public/apidoc/locales/zh_cn.js ================================================ define({ 'zh_cn': { 'Allowed values:' : '允许值:', 'Compare all with predecessor': '与所有较早的比较', 'compare changes to:' : '将当前版本与指定版本比较:', 'compared to' : '相比于', 'Default value:' : '默认值:', 'Description' : '描述', 'Field' : '字段', 'General' : '概要', 'Generated with' : '基于', 'Name' : '名称', 'No response values.' : '无返回值.', 'optional' : '可选', 'Parameter' : '参数', 'Parameters' : '参数', 'Headers' : '头部参数', 'Permission:' : '权限:', 'Response' : '返回', 'Send' : '发送', 'Send a Sample Request' : '发送示例请求', 'show up to version:' : '显示到指定版本:', 'Size range:' : '取值范围:', 'Type' : '类型', 'url' : '网址' } }); ================================================ FILE: public/apidoc/main.js ================================================ require.config({ paths: { bootstrap: './vendor/bootstrap.min', diffMatchPatch: './vendor/diff_match_patch.min', handlebars: './vendor/handlebars.min', handlebarsExtended: './utils/handlebars_helper', jquery: './vendor/jquery.min', locales: './locales/locale', lodash: './vendor/lodash.custom.min', pathToRegexp: './vendor/path-to-regexp/index', prismjs: './vendor/prism', semver: './vendor/semver.min', utilsSampleRequest: './utils/send_sample_request', webfontloader: './vendor/webfontloader', list: './vendor/list.min', apiData: './api_data', apiProject: './api_project', }, shim: { bootstrap: { deps: ['jquery'] }, diffMatchPatch: { exports: 'diff_match_patch' }, handlebars: { exports: 'Handlebars' }, handlebarsExtended: { deps: ['jquery', 'handlebars'], exports: 'Handlebars' }, prismjs: { exports: 'Prism' }, }, urlArgs: 'v=' + (new Date()).getTime(), waitSeconds: 150 }); require([ 'jquery', 'lodash', 'locales', 'handlebarsExtended', 'apiProject', 'apiData', 'prismjs', 'utilsSampleRequest', 'semver', 'webfontloader', 'bootstrap', 'pathToRegexp', 'list' ], function($, _, locale, Handlebars, apiProject, apiData, Prism, sampleRequest, semver, WebFont) { // Load google web fonts. WebFont.load({ active: function() { // Only init after fonts are loaded. init($, _, locale, Handlebars, apiProject, apiData, Prism, sampleRequest, semver); }, inactive: function() { // Run init, even if loading fonts fails init($, _, locale, Handlebars, apiProject, apiData, Prism, sampleRequest, semver); }, google: { families: ['Source Code Pro', 'Source Sans Pro:n4,n6,n7'] } }); }); function init($, _, locale, Handlebars, apiProject, apiData, Prism, sampleRequest, semver) { var api = apiData.api; // // Templates // var templateHeader = Handlebars.compile( $('#template-header').html() ); var templateFooter = Handlebars.compile( $('#template-footer').html() ); var templateArticle = Handlebars.compile( $('#template-article').html() ); var templateCompareArticle = Handlebars.compile( $('#template-compare-article').html() ); var templateGenerator = Handlebars.compile( $('#template-generator').html() ); var templateProject = Handlebars.compile( $('#template-project').html() ); var templateSections = Handlebars.compile( $('#template-sections').html() ); var templateSidenav = Handlebars.compile( $('#template-sidenav').html() ); // // apiProject defaults // if ( ! apiProject.template) apiProject.template = {}; if (apiProject.template.withCompare == null) apiProject.template.withCompare = true; if (apiProject.template.withGenerator == null) apiProject.template.withGenerator = true; if (apiProject.template.forceLanguage) locale.setLanguage(apiProject.template.forceLanguage); if (apiProject.template.aloneDisplay == null) apiProject.template.aloneDisplay = false; // Setup jQuery Ajax $.ajaxSetup(apiProject.template.jQueryAjaxSetup); // // Data transform // // grouped by group var apiByGroup = _.groupBy(api, function(entry) { return entry.group; }); // grouped by group and name var apiByGroupAndName = {}; $.each(apiByGroup, function(index, entries) { apiByGroupAndName[index] = _.groupBy(entries, function(entry) { return entry.name; }); }); // // sort api within a group by title ASC and custom order // var newList = []; var umlauts = { 'ä': 'ae', 'ü': 'ue', 'ö': 'oe', 'ß': 'ss' }; // TODO: remove in version 1.0 $.each (apiByGroupAndName, function(index, groupEntries) { // get titles from the first entry of group[].name[] (name has versioning) var titles = []; $.each (groupEntries, function(titleName, entries) { var title = entries[0].title; if(title !== undefined) { title.toLowerCase().replace(/[äöüß]/g, function($0) { return umlauts[$0]; }); titles.push(title + '#~#' + titleName); // '#~#' keep reference to titleName after sorting } }); // sort by name ASC titles.sort(); // custom order if (apiProject.order) titles = sortByOrder(titles, apiProject.order, '#~#'); // add single elements to the new list titles.forEach(function(name) { var values = name.split('#~#'); var key = values[1]; groupEntries[key].forEach(function(entry) { newList.push(entry); }); }); }); // api overwrite with ordered list api = newList; // // Group- and Versionlists // var apiGroups = {}; var apiGroupTitles = {}; var apiVersions = {}; apiVersions[apiProject.version] = 1; $.each(api, function(index, entry) { apiGroups[entry.group] = 1; apiGroupTitles[entry.group] = entry.groupTitle || entry.group; apiVersions[entry.version] = 1; }); // sort groups apiGroups = Object.keys(apiGroups); apiGroups.sort(); // custom order if (apiProject.order) apiGroups = sortByOrder(apiGroups, apiProject.order); // sort versions DESC apiVersions = Object.keys(apiVersions); apiVersions.sort(semver.compare); apiVersions.reverse(); // // create Navigationlist // var nav = []; apiGroups.forEach(function(group) { // Mainmenu entry nav.push({ group: group, isHeader: true, title: apiGroupTitles[group] }); // Submenu var oldName = ''; api.forEach(function(entry) { if (entry.group === group) { if (oldName !== entry.name) { nav.push({ title: entry.title, group: group, name: entry.name, type: entry.type, version: entry.version, url: entry.url }); } else { nav.push({ title: entry.title, group: group, hidden: true, name: entry.name, type: entry.type, version: entry.version, url: entry.url }); } oldName = entry.name; } }); }); /** * Add navigation items by analyzing the HTML content and searching for h1 and h2 tags * @param nav Object the navigation array * @param content string the compiled HTML content * @param index where to insert items * @return boolean true if any good-looking (i.e. with a group identifier)

tag was found */ function add_nav(nav, content, index) { var found_level1 = false; if ( ! content) { return found_level1; } var topics = content.match(/(.+?)<\/h(1|2)>/gi); if ( topics ) { topics.forEach(function(entry) { var level = entry.substring(2,3); var title = entry.replace(/<.+?>/g, ''); // Remove all HTML tags for the title var entry_tags = entry.match(/id="api-([^\-]+)(?:-(.+))?"/); // Find the group and name in the id property var group = (entry_tags ? entry_tags[1] : null); var name = (entry_tags ? entry_tags[2] : null); if (level==1 && title && group) { nav.splice(index, 0, { group: group, isHeader: true, title: title, isFixed: true }); index++; found_level1 = true; } if (level==2 && title && group && name) { nav.splice(index, 0, { group: group, name: name, isHeader: false, title: title, isFixed: false, version: '1.0' }); index++; } }); } return found_level1; } // Mainmenu Header entry if (apiProject.header) { var found_level1 = add_nav(nav, apiProject.header.content, 0); // Add level 1 and 2 titles if (!found_level1) { // If no Level 1 tags were found, make a title nav.unshift({ group: '_', isHeader: true, title: (apiProject.header.title == null) ? locale.__('General') : apiProject.header.title, isFixed: true }); } } // Mainmenu Footer entry if (apiProject.footer) { var last_nav_index = nav.length; var found_level1 = add_nav(nav, apiProject.footer.content, nav.length); // Add level 1 and 2 titles if (!found_level1 && apiProject.footer.title != null) { // If no Level 1 tags were found, make a title nav.splice(last_nav_index, 0, { group: '_footer', isHeader: true, title: apiProject.footer.title, isFixed: true }); } } // render pagetitle var title = apiProject.title ? apiProject.title : 'apiDoc: ' + apiProject.name + ' - ' + apiProject.version; $(document).attr('title', title); // remove loader $('#loader').remove(); // render sidenav var fields = { nav: nav }; $('#sidenav').append( templateSidenav(fields) ); // render Generator $('#generator').append( templateGenerator(apiProject) ); // render Project _.extend(apiProject, { versions: apiVersions}); $('#project').append( templateProject(apiProject) ); // render apiDoc, header/footer documentation if (apiProject.header) $('#header').append( templateHeader(apiProject.header) ); if (apiProject.footer) $('#footer').append( templateFooter(apiProject.footer) ); // // Render Sections and Articles // var articleVersions = {}; var content = ''; apiGroups.forEach(function(groupEntry) { var articles = []; var oldName = ''; var fields = {}; var title = groupEntry; var description = ''; articleVersions[groupEntry] = {}; // render all articles of a group api.forEach(function(entry) { if(groupEntry === entry.group) { if (oldName !== entry.name) { // determine versions api.forEach(function(versionEntry) { if (groupEntry === versionEntry.group && entry.name === versionEntry.name) { if ( ! articleVersions[entry.group].hasOwnProperty(entry.name) ) { articleVersions[entry.group][entry.name] = []; } articleVersions[entry.group][entry.name].push(versionEntry.version); } }); fields = { article: entry, versions: articleVersions[entry.group][entry.name] }; } else { fields = { article: entry, hidden: true, versions: articleVersions[entry.group][entry.name] }; } // add prefix URL for endpoint unless it's already absolute if (apiProject.url) { if (fields.article.url.substr(0, 4).toLowerCase() !== 'http') { fields.article.url = apiProject.url + fields.article.url; } } addArticleSettings(fields, entry); if (entry.groupTitle) title = entry.groupTitle; // TODO: make groupDescription compareable with older versions (not important for the moment) if (entry.groupDescription) description = entry.groupDescription; articles.push({ article: templateArticle(fields), group: entry.group, name: entry.name, aloneDisplay: apiProject.template.aloneDisplay }); oldName = entry.name; } }); // render Section with Articles var fields = { group: groupEntry, title: title, description: description, articles: articles, aloneDisplay: apiProject.template.aloneDisplay }; content += templateSections(fields); }); $('#sections').append( content ); // Bootstrap Scrollspy $(this).scrollspy({ target: '#scrollingNav' }); // Content-Scroll on Navigation click. $('.sidenav').find('a').on('click', function(e) { e.preventDefault(); var id = $(this).attr('href'); if ($(id).length > 0) $('html,body').animate({ scrollTop: parseInt($(id).offset().top) }, 400); window.location.hash = $(this).attr('href'); }); /** * Check if Parameter (sub) List has a type Field. * Example: @apiSuccess varname1 No type. * @apiSuccess {String} varname2 With type. * * @param {Object} fields */ function _hasTypeInFields(fields) { var result = false; $.each(fields, function(name) { result = result || _.some(fields[name], function(item) { return item.type; }); }); return result; } /** * On Template changes, recall plugins. */ function initDynamic() { // Bootstrap popover $('button[data-toggle="popover"]').popover().click(function(e) { e.preventDefault(); }); var version = $('#version strong').html(); $('#sidenav li').removeClass('is-new'); if (apiProject.template.withCompare) { $('#sidenav li[data-version=\'' + version + '\']').each(function(){ var group = $(this).data('group'); var name = $(this).data('name'); var length = $('#sidenav li[data-group=\'' + group + '\'][data-name=\'' + name + '\']').length; var index = $('#sidenav li[data-group=\'' + group + '\'][data-name=\'' + name + '\']').index($(this)); if (length === 1 || index === (length - 1)) $(this).addClass('is-new'); }); } // tabs $('.nav-tabs-examples a').click(function (e) { e.preventDefault(); $(this).tab('show'); }); $('.nav-tabs-examples').find('a:first').tab('show'); // sample header-content-type switch $('.sample-header-content-type-switch').change(function () { var paramName = '.' + $(this).attr('name') + '-fields'; var bodyName = '.' + $(this).attr('name') + '-body'; var selectName = 'select[name=' + $(this).attr('name') + ']'; if ($(this).val() == 'body-json') { $(selectName).val('undefined'); $(this).val('body-json'); $(paramName).removeClass('hide'); $(this).parent().nextAll(paramName).first().addClass('hide'); $(bodyName).addClass('hide'); $(this).parent().nextAll(bodyName).first().removeClass('hide'); } else if ($(this).val() == "body-form-data") { $(selectName).val('undefined'); $(this).val('body-form-data'); $(bodyName).addClass('hide'); $(paramName).removeClass('hide'); } else { $(this).parent().nextAll(paramName).first().removeClass('hide') $(this).parent().nextAll(bodyName).first().addClass('hide'); } $(this).prev('.sample-request-switch').prop('checked', true); }); // sample request switch $('.sample-request-switch').click(function (e) { var paramName = '.' + $(this).attr('name') + '-fields'; var bodyName = '.' + $(this).attr('name') + '-body'; var select = $(this).next('.' + $(this).attr('name') + '-select').val(); if($(this).prop("checked")){ if (select == 'body-json'){ $(this).parent().nextAll(bodyName).first().removeClass('hide'); }else { $(this).parent().nextAll(paramName).first().removeClass('hide'); } }else { if (select == 'body-json'){ $(this).parent().nextAll(bodyName).first().addClass('hide'); }else { $(this).parent().nextAll(paramName).first().addClass('hide'); } } }); if (apiProject.template.aloneDisplay){ //show group $('.show-group').click(function () { var apiGroup = '.' + $(this).attr('data-group') + '-group'; var apiGroupArticle = '.' + $(this).attr('data-group') + '-article'; $(".show-api-group").addClass('hide'); $(apiGroup).removeClass('hide'); $(".show-api-article").addClass('hide'); $(apiGroupArticle).removeClass('hide'); }); //show api $('.show-api').click(function () { var apiName = '.' + $(this).attr('data-name') + '-article'; var apiGroup = '.' + $(this).attr('data-group') + '-group'; $(".show-api-group").addClass('hide'); $(apiGroup).removeClass('hide'); $(".show-api-article").addClass('hide'); $(apiName).removeClass('hide'); }); } // call scrollspy refresh method $(window).scrollspy('refresh'); // init modules sampleRequest.initDynamic(); Prism.highlightAll() } initDynamic(); if (apiProject.template.aloneDisplay) { var hashVal = window.location.hash; if (hashVal != null && hashVal.length !== 0) { $("." + hashVal.slice(1) + "-init").click(); } } // // HTML-Template specific jQuery-Functions // // Change Main Version function setMainVersion(selectedVersion) { if (typeof(selectedVersion) === 'undefined') { selectedVersion = $('#version strong').html(); } else { $('#version strong').html(selectedVersion); } // hide all $('article').addClass('hide'); $('#sidenav li:not(.nav-fixed)').addClass('hide'); // show 1st equal or lower Version of each entry $('article[data-version]').each(function(index) { var group = $(this).data('group'); var name = $(this).data('name'); var version = $(this).data('version'); if (semver.lte(version, selectedVersion)) { if ($('article[data-group=\'' + group + '\'][data-name=\'' + name + '\']:visible').length === 0) { // enable Article $('article[data-group=\'' + group + '\'][data-name=\'' + name + '\'][data-version=\'' + version + '\']').removeClass('hide'); // enable Navigation $('#sidenav li[data-group=\'' + group + '\'][data-name=\'' + name + '\'][data-version=\'' + version + '\']').removeClass('hide'); $('#sidenav li.nav-header[data-group=\'' + group + '\']').removeClass('hide'); } } }); // show 1st equal or lower Version of each entry $('article[data-version]').each(function(index) { var group = $(this).data('group'); $('section#api-' + group).removeClass('hide'); if ($('section#api-' + group + ' article:visible').length === 0) { $('section#api-' + group).addClass('hide'); } else { $('section#api-' + group).removeClass('hide'); } }); initDynamic(); return; } setMainVersion(); $('#versions li.version a').on('click', function(e) { e.preventDefault(); setMainVersion($(this).html()); }); // compare all article with their predecessor $('#compareAllWithPredecessor').on('click', changeAllVersionCompareTo); // change version of an article $('article .versions li.version a').on('click', changeVersionCompareTo); // compare url-parameter $.urlParam = function(name) { var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href); return (results && results[1]) ? results[1] : null; }; if ($.urlParam('compare')) { // URL Paramter ?compare=1 is set $('#compareAllWithPredecessor').trigger('click'); } // Quick jump on page load to hash position. // Should happen after setting the main version // and after triggering the click on the compare button, // as these actions modify the content // and would make it jump to the wrong position or not jump at all. if (window.location.hash) { var id = decodeURI(window.location.hash); if ($(id).length > 0) $('html,body').animate({ scrollTop: parseInt($(id).offset().top) }, 0); } /** * Initialize search */ var options = { valueNames: [ 'nav-list-item','nav-list-url-item'] }; var endpointsList = new List('scrollingNav', options); /** * Set initial focus to search input */ $('#scrollingNav .sidenav-search input.search').focus(); /** * Detect ESC key to reset search */ $(document).keyup(function(e) { if (e.keyCode === 27) $('span.search-reset').click(); }); /** * Search reset */ $('span.search-reset').on('click', function() { $('#scrollingNav .sidenav-search input.search') .val("") .focus() ; endpointsList.search(); }); /** * Change version of an article to compare it to an other version. */ function changeVersionCompareTo(e) { e.preventDefault(); var $root = $(this).parents('article'); var selectedVersion = $(this).html(); var $button = $root.find('.version'); var currentVersion = $button.find('strong').html(); $button.find('strong').html(selectedVersion); var group = $root.data('group'); var name = $root.data('name'); var version = $root.data('version'); var compareVersion = $root.data('compare-version'); if (compareVersion === selectedVersion) return; if ( ! compareVersion && version == selectedVersion) return; if (compareVersion && articleVersions[group][name][0] === selectedVersion || version === selectedVersion) { // the version of the entry is set to the highest version (reset) resetArticle(group, name, version); } else { var $compareToArticle = $('article[data-group=\'' + group + '\'][data-name=\'' + name + '\'][data-version=\'' + selectedVersion + '\']'); var sourceEntry = {}; var compareEntry = {}; $.each(apiByGroupAndName[group][name], function(index, entry) { if (entry.version === version) sourceEntry = entry; if (entry.version === selectedVersion) compareEntry = entry; }); var fields = { article: sourceEntry, compare: compareEntry, versions: articleVersions[group][name] }; // add unique id // TODO: replace all group-name-version in template with id. fields.article.id = fields.article.group + '-' + fields.article.name + '-' + fields.article.version; fields.article.id = fields.article.id.replace(/\./g, '_'); fields.compare.id = fields.compare.group + '-' + fields.compare.name + '-' + fields.compare.version; fields.compare.id = fields.compare.id.replace(/\./g, '_'); var entry = sourceEntry; if (entry.parameter && entry.parameter.fields) fields._hasTypeInParameterFields = _hasTypeInFields(entry.parameter.fields); if (entry.error && entry.error.fields) fields._hasTypeInErrorFields = _hasTypeInFields(entry.error.fields); if (entry.success && entry.success.fields) fields._hasTypeInSuccessFields = _hasTypeInFields(entry.success.fields); if (entry.info && entry.info.fields) fields._hasTypeInInfoFields = _hasTypeInFields(entry.info.fields); var entry = compareEntry; if (fields._hasTypeInParameterFields !== true && entry.parameter && entry.parameter.fields) fields._hasTypeInParameterFields = _hasTypeInFields(entry.parameter.fields); if (fields._hasTypeInErrorFields !== true && entry.error && entry.error.fields) fields._hasTypeInErrorFields = _hasTypeInFields(entry.error.fields); if (fields._hasTypeInSuccessFields !== true && entry.success && entry.success.fields) fields._hasTypeInSuccessFields = _hasTypeInFields(entry.success.fields); if (fields._hasTypeInInfoFields !== true && entry.info && entry.info.fields) fields._hasTypeInInfoFields = _hasTypeInFields(entry.info.fields); var content = templateCompareArticle(fields); $root.after(content); var $content = $root.next(); // Event on.click re-assign $content.find('.versions li.version a').on('click', changeVersionCompareTo); // select navigation $('#sidenav li[data-group=\'' + group + '\'][data-name=\'' + name + '\'][data-version=\'' + currentVersion + '\']').addClass('has-modifications'); $root.remove(); // TODO: on change main version or select the highest version re-render } initDynamic(); } /** * Compare all currently selected Versions with their predecessor. */ function changeAllVersionCompareTo(e) { e.preventDefault(); $('article:visible .versions').each(function(){ var $root = $(this).parents('article'); var currentVersion = $root.data('version'); var $foundElement = null; $(this).find('li.version a').each(function() { var selectVersion = $(this).html(); if (selectVersion < currentVersion && ! $foundElement) $foundElement = $(this); }); if($foundElement) $foundElement.trigger('click'); }); initDynamic(); } /** * Sort the fields. */ function sortFields(fields_object) { $.each(fields_object, function (key, fields) { var reversed = fields.slice().reverse() var max_dot_count = Math.max.apply(null, reversed.map(function (item) { return item.field.split(".").length - 1; })) for (var dot_count = 1; dot_count <= max_dot_count; dot_count++) { reversed.forEach(function (item, index) { var parts = item.field.split("."); if (parts.length - 1 == dot_count) { var fields_names = fields.map(function (item) { return item.field; }); if (parts.slice(1).length >= 1) { var prefix = parts.slice(0, parts.length - 1).join("."); var prefix_index = fields_names.indexOf(prefix); if (prefix_index > -1) { fields.splice(fields_names.indexOf(item.field), 1); fields.splice(prefix_index + 1, 0, item); } } } }); } }); } /** * Add article settings. */ function addArticleSettings(fields, entry) { // add unique id // TODO: replace all group-name-version in template with id. fields.id = fields.article.group + '-' + fields.article.name + '-' + fields.article.version; fields.id = fields.id.replace(/\./g, '_'); if (entry.header && entry.header.fields) { sortFields(entry.header.fields); fields._hasTypeInHeaderFields = _hasTypeInFields(entry.header.fields); } if (entry.parameter && entry.parameter.fields) { sortFields(entry.parameter.fields); fields._hasTypeInParameterFields = _hasTypeInFields(entry.parameter.fields); } if (entry.error && entry.error.fields) { sortFields(entry.error.fields); fields._hasTypeInErrorFields = _hasTypeInFields(entry.error.fields); } if (entry.success && entry.success.fields) { sortFields(entry.success.fields); fields._hasTypeInSuccessFields = _hasTypeInFields(entry.success.fields); } if (entry.info && entry.info.fields) { sortFields(entry.info.fields); fields._hasTypeInInfoFields = _hasTypeInFields(entry.info.fields); } // add template settings fields.template = apiProject.template; } /** * Render Article. */ function renderArticle(group, name, version) { var entry = {}; $.each(apiByGroupAndName[group][name], function(index, currentEntry) { if (currentEntry.version === version) entry = currentEntry; }); var fields = { article: entry, versions: articleVersions[group][name] }; addArticleSettings(fields, entry); return templateArticle(fields); } /** * Render original Article and remove the current visible Article. */ function resetArticle(group, name, version) { var $root = $('article[data-group=\'' + group + '\'][data-name=\'' + name + '\']:visible'); var content = renderArticle(group, name, version); $root.after(content); var $content = $root.next(); // Event on.click needs to be reassigned (should actually work with on ... automatically) $content.find('.versions li.version a').on('click', changeVersionCompareTo); $('#sidenav li[data-group=\'' + group + '\'][data-name=\'' + name + '\'][data-version=\'' + version + '\']').removeClass('has-modifications'); $root.remove(); return; } /** * Return ordered entries by custom order and append not defined entries to the end. * @param {String[]} elements * @param {String[]} order * @param {String} splitBy * @return {String[]} Custom ordered list. */ function sortByOrder(elements, order, splitBy) { var results = []; order.forEach (function(name) { if (splitBy) elements.forEach (function(element) { var parts = element.split(splitBy); var key = parts[0]; // reference keep for sorting if (key == name || parts[1] == name) results.push(element); }); else elements.forEach (function(key) { if (key == name) results.push(name); }); }); // Append all other entries that ar not defined in order elements.forEach(function(element) { if (results.indexOf(element) === -1) results.push(element); }); return results; } Prism.highlightAll() } ================================================ FILE: public/apidoc/utils/handlebars_helper.js ================================================ define([ 'locales', 'handlebars', 'diffMatchPatch' ], function(locale, Handlebars, DiffMatchPatch) { /** * Return a text as markdown. * Currently only a little helper to replace apidoc-inline Links (#Group:Name). * Should be replaced with a full markdown lib. * @param string text */ Handlebars.registerHelper('markdown', function(text) { if ( ! text ) { return text; } text = text.replace(/((\[(.*?)\])?\(#)((.+?):(.+?))(\))/mg, function(match, p1, p2, p3, p4, p5, p6) { var link = p3 || p5 + '/' + p6; return '' + link + ''; }); return text; }); /** * set paramater type. */ Handlebars.registerHelper("setInputType", function(text) { if (text === "File") { return "file"; } return "text"; }); /** * start/stop timer for simple performance check. */ var timer; Handlebars.registerHelper('startTimer', function(text) { timer = new Date(); return ''; }); Handlebars.registerHelper('stopTimer', function(text) { console.log(new Date() - timer); return ''; }); /** * Return localized Text. * @param string text */ Handlebars.registerHelper('__', function(text) { return locale.__(text); }); /** * Console log. * @param mixed obj */ Handlebars.registerHelper('cl', function(obj) { console.log(obj); return ''; }); /** * Replace underscore with space. * @param string text */ Handlebars.registerHelper('underscoreToSpace', function(text) { return text.replace(/(_+)/g, ' '); }); /** * */ Handlebars.registerHelper('assign', function(name) { if(arguments.length > 0) { var type = typeof(arguments[1]); var arg = null; if(type === 'string' || type === 'number' || type === 'boolean') arg = arguments[1]; Handlebars.registerHelper(name, function() { return arg; }); } return ''; }); /** * */ Handlebars.registerHelper('nl2br', function(text) { return _handlebarsNewlineToBreak(text); }); /** * */ Handlebars.registerHelper('if_eq', function(context, options) { var compare = context; // Get length if context is an object if (context instanceof Object && ! (options.hash.compare instanceof Object)) compare = Object.keys(context).length; if (compare === options.hash.compare) return options.fn(this); return options.inverse(this); }); /** * */ Handlebars.registerHelper('if_gt', function(context, options) { var compare = context; // Get length if context is an object if (context instanceof Object && ! (options.hash.compare instanceof Object)) compare = Object.keys(context).length; if(compare > options.hash.compare) return options.fn(this); return options.inverse(this); }); /** * */ var templateCache = {}; Handlebars.registerHelper('subTemplate', function(name, sourceContext) { if ( ! templateCache[name]) templateCache[name] = Handlebars.compile($('#template-' + name).html()); var template = templateCache[name]; var templateContext = $.extend({}, this, sourceContext.hash); return new Handlebars.SafeString( template(templateContext) ); }); /** * */ Handlebars.registerHelper('toLowerCase', function(value) { return (value && typeof value === 'string') ? value.toLowerCase() : ''; }); /** * */ Handlebars.registerHelper('splitFill', function(value, splitChar, fillChar) { var splits = value.split(splitChar); return new Array(splits.length).join(fillChar) + splits[splits.length - 1]; }); /** * Convert Newline to HTML-Break (nl2br). * * @param {String} text * @returns {String} */ function _handlebarsNewlineToBreak(text) { return ('' + text).replace(/([^>\r\n]?)(\r\n|\n\r|\r|\n)/g, '$1' + '
' + '$2'); } /** * */ Handlebars.registerHelper('each_compare_list_field', function(source, compare, options) { var fieldName = options.hash.field; var newSource = []; if (source) { source.forEach(function(entry) { var values = entry; values['key'] = entry[fieldName]; newSource.push(values); }); } var newCompare = []; if (compare) { compare.forEach(function(entry) { var values = entry; values['key'] = entry[fieldName]; newCompare.push(values); }); } return _handlebarsEachCompared('key', newSource, newCompare, options); }); /** * */ Handlebars.registerHelper('each_compare_keys', function(source, compare, options) { var newSource = []; if (source) { var sourceFields = Object.keys(source); sourceFields.forEach(function(name) { var values = {}; values['value'] = source[name]; values['key'] = name; newSource.push(values); }); } var newCompare = []; if (compare) { var compareFields = Object.keys(compare); compareFields.forEach(function(name) { var values = {}; values['value'] = compare[name]; values['key'] = name; newCompare.push(values); }); } return _handlebarsEachCompared('key', newSource, newCompare, options); }); /** * */ Handlebars.registerHelper('each_compare_field', function(source, compare, options) { return _handlebarsEachCompared('field', source, compare, options); }); /** * */ Handlebars.registerHelper('each_compare_title', function(source, compare, options) { return _handlebarsEachCompared('title', source, compare, options); }); /** * */ Handlebars.registerHelper('reformat', function(source, type){ if (type == 'json') try { return JSON.stringify(JSON.parse(source.trim()),null, " "); } catch(e) { } return source }); /** * */ Handlebars.registerHelper('showDiff', function(source, compare, options) { var ds = ''; if(source === compare) { ds = source; } else { if( ! source) return compare; if( ! compare) return source; var d = diffMatchPatch.diff_main(stripHtml(compare), stripHtml(source)); diffMatchPatch.diff_cleanupSemantic(d); ds = diffMatchPatch.diff_prettyHtml(d); ds = ds.replace(/¶/gm, ''); } if(options === 'nl2br') ds = _handlebarsNewlineToBreak(ds); return ds; }); /** * */ function _handlebarsEachCompared(fieldname, source, compare, options) { var dataList = []; var index = 0; if(source) { source.forEach(function(sourceEntry) { var found = false; if (compare) { compare.forEach(function(compareEntry) { if(sourceEntry[fieldname] === compareEntry[fieldname]) { var data = { typeSame: true, source: sourceEntry, compare: compareEntry, index: index }; dataList.push(data); found = true; index++; } }); } if ( ! found) { var data = { typeIns: true, source: sourceEntry, index: index }; dataList.push(data); index++; } }); } if (compare) { compare.forEach(function(compareEntry) { var found = false; if (source) { source.forEach(function(sourceEntry) { if(sourceEntry[fieldname] === compareEntry[fieldname]) found = true; }); } if ( ! found) { var data = { typeDel: true, compare: compareEntry, index: index }; dataList.push(data); index++; } }); } var ret = ''; var length = dataList.length; for (var index in dataList) { if(index == (length - 1)) dataList[index]['_last'] = true; ret = ret + options.fn(dataList[index]); } return ret; } var diffMatchPatch = new DiffMatchPatch(); /** * Overwrite Colors */ DiffMatchPatch.prototype.diff_prettyHtml = function(diffs) { var html = []; var pattern_amp = /&/g; var pattern_lt = //g; var pattern_para = /\n/g; for (var x = 0; x < diffs.length; x++) { var op = diffs[x][0]; // Operation (insert, delete, equal) var data = diffs[x][1]; // Text of change. var text = data.replace(pattern_amp, '&').replace(pattern_lt, '<') .replace(pattern_gt, '>').replace(pattern_para, '¶
'); switch (op) { case DIFF_INSERT: html[x] = '' + text + ''; break; case DIFF_DELETE: html[x] = '' + text + ''; break; case DIFF_EQUAL: html[x] = '' + text + ''; break; } } return html.join(''); }; /** * Fixes html after comparison (#506, #538, #616, #825) */ function stripHtml(html){ var div = document.createElement("div"); div.innerHTML = html; return div.textContent || div.innerText || ""; } // Exports return Handlebars; }); ================================================ FILE: public/apidoc/utils/send_sample_request.js ================================================ define([ 'jquery', 'lodash', './utils/send_sample_request_utils' ], function($, _, utils) { var initDynamic = function() { // Button send $(".sample-request-send").off("click"); $(".sample-request-send").on("click", function(e) { e.preventDefault(); var $root = $(this).parents("article"); var group = $root.data("group"); var name = $root.data("name"); var version = $root.data("version"); sendSampleRequest(group, name, version, $(this).data("sample-request-type")); }); // Button clear $(".sample-request-clear").off("click"); $(".sample-request-clear").on("click", function(e) { e.preventDefault(); var $root = $(this).parents("article"); var group = $root.data("group"); var name = $root.data("name"); var version = $root.data("version"); clearSampleRequest(group, name, version); }); }; // initDynamic function sendSampleRequest(group, name, version, type) { var $root = $('article[data-group="' + group + '"][data-name="' + name + '"][data-version="' + version + '"]'); // Optional header var header = {}; $root.find(".sample-request-header:checked").each(function(i, element) { var group = $(element).data("sample-request-header-group-id"); $root.find("[data-sample-request-header-group=\"" + group + "\"]").each(function(i, element) { var key = $(element).data("sample-request-header-name"); var value = element.value; if (typeof element.optional === 'undefined') { element.optional = true; } if ( ! element.optional && element.defaultValue !== '') { value = element.defaultValue; } header[key] = value; }); }); // create JSON dictionary of parameters var param = {}; var paramType = {}; var bodyFormData = new FormData(); var bodyJson = ''; $root.find(".sample-request-param:checked").each(function(i, element) { var group = $(element).data("sample-request-param-group-id"); var contentType = $(element).nextAll('.sample-header-content-type-switch').first().val(); if (contentType == "body-json"){ $root.find("[data-sample-request-body-group=\"" + group + "\"]").not(function(){ return $(this).val() == "" && $(this).is("[data-sample-request-param-optional='true']"); }).each(function(i, element) { if (isJson(element.value)){ header['Content-Type'] = 'application/json'; bodyJson = element.value; } }); }else { $root.find("[data-sample-request-param-group=\"" + group + "\"]").not(function(){ return $(this).val() == "" && $(this).is("[data-sample-request-param-optional='true']"); }).each(function(i, element) { var key = $(element).data("sample-request-param-name"); var value = element.value; if ( ! element.optional && element.defaultValue !== '') { value = element.defaultValue; } if (contentType == "body-form-data"){ header['Content-Type'] = 'multipart/form-data' if (element.type == "file") { value = element.files[0]; } bodyFormData.append(key,value); }else { param[key] = value; paramType[key] = $(element).next().text(); } }); } }); // grab user-inputted URL var url = $root.find(".sample-request-url").val(); //Convert {param} form to :param url = utils.convertPathParams(url); // Insert url parameter var pattern = pathToRegexp(url, null); var matches = pattern.exec(url); for (var i = 1; i < matches.length; i++) { var key = matches[i].substr(1); var optional = false if (key[key.length - 1] === '?') { optional = true; key = key.substr(0, key.length - 1); } if (param[key] !== undefined) { url = url.replace(matches[i], encodeURIComponent(param[key])); // remove URL parameters from list delete param[key]; } else if (optional) { // if parameter is optional denoted by ending '?' in param (:param?) // and no parameter is given, replace parameter with empty string instead url = url.replace(matches[i], ''); delete param[key]; } } // for //handle nested objects and parsing fields param = utils.handleNestedAndParsingFields(param, paramType); //add url search parameter if (header['Content-Type'] == 'application/json') { if (bodyJson) { // bodyJson is set to value if request body: 'body/json' was selected and manual json was input // in this case, use the given bodyJson and add other params in query string url = url + encodeSearchParams(param); param = bodyJson; } else { // bodyJson not set, but Content-Type: application/json header was set. In this case, send parameters // as JSON body. First, try parsing fields of object with given paramType definition so that the json // is valid against the parameter spec (e.g. Boolean params are boolean instead of strings in final json) param = utils.tryParsingWithTypes(param, paramType); param = JSON.stringify(param); } }else if (header['Content-Type'] == 'multipart/form-data'){ url = url + encodeSearchParams(param); param = bodyFormData; } $root.find(".sample-request-response").fadeTo(250, 1); $root.find(".sample-request-response-json").html("Loading..."); refreshScrollSpy(); // send AJAX request, catch success or error callback var ajaxRequest = { url : url, headers : header, data : param, type : type.toUpperCase(), success : displaySuccess, error : displayError }; if(header['Content-Type'] == 'multipart/form-data'){ delete ajaxRequest.headers['Content-Type']; ajaxRequest.contentType=false; ajaxRequest.processData=false; } $.ajax(ajaxRequest); function displaySuccess(data, status, jqXHR) { var jsonResponse; try { jsonResponse = JSON.parse(jqXHR.responseText); jsonResponse = JSON.stringify(jsonResponse, null, 4); } catch (e) { jsonResponse = jqXHR.responseText; } $root.find(".sample-request-response-json").text(jsonResponse); refreshScrollSpy(); }; function displayError(jqXHR, textStatus, error) { var message = "Error " + jqXHR.status + ": " + error; var jsonResponse; try { jsonResponse = JSON.parse(jqXHR.responseText); jsonResponse = JSON.stringify(jsonResponse, null, 4); } catch (e) { jsonResponse = jqXHR.responseText; } if (jsonResponse) message += "\n" + jsonResponse; // flicker on previous error to make clear that there is a new response if($root.find(".sample-request-response").is(":visible")) $root.find(".sample-request-response").fadeTo(1, 0.1); $root.find(".sample-request-response").fadeTo(250, 1); $root.find(".sample-request-response-json").text(message); refreshScrollSpy(); }; } function clearSampleRequest(group, name, version) { var $root = $('article[data-group="' + group + '"][data-name="' + name + '"][data-version="' + version + '"]'); // hide sample response $root.find(".sample-request-response-json").html(""); $root.find(".sample-request-response").hide(); // reset value of parameters $root.find(".sample-request-param").each(function(i, element) { element.value = ""; }); // restore default URL var $urlElement = $root.find(".sample-request-url"); $urlElement.val($urlElement.prop("defaultValue")); refreshScrollSpy(); } function refreshScrollSpy() { $('[data-spy="scroll"]').each(function () { $(this).scrollspy("refresh"); }); } function escapeHtml(str) { var div = document.createElement("div"); div.appendChild(document.createTextNode(str)); return div.innerHTML; } /** * is Json */ function isJson(str) { if (typeof str == 'string') { try { var obj=JSON.parse(str); if(typeof obj == 'object' && obj ){ return true; }else{ return false; } } catch(e) { return false; } } } /** * encode Search Params */ function encodeSearchParams(obj) { const params = []; Object.keys(obj).forEach((key) => { let value = obj[key]; params.push([key, encodeURIComponent(value)].join('=')); }) return params.length === 0 ? '' : '?' + params.join('&'); } /** * Exports. */ return { initDynamic: initDynamic }; }); ================================================ FILE: public/apidoc/utils/send_sample_request_utils.js ================================================ //this block is used to make this module works with Node (CommonJS module format) if (typeof define !== 'function') { var define = require('amdefine')(module) } define(['lodash'], function (_) { var log = console; function handleNestedFields(object, key, params, paramType) { var attributes = key.split('.'); var field = attributes[0]; params.push(field); if (attributes.length > 1 && paramType[params.join('.')] == 'Object') { var nestedField = attributes.slice(1).join('.'); if (!object[field]) object[field] = {}; if (typeof object[field] == 'object') { object[field][nestedField] = object[key]; delete object[key]; handleNestedFields(object[field], nestedField, params, paramType); } } } function handleNestedFieldsForAllParams(param, paramType) { var result = Object.assign({}, param); Object.keys(result).forEach(function (key) { handleNestedFields(result, key, [], paramType); }); return result } function handleArraysAndObjectFields(param, paramType) { var result = Object.assign({}, param); Object.keys(paramType).forEach(function (key) { if (result[key] && (paramType[key].endsWith('[]') || paramType[key] === 'Object')) { try { result[key] = JSON.parse(result[key]); } catch (e) {;} } }); return result } function tryParsingAsType(object, path, type) { var val = _.get(object, path); if (val !== undefined) { if (type === 'Boolean') { if (val === 'true') { _.set(object, path, true); } else if (val === 'false') { _.set(object, path, false); } else { log.warn('Failed to parse object value at path [' + path + ']. Value: (' + val + '). Type: (' + type + ')'); } } else if (type === 'Number') { var parsedInt = parseInt(val, 10); if (!_.isNaN(parsedInt)) { _.set(object, path, parsedInt); } else { log.warn('Failed to parse object value at path [' + path + ']. Value: (' + val + '). Type: (' + type + ')'); } } } } function handleNestedAndParsingFields(param, paramType) { var result = handleArraysAndObjectFields(param, paramType); result = handleNestedFieldsForAllParams(result, paramType); return result; } function tryParsingWithTypes(param, paramType) { var result = Object.assign({}, param); Object.keys(paramType).forEach(function (key) { tryParsingAsType(result, key, paramType[key]); }); return result; } // Converts path params in the {param} format to the accepted :param format, used before inserting the URL params. function convertPathParams(url) { return url.replace(/{(.+?)}/g, ':$1'); } function setLogger(logger) { log = logger; } return { handleNestedAndParsingFields, convertPathParams, tryParsingWithTypes, setLogger }; }); ================================================ FILE: public/apidoc/vendor/path-to-regexp/LICENSE ================================================ The MIT License (MIT) Copyright (c) 2014 Blake Embrey (hello@blakeembrey.com) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: public/apidoc/vendor/path-to-regexp/index.js ================================================ var isArray = Array.isArray || function (arr) { return Object.prototype.toString.call(arr) == '[object Array]'; }; /** * Expose `pathToRegexp`. */ // module.exports = pathToRegexp /** * The main path matching regexp utility. * * @type {RegExp} */ var PATH_REGEXP = new RegExp([ // Match escaped characters that would otherwise appear in future matches. // This allows the user to escape special characters that won't transform. '(\\\\.)', // Match Express-style parameters and un-named parameters with a prefix // and optional suffixes. Matches appear as: // // "/:test(\\d+)?" => ["/", "test", "\d+", undefined, "?"] // "/route(\\d+)" => [undefined, undefined, undefined, "\d+", undefined] '([\\/.])?(?:\\:(\\w+)(?:\\(((?:\\\\.|[^)])*)\\))?|\\(((?:\\\\.|[^)])*)\\))([+*?])?', // Match regexp special characters that are always escaped. '([.+*?=^!:${}()[\\]|\\/])' ].join('|'), 'g'); /** * Escape the capturing group by escaping special characters and meaning. * * @param {String} group * @return {String} */ function escapeGroup (group) { return group.replace(/([=!:$\/()])/g, '\\$1'); } /** * Attach the keys as a property of the regexp. * * @param {RegExp} re * @param {Array} keys * @return {RegExp} */ function attachKeys (re, keys) { re.keys = keys; return re; } /** * Get the flags for a regexp from the options. * * @param {Object} options * @return {String} */ function flags (options) { return options.sensitive ? '' : 'i'; } /** * Pull out keys from a regexp. * * @param {RegExp} path * @param {Array} keys * @return {RegExp} */ function regexpToRegexp (path, keys) { // Use a negative lookahead to match only capturing groups. var groups = path.source.match(/\((?!\?)/g); if (groups) { for (var i = 0; i < groups.length; i++) { keys.push({ name: i, delimiter: null, optional: false, repeat: false }); } } return attachKeys(path, keys); } /** * Transform an array into a regexp. * * @param {Array} path * @param {Array} keys * @param {Object} options * @return {RegExp} */ function arrayToRegexp (path, keys, options) { var parts = []; for (var i = 0; i < path.length; i++) { parts.push(pathToRegexp(path[i], keys, options).source); } var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options)); return attachKeys(regexp, keys); } /** * Replace the specific tags with regexp strings. * * @param {String} path * @param {Array} keys * @return {String} */ function replacePath (path, keys) { var index = 0; function replace (_, escaped, prefix, key, capture, group, suffix, escape) { if (escaped) { return escaped; } if (escape) { return '\\' + escape; } var repeat = suffix === '+' || suffix === '*'; var optional = suffix === '?' || suffix === '*'; keys.push({ name: key || index++, delimiter: prefix || '/', optional: optional, repeat: repeat }); prefix = prefix ? ('\\' + prefix) : ''; capture = escapeGroup(capture || group || '[^' + (prefix || '\\/') + ']+?'); if (repeat) { capture = capture + '(?:' + prefix + capture + ')*'; } if (optional) { return '(?:' + prefix + '(' + capture + '))?'; } // Basic parameter support. return prefix + '(' + capture + ')'; } return path.replace(PATH_REGEXP, replace); } /** * Normalize the given path string, returning a regular expression. * * An empty array can be passed in for the keys, which will hold the * placeholder key descriptions. For example, using `/user/:id`, `keys` will * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`. * * @param {(String|RegExp|Array)} path * @param {Array} [keys] * @param {Object} [options] * @return {RegExp} */ function pathToRegexp (path, keys, options) { keys = keys || []; if (!isArray(keys)) { options = keys; keys = []; } else if (!options) { options = {}; } if (path instanceof RegExp) { return regexpToRegexp(path, keys, options); } if (isArray(path)) { return arrayToRegexp(path, keys, options); } var strict = options.strict; var end = options.end !== false; var route = replacePath(path, keys); var endsWithSlash = path.charAt(path.length - 1) === '/'; // In non-strict mode we allow a slash at the end of match. If the path to // match already ends with a slash, we remove it for consistency. The slash // is valid at the end of a path match, not in the middle. This is important // in non-ending mode, where "/test/" shouldn't match "/test//route". if (!strict) { route = (endsWithSlash ? route.slice(0, -2) : route) + '(?:\\/(?=$))?'; } if (end) { route += '$'; } else { // In non-ending mode, we need the capturing groups to match as much as // possible by using a positive lookahead to the end or next path segment. route += strict && endsWithSlash ? '' : '(?=\\/|$)'; } return attachKeys(new RegExp('^' + route, flags(options)), keys); } ================================================ FILE: public/apidoc/vendor/polyfill.js ================================================ // From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys if (!Object.keys) { Object.keys = (function () { 'use strict'; var hasOwnProperty = Object.prototype.hasOwnProperty, hasDontEnumBug = !({toString: null}).propertyIsEnumerable('toString'), dontEnums = [ 'toString', 'toLocaleString', 'valueOf', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'constructor' ], dontEnumsLength = dontEnums.length; return function (obj) { if (typeof obj !== 'object' && (typeof obj !== 'function' || obj === null)) { throw new TypeError('Object.keys called on non-object'); } var result = [], prop, i; for (prop in obj) { if (hasOwnProperty.call(obj, prop)) { result.push(prop); } } if (hasDontEnumBug) { for (i = 0; i < dontEnumsLength; i++) { if (hasOwnProperty.call(obj, dontEnums[i])) { result.push(dontEnums[i]); } } } return result; }; }()); } //Production steps of ECMA-262, Edition 5, 15.4.4.18 //Reference: http://es5.github.com/#x15.4.4.18 if (!Array.prototype.forEach) { Array.prototype.forEach = function (callback, thisArg) { var T, k; if (this == null) { throw new TypeError(' this is null or not defined'); } // 1. Let O be the result of calling ToObject passing the |this| value as the argument. var O = Object(this); // 2. Let lenValue be the result of calling the Get internal method of O with the argument "length". // 3. Let len be ToUint32(lenValue). var len = O.length >>> 0; // 4. If IsCallable(callback) is false, throw a TypeError exception. // See: http://es5.github.com/#x9.11 if (typeof callback !== "function") { throw new TypeError(callback + " is not a function"); } // 5. If thisArg was supplied, let T be thisArg; else let T be undefined. if (arguments.length > 1) { T = thisArg; } // 6. Let k be 0 k = 0; // 7. Repeat, while k < len while (k < len) { var kValue; // a. Let Pk be ToString(k). // This is implicit for LHS operands of the in operator // b. Let kPresent be the result of calling the HasProperty internal method of O with argument Pk. // This step can be combined with c // c. If kPresent is true, then if (k in O) { // i. Let kValue be the result of calling the Get internal method of O with argument Pk. kValue = O[k]; // ii. Call the Call internal method of callback with T as the this value and // argument list containing kValue, k, and O. callback.call(T, kValue, k, O); } // d. Increase k by 1. k++; } // 8. return undefined }; } ================================================ FILE: public/apidoc/vendor/prettify/lang-Splus.js ================================================ /* Copyright (C) 2012 Jeffrey B. Arnold Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],["lit",/^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],["lit",/^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/], ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],["pln",/^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-aea.js ================================================ /* Copyright (C) 2009 Onno Hommes. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-agc.js ================================================ /* Copyright (C) 2009 Onno Hommes. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-apollo.js ================================================ /* Copyright (C) 2009 Onno Hommes. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:ADS|AD|AUG|BZF|BZMF|CAE|CAF|CA|CCS|COM|CS|DAS|DCA|DCOM|DCS|DDOUBL|DIM|DOUBLE|DTCB|DTCF|DV|DXCH|EDRUPT|EXTEND|INCR|INDEX|NDX|INHINT|LXCH|MASK|MSK|MP|MSU|NOOP|OVSK|QXCH|RAND|READ|RELINT|RESUME|RETURN|ROR|RXOR|SQUARE|SU|TCR|TCAA|OVSK|TCF|TC|TS|WAND|WOR|WRITE|XCH|XLQ|XXALQ|ZL|ZQ|ADD|ADZ|SUB|SUZ|MPY|MPR|MPZ|DVP|COM|ABS|CLA|CLZ|LDQ|STO|STQ|ALS|LLS|LRS|TRA|TSQ|TMI|TOV|AXT|TIX|DLY|INP|OUT)\s/, null],["typ",/^(?:-?GENADR|=MINUS|2BCADR|VN|BOF|MM|-?2CADR|-?[1-6]DNADR|ADRES|BBCON|[SE]?BANK\=?|BLOCK|BNKSUM|E?CADR|COUNT\*?|2?DEC\*?|-?DNCHAN|-?DNPTR|EQUALS|ERASE|MEMORY|2?OCT|REMADR|SETLOC|SUBRO|ORG|BSS|BES|SYN|EQU|DEFINE|END)\s/,null],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[!-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["apollo","agc","aea"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-basic.js ================================================ /* Copyright (C) 2013 Peter Kofler Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:"(?:[^\\"\r\n]|\\.)*(?:"|$))/,null,'"'],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["com",/^REM[^\r\n]*/,null],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,null],["pln",/^[A-Z][A-Z0-9]?(?:\$|%)?/i,null],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?/i, null,"0123456789"],["pun",/^.[^\s\w\.$%"]*/,null]]),["basic","cbm"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-cbm.js ================================================ /* Copyright (C) 2013 Peter Kofler Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:"(?:[^\\"\r\n]|\\.)*(?:"|$))/,null,'"'],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["com",/^REM[^\r\n]*/,null],["kwd",/^\b(?:AND|CLOSE|CLR|CMD|CONT|DATA|DEF ?FN|DIM|END|FOR|GET|GOSUB|GOTO|IF|INPUT|LET|LIST|LOAD|NEW|NEXT|NOT|ON|OPEN|OR|POKE|PRINT|READ|RESTORE|RETURN|RUN|SAVE|STEP|STOP|SYS|THEN|TO|VERIFY|WAIT)\b/,null],["pln",/^[A-Z][A-Z0-9]?(?:\$|%)?/i,null],["lit",/^(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?/i, null,"0123456789"],["pun",/^.[^\s\w\.$%"]*/,null]]),["basic","cbm"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-cl.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" ")); ================================================ FILE: public/apidoc/vendor/prettify/lang-clj.js ================================================ /* Copyright (C) 2011 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["opn",/^[\(\{\[]+/,null,"([{"],["clo",/^[\)\}\]]+/,null,")]}"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:def|if|do|let|quote|var|fn|loop|recur|throw|try|monitor-enter|monitor-exit|defmacro|defn|defn-|macroexpand|macroexpand-1|for|doseq|dosync|dotimes|and|or|when|not|assert|doto|proxy|defstruct|first|rest|cons|defprotocol|deftype|defrecord|reify|defmulti|defmethod|meta|with-meta|ns|in-ns|create-ns|import|intern|refer|alias|namespace|resolve|ref|deref|refset|new|set!|memfn|to-array|into-array|aset|gen-class|reduce|map|filter|find|nil?|empty?|hash-map|hash-set|vec|vector|seq|flatten|reverse|assoc|dissoc|list|list?|disj|get|union|difference|intersection|extend|extend-type|extend-protocol|prn)\b/, null],["typ",/^:[0-9a-zA-Z\-]+/]]),["clj"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-css.js ================================================ /* Copyright (C) 2009 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[["str",/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],["str",/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']+)\)/i],["kwd",/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],["com",/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//], ["com",/^(?:\x3c!--|--\x3e)/],["lit",/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],["lit",/^#(?:[0-9a-f]{3}){1,2}\b/i],["pln",/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],["pun",/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[["kwd",/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[["str",/^[^\)\"\']+/]]),["css-str"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-dart.js ================================================ /* Copyright (C) 2013 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"]],[["com",/^#!(?:.*)/],["kwd",/^\b(?:import|library|part of|part|as|show|hide)\b/i],["com",/^\/\/(?:.*)/],["com",/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],["kwd",/^\b(?:class|interface)\b/i],["kwd",/^\b(?:assert|async|await|break|case|catch|continue|default|do|else|finally|for|if|in|is|new|return|super|switch|sync|this|throw|try|while)\b/i],["kwd",/^\b(?:abstract|const|extends|factory|final|get|implements|native|operator|set|static|typedef|var)\b/i], ["typ",/^\b(?:bool|double|Dynamic|int|num|Object|String|void)\b/i],["kwd",/^\b(?:false|null|true)\b/i],["str",/^r?[\']{3}[\s|\S]*?[^\\][\']{3}/],["str",/^r?[\"]{3}[\s|\S]*?[^\\][\"]{3}/],["str",/^r?\'(\'|(?:[^\n\r\f])*?[^\\]\')/],["str",/^r?\"(\"|(?:[^\n\r\f])*?[^\\]\")/],["typ",/^[A-Z]\w*/],["pln",/^[a-z_$][a-z0-9_]*/i],["pun",/^[~!%^&*+=|?:<>/-]/],["lit",/^\b0x[0-9a-f]+/i],["lit",/^\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i],["lit", /^\b\.\d+(?:e[+-]?\d+)?/i],["pun",/^[(){}\[\],.;]/]]),["dart"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-el.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" ")); ================================================ FILE: public/apidoc/vendor/prettify/lang-erl.js ================================================ /* Copyright (C) 2013 Andrew Allen Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\x0B\x0C\r ]+/,null,"\t\n\x0B\f\r "],["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["lit",/^[a-z][a-zA-Z0-9_]*/],["lit",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/,null,"'"],["lit",/^\?[^ \t\n({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], ["kwd",/^-[a-z_]+/],["typ",/^[A-Z_][a-zA-Z0-9_]*/],["pun",/^[.,;]/]]),["erlang","erl"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-erlang.js ================================================ /* Copyright (C) 2013 Andrew Allen Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\x0B\x0C\r ]+/,null,"\t\n\x0B\f\r "],["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["lit",/^[a-z][a-zA-Z0-9_]*/],["lit",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/,null,"'"],["lit",/^\?[^ \t\n({]+/,null,"?"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\n]*/],["kwd",/^(?:module|attributes|do|let|in|letrec|apply|call|primop|case|of|end|when|fun|try|catch|receive|after|char|integer|float,atom,string,var)\b/], ["kwd",/^-[a-z_]+/],["typ",/^[A-Z_][a-zA-Z0-9_]*/],["pun",/^[.,;]/]]),["erlang","erl"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-fs.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xA0]+(?:[a-z_$][\w\']*|``[^\r\n\t`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])(?:\'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\r\n]*|\(\*[\s\S]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], ["lit",/^[+\-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],["pln",/^(?:[a-z_][\w']*[!?#]?|``[^\r\n\t`]*(?:``|$))/i],["pun",/^[^\t\n\r \xA0\"\'\w]+/]]),["fs","ml"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-go.js ================================================ /* Copyright (C) 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["pln",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])+(?:\'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\r\n]*|\/\*[\s\S]*?\*\/)/],["pln",/^(?:[^\/\"\'`]|\/(?![\/\*]))+/i]]),["go"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-hs.js ================================================ /* Copyright (C) 2009 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\x0B\x0C\r ]+/,null,"\t\n\x0B\f\r "],["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])\'?/,null,"'"],["lit",/^(?:0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^(?:(?:--+(?:[^\r\n\x0C]*)?)|(?:\{-(?:[^-]|-+[^-\}])*-\}))/],["kwd",/^(?:case|class|data|default|deriving|do|else|if|import|in|infix|infixl|infixr|instance|let|module|newtype|of|then|type|where|_)(?=[^a-zA-Z0-9\']|$)/, null],["pln",/^(?:[A-Z][\w\']*\.)*[a-zA-Z][\w\']*/],["pun",/^[^\t\n\x0B\x0C\r a-zA-Z0-9\'\"]+/]]),["hs"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-lasso.js ================================================ /* Copyright (C) 2013 Eric Knibbe Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\`[^\`]*(?:\`|$)/,null,"`"],["lit",/^0x[\da-f]+|\d+/i,null,"0123456789"],["atn",/^#\d+|[#$][a-z_][\w.]*|#![ \S]+lasso9\b/i,null,"#$"]],[["tag",/^[[\]]|<\?(?:lasso(?:script)?|=)|\?>|noprocess\b|no_square_brackets\b/i],["com",/^\/\/[^\r\n]*|\/\*[\s\S]*?\*\//], ["atn",/^-(?!infinity)[a-z_][\w.]*|\.\s*'[a-z_][\w.]*'/i],["lit",/^\d*\.\d+(?:e[-+]?\d+)?|infinity\b|NaN\b/i],["atv",/^::\s*[a-z_][\w.]*/i],["lit",/^(?:true|false|none|minimal|full|all|void|and|or|not|bw|nbw|ew|new|cn|ncn|lt|lte|gt|gte|eq|neq|rx|nrx|ft)\b/i],["kwd",/^(?:error_code|error_msg|error_pop|error_push|error_reset|cache|database_names|database_schemanames|database_tablenames|define_tag|define_type|email_batch|encode_set|html_comment|handle|handle_error|header|if|inline|iterate|ljax_target|link|link_currentaction|link_currentgroup|link_currentrecord|link_detail|link_firstgroup|link_firstrecord|link_lastgroup|link_lastrecord|link_nextgroup|link_nextrecord|link_prevgroup|link_prevrecord|log|loop|namespace_using|output_none|portal|private|protect|records|referer|referrer|repeating|resultset|rows|search_args|search_arguments|select|sort_args|sort_arguments|thread_atomic|value_list|while|abort|case|else|if_empty|if_false|if_null|if_true|loop_abort|loop_continue|loop_count|params|params_up|return|return_value|run_children|soap_definetag|soap_lastrequest|soap_lastresponse|tag_name|ascending|average|by|define|descending|do|equals|frozen|group|handle_failure|import|in|into|join|let|match|max|min|on|order|parent|protected|provide|public|require|returnhome|skip|split_thread|sum|take|thread|to|trait|type|where|with|yield|yieldhome)\b/i], ["typ",/^(?:array|date|decimal|duration|integer|map|pair|string|tag|xml|null|boolean|bytes|keyword|list|locale|queue|set|stack|staticarray|local|var|variable|global|data|self|inherited|currentcapture|givenblock)\b|^\.\.?/i],["pln",/^[a-z_][\w.]*(?:=\s*(?=\())?/i],["pun",/^:=|[-+*\/%=<>&|!?\\]/]]),["lasso","ls","lassoscript"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-lassoscript.js ================================================ /* Copyright (C) 2013 Eric Knibbe Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\`[^\`]*(?:\`|$)/,null,"`"],["lit",/^0x[\da-f]+|\d+/i,null,"0123456789"],["atn",/^#\d+|[#$][a-z_][\w.]*|#![ \S]+lasso9\b/i,null,"#$"]],[["tag",/^[[\]]|<\?(?:lasso(?:script)?|=)|\?>|noprocess\b|no_square_brackets\b/i],["com",/^\/\/[^\r\n]*|\/\*[\s\S]*?\*\//], ["atn",/^-(?!infinity)[a-z_][\w.]*|\.\s*'[a-z_][\w.]*'/i],["lit",/^\d*\.\d+(?:e[-+]?\d+)?|infinity\b|NaN\b/i],["atv",/^::\s*[a-z_][\w.]*/i],["lit",/^(?:true|false|none|minimal|full|all|void|and|or|not|bw|nbw|ew|new|cn|ncn|lt|lte|gt|gte|eq|neq|rx|nrx|ft)\b/i],["kwd",/^(?:error_code|error_msg|error_pop|error_push|error_reset|cache|database_names|database_schemanames|database_tablenames|define_tag|define_type|email_batch|encode_set|html_comment|handle|handle_error|header|if|inline|iterate|ljax_target|link|link_currentaction|link_currentgroup|link_currentrecord|link_detail|link_firstgroup|link_firstrecord|link_lastgroup|link_lastrecord|link_nextgroup|link_nextrecord|link_prevgroup|link_prevrecord|log|loop|namespace_using|output_none|portal|private|protect|records|referer|referrer|repeating|resultset|rows|search_args|search_arguments|select|sort_args|sort_arguments|thread_atomic|value_list|while|abort|case|else|if_empty|if_false|if_null|if_true|loop_abort|loop_continue|loop_count|params|params_up|return|return_value|run_children|soap_definetag|soap_lastrequest|soap_lastresponse|tag_name|ascending|average|by|define|descending|do|equals|frozen|group|handle_failure|import|in|into|join|let|match|max|min|on|order|parent|protected|provide|public|require|returnhome|skip|split_thread|sum|take|thread|to|trait|type|where|with|yield|yieldhome)\b/i], ["typ",/^(?:array|date|decimal|duration|integer|map|pair|string|tag|xml|null|boolean|bytes|keyword|list|locale|queue|set|stack|staticarray|local|var|variable|global|data|self|inherited|currentcapture|givenblock)\b|^\.\.?/i],["pln",/^[a-z_][\w.]*(?:=\s*(?=\())?/i],["pun",/^:=|[-+*\/%=<>&|!?\\]/]]),["lasso","ls","lassoscript"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-latex.js ================================================ /* Copyright (C) 2011 Martin S. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\r\n]*/,null,"%"]],[["kwd",/^\\[a-zA-Z@]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[{}()\[\]=]+/]]),["latex","tex"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-lgt.js ================================================ /* Copyright (C) 2014 Paulo Moura Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["lit",/^[a-z][a-zA-Z0-9_]*/],["lit",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/,null,"'"],["lit",/^(?:0'.|0b[0-1]+|0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\r\n]*/,null,"%"],["com",/^\/\*[\s\S]*?\*\//],["kwd",/^\s*:-\s(c(a(lls|tegory)|oinductive)|p(ublic|r(ot(ocol|ected)|ivate))|e(l(if|se)|n(coding|sure_loaded)|xport)|i(f|n(clude|itialization|fo))|alias|d(ynamic|iscontiguous)|m(eta_(non_terminal|predicate)|od(e|ule)|ultifile)|reexport|s(et_(logtalk|prolog)_flag|ynchronized)|o(bject|p)|use(s|_module))/], ["kwd",/^\s*:-\s(e(lse|nd(if|_(category|object|protocol)))|built_in|dynamic|synchronized|threaded)/],["typ",/^[A-Z_][a-zA-Z0-9_]*/],["pun",/^[.,;{}:^<>=\\/+*?#!-]/]]),["logtalk","lgt"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-lisp.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" ")); ================================================ FILE: public/apidoc/vendor/prettify/lang-ll.js ================================================ /* Copyright (C) 2013 Nikhil Dabas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^!?\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["com",/^;[^\r\n]*/,null,";"]],[["pln",/^[%@!](?:[-a-zA-Z$._][-a-zA-Z$._0-9]*|\d+)/],["kwd",/^[A-Za-z_][0-9A-Za-z_]*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[xX][a-fA-F0-9]+)/],["pun",/^[()\[\]{},=*<>:]|\.\.\.$/]]),["llvm","ll"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-llvm.js ================================================ /* Copyright (C) 2013 Nikhil Dabas Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^!?\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["com",/^;[^\r\n]*/,null,";"]],[["pln",/^[%@!](?:[-a-zA-Z$._][-a-zA-Z$._0-9]*|\d+)/],["kwd",/^[A-Za-z_][0-9A-Za-z_]*/,null],["lit",/^\d+\.\d+/],["lit",/^(?:\d+|0[xX][a-fA-F0-9]+)/],["pun",/^[()\[\]{},=*<>:]|\.\.\.$/]]),["llvm","ll"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-logtalk.js ================================================ /* Copyright (C) 2014 Paulo Moura Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["str",/^\"(?:[^\"\\\n\x0C\r]|\\[\s\S])*(?:\"|$)/,null,'"'],["lit",/^[a-z][a-zA-Z0-9_]*/],["lit",/^\'(?:[^\'\\\n\x0C\r]|\\[^&])+\'?/,null,"'"],["lit",/^(?:0'.|0b[0-1]+|0o[0-7]+|0x[\da-f]+|\d+(?:\.\d+)?(?:e[+\-]?\d+)?)/i,null,"0123456789"]],[["com",/^%[^\r\n]*/,null,"%"],["com",/^\/\*[\s\S]*?\*\//],["kwd",/^\s*:-\s(c(a(lls|tegory)|oinductive)|p(ublic|r(ot(ocol|ected)|ivate))|e(l(if|se)|n(coding|sure_loaded)|xport)|i(f|n(clude|itialization|fo))|alias|d(ynamic|iscontiguous)|m(eta_(non_terminal|predicate)|od(e|ule)|ultifile)|reexport|s(et_(logtalk|prolog)_flag|ynchronized)|o(bject|p)|use(s|_module))/], ["kwd",/^\s*:-\s(e(lse|nd(if|_(category|object|protocol)))|built_in|dynamic|synchronized|threaded)/],["typ",/^[A-Z_][a-zA-Z0-9_]*/],["pun",/^[.,;{}:^<>=\\/+*?#!-]/]]),["logtalk","lgt"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-ls.js ================================================ /* Copyright (C) 2013 Eric Knibbe Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\`[^\`]*(?:\`|$)/,null,"`"],["lit",/^0x[\da-f]+|\d+/i,null,"0123456789"],["atn",/^#\d+|[#$][a-z_][\w.]*|#![ \S]+lasso9\b/i,null,"#$"]],[["tag",/^[[\]]|<\?(?:lasso(?:script)?|=)|\?>|noprocess\b|no_square_brackets\b/i],["com",/^\/\/[^\r\n]*|\/\*[\s\S]*?\*\//], ["atn",/^-(?!infinity)[a-z_][\w.]*|\.\s*'[a-z_][\w.]*'/i],["lit",/^\d*\.\d+(?:e[-+]?\d+)?|infinity\b|NaN\b/i],["atv",/^::\s*[a-z_][\w.]*/i],["lit",/^(?:true|false|none|minimal|full|all|void|and|or|not|bw|nbw|ew|new|cn|ncn|lt|lte|gt|gte|eq|neq|rx|nrx|ft)\b/i],["kwd",/^(?:error_code|error_msg|error_pop|error_push|error_reset|cache|database_names|database_schemanames|database_tablenames|define_tag|define_type|email_batch|encode_set|html_comment|handle|handle_error|header|if|inline|iterate|ljax_target|link|link_currentaction|link_currentgroup|link_currentrecord|link_detail|link_firstgroup|link_firstrecord|link_lastgroup|link_lastrecord|link_nextgroup|link_nextrecord|link_prevgroup|link_prevrecord|log|loop|namespace_using|output_none|portal|private|protect|records|referer|referrer|repeating|resultset|rows|search_args|search_arguments|select|sort_args|sort_arguments|thread_atomic|value_list|while|abort|case|else|if_empty|if_false|if_null|if_true|loop_abort|loop_continue|loop_count|params|params_up|return|return_value|run_children|soap_definetag|soap_lastrequest|soap_lastresponse|tag_name|ascending|average|by|define|descending|do|equals|frozen|group|handle_failure|import|in|into|join|let|match|max|min|on|order|parent|protected|provide|public|require|returnhome|skip|split_thread|sum|take|thread|to|trait|type|where|with|yield|yieldhome)\b/i], ["typ",/^(?:array|date|decimal|duration|integer|map|pair|string|tag|xml|null|boolean|bytes|keyword|list|locale|queue|set|stack|staticarray|local|var|variable|global|data|self|inherited|currentcapture|givenblock)\b|^\.\.?/i],["pln",/^[a-z_][\w.]*(?:=\s*(?=\())?/i],["pun",/^:=|[-+*\/%=<>&|!?\\]/]]),["lasso","ls","lassoscript"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-lsp.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" ")); ================================================ FILE: public/apidoc/vendor/prettify/lang-lua.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])*(?:\'|$))/,null,"\"'"]],[["com",/^--(?:\[(=*)\[[\s\S]*?(?:\]\1\]|$)|[^\r\n]*)/],["str",/^\[(=*)\[[\s\S]*?(?:\]\1\]|$)/],["kwd",/^(?:and|break|do|else|elseif|end|false|for|function|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,null],["lit",/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i], ["pln",/^[a-z_]\w*/i],["pun",/^[^\w\t\n\r \xA0][^\w\t\n\r \xA0\"\'\-\+=]*/]]),["lua"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-matlab.js ================================================ /* Copyright (c) 2013 by Amro Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ var a=window.PR,b=[[a.PR_PLAIN,/^[ \t\r\n\v\f\xA0]+/,null," \t\r\n\x0B\f\u00a0"],[a.PR_COMMENT,/^%\{[^%]*%+(?:[^\}%][^%]*%+)*\}/,null],[a.PR_COMMENT,/^%[^\r\n]*/,null,"%"],["syscmd",/^![^\r\n]*/,null,"!"]],c=[["linecont",/^\.\.\.\s*[\r\n]/,null],["err",/^\?\?\? [^\r\n]*/,null],["wrn",/^Warning: [^\r\n]*/,null],["codeoutput",/^>>\s+/,null],["codeoutput",/^octave:\d+>\s+/,null],["lang-matlab-operators",/^((?:[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*|\)|\]|\}|\.)')/,null],["lang-matlab-identifiers", /^([a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*)(?!')/,null],[a.PR_STRING,/^'(?:[^']|'')*'/,null],[a.PR_LITERAL,/^[+\-]?\.?\d+(?:\.\d*)?(?:[Ee][+\-]?\d+)?[ij]?/,null],[a.PR_TAG,/^(?:\{|\}|\(|\)|\[|\])/,null],[a.PR_PUNCTUATION,/^(?:<|>|=|~|@|&|;|,|:|!|\-|\+|\*|\^|\.|\||\\|\/)/,null]],d=[["lang-matlab-identifiers",/^([a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*)/,null],[a.PR_TAG,/^(?:\{|\}|\(|\)|\[|\])/,null],[a.PR_PUNCTUATION,/^(?:<|>|=|~|@|&|;|,|:|!|\-|\+|\*|\^|\.|\||\\|\/)/,null],["transpose", /^'/,null]]; a.registerLangHandler(a.createSimpleLexer([],[[a.PR_KEYWORD,/^\b(?:break|case|catch|classdef|continue|else|elseif|end|for|function|global|if|otherwise|parfor|persistent|return|spmd|switch|try|while)\b/,null],["const",/^\b(?:true|false|inf|Inf|nan|NaN|eps|pi|ans|nargin|nargout|varargin|varargout)\b/,null],[a.PR_TYPE,/^\b(?:cell|struct|char|double|single|logical|u?int(?:8|16|32|64)|sparse)\b/,null],["fun",/^\b(?:abs|accumarray|acos(?:d|h)?|acot(?:d|h)?|acsc(?:d|h)?|actxcontrol(?:list|select)?|actxGetRunningServer|actxserver|addlistener|addpath|addpref|addtodate|airy|align|alim|all|allchild|alpha|alphamap|amd|ancestor|and|angle|annotation|any|area|arrayfun|asec(?:d|h)?|asin(?:d|h)?|assert|assignin|atan(?:2|d|h)?|audiodevinfo|audioplayer|audiorecorder|aufinfo|auread|autumn|auwrite|avifile|aviinfo|aviread|axes|axis|balance|bar(?:3|3h|h)?|base2dec|beep|BeginInvoke|bench|bessel(?:h|i|j|k|y)|beta|betainc|betaincinv|betaln|bicg|bicgstab|bicgstabl|bin2dec|bitand|bitcmp|bitget|bitmax|bitnot|bitor|bitset|bitshift|bitxor|blanks|blkdiag|bone|box|brighten|brush|bsxfun|builddocsearchdb|builtin|bvp4c|bvp5c|bvpget|bvpinit|bvpset|bvpxtend|calendar|calllib|callSoapService|camdolly|cameratoolbar|camlight|camlookat|camorbit|campan|campos|camproj|camroll|camtarget|camup|camva|camzoom|cart2pol|cart2sph|cast|cat|caxis|cd|cdf2rdf|cdfepoch|cdfinfo|cdflib(?:.(?:close|closeVar|computeEpoch|computeEpoch16|create|createAttr|createVar|delete|deleteAttr|deleteAttrEntry|deleteAttrgEntry|deleteVar|deleteVarRecords|epoch16Breakdown|epochBreakdown|getAttrEntry|getAttrgEntry|getAttrMaxEntry|getAttrMaxgEntry|getAttrName|getAttrNum|getAttrScope|getCacheSize|getChecksum|getCompression|getCompressionCacheSize|getConstantNames|getConstantValue|getCopyright|getFileBackward|getFormat|getLibraryCopyright|getLibraryVersion|getMajority|getName|getNumAttrEntries|getNumAttrgEntries|getNumAttributes|getNumgAttributes|getReadOnlyMode|getStageCacheSize|getValidate|getVarAllocRecords|getVarBlockingFactor|getVarCacheSize|getVarCompression|getVarData|getVarMaxAllocRecNum|getVarMaxWrittenRecNum|getVarName|getVarNum|getVarNumRecsWritten|getVarPadValue|getVarRecordData|getVarReservePercent|getVarsMaxWrittenRecNum|getVarSparseRecords|getVersion|hyperGetVarData|hyperPutVarData|inquire|inquireAttr|inquireAttrEntry|inquireAttrgEntry|inquireVar|open|putAttrEntry|putAttrgEntry|putVarData|putVarRecordData|renameAttr|renameVar|setCacheSize|setChecksum|setCompression|setCompressionCacheSize|setFileBackward|setFormat|setMajority|setReadOnlyMode|setStageCacheSize|setValidate|setVarAllocBlockRecords|setVarBlockingFactor|setVarCacheSize|setVarCompression|setVarInitialRecs|setVarPadValue|SetVarReservePercent|setVarsCacheSize|setVarSparseRecords))?|cdfread|cdfwrite|ceil|cell2mat|cell2struct|celldisp|cellfun|cellplot|cellstr|cgs|checkcode|checkin|checkout|chol|cholinc|cholupdate|circshift|cla|clabel|class|clc|clear|clearvars|clf|clipboard|clock|close|closereq|cmopts|cmpermute|cmunique|colamd|colon|colorbar|colordef|colormap|colormapeditor|colperm|Combine|comet|comet3|commandhistory|commandwindow|compan|compass|complex|computer|cond|condeig|condest|coneplot|conj|containers.Map|contour(?:3|c|f|slice)?|contrast|conv|conv2|convhull|convhulln|convn|cool|copper|copyfile|copyobj|corrcoef|cos(?:d|h)?|cot(?:d|h)?|cov|cplxpair|cputime|createClassFromWsdl|createSoapMessage|cross|csc(?:d|h)?|csvread|csvwrite|ctranspose|cumprod|cumsum|cumtrapz|curl|customverctrl|cylinder|daqread|daspect|datacursormode|datatipinfo|date|datenum|datestr|datetick|datevec|dbclear|dbcont|dbdown|dblquad|dbmex|dbquit|dbstack|dbstatus|dbstep|dbstop|dbtype|dbup|dde23|ddeget|ddesd|ddeset|deal|deblank|dec2base|dec2bin|dec2hex|decic|deconv|del2|delaunay|delaunay3|delaunayn|DelaunayTri|delete|demo|depdir|depfun|det|detrend|deval|diag|dialog|diary|diff|diffuse|dir|disp|display|dither|divergence|dlmread|dlmwrite|dmperm|doc|docsearch|dos|dot|dragrect|drawnow|dsearch|dsearchn|dynamicprops|echo|echodemo|edit|eig|eigs|ellipj|ellipke|ellipsoid|empty|enableNETfromNetworkDrive|enableservice|EndInvoke|enumeration|eomday|eq|erf|erfc|erfcinv|erfcx|erfinv|error|errorbar|errordlg|etime|etree|etreeplot|eval|evalc|evalin|event.(?:EventData|listener|PropertyEvent|proplistener)|exifread|exist|exit|exp|expint|expm|expm1|export2wsdlg|eye|ezcontour|ezcontourf|ezmesh|ezmeshc|ezplot|ezplot3|ezpolar|ezsurf|ezsurfc|factor|factorial|fclose|feather|feature|feof|ferror|feval|fft|fft2|fftn|fftshift|fftw|fgetl|fgets|fieldnames|figure|figurepalette|fileattrib|filebrowser|filemarker|fileparts|fileread|filesep|fill|fill3|filter|filter2|find|findall|findfigs|findobj|findstr|finish|fitsdisp|fitsinfo|fitsread|fitswrite|fix|flag|flipdim|fliplr|flipud|floor|flow|fminbnd|fminsearch|fopen|format|fplot|fprintf|frame2im|fread|freqspace|frewind|fscanf|fseek|ftell|FTP|full|fullfile|func2str|functions|funm|fwrite|fzero|gallery|gamma|gammainc|gammaincinv|gammaln|gca|gcbf|gcbo|gcd|gcf|gco|ge|genpath|genvarname|get|getappdata|getenv|getfield|getframe|getpixelposition|getpref|ginput|gmres|gplot|grabcode|gradient|gray|graymon|grid|griddata(?:3|n)?|griddedInterpolant|gsvd|gt|gtext|guidata|guide|guihandles|gunzip|gzip|h5create|h5disp|h5info|h5read|h5readatt|h5write|h5writeatt|hadamard|handle|hankel|hdf|hdf5|hdf5info|hdf5read|hdf5write|hdfinfo|hdfread|hdftool|help|helpbrowser|helpdesk|helpdlg|helpwin|hess|hex2dec|hex2num|hgexport|hggroup|hgload|hgsave|hgsetget|hgtransform|hidden|hilb|hist|histc|hold|home|horzcat|hostid|hot|hsv|hsv2rgb|hypot|ichol|idivide|ifft|ifft2|ifftn|ifftshift|ilu|im2frame|im2java|imag|image|imagesc|imapprox|imfinfo|imformats|import|importdata|imread|imwrite|ind2rgb|ind2sub|inferiorto|info|inline|inmem|inpolygon|input|inputdlg|inputname|inputParser|inspect|instrcallback|instrfind|instrfindall|int2str|integral(?:2|3)?|interp(?:1|1q|2|3|ft|n)|interpstreamspeed|intersect|intmax|intmin|inv|invhilb|ipermute|isa|isappdata|iscell|iscellstr|ischar|iscolumn|isdir|isempty|isequal|isequaln|isequalwithequalnans|isfield|isfinite|isfloat|isglobal|ishandle|ishghandle|ishold|isinf|isinteger|isjava|iskeyword|isletter|islogical|ismac|ismatrix|ismember|ismethod|isnan|isnumeric|isobject|isocaps|isocolors|isonormals|isosurface|ispc|ispref|isprime|isprop|isreal|isrow|isscalar|issorted|isspace|issparse|isstr|isstrprop|isstruct|isstudent|isunix|isvarname|isvector|javaaddpath|javaArray|javachk|javaclasspath|javacomponent|javaMethod|javaMethodEDT|javaObject|javaObjectEDT|javarmpath|jet|keyboard|kron|lasterr|lasterror|lastwarn|lcm|ldivide|ldl|le|legend|legendre|length|libfunctions|libfunctionsview|libisloaded|libpointer|libstruct|license|light|lightangle|lighting|lin2mu|line|lines|linkaxes|linkdata|linkprop|linsolve|linspace|listdlg|listfonts|load|loadlibrary|loadobj|log|log10|log1p|log2|loglog|logm|logspace|lookfor|lower|ls|lscov|lsqnonneg|lsqr|lt|lu|luinc|magic|makehgtform|mat2cell|mat2str|material|matfile|matlab.io.MatFile|matlab.mixin.(?:Copyable|Heterogeneous(?:.getDefaultScalarElement)?)|matlabrc|matlabroot|max|maxNumCompThreads|mean|median|membrane|memmapfile|memory|menu|mesh|meshc|meshgrid|meshz|meta.(?:class(?:.fromName)?|DynamicProperty|EnumeratedValue|event|MetaData|method|package(?:.(?:fromName|getAllPackages))?|property)|metaclass|methods|methodsview|mex(?:.getCompilerConfigurations)?|MException|mexext|mfilename|min|minres|minus|mislocked|mkdir|mkpp|mldivide|mlint|mlintrpt|mlock|mmfileinfo|mmreader|mod|mode|more|move|movefile|movegui|movie|movie2avi|mpower|mrdivide|msgbox|mtimes|mu2lin|multibandread|multibandwrite|munlock|namelengthmax|nargchk|narginchk|nargoutchk|native2unicode|nccreate|ncdisp|nchoosek|ncinfo|ncread|ncreadatt|ncwrite|ncwriteatt|ncwriteschema|ndgrid|ndims|ne|NET(?:.(?:addAssembly|Assembly|convertArray|createArray|createGeneric|disableAutoRelease|enableAutoRelease|GenericClass|invokeGenericMethod|NetException|setStaticProperty))?|netcdf.(?:abort|close|copyAtt|create|defDim|defGrp|defVar|defVarChunking|defVarDeflate|defVarFill|defVarFletcher32|delAtt|endDef|getAtt|getChunkCache|getConstant|getConstantNames|getVar|inq|inqAtt|inqAttID|inqAttName|inqDim|inqDimID|inqDimIDs|inqFormat|inqGrpName|inqGrpNameFull|inqGrpParent|inqGrps|inqLibVers|inqNcid|inqUnlimDims|inqVar|inqVarChunking|inqVarDeflate|inqVarFill|inqVarFletcher32|inqVarID|inqVarIDs|open|putAtt|putVar|reDef|renameAtt|renameDim|renameVar|setChunkCache|setDefaultFormat|setFill|sync)|newplot|nextpow2|nnz|noanimate|nonzeros|norm|normest|not|notebook|now|nthroot|null|num2cell|num2hex|num2str|numel|nzmax|ode(?:113|15i|15s|23|23s|23t|23tb|45)|odeget|odeset|odextend|onCleanup|ones|open|openfig|opengl|openvar|optimget|optimset|or|ordeig|orderfields|ordqz|ordschur|orient|orth|pack|padecoef|pagesetupdlg|pan|pareto|parseSoapResponse|pascal|patch|path|path2rc|pathsep|pathtool|pause|pbaspect|pcg|pchip|pcode|pcolor|pdepe|pdeval|peaks|perl|perms|permute|pie|pink|pinv|planerot|playshow|plot|plot3|plotbrowser|plotedit|plotmatrix|plottools|plotyy|plus|pol2cart|polar|poly|polyarea|polyder|polyeig|polyfit|polyint|polyval|polyvalm|pow2|power|ppval|prefdir|preferences|primes|print|printdlg|printopt|printpreview|prod|profile|profsave|propedit|propertyeditor|psi|publish|PutCharArray|PutFullMatrix|PutWorkspaceData|pwd|qhull|qmr|qr|qrdelete|qrinsert|qrupdate|quad|quad2d|quadgk|quadl|quadv|questdlg|quit|quiver|quiver3|qz|rand|randi|randn|randperm|RandStream(?:.(?:create|getDefaultStream|getGlobalStream|list|setDefaultStream|setGlobalStream))?|rank|rat|rats|rbbox|rcond|rdivide|readasync|real|reallog|realmax|realmin|realpow|realsqrt|record|rectangle|rectint|recycle|reducepatch|reducevolume|refresh|refreshdata|regexp|regexpi|regexprep|regexptranslate|rehash|rem|Remove|RemoveAll|repmat|reset|reshape|residue|restoredefaultpath|rethrow|rgb2hsv|rgb2ind|rgbplot|ribbon|rmappdata|rmdir|rmfield|rmpath|rmpref|rng|roots|rose|rosser|rot90|rotate|rotate3d|round|rref|rsf2csf|run|save|saveas|saveobj|savepath|scatter|scatter3|schur|sec|secd|sech|selectmoveresize|semilogx|semilogy|sendmail|serial|set|setappdata|setdiff|setenv|setfield|setpixelposition|setpref|setstr|setxor|shading|shg|shiftdim|showplottool|shrinkfaces|sign|sin(?:d|h)?|size|slice|smooth3|snapnow|sort|sortrows|sound|soundsc|spalloc|spaugment|spconvert|spdiags|specular|speye|spfun|sph2cart|sphere|spinmap|spline|spones|spparms|sprand|sprandn|sprandsym|sprank|spring|sprintf|spy|sqrt|sqrtm|squeeze|ss2tf|sscanf|stairs|startup|std|stem|stem3|stopasync|str2double|str2func|str2mat|str2num|strcat|strcmp|strcmpi|stream2|stream3|streamline|streamparticles|streamribbon|streamslice|streamtube|strfind|strjust|strmatch|strncmp|strncmpi|strread|strrep|strtok|strtrim|struct2cell|structfun|strvcat|sub2ind|subplot|subsasgn|subsindex|subspace|subsref|substruct|subvolume|sum|summer|superclasses|superiorto|support|surf|surf2patch|surface|surfc|surfl|surfnorm|svd|svds|swapbytes|symamd|symbfact|symmlq|symrcm|symvar|system|tan(?:d|h)?|tar|tempdir|tempname|tetramesh|texlabel|text|textread|textscan|textwrap|tfqmr|throw|tic|Tiff(?:.(?:getTagNames|getVersion))?|timer|timerfind|timerfindall|times|timeseries|title|toc|todatenum|toeplitz|toolboxdir|trace|transpose|trapz|treelayout|treeplot|tril|trimesh|triplequad|triplot|TriRep|TriScatteredInterp|trisurf|triu|tscollection|tsearch|tsearchn|tstool|type|typecast|uibuttongroup|uicontextmenu|uicontrol|uigetdir|uigetfile|uigetpref|uiimport|uimenu|uiopen|uipanel|uipushtool|uiputfile|uiresume|uisave|uisetcolor|uisetfont|uisetpref|uistack|uitable|uitoggletool|uitoolbar|uiwait|uminus|undocheckout|unicode2native|union|unique|unix|unloadlibrary|unmesh|unmkpp|untar|unwrap|unzip|uplus|upper|urlread|urlwrite|usejava|userpath|validateattributes|validatestring|vander|var|vectorize|ver|verctrl|verLessThan|version|vertcat|VideoReader(?:.isPlatformSupported)?|VideoWriter(?:.getProfiles)?|view|viewmtx|visdiff|volumebounds|voronoi|voronoin|wait|waitbar|waitfor|waitforbuttonpress|warndlg|warning|waterfall|wavfinfo|wavplay|wavread|wavrecord|wavwrite|web|weekday|what|whatsnew|which|whitebg|who|whos|wilkinson|winopen|winqueryreg|winter|wk1finfo|wk1read|wk1write|workspace|xlabel|xlim|xlsfinfo|xlsread|xlswrite|xmlread|xmlwrite|xor|xslt|ylabel|ylim|zeros|zip|zlabel|zlim|zoom)\b/,null], ["fun_tbx",/^\b(?:addedvarplot|andrewsplot|anova(?:1|2|n)|ansaribradley|aoctool|barttest|bbdesign|beta(?:cdf|fit|inv|like|pdf|rnd|stat)|bino(?:cdf|fit|inv|pdf|rnd|stat)|biplot|bootci|bootstrp|boxplot|candexch|candgen|canoncorr|capability|capaplot|caseread|casewrite|categorical|ccdesign|cdfplot|chi2(?:cdf|gof|inv|pdf|rnd|stat)|cholcov|Classification(?:BaggedEnsemble|Discriminant(?:.(?:fit|make|template))?|Ensemble|KNN(?:.(?:fit|template))?|PartitionedEnsemble|PartitionedModel|Tree(?:.(?:fit|template))?)|classify|classregtree|cluster|clusterdata|cmdscale|combnk|Compact(?:Classification(?:Discriminant|Ensemble|Tree)|Regression(?:Ensemble|Tree)|TreeBagger)|confusionmat|controlchart|controlrules|cophenet|copula(?:cdf|fit|param|pdf|rnd|stat)|cordexch|corr|corrcov|coxphfit|createns|crosstab|crossval|cvpartition|datasample|dataset|daugment|dcovary|dendrogram|dfittool|disttool|dummyvar|dwtest|ecdf|ecdfhist|ev(?:cdf|fit|inv|like|pdf|rnd|stat)|ExhaustiveSearcher|exp(?:cdf|fit|inv|like|pdf|rnd|stat)|factoran|fcdf|ff2n|finv|fitdist|fitensemble|fpdf|fracfact|fracfactgen|friedman|frnd|fstat|fsurfht|fullfact|gagerr|gam(?:cdf|fit|inv|like|pdf|rnd|stat)|GeneralizedLinearModel(?:.fit)?|geo(?:cdf|inv|mean|pdf|rnd|stat)|gev(?:cdf|fit|inv|like|pdf|rnd|stat)|gline|glmfit|glmval|glyphplot|gmdistribution(?:.fit)?|gname|gp(?:cdf|fit|inv|like|pdf|rnd|stat)|gplotmatrix|grp2idx|grpstats|gscatter|haltonset|harmmean|hist3|histfit|hmm(?:decode|estimate|generate|train|viterbi)|hougen|hyge(?:cdf|inv|pdf|rnd|stat)|icdf|inconsistent|interactionplot|invpred|iqr|iwishrnd|jackknife|jbtest|johnsrnd|KDTreeSearcher|kmeans|knnsearch|kruskalwallis|ksdensity|kstest|kstest2|kurtosis|lasso|lassoglm|lassoPlot|leverage|lhsdesign|lhsnorm|lillietest|LinearModel(?:.fit)?|linhyptest|linkage|logn(?:cdf|fit|inv|like|pdf|rnd|stat)|lsline|mad|mahal|maineffectsplot|manova1|manovacluster|mdscale|mhsample|mle|mlecov|mnpdf|mnrfit|mnrnd|mnrval|moment|multcompare|multivarichart|mvn(?:cdf|pdf|rnd)|mvregress|mvregresslike|mvt(?:cdf|pdf|rnd)|NaiveBayes(?:.fit)?|nan(?:cov|max|mean|median|min|std|sum|var)|nbin(?:cdf|fit|inv|pdf|rnd|stat)|ncf(?:cdf|inv|pdf|rnd|stat)|nct(?:cdf|inv|pdf|rnd|stat)|ncx2(?:cdf|inv|pdf|rnd|stat)|NeighborSearcher|nlinfit|nlintool|nlmefit|nlmefitsa|nlparci|nlpredci|nnmf|nominal|NonLinearModel(?:.fit)?|norm(?:cdf|fit|inv|like|pdf|rnd|stat)|normplot|normspec|ordinal|outlierMeasure|parallelcoords|paretotails|partialcorr|pcacov|pcares|pdf|pdist|pdist2|pearsrnd|perfcurve|perms|piecewisedistribution|plsregress|poiss(?:cdf|fit|inv|pdf|rnd|tat)|polyconf|polytool|prctile|princomp|ProbDist(?:Kernel|Parametric|UnivKernel|UnivParam)?|probplot|procrustes|qqplot|qrandset|qrandstream|quantile|randg|random|randsample|randtool|range|rangesearch|ranksum|rayl(?:cdf|fit|inv|pdf|rnd|stat)|rcoplot|refcurve|refline|regress|Regression(?:BaggedEnsemble|Ensemble|PartitionedEnsemble|PartitionedModel|Tree(?:.(?:fit|template))?)|regstats|relieff|ridge|robustdemo|robustfit|rotatefactors|rowexch|rsmdemo|rstool|runstest|sampsizepwr|scatterhist|sequentialfs|signrank|signtest|silhouette|skewness|slicesample|sobolset|squareform|statget|statset|stepwise|stepwisefit|surfht|tabulate|tblread|tblwrite|tcdf|tdfread|tiedrank|tinv|tpdf|TreeBagger|treedisp|treefit|treeprune|treetest|treeval|trimmean|trnd|tstat|ttest|ttest2|unid(?:cdf|inv|pdf|rnd|stat)|unif(?:cdf|inv|it|pdf|rnd|stat)|vartest(?:2|n)?|wbl(?:cdf|fit|inv|like|pdf|rnd|stat)|wblplot|wishrnd|x2fx|xptread|zscore|ztest)\b/, null],["fun_tbx",/^\b(?:adapthisteq|analyze75info|analyze75read|applycform|applylut|axes2pix|bestblk|blockproc|bwarea|bwareaopen|bwboundaries|bwconncomp|bwconvhull|bwdist|bwdistgeodesic|bweuler|bwhitmiss|bwlabel|bwlabeln|bwmorph|bwpack|bwperim|bwselect|bwtraceboundary|bwulterode|bwunpack|checkerboard|col2im|colfilt|conndef|convmtx2|corner|cornermetric|corr2|cp2tform|cpcorr|cpselect|cpstruct2pairs|dct2|dctmtx|deconvblind|deconvlucy|deconvreg|deconvwnr|decorrstretch|demosaic|dicom(?:anon|dict|info|lookup|read|uid|write)|edge|edgetaper|entropy|entropyfilt|fan2para|fanbeam|findbounds|fliptform|freqz2|fsamp2|fspecial|ftrans2|fwind1|fwind2|getheight|getimage|getimagemodel|getline|getneighbors|getnhood|getpts|getrangefromclass|getrect|getsequence|gray2ind|graycomatrix|graycoprops|graydist|grayslice|graythresh|hdrread|hdrwrite|histeq|hough|houghlines|houghpeaks|iccfind|iccread|iccroot|iccwrite|idct2|ifanbeam|im2bw|im2col|im2double|im2int16|im2java2d|im2single|im2uint16|im2uint8|imabsdiff|imadd|imadjust|ImageAdapter|imageinfo|imagemodel|imapplymatrix|imattributes|imbothat|imclearborder|imclose|imcolormaptool|imcomplement|imcontour|imcontrast|imcrop|imdilate|imdisplayrange|imdistline|imdivide|imellipse|imerode|imextendedmax|imextendedmin|imfill|imfilter|imfindcircles|imfreehand|imfuse|imgca|imgcf|imgetfile|imhandles|imhist|imhmax|imhmin|imimposemin|imlincomb|imline|immagbox|immovie|immultiply|imnoise|imopen|imoverview|imoverviewpanel|impixel|impixelinfo|impixelinfoval|impixelregion|impixelregionpanel|implay|impoint|impoly|impositionrect|improfile|imputfile|impyramid|imreconstruct|imrect|imregconfig|imregionalmax|imregionalmin|imregister|imresize|imroi|imrotate|imsave|imscrollpanel|imshow|imshowpair|imsubtract|imtool|imtophat|imtransform|imview|ind2gray|ind2rgb|interfileinfo|interfileread|intlut|ippl|iptaddcallback|iptcheckconn|iptcheckhandle|iptcheckinput|iptcheckmap|iptchecknargin|iptcheckstrs|iptdemos|iptgetapi|iptGetPointerBehavior|iptgetpref|ipticondir|iptnum2ordinal|iptPointerManager|iptprefs|iptremovecallback|iptSetPointerBehavior|iptsetpref|iptwindowalign|iradon|isbw|isflat|isgray|isicc|isind|isnitf|isrgb|isrset|lab2double|lab2uint16|lab2uint8|label2rgb|labelmatrix|makecform|makeConstrainToRectFcn|makehdr|makelut|makeresampler|maketform|mat2gray|mean2|medfilt2|montage|nitfinfo|nitfread|nlfilter|normxcorr2|ntsc2rgb|openrset|ordfilt2|otf2psf|padarray|para2fan|phantom|poly2mask|psf2otf|qtdecomp|qtgetblk|qtsetblk|radon|rangefilt|reflect|regionprops|registration.metric.(?:MattesMutualInformation|MeanSquares)|registration.optimizer.(?:OnePlusOneEvolutionary|RegularStepGradientDescent)|rgb2gray|rgb2ntsc|rgb2ycbcr|roicolor|roifill|roifilt2|roipoly|rsetwrite|std2|stdfilt|strel|stretchlim|subimage|tformarray|tformfwd|tforminv|tonemap|translate|truesize|uintlut|viscircles|warp|watershed|whitepoint|wiener2|xyz2double|xyz2uint16|ycbcr2rgb)\b/, null],["fun_tbx",/^\b(?:bintprog|color|fgoalattain|fminbnd|fmincon|fminimax|fminsearch|fminunc|fseminf|fsolve|fzero|fzmult|gangstr|ktrlink|linprog|lsqcurvefit|lsqlin|lsqnonlin|lsqnonneg|optimget|optimset|optimtool|quadprog)\b/,null],["ident",/^[a-zA-Z][a-zA-Z0-9_]*(?:\.[a-zA-Z][a-zA-Z0-9_]*)*/,null]]),["matlab-identifiers"]);a.registerLangHandler(a.createSimpleLexer([],d),["matlab-operators"]);a.registerLangHandler(a.createSimpleLexer(b,c),["matlab"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-ml.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^#(?:if[\t\n\r \xA0]+(?:[a-z_$][\w\']*|``[^\r\n\t`]*(?:``|$))|else|endif|light)/i,null,"#"],["str",/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])(?:\'|$))/,null,"\"'"]],[["com",/^(?:\/\/[^\r\n]*|\(\*[\s\S]*?\*\))/],["kwd",/^(?:abstract|and|as|assert|begin|class|default|delegate|do|done|downcast|downto|elif|else|end|exception|extern|false|finally|for|fun|function|if|in|inherit|inline|interface|internal|lazy|let|match|member|module|mutable|namespace|new|null|of|open|or|override|private|public|rec|return|static|struct|then|to|true|try|type|upcast|use|val|void|when|while|with|yield|asr|land|lor|lsl|lsr|lxor|mod|sig|atomic|break|checked|component|const|constraint|constructor|continue|eager|event|external|fixed|functor|global|include|method|mixin|object|parallel|process|protected|pure|sealed|trait|virtual|volatile)\b/], ["lit",/^[+\-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],["pln",/^(?:[a-z_][\w']*[!?#]?|``[^\r\n\t`]*(?:``|$))/i],["pun",/^[^\t\n\r \xA0\"\'\w]+/]]),["fs","ml"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-mumps.js ================================================ /* Copyright (C) 2011 Kitware Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^"]|\\.)*")/,null,'"']],[["com",/^;[^\r\n]*/,null,";"],["dec",/^(?:\$(?:D|DEVICE|EC|ECODE|ES|ESTACK|ET|ETRAP|H|HOROLOG|I|IO|J|JOB|K|KEY|P|PRINCIPAL|Q|QUIT|ST|STACK|S|STORAGE|SY|SYSTEM|T|TEST|TL|TLEVEL|TR|TRESTART|X|Y|Z[A-Z]*|A|ASCII|C|CHAR|D|DATA|E|EXTRACT|F|FIND|FN|FNUMBER|G|GET|J|JUSTIFY|L|LENGTH|NA|NAME|O|ORDER|P|PIECE|QL|QLENGTH|QS|QSUBSCRIPT|Q|QUERY|R|RANDOM|RE|REVERSE|S|SELECT|ST|STACK|T|TEXT|TR|TRANSLATE|NaN))\b/i, null],["kwd",/^(?:[^\$]B|BREAK|C|CLOSE|D|DO|E|ELSE|F|FOR|G|GOTO|H|HALT|H|HANG|I|IF|J|JOB|K|KILL|L|LOCK|M|MERGE|N|NEW|O|OPEN|Q|QUIT|R|READ|S|SET|TC|TCOMMIT|TRE|TRESTART|TRO|TROLLBACK|TS|TSTART|U|USE|V|VIEW|W|WRITE|X|XECUTE)\b/i,null],["lit",/^[+-]?(?:(?:\.\d+|\d+(?:\.\d*)?)(?:E[+\-]?\d+)?)/i],["pln",/^[a-z][a-zA-Z0-9]*/i],["pun",/^[^\w\t\n\r\xA0\"\$;%\^]|_/]]),["mumps"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-n.js ================================================ /* Copyright (C) 2011 Zimin A.V. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*\'|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null],["str",/^<#(?:[^#>])*(?:#>|$)/,null],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null],["com",/^\/\/[^\r\n]*/, null],["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, null],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,null],["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^@[A-Z]+[a-z][A-Za-z_$@0-9]*/,null],["pln",/^'?[A-Za-z_$][a-z_$@0-9]*/i,null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pun",/^.[^\s\w\.$@\'\"\`\/\#]*/,null]]),["n","nemerle"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-nemerle.js ================================================ /* Copyright (C) 2011 Zimin A.V. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*\'|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["str",/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null],["str",/^<#(?:[^#>])*(?:#>|$)/,null],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null],["com",/^\/\/[^\r\n]*/, null],["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/, null],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,null],["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^@[A-Z]+[a-z][A-Za-z_$@0-9]*/,null],["pln",/^'?[A-Za-z_$][a-z_$@0-9]*/i,null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pun",/^.[^\s\w\.$@\'\"\`\/\#]*/,null]]),["n","nemerle"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-pascal.js ================================================ /* Copyright (C) 2013 Peter Kofler Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$))/,null,"'"],["pln",/^\s+/,null," \r\n\t\u00a0"]],[["com",/^\(\*[\s\S]*?(?:\*\)|$)|^\{[\s\S]*?(?:\}|$)/,null],["kwd",/^(?:ABSOLUTE|AND|ARRAY|ASM|ASSEMBLER|BEGIN|CASE|CONST|CONSTRUCTOR|DESTRUCTOR|DIV|DO|DOWNTO|ELSE|END|EXTERNAL|FOR|FORWARD|FUNCTION|GOTO|IF|IMPLEMENTATION|IN|INLINE|INTERFACE|INTERRUPT|LABEL|MOD|NOT|OBJECT|OF|OR|PACKED|PROCEDURE|PROGRAM|RECORD|REPEAT|SET|SHL|SHR|THEN|TO|TYPE|UNIT|UNTIL|USES|VAR|VIRTUAL|WHILE|WITH|XOR)\b/i, null],["lit",/^(?:true|false|self|nil)/i,null],["pln",/^[a-z][a-z0-9]*/i,null],["lit",/^(?:\$[a-f0-9]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+\-]?\d+)?)/i,null,"0123456789"],["pun",/^.[^\s\w\.$@\'\/]*/,null]]),["pascal"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-proto.js ================================================ /* Copyright (C) 2006 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.sourceDecorator({keywords:"bytes,default,double,enum,extend,extensions,false,group,import,max,message,option,optional,package,repeated,required,returns,rpc,service,syntax,to,true",types:/^(bool|(double|s?fixed|[su]?int)(32|64)|float|string)\b/,cStyleComments:!0}),["proto"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-r.js ================================================ /* Copyright (C) 2012 Jeffrey B. Arnold Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],["lit",/^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],["lit",/^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/], ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],["pln",/^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-rd.js ================================================ /* Copyright (C) 2012 Jeffrey Arnold Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\r\n]*/,null,"%"]],[["lit",/^\\(?:cr|l?dots|R|tab)\b/],["kwd",/^\\[a-zA-Z@]+/],["kwd",/^#(?:ifn?def|endif)/],["pln",/^\\[{}]/],["pun",/^[{}()\[\]]+/]]),["Rd","rd"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-rkt.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" ")); ================================================ FILE: public/apidoc/vendor/prettify/lang-rust.js ================================================ /* Copyright (C) 2015 Chris Morgan Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([],[["pln",/^[\t\n\r \xA0]+/],["com",/^\/\/.*/],["com",/^\/\*[\s\S]*?(?:\*\/|$)/],["str",/^b"(?:[^\\]|\\(?:.|x[\da-fA-F]{2}))*?"/],["str",/^"(?:[^\\]|\\(?:.|x[\da-fA-F]{2}|u\{\[\da-fA-F]{1,6}\}))*?"/],["str",/^b?r(#*)\"[\s\S]*?\"\1/],["str",/^b'([^\\]|\\(.|x[\da-fA-F]{2}))'/],["str",/^'([^\\]|\\(.|x[\da-fA-F]{2}|u\{[\da-fA-F]{1,6}\}))'/],["tag",/^'\w+?\b/],["kwd",/^(?:match|if|else|as|break|box|continue|extern|fn|for|in|if|impl|let|loop|pub|return|super|unsafe|where|while|use|mod|trait|struct|enum|type|move|mut|ref|static|const|crate)\b/], ["kwd",/^(?:alignof|become|do|offsetof|priv|pure|sizeof|typeof|unsized|yield|abstract|virtual|final|override|macro)\b/],["typ",/^(?:[iu](8|16|32|64|size)|char|bool|f32|f64|str|Self)\b/],["typ",/^(?:Copy|Send|Sized|Sync|Drop|Fn|FnMut|FnOnce|Box|ToOwned|Clone|PartialEq|PartialOrd|Eq|Ord|AsRef|AsMut|Into|From|Default|Iterator|Extend|IntoIterator|DoubleEndedIterator|ExactSizeIterator|Option|Some|None|Result|Ok|Err|SliceConcatExt|String|ToString|Vec)\b/],["lit",/^(self|true|false|null)\b/], ["lit",/^\d[0-9_]*(?:[iu](?:size|8|16|32|64))?/],["lit",/^0x[a-fA-F0-9_]+(?:[iu](?:size|8|16|32|64))?/],["lit",/^0o[0-7_]+(?:[iu](?:size|8|16|32|64))?/],["lit",/^0b[01_]+(?:[iu](?:size|8|16|32|64))?/],["lit",/^\d[0-9_]*\.(?![^\s\d.])/],["lit",/^\d[0-9_]*(?:\.\d[0-9_]*)(?:[eE][+-]?[0-9_]+)?(?:f32|f64)?/],["lit",/^\d[0-9_]*(?:\.\d[0-9_]*)?(?:[eE][+-]?[0-9_]+)(?:f32|f64)?/],["lit",/^\d[0-9_]*(?:\.\d[0-9_]*)?(?:[eE][+-]?[0-9_]+)?(?:f32|f64)/], ["atn",/^[a-z_]\w*!/i],["pln",/^[a-z_]\w*/i],["atv",/^#!?\[[\s\S]*?\]/],["pun",/^[+\-/*=^&|!<>%[\](){}?:.,;]/],["pln",/./]]),["rust"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-s.js ================================================ /* Copyright (C) 2012 Jeffrey B. Arnold Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"'],["str",/^\'(?:[^\'\\]|\\[\s\S])*(?:\'|$)/,null,"'"]],[["com",/^#.*/],["kwd",/^(?:if|else|for|while|repeat|in|next|break|return|switch|function)(?![A-Za-z0-9_.])/],["lit",/^0[xX][a-fA-F0-9]+([pP][0-9]+)?[Li]?/],["lit",/^[+-]?([0-9]+(\.[0-9]+)?|\.[0-9]+)([eE][+-]?[0-9]+)?[Li]?/],["lit",/^(?:NULL|NA(?:_(?:integer|real|complex|character)_)?|Inf|TRUE|FALSE|NaN|\.\.(?:\.|[0-9]+))(?![A-Za-z0-9_.])/], ["pun",/^(?:<>?|-|==|<=|>=|<|>|&&?|!=|\|\|?|\*|\+|\^|\/|!|%.*?%|=|~|\$|@|:{1,3}|[\[\](){};,?])/],["pln",/^(?:[A-Za-z]+[A-Za-z0-9_.]*|\.[a-zA-Z_][0-9a-zA-Z\._]*)(?![A-Za-z0-9_.])/],["str",/^`.+`/]]),["r","s","R","S","Splus"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-scala.js ================================================ /* Copyright (C) 2010 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:(?:""(?:""?(?!")|[^\\"]|\\.)*"{0,3})|(?:[^"\r\n\\]|\\.)*"?))/,null,'"'],["lit",/^`(?:[^\r\n\\`]|\\.)*`?/,null,"`"],["pun",/^[!#%&()*+,\-:;<=>?@\[\\\]^{|}~]+/,null,"!#%&()*+,-:;<=>?@[\\]^{|}~"]],[["str",/^'(?:[^\r\n\\']|\\(?:'|[^\r\n']+))'/],["lit",/^'[a-zA-Z_$][\w$]*(?!['$\w])/],["kwd",/^(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|object|override|package|private|protected|requires|return|sealed|super|throw|trait|try|type|val|var|while|with|yield)\b/], ["lit",/^(?:true|false|null|this)\b/],["lit",/^(?:(?:0(?:[0-7]+|X[0-9A-F]+))L?|(?:(?:0|[1-9][0-9]*)(?:(?:\.[0-9]+)?(?:E[+\-]?[0-9]+)?F?|L?))|\\.[0-9]+(?:E[+\-]?[0-9]+)?F?)/i],["typ",/^[$_]*[A-Z][_$A-Z0-9]*[a-z][\w$]*/],["pln",/^[$a-zA-Z_][\w$]*/],["com",/^\/(?:\/.*|\*(?:\/|\**[^*/])*(?:\*+\/?)?)/],["pun",/^(?:\.+|\/)/]]),["scala"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-scm.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" ")); ================================================ FILE: public/apidoc/vendor/prettify/lang-sql.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^(?:"(?:[^\"\\]|\\.)*"|'(?:[^\'\\]|\\.)*')/,null,"\"'"]],[["com",/^(?:--[^\r\n]*|\/\*[\s\S]*?(?:\*\/|$))/],["kwd",/^(?:ADD|ALL|ALTER|AND|ANY|APPLY|AS|ASC|AUTHORIZATION|BACKUP|BEGIN|BETWEEN|BREAK|BROWSE|BULK|BY|CASCADE|CASE|CHECK|CHECKPOINT|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMN|COMMIT|COMPUTE|CONNECT|CONSTRAINT|CONTAINS|CONTAINSTABLE|CONTINUE|CONVERT|CREATE|CROSS|CURRENT|CURRENT_DATE|CURRENT_TIME|CURRENT_TIMESTAMP|CURRENT_USER|CURSOR|DATABASE|DBCC|DEALLOCATE|DECLARE|DEFAULT|DELETE|DENY|DESC|DISK|DISTINCT|DISTRIBUTED|DOUBLE|DROP|DUMMY|DUMP|ELSE|END|ERRLVL|ESCAPE|EXCEPT|EXEC|EXECUTE|EXISTS|EXIT|FETCH|FILE|FILLFACTOR|FOLLOWING|FOR|FOREIGN|FREETEXT|FREETEXTTABLE|FROM|FULL|FUNCTION|GOTO|GRANT|GROUP|HAVING|HOLDLOCK|IDENTITY|IDENTITYCOL|IDENTITY_INSERT|IF|IN|INDEX|INNER|INSERT|INTERSECT|INTO|IS|JOIN|KEY|KILL|LEFT|LIKE|LINENO|LOAD|MATCH|MATCHED|MERGE|NATURAL|NATIONAL|NOCHECK|NONCLUSTERED|NOCYCLE|NOT|NULL|NULLIF|OF|OFF|OFFSETS|ON|OPEN|OPENDATASOURCE|OPENQUERY|OPENROWSET|OPENXML|OPTION|OR|ORDER|OUTER|OVER|PARTITION|PERCENT|PIVOT|PLAN|PRECEDING|PRECISION|PRIMARY|PRINT|PROC|PROCEDURE|PUBLIC|RAISERROR|READ|READTEXT|RECONFIGURE|REFERENCES|REPLICATION|RESTORE|RESTRICT|RETURN|REVOKE|RIGHT|ROLLBACK|ROWCOUNT|ROWGUIDCOL|ROWS?|RULE|SAVE|SCHEMA|SELECT|SESSION_USER|SET|SETUSER|SHUTDOWN|SOME|START|STATISTICS|SYSTEM_USER|TABLE|TEXTSIZE|THEN|TO|TOP|TRAN|TRANSACTION|TRIGGER|TRUNCATE|TSEQUAL|UNBOUNDED|UNION|UNIQUE|UNPIVOT|UPDATE|UPDATETEXT|USE|USER|USING|VALUES|VARYING|VIEW|WAITFOR|WHEN|WHERE|WHILE|WITH|WITHIN|WRITETEXT|XML)(?=[^\w-]|$)/i, null],["lit",/^[+-]?(?:0x[\da-f]+|(?:(?:\.\d+|\d+(?:\.\d*)?)(?:e[+\-]?\d+)?))/i],["pln",/^[a-z_][\w-]*/i],["pun",/^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0+\-\"\']*/]]),["sql"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-ss.js ================================================ /* Copyright (C) 2008 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\(+/,null,"("],["clo",/^\)+/,null,")"],["com",/^;[^\r\n]*/,null,";"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:block|c[ad]+r|catch|con[ds]|def(?:ine|un)|do|eq|eql|equal|equalp|eval-when|flet|format|go|if|labels|lambda|let|load-time-value|locally|macrolet|multiple-value-call|nil|progn|progv|quote|require|return-from|setq|symbol-macrolet|t|tagbody|the|throw|unwind)\b/, null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i],["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),"cl el lisp lsp scm ss rkt".split(" ")); ================================================ FILE: public/apidoc/vendor/prettify/lang-swift.js ================================================ /* Copyright (C) 2015 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[ \n\r\t\v\f\0]+/,null," \n\r\t\v\f\x00"],["str",/^"(?:[^"\\]|(?:\\.)|(?:\\\((?:[^"\\)]|\\.)*\)))*"/,null,'"']],[["lit",/^(?:(?:0x[\da-fA-F][\da-fA-F_]*\.[\da-fA-F][\da-fA-F_]*[pP]?)|(?:\d[\d_]*\.\d[\d_]*[eE]?))[+-]?\d[\d_]*/,null],["lit",/^-?(?:(?:0(?:(?:b[01][01_]*)|(?:o[0-7][0-7_]*)|(?:x[\da-fA-F][\da-fA-F_]*)))|(?:\d[\d_]*))/,null],["lit",/^(?:true|false|nil)\b/,null],["kwd",/^\b(?:__COLUMN__|__FILE__|__FUNCTION__|__LINE__|#available|#else|#elseif|#endif|#if|#line|arch|arm|arm64|associativity|as|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|dynamicType|else|enum|fallthrough|final|for|func|get|import|indirect|infix|init|inout|internal|i386|if|in|iOS|iOSApplicationExtension|is|lazy|left|let|mutating|none|nonmutating|operator|optional|OSX|OSXApplicationExtension|override|postfix|precedence|prefix|private|protocol|Protocol|public|required|rethrows|return|right|safe|self|set|static|struct|subscript|super|switch|throw|try|Type|typealias|unowned|unsafe|var|weak|watchOS|while|willSet|x86_64)\b/, null],["com",/^\/\/.*?[\n\r]/,null],["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null],["pun",/^<<=|<=|<<|>>=|>=|>>|===|==|\.\.\.|&&=|\.\.<|!==|!=|&=|~=|~|\(|\)|\[|\]|{|}|@|#|;|\.|,|:|\|\|=|\?\?|\|\||&&|&\*|&\+|&-|&=|\+=|-=|\/=|\*=|\^=|%=|\|=|->|`|==|\+\+|--|\/|\+|!|\*|%|<|>|&|\||\^|\?|=|-|_/,null],["typ",/^\b(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null]]),["swift"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-tcl.js ================================================ /* Copyright (C) 2012 Pyrios Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["opn",/^\{+/,null,"{"],["clo",/^\}+/,null,"}"],["com",/^#[^\r\n]*/,null,"#"],["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["str",/^\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)/,null,'"']],[["kwd",/^(?:after|append|apply|array|break|case|catch|continue|error|eval|exec|exit|expr|for|foreach|if|incr|info|proc|return|set|switch|trace|uplevel|upvar|while)\b/,null],["lit",/^[+\-]?(?:[0#]x[0-9a-f]+|\d+\/\d+|(?:\.\d+|\d+(?:\.\d*)?)(?:[ed][+\-]?\d+)?)/i], ["lit",/^\'(?:-*(?:\w|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?)?/],["pln",/^-*(?:[a-z_]|\\[\x21-\x7e])(?:[\w-]*|\\[\x21-\x7e])[=!?]?/i],["pun",/^[^\w\t\n\r \xA0()\"\\\';]+/]]),["tcl"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-tex.js ================================================ /* Copyright (C) 2011 Martin S. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"],["com",/^%[^\r\n]*/,null,"%"]],[["kwd",/^\\[a-zA-Z@]+/],["kwd",/^\\./],["typ",/^[$&]/],["lit",/[+-]?(?:\.\d+|\d+(?:\.\d*)?)(cm|em|ex|in|pc|pt|bp|mm)/i],["pun",/^[{}()\[\]=]+/]]),["latex","tex"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-vb.js ================================================ /* Copyright (C) 2009 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})(?:[\"\u201C\u201D]c|$)|[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})*(?:[\"\u201C\u201D]|$))/i,null,'"\u201c\u201d'],["com",/^[\'\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\r\n_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:AddHandler|AddressOf|Alias|And|AndAlso|Ansi|As|Assembly|Auto|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|CBool|CByte|CChar|CDate|CDbl|CDec|Char|CInt|Class|CLng|CObj|Const|CShort|CSng|CStr|CType|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else|ElseIf|End|EndIf|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get|GetType|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|Let|Lib|Like|Long|Loop|Me|Mod|Module|MustInherit|MustOverride|MyBase|MyClass|Namespace|New|Next|Not|NotInheritable|NotOverridable|Object|On|Option|Optional|Or|OrElse|Overloads|Overridable|Overrides|ParamArray|Preserve|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|Select|Set|Shadows|Shared|Short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TypeOf|Unicode|Until|Variant|Wend|When|While|With|WithEvents|WriteOnly|Xor|EndIf|GoSub|Let|Variant|Wend)\b/i, null],["com",/^REM\b[^\r\n\u2028\u2029]*/i],["lit",/^(?:True\b|False\b|Nothing\b|\d+(?:E[+\-]?\d+[FRD]?|[FRDSIL])?|(?:&H[0-9A-F]+|&O[0-7]+)[SIL]?|\d*\.\d+(?:E[+\-]?\d+)?[FRD]?|#\s+(?:\d+[\-\/]\d+[\-\/]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)?|\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[%&@!#]+\])?|\[(?:[a-z]|_\w)\w*\])/i],["pun",/^[^\w\t\n\r \"\'\[\]\xA0\u2018\u2019\u201C\u201D\u2028\u2029]+/],["pun",/^(?:\[|\])/]]),["vb", "vbs"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-vbs.js ================================================ /* Copyright (C) 2009 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0\u2028\u2029]+/,null,"\t\n\r \u00a0\u2028\u2029"],["str",/^(?:[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})(?:[\"\u201C\u201D]c|$)|[\"\u201C\u201D](?:[^\"\u201C\u201D]|[\"\u201C\u201D]{2})*(?:[\"\u201C\u201D]|$))/i,null,'"\u201c\u201d'],["com",/^[\'\u2018\u2019](?:_(?:\r\n?|[^\r]?)|[^\r\n_\u2028\u2029])*/,null,"'\u2018\u2019"]],[["kwd",/^(?:AddHandler|AddressOf|Alias|And|AndAlso|Ansi|As|Assembly|Auto|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|CBool|CByte|CChar|CDate|CDbl|CDec|Char|CInt|Class|CLng|CObj|Const|CShort|CSng|CStr|CType|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else|ElseIf|End|EndIf|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get|GetType|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|Let|Lib|Like|Long|Loop|Me|Mod|Module|MustInherit|MustOverride|MyBase|MyClass|Namespace|New|Next|Not|NotInheritable|NotOverridable|Object|On|Option|Optional|Or|OrElse|Overloads|Overridable|Overrides|ParamArray|Preserve|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|Select|Set|Shadows|Shared|Short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TypeOf|Unicode|Until|Variant|Wend|When|While|With|WithEvents|WriteOnly|Xor|EndIf|GoSub|Let|Variant|Wend)\b/i, null],["com",/^REM\b[^\r\n\u2028\u2029]*/i],["lit",/^(?:True\b|False\b|Nothing\b|\d+(?:E[+\-]?\d+[FRD]?|[FRDSIL])?|(?:&H[0-9A-F]+|&O[0-7]+)[SIL]?|\d*\.\d+(?:E[+\-]?\d+)?[FRD]?|#\s+(?:\d+[\-\/]\d+[\-\/]\d+(?:\s+\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)?|\d+:\d+(?::\d+)?(\s*(?:AM|PM))?)\s+#)/i],["pln",/^(?:(?:[a-z]|_\w)\w*(?:\[[%&@!#]+\])?|\[(?:[a-z]|_\w)\w*\])/i],["pun",/^[^\w\t\n\r \"\'\[\]\xA0\u2018\u2019\u201C\u201D\u2028\u2029]+/],["pun",/^(?:\[|\])/]]),["vb", "vbs"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-vhd.js ================================================ /* Copyright (C) 2010 benoit@ryder.fr Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[BOX]?"(?:[^\"]|"")*"|'.')/i],["com",/^--[^\r\n]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^\'(?:ACTIVE|ASCENDING|BASE|DELAYED|DRIVING|DRIVING_VALUE|EVENT|HIGH|IMAGE|INSTANCE_NAME|LAST_ACTIVE|LAST_EVENT|LAST_VALUE|LEFT|LEFTOF|LENGTH|LOW|PATH_NAME|POS|PRED|QUIET|RANGE|REVERSE_RANGE|RIGHT|RIGHTOF|SIMPLE_NAME|STABLE|SUCC|TRANSACTION|VAL|VALUE)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w\\.]+#(?:[+\-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:E[+\-]?\d+(?:_\d+)*)?)/i], ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0\-\"\']*/]]),["vhdl","vhd"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-vhdl.js ================================================ /* Copyright (C) 2010 benoit@ryder.fr Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t\n\r \xA0]+/,null,"\t\n\r \u00a0"]],[["str",/^(?:[BOX]?"(?:[^\"]|"")*"|'.')/i],["com",/^--[^\r\n]*/],["kwd",/^(?:abs|access|after|alias|all|and|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|mod|nand|new|next|nor|not|null|of|on|open|or|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|rem|report|return|rol|ror|select|severity|shared|signal|sla|sll|sra|srl|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with|xnor|xor)(?=[^\w-]|$)/i, null],["typ",/^(?:bit|bit_vector|character|boolean|integer|real|time|string|severity_level|positive|natural|signed|unsigned|line|text|std_u?logic(?:_vector)?)(?=[^\w-]|$)/i,null],["typ",/^\'(?:ACTIVE|ASCENDING|BASE|DELAYED|DRIVING|DRIVING_VALUE|EVENT|HIGH|IMAGE|INSTANCE_NAME|LAST_ACTIVE|LAST_EVENT|LAST_VALUE|LEFT|LEFTOF|LENGTH|LOW|PATH_NAME|POS|PRED|QUIET|RANGE|REVERSE_RANGE|RIGHT|RIGHTOF|SIMPLE_NAME|STABLE|SUCC|TRANSACTION|VAL|VALUE)(?=[^\w-]|$)/i,null],["lit",/^\d+(?:_\d+)*(?:#[\w\\.]+#(?:[+\-]?\d+(?:_\d+)*)?|(?:\.\d+(?:_\d+)*)?(?:E[+\-]?\d+(?:_\d+)*)?)/i], ["pln",/^(?:[a-z]\w*|\\[^\\]*\\)/i],["pun",/^[^\w\t\n\r \xA0\"\'][^\w\t\n\r \xA0\-\"\']*/]]),["vhdl","vhd"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-wiki.js ================================================ /* Copyright (C) 2009 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pln",/^[\t \xA0a-gi-z0-9]+/,null,"\t \u00a0abcdefgijklmnopqrstuvwxyz0123456789"],["pun",/^[=*~\^\[\]]+/,null,"=*~^[]"]],[["lang-wiki.meta",/(?:^^|\r\n?|\n)(#[a-z]+)\b/],["lit",/^(?:[A-Z][a-z][a-z0-9]+[A-Z][a-z][a-zA-Z0-9]+)\b/],["lang-",/^\{\{\{([\s\S]+?)\}\}\}/],["lang-",/^`([^\r\n`]+)`/],["str",/^https?:\/\/[^\/?#\s]*(?:\/[^?#\s]*)?(?:\?[^#\s]*)?(?:#\S*)?/i],["pln",/^(?:\r\n|[\s\S])[^#=*~^A-Zh\{`\[\r\n]*/]]),["wiki"]); PR.registerLangHandler(PR.createSimpleLexer([["kwd",/^#[a-z]+/i,null,"#"]],[]),["wiki.meta"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-xq.js ================================================ /* Copyright (C) 2011 Patrick Wied Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["var pln",/^\$[A-Za-z0-9_\-]+/,null,"$"]],[["pln",/^[\s=][<>][\s=]/],["lit",/^\@[\w-]+/],["tag",/^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["com",/^\(:[\s\S]*?:\)/],["pln",/^[\/\{\};,\[\]\(\)]$/],["str",/^(?:\"(?:[^\"\\\{]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\\{]|\\[\s\S])*(?:\'|$))/,null,"\"'"],["kwd",/^(?:xquery|where|version|variable|union|typeswitch|treat|to|then|text|stable|sortby|some|self|schema|satisfies|returns|return|ref|processing-instruction|preceding-sibling|preceding|precedes|parent|only|of|node|namespace|module|let|item|intersect|instance|in|import|if|function|for|follows|following-sibling|following|external|except|every|else|element|descending|descendant-or-self|descendant|define|default|declare|comment|child|cast|case|before|attribute|assert|ascending|as|ancestor-or-self|ancestor|after|eq|order|by|or|and|schema-element|document-node|node|at)\b/], ["typ",/^(?:xs:yearMonthDuration|xs:unsignedLong|xs:time|xs:string|xs:short|xs:QName|xs:Name|xs:long|xs:integer|xs:int|xs:gYearMonth|xs:gYear|xs:gMonthDay|xs:gDay|xs:float|xs:duration|xs:double|xs:decimal|xs:dayTimeDuration|xs:dateTime|xs:date|xs:byte|xs:boolean|xs:anyURI|xf:yearMonthDuration)\b/,null],["fun pln",/^(?:xp:dereference|xinc:node-expand|xinc:link-references|xinc:link-expand|xhtml:restructure|xhtml:clean|xhtml:add-lists|xdmp:zip-manifest|xdmp:zip-get|xdmp:zip-create|xdmp:xquery-version|xdmp:word-convert|xdmp:with-namespaces|xdmp:version|xdmp:value|xdmp:user-roles|xdmp:user-last-login|xdmp:user|xdmp:url-encode|xdmp:url-decode|xdmp:uri-is-file|xdmp:uri-format|xdmp:uri-content-type|xdmp:unquote|xdmp:unpath|xdmp:triggers-database|xdmp:trace|xdmp:to-json|xdmp:tidy|xdmp:subbinary|xdmp:strftime|xdmp:spawn-in|xdmp:spawn|xdmp:sleep|xdmp:shutdown|xdmp:set-session-field|xdmp:set-response-encoding|xdmp:set-response-content-type|xdmp:set-response-code|xdmp:set-request-time-limit|xdmp:set|xdmp:servers|xdmp:server-status|xdmp:server-name|xdmp:server|xdmp:security-database|xdmp:security-assert|xdmp:schema-database|xdmp:save|xdmp:role-roles|xdmp:role|xdmp:rethrow|xdmp:restart|xdmp:request-timestamp|xdmp:request-status|xdmp:request-cancel|xdmp:request|xdmp:redirect-response|xdmp:random|xdmp:quote|xdmp:query-trace|xdmp:query-meters|xdmp:product-edition|xdmp:privilege-roles|xdmp:privilege|xdmp:pretty-print|xdmp:powerpoint-convert|xdmp:platform|xdmp:permission|xdmp:pdf-convert|xdmp:path|xdmp:octal-to-integer|xdmp:node-uri|xdmp:node-replace|xdmp:node-kind|xdmp:node-insert-child|xdmp:node-insert-before|xdmp:node-insert-after|xdmp:node-delete|xdmp:node-database|xdmp:mul64|xdmp:modules-root|xdmp:modules-database|xdmp:merging|xdmp:merge-cancel|xdmp:merge|xdmp:md5|xdmp:logout|xdmp:login|xdmp:log-level|xdmp:log|xdmp:lock-release|xdmp:lock-acquire|xdmp:load|xdmp:invoke-in|xdmp:invoke|xdmp:integer-to-octal|xdmp:integer-to-hex|xdmp:http-put|xdmp:http-post|xdmp:http-options|xdmp:http-head|xdmp:http-get|xdmp:http-delete|xdmp:hosts|xdmp:host-status|xdmp:host-name|xdmp:host|xdmp:hex-to-integer|xdmp:hash64|xdmp:hash32|xdmp:has-privilege|xdmp:groups|xdmp:group-serves|xdmp:group-servers|xdmp:group-name|xdmp:group-hosts|xdmp:group|xdmp:get-session-field-names|xdmp:get-session-field|xdmp:get-response-encoding|xdmp:get-response-code|xdmp:get-request-username|xdmp:get-request-user|xdmp:get-request-url|xdmp:get-request-protocol|xdmp:get-request-path|xdmp:get-request-method|xdmp:get-request-header-names|xdmp:get-request-header|xdmp:get-request-field-names|xdmp:get-request-field-filename|xdmp:get-request-field-content-type|xdmp:get-request-field|xdmp:get-request-client-certificate|xdmp:get-request-client-address|xdmp:get-request-body|xdmp:get-current-user|xdmp:get-current-roles|xdmp:get|xdmp:function-name|xdmp:function-module|xdmp:function|xdmp:from-json|xdmp:forests|xdmp:forest-status|xdmp:forest-restore|xdmp:forest-restart|xdmp:forest-name|xdmp:forest-delete|xdmp:forest-databases|xdmp:forest-counts|xdmp:forest-clear|xdmp:forest-backup|xdmp:forest|xdmp:filesystem-file|xdmp:filesystem-directory|xdmp:exists|xdmp:excel-convert|xdmp:eval-in|xdmp:eval|xdmp:estimate|xdmp:email|xdmp:element-content-type|xdmp:elapsed-time|xdmp:document-set-quality|xdmp:document-set-property|xdmp:document-set-properties|xdmp:document-set-permissions|xdmp:document-set-collections|xdmp:document-remove-properties|xdmp:document-remove-permissions|xdmp:document-remove-collections|xdmp:document-properties|xdmp:document-locks|xdmp:document-load|xdmp:document-insert|xdmp:document-get-quality|xdmp:document-get-properties|xdmp:document-get-permissions|xdmp:document-get-collections|xdmp:document-get|xdmp:document-forest|xdmp:document-delete|xdmp:document-add-properties|xdmp:document-add-permissions|xdmp:document-add-collections|xdmp:directory-properties|xdmp:directory-locks|xdmp:directory-delete|xdmp:directory-create|xdmp:directory|xdmp:diacritic-less|xdmp:describe|xdmp:default-permissions|xdmp:default-collections|xdmp:databases|xdmp:database-restore-validate|xdmp:database-restore-status|xdmp:database-restore-cancel|xdmp:database-restore|xdmp:database-name|xdmp:database-forests|xdmp:database-backup-validate|xdmp:database-backup-status|xdmp:database-backup-purge|xdmp:database-backup-cancel|xdmp:database-backup|xdmp:database|xdmp:collection-properties|xdmp:collection-locks|xdmp:collection-delete|xdmp:collation-canonical-uri|xdmp:castable-as|xdmp:can-grant-roles|xdmp:base64-encode|xdmp:base64-decode|xdmp:architecture|xdmp:apply|xdmp:amp-roles|xdmp:amp|xdmp:add64|xdmp:add-response-header|xdmp:access|trgr:trigger-set-recursive|trgr:trigger-set-permissions|trgr:trigger-set-name|trgr:trigger-set-module|trgr:trigger-set-event|trgr:trigger-set-description|trgr:trigger-remove-permissions|trgr:trigger-module|trgr:trigger-get-permissions|trgr:trigger-enable|trgr:trigger-disable|trgr:trigger-database-online-event|trgr:trigger-data-event|trgr:trigger-add-permissions|trgr:remove-trigger|trgr:property-content|trgr:pre-commit|trgr:post-commit|trgr:get-trigger-by-id|trgr:get-trigger|trgr:document-scope|trgr:document-content|trgr:directory-scope|trgr:create-trigger|trgr:collection-scope|trgr:any-property-content|thsr:set-entry|thsr:remove-term|thsr:remove-synonym|thsr:remove-entry|thsr:query-lookup|thsr:lookup|thsr:load|thsr:insert|thsr:expand|thsr:add-synonym|spell:suggest-detailed|spell:suggest|spell:remove-word|spell:make-dictionary|spell:load|spell:levenshtein-distance|spell:is-correct|spell:insert|spell:double-metaphone|spell:add-word|sec:users-collection|sec:user-set-roles|sec:user-set-password|sec:user-set-name|sec:user-set-description|sec:user-set-default-permissions|sec:user-set-default-collections|sec:user-remove-roles|sec:user-privileges|sec:user-get-roles|sec:user-get-description|sec:user-get-default-permissions|sec:user-get-default-collections|sec:user-doc-permissions|sec:user-doc-collections|sec:user-add-roles|sec:unprotect-collection|sec:uid-for-name|sec:set-realm|sec:security-version|sec:security-namespace|sec:security-installed|sec:security-collection|sec:roles-collection|sec:role-set-roles|sec:role-set-name|sec:role-set-description|sec:role-set-default-permissions|sec:role-set-default-collections|sec:role-remove-roles|sec:role-privileges|sec:role-get-roles|sec:role-get-description|sec:role-get-default-permissions|sec:role-get-default-collections|sec:role-doc-permissions|sec:role-doc-collections|sec:role-add-roles|sec:remove-user|sec:remove-role-from-users|sec:remove-role-from-role|sec:remove-role-from-privileges|sec:remove-role-from-amps|sec:remove-role|sec:remove-privilege|sec:remove-amp|sec:protect-collection|sec:privileges-collection|sec:privilege-set-roles|sec:privilege-set-name|sec:privilege-remove-roles|sec:privilege-get-roles|sec:privilege-add-roles|sec:priv-doc-permissions|sec:priv-doc-collections|sec:get-user-names|sec:get-unique-elem-id|sec:get-role-names|sec:get-role-ids|sec:get-privilege|sec:get-distinct-permissions|sec:get-collection|sec:get-amp|sec:create-user-with-role|sec:create-user|sec:create-role|sec:create-privilege|sec:create-amp|sec:collections-collection|sec:collection-set-permissions|sec:collection-remove-permissions|sec:collection-get-permissions|sec:collection-add-permissions|sec:check-admin|sec:amps-collection|sec:amp-set-roles|sec:amp-remove-roles|sec:amp-get-roles|sec:amp-doc-permissions|sec:amp-doc-collections|sec:amp-add-roles|search:unparse|search:suggest|search:snippet|search:search|search:resolve-nodes|search:resolve|search:remove-constraint|search:parse|search:get-default-options|search:estimate|search:check-options|prof:value|prof:reset|prof:report|prof:invoke|prof:eval|prof:enable|prof:disable|prof:allowed|ppt:clean|pki:template-set-request|pki:template-set-name|pki:template-set-key-type|pki:template-set-key-options|pki:template-set-description|pki:template-in-use|pki:template-get-version|pki:template-get-request|pki:template-get-name|pki:template-get-key-type|pki:template-get-key-options|pki:template-get-id|pki:template-get-description|pki:need-certificate|pki:is-temporary|pki:insert-trusted-certificates|pki:insert-template|pki:insert-signed-certificates|pki:insert-certificate-revocation-list|pki:get-trusted-certificate-ids|pki:get-template-ids|pki:get-template-certificate-authority|pki:get-template-by-name|pki:get-template|pki:get-pending-certificate-requests-xml|pki:get-pending-certificate-requests-pem|pki:get-pending-certificate-request|pki:get-certificates-for-template-xml|pki:get-certificates-for-template|pki:get-certificates|pki:get-certificate-xml|pki:get-certificate-pem|pki:get-certificate|pki:generate-temporary-certificate-if-necessary|pki:generate-temporary-certificate|pki:generate-template-certificate-authority|pki:generate-certificate-request|pki:delete-template|pki:delete-certificate|pki:create-template|pdf:make-toc|pdf:insert-toc-headers|pdf:get-toc|pdf:clean|p:status-transition|p:state-transition|p:remove|p:pipelines|p:insert|p:get-by-id|p:get|p:execute|p:create|p:condition|p:collection|p:action|ooxml:runs-merge|ooxml:package-uris|ooxml:package-parts-insert|ooxml:package-parts|msword:clean|mcgm:polygon|mcgm:point|mcgm:geospatial-query-from-elements|mcgm:geospatial-query|mcgm:circle|math:tanh|math:tan|math:sqrt|math:sinh|math:sin|math:pow|math:modf|math:log10|math:log|math:ldexp|math:frexp|math:fmod|math:floor|math:fabs|math:exp|math:cosh|math:cos|math:ceil|math:atan2|math:atan|math:asin|math:acos|map:put|map:map|map:keys|map:get|map:delete|map:count|map:clear|lnk:to|lnk:remove|lnk:insert|lnk:get|lnk:from|lnk:create|kml:polygon|kml:point|kml:interior-polygon|kml:geospatial-query-from-elements|kml:geospatial-query|kml:circle|kml:box|gml:polygon|gml:point|gml:interior-polygon|gml:geospatial-query-from-elements|gml:geospatial-query|gml:circle|gml:box|georss:point|georss:geospatial-query|georss:circle|geo:polygon|geo:point|geo:interior-polygon|geo:geospatial-query-from-elements|geo:geospatial-query|geo:circle|geo:box|fn:zero-or-one|fn:years-from-duration|fn:year-from-dateTime|fn:year-from-date|fn:upper-case|fn:unordered|fn:true|fn:translate|fn:trace|fn:tokenize|fn:timezone-from-time|fn:timezone-from-dateTime|fn:timezone-from-date|fn:sum|fn:subtract-dateTimes-yielding-yearMonthDuration|fn:subtract-dateTimes-yielding-dayTimeDuration|fn:substring-before|fn:substring-after|fn:substring|fn:subsequence|fn:string-to-codepoints|fn:string-pad|fn:string-length|fn:string-join|fn:string|fn:static-base-uri|fn:starts-with|fn:seconds-from-time|fn:seconds-from-duration|fn:seconds-from-dateTime|fn:round-half-to-even|fn:round|fn:root|fn:reverse|fn:resolve-uri|fn:resolve-QName|fn:replace|fn:remove|fn:QName|fn:prefix-from-QName|fn:position|fn:one-or-more|fn:number|fn:not|fn:normalize-unicode|fn:normalize-space|fn:node-name|fn:node-kind|fn:nilled|fn:namespace-uri-from-QName|fn:namespace-uri-for-prefix|fn:namespace-uri|fn:name|fn:months-from-duration|fn:month-from-dateTime|fn:month-from-date|fn:minutes-from-time|fn:minutes-from-duration|fn:minutes-from-dateTime|fn:min|fn:max|fn:matches|fn:lower-case|fn:local-name-from-QName|fn:local-name|fn:last|fn:lang|fn:iri-to-uri|fn:insert-before|fn:index-of|fn:in-scope-prefixes|fn:implicit-timezone|fn:idref|fn:id|fn:hours-from-time|fn:hours-from-duration|fn:hours-from-dateTime|fn:floor|fn:false|fn:expanded-QName|fn:exists|fn:exactly-one|fn:escape-uri|fn:escape-html-uri|fn:error|fn:ends-with|fn:encode-for-uri|fn:empty|fn:document-uri|fn:doc-available|fn:doc|fn:distinct-values|fn:distinct-nodes|fn:default-collation|fn:deep-equal|fn:days-from-duration|fn:day-from-dateTime|fn:day-from-date|fn:data|fn:current-time|fn:current-dateTime|fn:current-date|fn:count|fn:contains|fn:concat|fn:compare|fn:collection|fn:codepoints-to-string|fn:codepoint-equal|fn:ceiling|fn:boolean|fn:base-uri|fn:avg|fn:adjust-time-to-timezone|fn:adjust-dateTime-to-timezone|fn:adjust-date-to-timezone|fn:abs|feed:unsubscribe|feed:subscription|feed:subscribe|feed:request|feed:item|feed:description|excel:clean|entity:enrich|dom:set-pipelines|dom:set-permissions|dom:set-name|dom:set-evaluation-context|dom:set-domain-scope|dom:set-description|dom:remove-pipeline|dom:remove-permissions|dom:remove|dom:get|dom:evaluation-context|dom:domains|dom:domain-scope|dom:create|dom:configuration-set-restart-user|dom:configuration-set-permissions|dom:configuration-set-evaluation-context|dom:configuration-set-default-domain|dom:configuration-get|dom:configuration-create|dom:collection|dom:add-pipeline|dom:add-permissions|dls:retention-rules|dls:retention-rule-remove|dls:retention-rule-insert|dls:retention-rule|dls:purge|dls:node-expand|dls:link-references|dls:link-expand|dls:documents-query|dls:document-versions-query|dls:document-version-uri|dls:document-version-query|dls:document-version-delete|dls:document-version-as-of|dls:document-version|dls:document-update|dls:document-unmanage|dls:document-set-quality|dls:document-set-property|dls:document-set-properties|dls:document-set-permissions|dls:document-set-collections|dls:document-retention-rules|dls:document-remove-properties|dls:document-remove-permissions|dls:document-remove-collections|dls:document-purge|dls:document-manage|dls:document-is-managed|dls:document-insert-and-manage|dls:document-include-query|dls:document-history|dls:document-get-permissions|dls:document-extract-part|dls:document-delete|dls:document-checkout-status|dls:document-checkout|dls:document-checkin|dls:document-add-properties|dls:document-add-permissions|dls:document-add-collections|dls:break-checkout|dls:author-query|dls:as-of-query|dbk:convert|dbg:wait|dbg:value|dbg:stopped|dbg:stop|dbg:step|dbg:status|dbg:stack|dbg:out|dbg:next|dbg:line|dbg:invoke|dbg:function|dbg:finish|dbg:expr|dbg:eval|dbg:disconnect|dbg:detach|dbg:continue|dbg:connect|dbg:clear|dbg:breakpoints|dbg:break|dbg:attached|dbg:attach|cvt:save-converted-documents|cvt:part-uri|cvt:destination-uri|cvt:basepath|cvt:basename|cts:words|cts:word-query-weight|cts:word-query-text|cts:word-query-options|cts:word-query|cts:word-match|cts:walk|cts:uris|cts:uri-match|cts:train|cts:tokenize|cts:thresholds|cts:stem|cts:similar-query-weight|cts:similar-query-nodes|cts:similar-query|cts:shortest-distance|cts:search|cts:score|cts:reverse-query-weight|cts:reverse-query-nodes|cts:reverse-query|cts:remainder|cts:registered-query-weight|cts:registered-query-options|cts:registered-query-ids|cts:registered-query|cts:register|cts:query|cts:quality|cts:properties-query-query|cts:properties-query|cts:polygon-vertices|cts:polygon|cts:point-longitude|cts:point-latitude|cts:point|cts:or-query-queries|cts:or-query|cts:not-query-weight|cts:not-query-query|cts:not-query|cts:near-query-weight|cts:near-query-queries|cts:near-query-options|cts:near-query-distance|cts:near-query|cts:highlight|cts:geospatial-co-occurrences|cts:frequency|cts:fitness|cts:field-words|cts:field-word-query-weight|cts:field-word-query-text|cts:field-word-query-options|cts:field-word-query-field-name|cts:field-word-query|cts:field-word-match|cts:entity-highlight|cts:element-words|cts:element-word-query-weight|cts:element-word-query-text|cts:element-word-query-options|cts:element-word-query-element-name|cts:element-word-query|cts:element-word-match|cts:element-values|cts:element-value-ranges|cts:element-value-query-weight|cts:element-value-query-text|cts:element-value-query-options|cts:element-value-query-element-name|cts:element-value-query|cts:element-value-match|cts:element-value-geospatial-co-occurrences|cts:element-value-co-occurrences|cts:element-range-query-weight|cts:element-range-query-value|cts:element-range-query-options|cts:element-range-query-operator|cts:element-range-query-element-name|cts:element-range-query|cts:element-query-query|cts:element-query-element-name|cts:element-query|cts:element-pair-geospatial-values|cts:element-pair-geospatial-value-match|cts:element-pair-geospatial-query-weight|cts:element-pair-geospatial-query-region|cts:element-pair-geospatial-query-options|cts:element-pair-geospatial-query-longitude-name|cts:element-pair-geospatial-query-latitude-name|cts:element-pair-geospatial-query-element-name|cts:element-pair-geospatial-query|cts:element-pair-geospatial-boxes|cts:element-geospatial-values|cts:element-geospatial-value-match|cts:element-geospatial-query-weight|cts:element-geospatial-query-region|cts:element-geospatial-query-options|cts:element-geospatial-query-element-name|cts:element-geospatial-query|cts:element-geospatial-boxes|cts:element-child-geospatial-values|cts:element-child-geospatial-value-match|cts:element-child-geospatial-query-weight|cts:element-child-geospatial-query-region|cts:element-child-geospatial-query-options|cts:element-child-geospatial-query-element-name|cts:element-child-geospatial-query-child-name|cts:element-child-geospatial-query|cts:element-child-geospatial-boxes|cts:element-attribute-words|cts:element-attribute-word-query-weight|cts:element-attribute-word-query-text|cts:element-attribute-word-query-options|cts:element-attribute-word-query-element-name|cts:element-attribute-word-query-attribute-name|cts:element-attribute-word-query|cts:element-attribute-word-match|cts:element-attribute-values|cts:element-attribute-value-ranges|cts:element-attribute-value-query-weight|cts:element-attribute-value-query-text|cts:element-attribute-value-query-options|cts:element-attribute-value-query-element-name|cts:element-attribute-value-query-attribute-name|cts:element-attribute-value-query|cts:element-attribute-value-match|cts:element-attribute-value-geospatial-co-occurrences|cts:element-attribute-value-co-occurrences|cts:element-attribute-range-query-weight|cts:element-attribute-range-query-value|cts:element-attribute-range-query-options|cts:element-attribute-range-query-operator|cts:element-attribute-range-query-element-name|cts:element-attribute-range-query-attribute-name|cts:element-attribute-range-query|cts:element-attribute-pair-geospatial-values|cts:element-attribute-pair-geospatial-value-match|cts:element-attribute-pair-geospatial-query-weight|cts:element-attribute-pair-geospatial-query-region|cts:element-attribute-pair-geospatial-query-options|cts:element-attribute-pair-geospatial-query-longitude-name|cts:element-attribute-pair-geospatial-query-latitude-name|cts:element-attribute-pair-geospatial-query-element-name|cts:element-attribute-pair-geospatial-query|cts:element-attribute-pair-geospatial-boxes|cts:document-query-uris|cts:document-query|cts:distance|cts:directory-query-uris|cts:directory-query-depth|cts:directory-query|cts:destination|cts:deregister|cts:contains|cts:confidence|cts:collections|cts:collection-query-uris|cts:collection-query|cts:collection-match|cts:classify|cts:circle-radius|cts:circle-center|cts:circle|cts:box-west|cts:box-south|cts:box-north|cts:box-east|cts:box|cts:bearing|cts:arc-intersection|cts:and-query-queries|cts:and-query-options|cts:and-query|cts:and-not-query-positive-query|cts:and-not-query-negative-query|cts:and-not-query|css:get|css:convert|cpf:success|cpf:failure|cpf:document-set-state|cpf:document-set-processing-status|cpf:document-set-last-updated|cpf:document-set-error|cpf:document-get-state|cpf:document-get-processing-status|cpf:document-get-last-updated|cpf:document-get-error|cpf:check-transition|alert:spawn-matching-actions|alert:rule-user-id-query|alert:rule-set-user-id|alert:rule-set-query|alert:rule-set-options|alert:rule-set-name|alert:rule-set-description|alert:rule-set-action|alert:rule-remove|alert:rule-name-query|alert:rule-insert|alert:rule-id-query|alert:rule-get-user-id|alert:rule-get-query|alert:rule-get-options|alert:rule-get-name|alert:rule-get-id|alert:rule-get-description|alert:rule-get-action|alert:rule-action-query|alert:remove-triggers|alert:make-rule|alert:make-log-action|alert:make-config|alert:make-action|alert:invoke-matching-actions|alert:get-my-rules|alert:get-all-rules|alert:get-actions|alert:find-matching-rules|alert:create-triggers|alert:config-set-uri|alert:config-set-trigger-ids|alert:config-set-options|alert:config-set-name|alert:config-set-description|alert:config-set-cpf-domain-names|alert:config-set-cpf-domain-ids|alert:config-insert|alert:config-get-uri|alert:config-get-trigger-ids|alert:config-get-options|alert:config-get-name|alert:config-get-id|alert:config-get-description|alert:config-get-cpf-domain-names|alert:config-get-cpf-domain-ids|alert:config-get|alert:config-delete|alert:action-set-options|alert:action-set-name|alert:action-set-module-root|alert:action-set-module-db|alert:action-set-module|alert:action-set-description|alert:action-remove|alert:action-insert|alert:action-get-options|alert:action-get-name|alert:action-get-module-root|alert:action-get-module-db|alert:action-get-module|alert:action-get-description|zero-or-one|years-from-duration|year-from-dateTime|year-from-date|upper-case|unordered|true|translate|trace|tokenize|timezone-from-time|timezone-from-dateTime|timezone-from-date|sum|subtract-dateTimes-yielding-yearMonthDuration|subtract-dateTimes-yielding-dayTimeDuration|substring-before|substring-after|substring|subsequence|string-to-codepoints|string-pad|string-length|string-join|string|static-base-uri|starts-with|seconds-from-time|seconds-from-duration|seconds-from-dateTime|round-half-to-even|round|root|reverse|resolve-uri|resolve-QName|replace|remove|QName|prefix-from-QName|position|one-or-more|number|not|normalize-unicode|normalize-space|node-name|node-kind|nilled|namespace-uri-from-QName|namespace-uri-for-prefix|namespace-uri|name|months-from-duration|month-from-dateTime|month-from-date|minutes-from-time|minutes-from-duration|minutes-from-dateTime|min|max|matches|lower-case|local-name-from-QName|local-name|last|lang|iri-to-uri|insert-before|index-of|in-scope-prefixes|implicit-timezone|idref|id|hours-from-time|hours-from-duration|hours-from-dateTime|floor|false|expanded-QName|exists|exactly-one|escape-uri|escape-html-uri|error|ends-with|encode-for-uri|empty|document-uri|doc-available|doc|distinct-values|distinct-nodes|default-collation|deep-equal|days-from-duration|day-from-dateTime|day-from-date|data|current-time|current-dateTime|current-date|count|contains|concat|compare|collection|codepoints-to-string|codepoint-equal|ceiling|boolean|base-uri|avg|adjust-time-to-timezone|adjust-dateTime-to-timezone|adjust-date-to-timezone|abs)\b/], ["pln",/^[A-Za-z0-9_\-\:]+/],["pln",/^[\t\n\r \xA0]+/]]),["xq","xquery"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-xquery.js ================================================ /* Copyright (C) 2011 Patrick Wied Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["var pln",/^\$[A-Za-z0-9_\-]+/,null,"$"]],[["pln",/^[\s=][<>][\s=]/],["lit",/^\@[\w-]+/],["tag",/^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["com",/^\(:[\s\S]*?:\)/],["pln",/^[\/\{\};,\[\]\(\)]$/],["str",/^(?:\"(?:[^\"\\\{]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\\{]|\\[\s\S])*(?:\'|$))/,null,"\"'"],["kwd",/^(?:xquery|where|version|variable|union|typeswitch|treat|to|then|text|stable|sortby|some|self|schema|satisfies|returns|return|ref|processing-instruction|preceding-sibling|preceding|precedes|parent|only|of|node|namespace|module|let|item|intersect|instance|in|import|if|function|for|follows|following-sibling|following|external|except|every|else|element|descending|descendant-or-self|descendant|define|default|declare|comment|child|cast|case|before|attribute|assert|ascending|as|ancestor-or-self|ancestor|after|eq|order|by|or|and|schema-element|document-node|node|at)\b/], ["typ",/^(?:xs:yearMonthDuration|xs:unsignedLong|xs:time|xs:string|xs:short|xs:QName|xs:Name|xs:long|xs:integer|xs:int|xs:gYearMonth|xs:gYear|xs:gMonthDay|xs:gDay|xs:float|xs:duration|xs:double|xs:decimal|xs:dayTimeDuration|xs:dateTime|xs:date|xs:byte|xs:boolean|xs:anyURI|xf:yearMonthDuration)\b/,null],["fun pln",/^(?:xp:dereference|xinc:node-expand|xinc:link-references|xinc:link-expand|xhtml:restructure|xhtml:clean|xhtml:add-lists|xdmp:zip-manifest|xdmp:zip-get|xdmp:zip-create|xdmp:xquery-version|xdmp:word-convert|xdmp:with-namespaces|xdmp:version|xdmp:value|xdmp:user-roles|xdmp:user-last-login|xdmp:user|xdmp:url-encode|xdmp:url-decode|xdmp:uri-is-file|xdmp:uri-format|xdmp:uri-content-type|xdmp:unquote|xdmp:unpath|xdmp:triggers-database|xdmp:trace|xdmp:to-json|xdmp:tidy|xdmp:subbinary|xdmp:strftime|xdmp:spawn-in|xdmp:spawn|xdmp:sleep|xdmp:shutdown|xdmp:set-session-field|xdmp:set-response-encoding|xdmp:set-response-content-type|xdmp:set-response-code|xdmp:set-request-time-limit|xdmp:set|xdmp:servers|xdmp:server-status|xdmp:server-name|xdmp:server|xdmp:security-database|xdmp:security-assert|xdmp:schema-database|xdmp:save|xdmp:role-roles|xdmp:role|xdmp:rethrow|xdmp:restart|xdmp:request-timestamp|xdmp:request-status|xdmp:request-cancel|xdmp:request|xdmp:redirect-response|xdmp:random|xdmp:quote|xdmp:query-trace|xdmp:query-meters|xdmp:product-edition|xdmp:privilege-roles|xdmp:privilege|xdmp:pretty-print|xdmp:powerpoint-convert|xdmp:platform|xdmp:permission|xdmp:pdf-convert|xdmp:path|xdmp:octal-to-integer|xdmp:node-uri|xdmp:node-replace|xdmp:node-kind|xdmp:node-insert-child|xdmp:node-insert-before|xdmp:node-insert-after|xdmp:node-delete|xdmp:node-database|xdmp:mul64|xdmp:modules-root|xdmp:modules-database|xdmp:merging|xdmp:merge-cancel|xdmp:merge|xdmp:md5|xdmp:logout|xdmp:login|xdmp:log-level|xdmp:log|xdmp:lock-release|xdmp:lock-acquire|xdmp:load|xdmp:invoke-in|xdmp:invoke|xdmp:integer-to-octal|xdmp:integer-to-hex|xdmp:http-put|xdmp:http-post|xdmp:http-options|xdmp:http-head|xdmp:http-get|xdmp:http-delete|xdmp:hosts|xdmp:host-status|xdmp:host-name|xdmp:host|xdmp:hex-to-integer|xdmp:hash64|xdmp:hash32|xdmp:has-privilege|xdmp:groups|xdmp:group-serves|xdmp:group-servers|xdmp:group-name|xdmp:group-hosts|xdmp:group|xdmp:get-session-field-names|xdmp:get-session-field|xdmp:get-response-encoding|xdmp:get-response-code|xdmp:get-request-username|xdmp:get-request-user|xdmp:get-request-url|xdmp:get-request-protocol|xdmp:get-request-path|xdmp:get-request-method|xdmp:get-request-header-names|xdmp:get-request-header|xdmp:get-request-field-names|xdmp:get-request-field-filename|xdmp:get-request-field-content-type|xdmp:get-request-field|xdmp:get-request-client-certificate|xdmp:get-request-client-address|xdmp:get-request-body|xdmp:get-current-user|xdmp:get-current-roles|xdmp:get|xdmp:function-name|xdmp:function-module|xdmp:function|xdmp:from-json|xdmp:forests|xdmp:forest-status|xdmp:forest-restore|xdmp:forest-restart|xdmp:forest-name|xdmp:forest-delete|xdmp:forest-databases|xdmp:forest-counts|xdmp:forest-clear|xdmp:forest-backup|xdmp:forest|xdmp:filesystem-file|xdmp:filesystem-directory|xdmp:exists|xdmp:excel-convert|xdmp:eval-in|xdmp:eval|xdmp:estimate|xdmp:email|xdmp:element-content-type|xdmp:elapsed-time|xdmp:document-set-quality|xdmp:document-set-property|xdmp:document-set-properties|xdmp:document-set-permissions|xdmp:document-set-collections|xdmp:document-remove-properties|xdmp:document-remove-permissions|xdmp:document-remove-collections|xdmp:document-properties|xdmp:document-locks|xdmp:document-load|xdmp:document-insert|xdmp:document-get-quality|xdmp:document-get-properties|xdmp:document-get-permissions|xdmp:document-get-collections|xdmp:document-get|xdmp:document-forest|xdmp:document-delete|xdmp:document-add-properties|xdmp:document-add-permissions|xdmp:document-add-collections|xdmp:directory-properties|xdmp:directory-locks|xdmp:directory-delete|xdmp:directory-create|xdmp:directory|xdmp:diacritic-less|xdmp:describe|xdmp:default-permissions|xdmp:default-collections|xdmp:databases|xdmp:database-restore-validate|xdmp:database-restore-status|xdmp:database-restore-cancel|xdmp:database-restore|xdmp:database-name|xdmp:database-forests|xdmp:database-backup-validate|xdmp:database-backup-status|xdmp:database-backup-purge|xdmp:database-backup-cancel|xdmp:database-backup|xdmp:database|xdmp:collection-properties|xdmp:collection-locks|xdmp:collection-delete|xdmp:collation-canonical-uri|xdmp:castable-as|xdmp:can-grant-roles|xdmp:base64-encode|xdmp:base64-decode|xdmp:architecture|xdmp:apply|xdmp:amp-roles|xdmp:amp|xdmp:add64|xdmp:add-response-header|xdmp:access|trgr:trigger-set-recursive|trgr:trigger-set-permissions|trgr:trigger-set-name|trgr:trigger-set-module|trgr:trigger-set-event|trgr:trigger-set-description|trgr:trigger-remove-permissions|trgr:trigger-module|trgr:trigger-get-permissions|trgr:trigger-enable|trgr:trigger-disable|trgr:trigger-database-online-event|trgr:trigger-data-event|trgr:trigger-add-permissions|trgr:remove-trigger|trgr:property-content|trgr:pre-commit|trgr:post-commit|trgr:get-trigger-by-id|trgr:get-trigger|trgr:document-scope|trgr:document-content|trgr:directory-scope|trgr:create-trigger|trgr:collection-scope|trgr:any-property-content|thsr:set-entry|thsr:remove-term|thsr:remove-synonym|thsr:remove-entry|thsr:query-lookup|thsr:lookup|thsr:load|thsr:insert|thsr:expand|thsr:add-synonym|spell:suggest-detailed|spell:suggest|spell:remove-word|spell:make-dictionary|spell:load|spell:levenshtein-distance|spell:is-correct|spell:insert|spell:double-metaphone|spell:add-word|sec:users-collection|sec:user-set-roles|sec:user-set-password|sec:user-set-name|sec:user-set-description|sec:user-set-default-permissions|sec:user-set-default-collections|sec:user-remove-roles|sec:user-privileges|sec:user-get-roles|sec:user-get-description|sec:user-get-default-permissions|sec:user-get-default-collections|sec:user-doc-permissions|sec:user-doc-collections|sec:user-add-roles|sec:unprotect-collection|sec:uid-for-name|sec:set-realm|sec:security-version|sec:security-namespace|sec:security-installed|sec:security-collection|sec:roles-collection|sec:role-set-roles|sec:role-set-name|sec:role-set-description|sec:role-set-default-permissions|sec:role-set-default-collections|sec:role-remove-roles|sec:role-privileges|sec:role-get-roles|sec:role-get-description|sec:role-get-default-permissions|sec:role-get-default-collections|sec:role-doc-permissions|sec:role-doc-collections|sec:role-add-roles|sec:remove-user|sec:remove-role-from-users|sec:remove-role-from-role|sec:remove-role-from-privileges|sec:remove-role-from-amps|sec:remove-role|sec:remove-privilege|sec:remove-amp|sec:protect-collection|sec:privileges-collection|sec:privilege-set-roles|sec:privilege-set-name|sec:privilege-remove-roles|sec:privilege-get-roles|sec:privilege-add-roles|sec:priv-doc-permissions|sec:priv-doc-collections|sec:get-user-names|sec:get-unique-elem-id|sec:get-role-names|sec:get-role-ids|sec:get-privilege|sec:get-distinct-permissions|sec:get-collection|sec:get-amp|sec:create-user-with-role|sec:create-user|sec:create-role|sec:create-privilege|sec:create-amp|sec:collections-collection|sec:collection-set-permissions|sec:collection-remove-permissions|sec:collection-get-permissions|sec:collection-add-permissions|sec:check-admin|sec:amps-collection|sec:amp-set-roles|sec:amp-remove-roles|sec:amp-get-roles|sec:amp-doc-permissions|sec:amp-doc-collections|sec:amp-add-roles|search:unparse|search:suggest|search:snippet|search:search|search:resolve-nodes|search:resolve|search:remove-constraint|search:parse|search:get-default-options|search:estimate|search:check-options|prof:value|prof:reset|prof:report|prof:invoke|prof:eval|prof:enable|prof:disable|prof:allowed|ppt:clean|pki:template-set-request|pki:template-set-name|pki:template-set-key-type|pki:template-set-key-options|pki:template-set-description|pki:template-in-use|pki:template-get-version|pki:template-get-request|pki:template-get-name|pki:template-get-key-type|pki:template-get-key-options|pki:template-get-id|pki:template-get-description|pki:need-certificate|pki:is-temporary|pki:insert-trusted-certificates|pki:insert-template|pki:insert-signed-certificates|pki:insert-certificate-revocation-list|pki:get-trusted-certificate-ids|pki:get-template-ids|pki:get-template-certificate-authority|pki:get-template-by-name|pki:get-template|pki:get-pending-certificate-requests-xml|pki:get-pending-certificate-requests-pem|pki:get-pending-certificate-request|pki:get-certificates-for-template-xml|pki:get-certificates-for-template|pki:get-certificates|pki:get-certificate-xml|pki:get-certificate-pem|pki:get-certificate|pki:generate-temporary-certificate-if-necessary|pki:generate-temporary-certificate|pki:generate-template-certificate-authority|pki:generate-certificate-request|pki:delete-template|pki:delete-certificate|pki:create-template|pdf:make-toc|pdf:insert-toc-headers|pdf:get-toc|pdf:clean|p:status-transition|p:state-transition|p:remove|p:pipelines|p:insert|p:get-by-id|p:get|p:execute|p:create|p:condition|p:collection|p:action|ooxml:runs-merge|ooxml:package-uris|ooxml:package-parts-insert|ooxml:package-parts|msword:clean|mcgm:polygon|mcgm:point|mcgm:geospatial-query-from-elements|mcgm:geospatial-query|mcgm:circle|math:tanh|math:tan|math:sqrt|math:sinh|math:sin|math:pow|math:modf|math:log10|math:log|math:ldexp|math:frexp|math:fmod|math:floor|math:fabs|math:exp|math:cosh|math:cos|math:ceil|math:atan2|math:atan|math:asin|math:acos|map:put|map:map|map:keys|map:get|map:delete|map:count|map:clear|lnk:to|lnk:remove|lnk:insert|lnk:get|lnk:from|lnk:create|kml:polygon|kml:point|kml:interior-polygon|kml:geospatial-query-from-elements|kml:geospatial-query|kml:circle|kml:box|gml:polygon|gml:point|gml:interior-polygon|gml:geospatial-query-from-elements|gml:geospatial-query|gml:circle|gml:box|georss:point|georss:geospatial-query|georss:circle|geo:polygon|geo:point|geo:interior-polygon|geo:geospatial-query-from-elements|geo:geospatial-query|geo:circle|geo:box|fn:zero-or-one|fn:years-from-duration|fn:year-from-dateTime|fn:year-from-date|fn:upper-case|fn:unordered|fn:true|fn:translate|fn:trace|fn:tokenize|fn:timezone-from-time|fn:timezone-from-dateTime|fn:timezone-from-date|fn:sum|fn:subtract-dateTimes-yielding-yearMonthDuration|fn:subtract-dateTimes-yielding-dayTimeDuration|fn:substring-before|fn:substring-after|fn:substring|fn:subsequence|fn:string-to-codepoints|fn:string-pad|fn:string-length|fn:string-join|fn:string|fn:static-base-uri|fn:starts-with|fn:seconds-from-time|fn:seconds-from-duration|fn:seconds-from-dateTime|fn:round-half-to-even|fn:round|fn:root|fn:reverse|fn:resolve-uri|fn:resolve-QName|fn:replace|fn:remove|fn:QName|fn:prefix-from-QName|fn:position|fn:one-or-more|fn:number|fn:not|fn:normalize-unicode|fn:normalize-space|fn:node-name|fn:node-kind|fn:nilled|fn:namespace-uri-from-QName|fn:namespace-uri-for-prefix|fn:namespace-uri|fn:name|fn:months-from-duration|fn:month-from-dateTime|fn:month-from-date|fn:minutes-from-time|fn:minutes-from-duration|fn:minutes-from-dateTime|fn:min|fn:max|fn:matches|fn:lower-case|fn:local-name-from-QName|fn:local-name|fn:last|fn:lang|fn:iri-to-uri|fn:insert-before|fn:index-of|fn:in-scope-prefixes|fn:implicit-timezone|fn:idref|fn:id|fn:hours-from-time|fn:hours-from-duration|fn:hours-from-dateTime|fn:floor|fn:false|fn:expanded-QName|fn:exists|fn:exactly-one|fn:escape-uri|fn:escape-html-uri|fn:error|fn:ends-with|fn:encode-for-uri|fn:empty|fn:document-uri|fn:doc-available|fn:doc|fn:distinct-values|fn:distinct-nodes|fn:default-collation|fn:deep-equal|fn:days-from-duration|fn:day-from-dateTime|fn:day-from-date|fn:data|fn:current-time|fn:current-dateTime|fn:current-date|fn:count|fn:contains|fn:concat|fn:compare|fn:collection|fn:codepoints-to-string|fn:codepoint-equal|fn:ceiling|fn:boolean|fn:base-uri|fn:avg|fn:adjust-time-to-timezone|fn:adjust-dateTime-to-timezone|fn:adjust-date-to-timezone|fn:abs|feed:unsubscribe|feed:subscription|feed:subscribe|feed:request|feed:item|feed:description|excel:clean|entity:enrich|dom:set-pipelines|dom:set-permissions|dom:set-name|dom:set-evaluation-context|dom:set-domain-scope|dom:set-description|dom:remove-pipeline|dom:remove-permissions|dom:remove|dom:get|dom:evaluation-context|dom:domains|dom:domain-scope|dom:create|dom:configuration-set-restart-user|dom:configuration-set-permissions|dom:configuration-set-evaluation-context|dom:configuration-set-default-domain|dom:configuration-get|dom:configuration-create|dom:collection|dom:add-pipeline|dom:add-permissions|dls:retention-rules|dls:retention-rule-remove|dls:retention-rule-insert|dls:retention-rule|dls:purge|dls:node-expand|dls:link-references|dls:link-expand|dls:documents-query|dls:document-versions-query|dls:document-version-uri|dls:document-version-query|dls:document-version-delete|dls:document-version-as-of|dls:document-version|dls:document-update|dls:document-unmanage|dls:document-set-quality|dls:document-set-property|dls:document-set-properties|dls:document-set-permissions|dls:document-set-collections|dls:document-retention-rules|dls:document-remove-properties|dls:document-remove-permissions|dls:document-remove-collections|dls:document-purge|dls:document-manage|dls:document-is-managed|dls:document-insert-and-manage|dls:document-include-query|dls:document-history|dls:document-get-permissions|dls:document-extract-part|dls:document-delete|dls:document-checkout-status|dls:document-checkout|dls:document-checkin|dls:document-add-properties|dls:document-add-permissions|dls:document-add-collections|dls:break-checkout|dls:author-query|dls:as-of-query|dbk:convert|dbg:wait|dbg:value|dbg:stopped|dbg:stop|dbg:step|dbg:status|dbg:stack|dbg:out|dbg:next|dbg:line|dbg:invoke|dbg:function|dbg:finish|dbg:expr|dbg:eval|dbg:disconnect|dbg:detach|dbg:continue|dbg:connect|dbg:clear|dbg:breakpoints|dbg:break|dbg:attached|dbg:attach|cvt:save-converted-documents|cvt:part-uri|cvt:destination-uri|cvt:basepath|cvt:basename|cts:words|cts:word-query-weight|cts:word-query-text|cts:word-query-options|cts:word-query|cts:word-match|cts:walk|cts:uris|cts:uri-match|cts:train|cts:tokenize|cts:thresholds|cts:stem|cts:similar-query-weight|cts:similar-query-nodes|cts:similar-query|cts:shortest-distance|cts:search|cts:score|cts:reverse-query-weight|cts:reverse-query-nodes|cts:reverse-query|cts:remainder|cts:registered-query-weight|cts:registered-query-options|cts:registered-query-ids|cts:registered-query|cts:register|cts:query|cts:quality|cts:properties-query-query|cts:properties-query|cts:polygon-vertices|cts:polygon|cts:point-longitude|cts:point-latitude|cts:point|cts:or-query-queries|cts:or-query|cts:not-query-weight|cts:not-query-query|cts:not-query|cts:near-query-weight|cts:near-query-queries|cts:near-query-options|cts:near-query-distance|cts:near-query|cts:highlight|cts:geospatial-co-occurrences|cts:frequency|cts:fitness|cts:field-words|cts:field-word-query-weight|cts:field-word-query-text|cts:field-word-query-options|cts:field-word-query-field-name|cts:field-word-query|cts:field-word-match|cts:entity-highlight|cts:element-words|cts:element-word-query-weight|cts:element-word-query-text|cts:element-word-query-options|cts:element-word-query-element-name|cts:element-word-query|cts:element-word-match|cts:element-values|cts:element-value-ranges|cts:element-value-query-weight|cts:element-value-query-text|cts:element-value-query-options|cts:element-value-query-element-name|cts:element-value-query|cts:element-value-match|cts:element-value-geospatial-co-occurrences|cts:element-value-co-occurrences|cts:element-range-query-weight|cts:element-range-query-value|cts:element-range-query-options|cts:element-range-query-operator|cts:element-range-query-element-name|cts:element-range-query|cts:element-query-query|cts:element-query-element-name|cts:element-query|cts:element-pair-geospatial-values|cts:element-pair-geospatial-value-match|cts:element-pair-geospatial-query-weight|cts:element-pair-geospatial-query-region|cts:element-pair-geospatial-query-options|cts:element-pair-geospatial-query-longitude-name|cts:element-pair-geospatial-query-latitude-name|cts:element-pair-geospatial-query-element-name|cts:element-pair-geospatial-query|cts:element-pair-geospatial-boxes|cts:element-geospatial-values|cts:element-geospatial-value-match|cts:element-geospatial-query-weight|cts:element-geospatial-query-region|cts:element-geospatial-query-options|cts:element-geospatial-query-element-name|cts:element-geospatial-query|cts:element-geospatial-boxes|cts:element-child-geospatial-values|cts:element-child-geospatial-value-match|cts:element-child-geospatial-query-weight|cts:element-child-geospatial-query-region|cts:element-child-geospatial-query-options|cts:element-child-geospatial-query-element-name|cts:element-child-geospatial-query-child-name|cts:element-child-geospatial-query|cts:element-child-geospatial-boxes|cts:element-attribute-words|cts:element-attribute-word-query-weight|cts:element-attribute-word-query-text|cts:element-attribute-word-query-options|cts:element-attribute-word-query-element-name|cts:element-attribute-word-query-attribute-name|cts:element-attribute-word-query|cts:element-attribute-word-match|cts:element-attribute-values|cts:element-attribute-value-ranges|cts:element-attribute-value-query-weight|cts:element-attribute-value-query-text|cts:element-attribute-value-query-options|cts:element-attribute-value-query-element-name|cts:element-attribute-value-query-attribute-name|cts:element-attribute-value-query|cts:element-attribute-value-match|cts:element-attribute-value-geospatial-co-occurrences|cts:element-attribute-value-co-occurrences|cts:element-attribute-range-query-weight|cts:element-attribute-range-query-value|cts:element-attribute-range-query-options|cts:element-attribute-range-query-operator|cts:element-attribute-range-query-element-name|cts:element-attribute-range-query-attribute-name|cts:element-attribute-range-query|cts:element-attribute-pair-geospatial-values|cts:element-attribute-pair-geospatial-value-match|cts:element-attribute-pair-geospatial-query-weight|cts:element-attribute-pair-geospatial-query-region|cts:element-attribute-pair-geospatial-query-options|cts:element-attribute-pair-geospatial-query-longitude-name|cts:element-attribute-pair-geospatial-query-latitude-name|cts:element-attribute-pair-geospatial-query-element-name|cts:element-attribute-pair-geospatial-query|cts:element-attribute-pair-geospatial-boxes|cts:document-query-uris|cts:document-query|cts:distance|cts:directory-query-uris|cts:directory-query-depth|cts:directory-query|cts:destination|cts:deregister|cts:contains|cts:confidence|cts:collections|cts:collection-query-uris|cts:collection-query|cts:collection-match|cts:classify|cts:circle-radius|cts:circle-center|cts:circle|cts:box-west|cts:box-south|cts:box-north|cts:box-east|cts:box|cts:bearing|cts:arc-intersection|cts:and-query-queries|cts:and-query-options|cts:and-query|cts:and-not-query-positive-query|cts:and-not-query-negative-query|cts:and-not-query|css:get|css:convert|cpf:success|cpf:failure|cpf:document-set-state|cpf:document-set-processing-status|cpf:document-set-last-updated|cpf:document-set-error|cpf:document-get-state|cpf:document-get-processing-status|cpf:document-get-last-updated|cpf:document-get-error|cpf:check-transition|alert:spawn-matching-actions|alert:rule-user-id-query|alert:rule-set-user-id|alert:rule-set-query|alert:rule-set-options|alert:rule-set-name|alert:rule-set-description|alert:rule-set-action|alert:rule-remove|alert:rule-name-query|alert:rule-insert|alert:rule-id-query|alert:rule-get-user-id|alert:rule-get-query|alert:rule-get-options|alert:rule-get-name|alert:rule-get-id|alert:rule-get-description|alert:rule-get-action|alert:rule-action-query|alert:remove-triggers|alert:make-rule|alert:make-log-action|alert:make-config|alert:make-action|alert:invoke-matching-actions|alert:get-my-rules|alert:get-all-rules|alert:get-actions|alert:find-matching-rules|alert:create-triggers|alert:config-set-uri|alert:config-set-trigger-ids|alert:config-set-options|alert:config-set-name|alert:config-set-description|alert:config-set-cpf-domain-names|alert:config-set-cpf-domain-ids|alert:config-insert|alert:config-get-uri|alert:config-get-trigger-ids|alert:config-get-options|alert:config-get-name|alert:config-get-id|alert:config-get-description|alert:config-get-cpf-domain-names|alert:config-get-cpf-domain-ids|alert:config-get|alert:config-delete|alert:action-set-options|alert:action-set-name|alert:action-set-module-root|alert:action-set-module-db|alert:action-set-module|alert:action-set-description|alert:action-remove|alert:action-insert|alert:action-get-options|alert:action-get-name|alert:action-get-module-root|alert:action-get-module-db|alert:action-get-module|alert:action-get-description|zero-or-one|years-from-duration|year-from-dateTime|year-from-date|upper-case|unordered|true|translate|trace|tokenize|timezone-from-time|timezone-from-dateTime|timezone-from-date|sum|subtract-dateTimes-yielding-yearMonthDuration|subtract-dateTimes-yielding-dayTimeDuration|substring-before|substring-after|substring|subsequence|string-to-codepoints|string-pad|string-length|string-join|string|static-base-uri|starts-with|seconds-from-time|seconds-from-duration|seconds-from-dateTime|round-half-to-even|round|root|reverse|resolve-uri|resolve-QName|replace|remove|QName|prefix-from-QName|position|one-or-more|number|not|normalize-unicode|normalize-space|node-name|node-kind|nilled|namespace-uri-from-QName|namespace-uri-for-prefix|namespace-uri|name|months-from-duration|month-from-dateTime|month-from-date|minutes-from-time|minutes-from-duration|minutes-from-dateTime|min|max|matches|lower-case|local-name-from-QName|local-name|last|lang|iri-to-uri|insert-before|index-of|in-scope-prefixes|implicit-timezone|idref|id|hours-from-time|hours-from-duration|hours-from-dateTime|floor|false|expanded-QName|exists|exactly-one|escape-uri|escape-html-uri|error|ends-with|encode-for-uri|empty|document-uri|doc-available|doc|distinct-values|distinct-nodes|default-collation|deep-equal|days-from-duration|day-from-dateTime|day-from-date|data|current-time|current-dateTime|current-date|count|contains|concat|compare|collection|codepoints-to-string|codepoint-equal|ceiling|boolean|base-uri|avg|adjust-time-to-timezone|adjust-dateTime-to-timezone|adjust-date-to-timezone|abs)\b/], ["pln",/^[A-Za-z0-9_\-\:]+/],["pln",/^[\t\n\r \xA0]+/]]),["xq","xquery"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-yaml.js ================================================ /* Copyright (C) 2015 ribrdb @ code.google.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:|>?]+/,null,":|>?"],["dec",/^%(?:YAML|TAG)[^#\r\n]+/,null,"%"],["typ",/^[&]\S+/,null,"&"],["typ",/^!\S*/,null,"!"],["str",/^"(?:[^\\"]|\\.)*(?:"|$)/,null,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,null,"'"],["com",/^#[^\r\n]*/,null,"#"],["pln",/^\s+/,null," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\r\n]|$)/],["pun",/^-/],["kwd",/^[\w-]+:[ \r\n]/],["pln", /^\w+/]]),["yaml","yml"]); ================================================ FILE: public/apidoc/vendor/prettify/lang-yml.js ================================================ /* Copyright (C) 2015 ribrdb @ code.google.com Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ PR.registerLangHandler(PR.createSimpleLexer([["pun",/^[:|>?]+/,null,":|>?"],["dec",/^%(?:YAML|TAG)[^#\r\n]+/,null,"%"],["typ",/^[&]\S+/,null,"&"],["typ",/^!\S*/,null,"!"],["str",/^"(?:[^\\"]|\\.)*(?:"|$)/,null,'"'],["str",/^'(?:[^']|'')*(?:'|$)/,null,"'"],["com",/^#[^\r\n]*/,null,"#"],["pln",/^\s+/,null," \t\r\n"]],[["dec",/^(?:---|\.\.\.)(?:[\r\n]|$)/],["pun",/^-/],["kwd",/^[\w-]+:[ \r\n]/],["pln", /^\w+/]]),["yaml","yml"]); ================================================ FILE: public/apidoc/vendor/prettify/prettify.css ================================================ .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} ================================================ FILE: public/apidoc/vendor/prettify/prettify.js ================================================ !function(){/* Copyright (C) 2006 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function T(a){function d(e){var b=e.charCodeAt(0);if(92!==b)return b;var a=e.charAt(1);return(b=w[a])?b:"0"<=a&&"7">=a?parseInt(e.substring(1),8):"u"===a||"x"===a?parseInt(e.substring(2),16):e.charCodeAt(1)}function f(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return"\\"===e||"-"===e||"]"===e||"^"===e?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e= [];var a="^"===b[0],c=["["];a&&c.push("^");for(var a=a?1:0,g=b.length;ak||122k||90k||122h[0]&&(h[1]+1>h[0]&&c.push("-"),c.push(f(h[1])));c.push("]");return c.join("")}function v(e){for(var a=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),c=a.length,d=[],g=0,h=0;g/,null])):d.push(["com",/^#[^\r\n]*/,null,"#"]));a.cStyleComments&&(f.push(["com",/^\/\/[^\r\n]*/,null]),f.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));if(b=a.regexLiterals){var v=(b=1|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+ ("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+v+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+v+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&f.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&f.push(["kwd",new RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),null]);d.push(["pln",/^\s+/,null," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");f.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i, null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(b),null]);return G(d,f)}function L(a,d,f){function b(a){var c=a.nodeType;if(1==c&&!A.test(a.className))if("br"===a.nodeName)v(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((3==c||4==c)&&f){var d=a.nodeValue,q=d.match(n);q&&(c=d.substring(0,q.index),a.nodeValue=c,(d=d.substring(q.index+q[0].length))&& a.parentNode.insertBefore(l.createTextNode(d),a.nextSibling),v(a),c||a.parentNode.removeChild(a))}}function v(a){function b(a,c){var d=c?a.cloneNode(!1):a,k=a.parentNode;if(k){var k=b(k,1),e=a.nextSibling;k.appendChild(d);for(var f=e;f;f=e)e=f.nextSibling,k.appendChild(f)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;a=b(a.nextSibling,0);for(var d;(d=a.parentNode)&&1===d.nodeType;)a=d;c.push(a)}for(var A=/(?:^|\s)nocode(?:\s|$)/,n=/\r\n?|\n/,l=a.ownerDocument,m=l.createElement("li");a.firstChild;)m.appendChild(a.firstChild); for(var c=[m],p=0;p=+v[1],d=/\n/g,A=a.a,n=A.length,f=0,l=a.c,m=l.length,b=0,c=a.g,p=c.length,w=0;c[p]=n;var r,e;for(e=r=0;e=h&&(b+=2);f>=k&&(w+=2)}}finally{g&&(g.style.display=a)}}catch(x){E.console&&console.log(x&&x.stack||x)}}var E=window,C=["break,continue,do,else,for,if,return,while"], F=[[C,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],H=[F,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"], O=[F,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],P=[F,"abstract,as,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],F=[F,"debugger,eval,export,function,get,instanceof,null,set,undefined,var,with,Infinity,NaN"], Q=[C,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],R=[C,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],C=[C,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],S=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, W=/\S/,X=y({keywords:[H,P,O,F,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",Q,R,C],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),I={};t(X,["default-code"]);t(G([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-", /^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" "));t(G([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/], ["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);t(G([],[["atv",/^[\s\S]+/]]),["uq.val"]);t(y({keywords:H,hashComments:!0,cStyleComments:!0,types:S}),"c cc cpp cxx cyc m".split(" "));t(y({keywords:"null,true,false"}),["json"]);t(y({keywords:P,hashComments:!0,cStyleComments:!0, verbatimStrings:!0,types:S}),["cs"]);t(y({keywords:O,cStyleComments:!0}),["java"]);t(y({keywords:C,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);t(y({keywords:Q,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);t(y({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}), ["perl","pl","pm"]);t(y({keywords:R,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);t(y({keywords:F,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);t(y({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);t(G([],[["str",/^[\s\S]+/]]),["regex"]); var Y=E.PR={createSimpleLexer:G,registerLangHandler:t,sourceDecorator:y,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:E.prettyPrintOne=function(a,d,f){f=f||!1;d=d||null;var b=document.createElement("div");b.innerHTML="
"+a+"
";b=b.firstChild;f&&L(b,f,!0);M({j:d,m:f,h:b,l:1,a:null,i:null,c:null, g:null});return b.innerHTML},prettyPrint:E.prettyPrint=function(a,d){function f(){for(var b=E.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;p=a?parseInt(e.substring(1),8):"u"===a||"x"===a?parseInt(e.substring(2),16):e.charCodeAt(1)}function f(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);e=String.fromCharCode(e);return"\\"===e||"-"=== e||"]"===e||"^"===e?"\\"+e:e}function b(e){var b=e.substring(1,e.length-1).match(/\\u[0-9A-Fa-f]{4}|\\x[0-9A-Fa-f]{2}|\\[0-3][0-7]{0,2}|\\[0-7]{1,2}|\\[\s\S]|-|[^-\\]/g);e=[];var a="^"===b[0],c=["["];a&&c.push("^");for(var a=a?1:0,h=b.length;an||122n||90n||122l[0]&&(l[1]+1>l[0]&&c.push("-"),c.push(f(l[1])));c.push("]");return c.join("")}function g(e){for(var a=e.source.match(/(?:\[(?:[^\x5C\x5D]|\\[\s\S])*\]|\\u[A-Fa-f0-9]{4}|\\x[A-Fa-f0-9]{2}|\\[0-9]+|\\[^ux0-9]|\(\?[:!=]|[\(\)\^]|[^\x5B\x5C\(\)\^]+)/g),c=a.length,d=[],h=0,l=0;h/,null])):d.push(["com",/^#[^\r\n]*/,null,"#"]));a.cStyleComments&&(f.push(["com",/^\/\/[^\r\n]*/,null]),f.push(["com",/^\/\*[\s\S]*?(?:\*\/|$)/,null]));if(b=a.regexLiterals){var g=(b=1|\\/=?|::?|<>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*("+ ("/(?=[^/*"+b+"])(?:[^/\\x5B\\x5C"+b+"]|\\x5C"+g+"|\\x5B(?:[^\\x5C\\x5D"+b+"]|\\x5C"+g+")*(?:\\x5D|$))+/")+")")])}(b=a.types)&&f.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&f.push(["kwd",new RegExp("^(?:"+b.replace(/[\s,]+/g,"|")+")\\b"),null]);d.push(["pln",/^\s+/,null," \r\n\t\u00a0"]);b="^.[^\\s\\w.$@'\"`/\\\\]*";a.regexLiterals&&(b+="(?!s*/)");f.push(["lit",/^@[a-z_$][a-z_$@0-9]*/i,null],["typ",/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],["pln",/^[a-z_$][a-z_$@0-9]*/i, null],["lit",/^(?:0x[a-f0-9]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+\-]?\d+)?)[a-z]*/i,null,"0123456789"],["pln",/^\\[\s\S]?/,null],["pun",new RegExp(b),null]);return C(d,f)}function B(a,d,f){function b(a){var c=a.nodeType;if(1==c&&!k.test(a.className))if("br"===a.nodeName)g(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((3==c||4==c)&&f){var d=a.nodeValue,p=d.match(q);p&&(c=d.substring(0,p.index),a.nodeValue=c,(d=d.substring(p.index+p[0].length))&& a.parentNode.insertBefore(m.createTextNode(d),a.nextSibling),g(a),c||a.parentNode.removeChild(a))}}function g(a){function b(a,c){var d=c?a.cloneNode(!1):a,n=a.parentNode;if(n){var n=b(n,1),e=a.nextSibling;n.appendChild(d);for(var f=e;f;f=e)e=f.nextSibling,n.appendChild(f)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;a=b(a.nextSibling,0);for(var d;(d=a.parentNode)&&1===d.nodeType;)a=d;c.push(a)}for(var k=/(?:^|\s)nocode(?:\s|$)/,q=/\r\n?|\n/,m=a.ownerDocument,p=m.createElement("li");a.firstChild;)p.appendChild(a.firstChild); for(var c=[p],r=0;r=+g[1],d=/\n/g,p=a.a,k=p.length,f=0,m=a.c,t=m.length,b=0,c=a.g,r=c.length,x=0;c[r]=k;var u,e;for(e=u=0;e=l&&(b+=2);f>=n&&(x+=2)}}finally{h&&(h.style.display=a)}}catch(y){R.console&&console.log(y&&y.stack||y)}}var R=window,K=["break,continue,do,else,for,if,return,while"], L=[[K,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],S=[L,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"], M=[L,"abstract,assert,boolean,byte,extends,finally,final,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],N=[L,"abstract,as,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],L=[L,"debugger,eval,export,function,get,instanceof,null,set,undefined,var,with,Infinity,NaN"], O=[K,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],P=[K,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],K=[K,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],Q=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/, T=/\S/,U=x({keywords:[S,N,M,L,"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",O,P,K],hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),X={};p(U,["default-code"]);p(C([],[["pln",/^[^]*(?:>|$)/],["com",/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["pun",/^(?:<[%?]|[%?]>)/],["lang-", /^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),"default-markup htm html mxml xhtml xml xsl".split(" "));p(C([["pln",/^[\s]+/,null," \t\r\n"],["atv",/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[["tag",/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],["atn",/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/], ["pun",/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);p(C([],[["atv",/^[\s\S]+/]]),["uq.val"]);p(x({keywords:S,hashComments:!0,cStyleComments:!0,types:Q}),"c cc cpp cxx cyc m".split(" "));p(x({keywords:"null,true,false"}),["json"]);p(x({keywords:N,hashComments:!0,cStyleComments:!0, verbatimStrings:!0,types:Q}),["cs"]);p(x({keywords:M,cStyleComments:!0}),["java"]);p(x({keywords:K,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]);p(x({keywords:O,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]);p(x({keywords:"caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",hashComments:!0,multiLineStrings:!0,regexLiterals:2}), ["perl","pl","pm"]);p(x({keywords:P,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]);p(x({keywords:L,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]);p(x({keywords:"all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]);p(C([],[["str",/^[\s\S]+/]]),["regex"]); var V=R.PR={createSimpleLexer:C,registerLangHandler:p,sourceDecorator:x,PR_ATTRIB_NAME:"atn",PR_ATTRIB_VALUE:"atv",PR_COMMENT:"com",PR_DECLARATION:"dec",PR_KEYWORD:"kwd",PR_LITERAL:"lit",PR_NOCODE:"nocode",PR_PLAIN:"pln",PR_PUNCTUATION:"pun",PR_SOURCE:"src",PR_STRING:"str",PR_TAG:"tag",PR_TYPE:"typ",prettyPrintOne:function(a,d,f){f=f||!1;d=d||null;var b=document.createElement("div");b.innerHTML="
"+a+"
";b=b.firstChild;f&&B(b,f,!0);H({j:d,m:f,h:b,l:1,a:null,i:null,c:null,g:null});return b.innerHTML}, prettyPrint:g=g=function(a,d){function f(){for(var b=R.PR_SHOULD_USE_CONTINUATION?c.now()+250:Infinity;r code[class*="language-"], pre[class*="language-"] { background: #2d2d2d; } /* Inline code */ :not(pre) > code[class*="language-"] { padding: .1em; border-radius: .3em; white-space: normal; } .token.comment, .token.block-comment, .token.prolog, .token.doctype, .token.cdata { color: #999; } .token.punctuation { color: #ccc; } .token.tag, .token.attr-name, .token.namespace, .token.deleted { color: #e2777a; } .token.function-name { color: #6196cc; } .token.boolean, .token.number, .token.function { color: #f08d49; } .token.property, .token.class-name, .token.constant, .token.symbol { color: #f8c555; } .token.selector, .token.important, .token.atrule, .token.keyword, .token.builtin { color: #cc99cd; } .token.string, .token.char, .token.attr-value, .token.regex, .token.variable { color: #7ec699; } .token.operator, .token.entity, .token.url { color: #67cdcc; } .token.important, .token.bold { font-weight: bold; } .token.italic { font-style: italic; } .token.entity { cursor: help; } .token.inserted { color: green; } ================================================ FILE: public/apidoc/vendor/prism.js ================================================ /* PrismJS 1.21.0 https://prismjs.com/download.html#themes=prism-tomorrow&languages=clike+javascript+bash+c+csharp+cpp+clojure+elixir+erlang+go+http+json+json5+jsonp+lua+perl+python+rust */ var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(u){var c=/\blang(?:uage)?-([\w-]+)\b/i,n=0,M={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function e(n){return n instanceof W?new W(n.type,e(n.content),n.alias):Array.isArray(n)?n.map(e):n.replace(/&/g,"&").replace(/=l.reach);k+=y.value.length,y=y.next){var b=y.value;if(t.length>n.length)return;if(!(b instanceof W)){var x=1;if(h&&y!=t.tail.prev){m.lastIndex=k;var w=m.exec(n);if(!w)break;var A=w.index+(f&&w[1]?w[1].length:0),P=w.index+w[0].length,S=k;for(S+=y.value.length;S<=A;)y=y.next,S+=y.value.length;if(S-=y.value.length,k=S,y.value instanceof W)continue;for(var E=y;E!==t.tail&&(Sl.reach&&(l.reach=j);var C=y.prev;L&&(C=I(t,C,L),k+=L.length),z(t,C,x);var _=new W(o,g?M.tokenize(O,g):O,v,O);y=I(t,C,_),N&&I(t,y,N),1"+a.content+""},!u.document)return u.addEventListener&&(M.disableWorkerMessageHandler||u.addEventListener("message",function(e){var n=JSON.parse(e.data),t=n.language,r=n.code,a=n.immediateClose;u.postMessage(M.highlight(r,M.languages[t],t)),a&&u.close()},!1)),M;var e=M.util.currentScript();function t(){M.manual||M.highlightAll()}if(e&&(M.filename=e.src,e.hasAttribute("data-manual")&&(M.manual=!0)),!M.manual){var r=document.readyState;"loading"===r||"interactive"===r&&e&&e.defer?document.addEventListener("DOMContentLoaded",t):window.requestAnimationFrame?window.requestAnimationFrame(t):window.setTimeout(t,16)}return M}(_self);"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism); Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}; Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])[_$A-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|})\s*)(?:catch|finally)\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|for|from|function|(?:get|set)(?=\s*[\[$\w\xA0-\uFFFF])|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,function:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*]|\\.|[^/\\\[\r\n])+\/[gimyus]{0,6}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0},"function-variable":{pattern:/#?[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*)?\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/[_$a-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*=>)/i,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:[_$A-Za-z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()]|\([^()]*\))+?(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}|(?!\${)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\${(?:[^{}]|{(?:[^{}]|{[^}]*})*})+}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\${|}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}}}),Prism.languages.markup&&Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.js=Prism.languages.javascript; !function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+\.?\d*|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|-=|\+\+?|\+=|!=?|~|\*\*?|\*=|\/=?|%=?|<<=?|>>=?|<=?|>=?|==?|&&?|&=|\^=?|\|\|?|\|=|\?|:/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|x[0-9a-fA-F]{1,2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)\w+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b\w+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+?)\s*(?:\r?\n|\r)[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:n},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s*(?:\r?\n|\r)[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\](?:\\\\)*)(["'])(?:\\[\s\S]|\$\([^)]+\)|`[^`]+`|(?!\2)[^\\])*\2/,lookbehind:!0,greedy:!0,inside:n}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:n.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|aptitude|apt-cache|apt-get|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:if|then|else|elif|fi|for|while|in|case|esac|function|select|do|done|until)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|break|cd|continue|eval|exec|exit|export|getopts|hash|pwd|readonly|return|shift|test|times|trap|umask|unset|alias|bind|builtin|caller|command|declare|echo|enable|help|let|local|logout|mapfile|printf|read|readarray|source|type|typeset|ulimit|unalias|set|shopt)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:true|false)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|==?|!=?|=~|<<[<-]?|[&\d]?>>|\d?[<>]&?|&[>&]?|\|[&|]?|<=?|>=?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}};for(var a=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],r=n.variable[1].inside,s=0;s>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/,number:/(?:\b0x(?:[\da-f]+\.?[\da-f]*|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?)[ful]*/i}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^\s*)#\s*[a-z]+(?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],comment:Prism.languages.c.comment,directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}},constant:/\b(?:__FILE__|__LINE__|__DATE__|__TIME__|__TIMESTAMP__|__func__|EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|stdin|stdout|stderr)\b/}),delete Prism.languages.c.boolean; !function(s){function a(e,s){return e.replace(/<<(\d+)>>/g,function(e,n){return"(?:"+s[+n]+")"})}function t(e,n,s){return RegExp(a(e,n),s||"")}function e(e,n){for(var s=0;s>/g,function(){return"(?:"+e+")"});return e.replace(/<>/g,"[^\\s\\S]")}var n="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",r="class enum interface struct",i="add alias and ascending async await by descending from get global group into join let nameof not notnull on or orderby partial remove select set unmanaged value when where where",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var d=l(r),p=RegExp(l(n+" "+r+" "+i+" "+o)),c=l(r+" "+i+" "+o),u=l(n+" "+r+" "+o),g=e("<(?:[^<>;=+\\-*/%&|^]|<>)*>",2),b=e("\\((?:[^()]|<>)*\\)",2),h="@?\\b[A-Za-z_]\\w*\\b",f=a("<<0>>(?:\\s*<<1>>)?",[h,g]),m=a("(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*",[c,f]),k="\\[\\s*(?:,\\s*)*\\]",y=a("<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?",[m,k]),w=a("(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?",[a("\\(<<0>>+(?:,<<0>>+)+\\)",[a("[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>",[g,b,k])]),m,k]),v={keyword:p,punctuation:/[<>()?,.:[\]]/},x="'(?:[^\r\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'",$='"(?:\\\\.|[^\\\\"\r\n])*"';s.languages.csharp=s.languages.extend("clike",{string:[{pattern:t("(^|[^$\\\\])<<0>>",['@"(?:""|\\\\[^]|[^\\\\"])*"(?!")']),lookbehind:!0,greedy:!0},{pattern:t("(^|[^@$\\\\])<<0>>",[$]),lookbehind:!0,greedy:!0},{pattern:RegExp(x),greedy:!0,alias:"character"}],"class-name":[{pattern:t("(\\busing\\s+static\\s+)<<0>>(?=\\s*;)",[m]),lookbehind:!0,inside:v},{pattern:t("(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)",[h,w]),lookbehind:!0,inside:v},{pattern:t("(\\busing\\s+)<<0>>(?=\\s*=)",[h]),lookbehind:!0},{pattern:t("(\\b<<0>>\\s+)<<1>>",[d,f]),lookbehind:!0,inside:v},{pattern:t("(\\bcatch\\s*\\(\\s*)<<0>>",[m]),lookbehind:!0,inside:v},{pattern:t("(\\bwhere\\s+)<<0>>",[h]),lookbehind:!0},{pattern:t("(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>",[y]),lookbehind:!0,inside:v},{pattern:t("\\b<<0>>(?=\\s+(?!<<1>>)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))",[w,u,h]),inside:v}],keyword:p,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),s.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),s.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:t("([(,]\\s*)<<0>>(?=\\s*:)",[h]),lookbehind:!0,alias:"punctuation"}}),s.languages.insertBefore("csharp","class-name",{namespace:{pattern:t("(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])",[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:t("(\\b(?:default|typeof|sizeof)\\s*\\(\\s*)(?:[^()\\s]|\\s(?!\\s*\\))|<<0>>)*(?=\\s*\\))",[b]),lookbehind:!0,alias:"class-name",inside:v},"return-type":{pattern:t("<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))",[w,m]),inside:v,alias:"class-name"},"constructor-invocation":{pattern:t("(\\bnew\\s+)<<0>>(?=\\s*[[({])",[w]),lookbehind:!0,inside:v,alias:"class-name"},"generic-method":{pattern:t("<<0>>\\s*<<1>>(?=\\s*\\()",[h,g]),inside:{function:t("^<<0>>",[h]),generic:{pattern:RegExp(g),alias:"class-name",inside:v}}},"type-list":{pattern:t("\\b((?:<<0>>\\s+<<1>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>)(?:\\s*,\\s*(?:<<3>>|<<4>>))*(?=\\s*(?:where|[{;]|=>|$))",[d,f,h,w,p.source]),lookbehind:!0,inside:{keyword:p,"class-name":{pattern:RegExp(w),greedy:!0,inside:v},punctuation:/,/}},preprocessor:{pattern:/(^\s*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(\s*#)\b(?:define|elif|else|endif|endregion|error|if|line|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var _=$+"|"+x,B=a("/(?![*/])|//[^\r\n]*[\r\n]|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>",[_]),E=e(a("[^\"'/()]|<<0>>|\\(<>*\\)",[B]),2),R="\\b(?:assembly|event|field|method|module|param|property|return|type)\\b",P=a("<<0>>(?:\\s*\\(<<1>>*\\))?",[m,E]);s.languages.insertBefore("csharp","class-name",{attribute:{pattern:t("((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])",[R,P]),lookbehind:!0,greedy:!0,inside:{target:{pattern:t("^<<0>>(?=\\s*:)",[R]),alias:"keyword"},"attribute-arguments":{pattern:t("\\(<<0>>*\\)",[E]),inside:s.languages.csharp},"class-name":{pattern:RegExp(m),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var z=":[^}\r\n]+",S=e(a("[^\"'/()]|<<0>>|\\(<>*\\)",[B]),2),j=a("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}",[S,z]),A=e(a("[^\"'/()]|/(?!\\*)|/\\*(?:[^*]|\\*(?!/))*\\*/|<<0>>|\\(<>*\\)",[_]),2),F=a("\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}",[A,z]);function U(e,n){return{interpolation:{pattern:t("((?:^|[^{])(?:\\{\\{)*)<<0>>",[e]),lookbehind:!0,inside:{"format-string":{pattern:t("(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)",[n,z]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:s.languages.csharp}}},string:/[\s\S]+/}}s.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:t('(^|[^\\\\])(?:\\$@|@\\$)"(?:""|\\\\[^]|\\{\\{|<<0>>|[^\\\\{"])*"',[j]),lookbehind:!0,greedy:!0,inside:U(j,S)},{pattern:t('(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"',[F]),lookbehind:!0,greedy:!0,inside:U(F,A)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp; !function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|float|for|friend|goto|if|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|mutable|namespace|new|noexcept|nullptr|operator|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/;e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp("(\\b(?:class|concept|enum|struct|typename)\\s+)(?!)\\w+".replace(//g,function(){return t.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+\.?[\da-f']*|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+\.?[\d']*|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]*/i,greedy:!0},operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore("cpp","string",{"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)(?:[^;{}"'])+?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","operator",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism); Prism.languages.clojure={comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},operator:/(?:::|[:|'])\b[a-z][\w*+!?-]*\b/i,keyword:{pattern:/([^\w+*'?-])(?:def|if|do|let|\.\.|quote|var|->>|->|fn|loop|recur|throw|try|monitor-enter|\.|new|set!|def\-|defn|defn\-|defmacro|defmulti|defmethod|defstruct|defonce|declare|definline|definterface|defprotocol|==|defrecord|>=|deftype|<=|defproject|ns|\*|\+|\-|\/|<|=|>|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|conj|cons|constantly|cond|if-not|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|deref|difference|disj|dissoc|distinct|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|for|fnseq|frest|gensym|get-proxy-class|get|hash-map|hash-set|identical\?|identity|if-let|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|line-seq|list\*|list|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|time|to-array|to-array-2d|tree-seq|true\?|union|up|update-proxy|val|vals|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[^\w+*'?-])/,lookbehind:!0},boolean:/\b(?:true|false|nil)\b/,number:/\b[\da-f]+\b/i,punctuation:/[{}\[\](),]/}; Prism.languages.elixir={comment:/#.*/m,regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},"attr-name":/\w+\??:(?!:)/,capture:{pattern:/(^|[^&])&(?:[^&\s\d()][^\s()]*|(?=\())/,lookbehind:!0,alias:"function"},argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|exception|impl|module|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|require|rescue|try|unless|use|when)\b/,boolean:/\b(?:true|false|nil)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},Prism.languages.elixir.string.forEach(function(e){e.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:Prism.languages.elixir}}}}); Prism.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:true|false)\b/,keyword:/\b(?:fun|when|case|of|end|if|receive|after|try|catch)\b/,number:[/\$\\?./,/\d+#[a-z0-9]+/i,/(?:\b\d+\.?\d*|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:bnot|div|rem|band|bor|bxor|bsl|bsr|not|and|or|xor|orelse|andalso)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}; Prism.languages.go=Prism.languages.extend("clike",{keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,builtin:/\b(?:bool|byte|complex(?:64|128)|error|float(?:32|64)|rune|string|u?int(?:8|16|32|64)?|uintptr|append|cap|close|complex|copy|delete|imag|len|make|new|panic|print(?:ln)?|real|recover)\b/,boolean:/\b(?:_|iota|nil|true|false)\b/,operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,number:/(?:\b0x[a-f\d]+|(?:\b\d+\.?\d*|\B\.\d+)(?:e[-+]?\d+)?)i?/i,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0}}),delete Prism.languages.go["class-name"]; !function(t){t.languages.http={"request-line":{pattern:/^(?:POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\s(?:https?:\/\/|\/)\S+\sHTTP\/[0-9.]+/m,inside:{property:/^(?:POST|GET|PUT|DELETE|OPTIONS|PATCH|TRACE|CONNECT)\b/,"attr-name":/:\w+/}},"response-status":{pattern:/^HTTP\/1.[01] \d+.*/m,inside:{property:{pattern:/(^HTTP\/1.[01] )\d+.*/i,lookbehind:!0}}},"header-name":{pattern:/^[\w-]+:(?=.)/m,alias:"keyword"}};var a,e,n,i=t.languages,p={"application/javascript":i.javascript,"application/json":i.json||i.javascript,"application/xml":i.xml,"text/xml":i.xml,"text/html":i.html,"text/css":i.css},s={"application/json":!0,"application/xml":!0};for(var r in p)if(p[r]){a=a||{};var T=s[r]?(void 0,n=(e=r).replace(/^[a-z]+\//,""),"(?:"+e+"|\\w+/(?:[\\w.-]+\\+)+"+n+"(?![+\\w.-]))"):r;a[r.replace(/\//g,"-")]={pattern:RegExp("(content-type:\\s*"+T+"[\\s\\S]*?)(?:\\r?\\n|\\r){2}[\\s\\S]*","i"),lookbehind:!0,inside:p[r]}}a&&t.languages.insertBefore("http","header-name",a)}(Prism); Prism.languages.json={property:{pattern:/"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json; !function(n){var e=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;n.languages.json5=n.languages.extend("json",{property:[{pattern:RegExp(e.source+"(?=\\s*:)"),greedy:!0},{pattern:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*:)/,alias:"unquoted"}],string:{pattern:e,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+\.?\d*|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Prism); Prism.languages.jsonp=Prism.languages.extend("json",{punctuation:/[{}[\]();,.]/}),Prism.languages.insertBefore("jsonp","punctuation",{function:/[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*(?=\s*\()/}); Prism.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[\s\S]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+\.?[a-f\d]*(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|\.?\d*(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}; Prism.languages.perl={comment:[{pattern:/(^\s*)=\w+[\s\S]*?=cut.*/m,lookbehind:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0}],string:[{pattern:/\b(?:q|qq|qx|qw)\s*([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/\b(?:q|qq|qx|qw)\s+([a-zA-Z0-9])(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/\b(?:q|qq|qx|qw)\s*\((?:[^()\\]|\\[\s\S])*\)/,greedy:!0},{pattern:/\b(?:q|qq|qx|qw)\s*\{(?:[^{}\\]|\\[\s\S])*\}/,greedy:!0},{pattern:/\b(?:q|qq|qx|qw)\s*\[(?:[^[\]\\]|\\[\s\S])*\]/,greedy:!0},{pattern:/\b(?:q|qq|qx|qw)\s*<(?:[^<>\\]|\\[\s\S])*>/,greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:/\b(?:m|qr)\s*([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1[msixpodualngc]*/,greedy:!0},{pattern:/\b(?:m|qr)\s+([a-zA-Z0-9])(?:(?!\1)[^\\]|\\[\s\S])*\1[msixpodualngc]*/,greedy:!0},{pattern:/\b(?:m|qr)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngc]*/,greedy:!0},{pattern:/\b(?:m|qr)\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngc]*/,greedy:!0},{pattern:/\b(?:m|qr)\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngc]*/,greedy:!0},{pattern:/\b(?:m|qr)\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngc]*/,greedy:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s*([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2[msixpodualngcer]*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s+([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2[msixpodualngcer]*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s*\((?:[^()\\]|\\[\s\S])*\)\s*\((?:[^()\\]|\\[\s\S])*\)[msixpodualngcer]*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s*\{(?:[^{}\\]|\\[\s\S])*\}\s*\{(?:[^{}\\]|\\[\s\S])*\}[msixpodualngcer]*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s*\[(?:[^[\]\\]|\\[\s\S])*\]\s*\[(?:[^[\]\\]|\\[\s\S])*\][msixpodualngcer]*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^-]\b)(?:s|tr|y)\s*<(?:[^<>\\]|\\[\s\S])*>\s*<(?:[^<>\\]|\\[\s\S])*>[msixpodualngcer]*/,lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:lt|gt|le|ge|eq|ne|cmp|not|and|or|xor|x)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+)+(?:::)*/i,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*>|\b_\b/,alias:"symbol"},vstring:{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/sub [a-z0-9_]+/i,inside:{keyword:/sub/}},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:\d(?:_?\d)*)?\.?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:lt|gt|le|ge|eq|ne|cmp|not|and|or|xor)\b/,punctuation:/[{}[\];(),:]/}; Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},"string-interpolation":{pattern:/(?:f|rf|fr)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:{{)*){(?!{)(?:[^{}]|{(?!{)(?:[^{}]|{(?!{)(?:[^{}])+})+})+}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^\s*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*\.?\d*|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python; !function(e){for(var a="/\\*(?:[^*/]|\\*(?!/)|/(?!\\*)|)*\\*/",t=0;t<2;t++)a=a.replace(//g,function(){return a});a=a.replace(//g,function(){return"[^\\s\\S]"}),e.languages.rust={comment:[{pattern:RegExp("(^|[^\\\\])"+a),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u{(?:[\da-fA-F]_*){1,6}|.)|[^\\\r\n\t'])'/,greedy:!0,alias:"string"},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|Self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:[ui](?:8|16|32|64|128|size)|f(?:32|64)|bool|char|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:\d(?:_?\d)*)?\.?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:[iu](?:8|16|32|64|size)?|f32|f64))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism); ================================================ FILE: public/apidoc/vendor/webfontloader.js ================================================ /* Web Font Loader v1.6.24 - (c) Adobe Systems, Google. License: Apache 2.0 */ (function(){function aa(a,b,d){return a.call.apply(a.bind,arguments)}function ba(a,b,d){if(!a)throw Error();if(2=b.f?e():a.fonts.load(fa(b.a),b.h).then(function(a){1<=a.length?c():setTimeout(k,25)},function(){e()})}k()}),e=new Promise(function(a,c){setTimeout(c,b.f)});Promise.race([e,c]).then(function(){b.g(b.a)},function(){b.j(b.a)})};function R(a,b,d,c,e,f,g){this.v=a;this.B=b;this.c=d;this.a=c;this.s=g||"BESbswy";this.f={};this.w=e||3E3;this.u=f||null;this.o=this.j=this.h=this.g=null;this.g=new N(this.c,this.s);this.h=new N(this.c,this.s);this.j=new N(this.c,this.s);this.o=new N(this.c,this.s);a=new H(this.a.c+",serif",K(this.a));a=P(a);this.g.a.style.cssText=a;a=new H(this.a.c+",sans-serif",K(this.a));a=P(a);this.h.a.style.cssText=a;a=new H("serif",K(this.a));a=P(a);this.j.a.style.cssText=a;a=new H("sans-serif",K(this.a));a= P(a);this.o.a.style.cssText=a;O(this.g);O(this.h);O(this.j);O(this.o)}var S={D:"serif",C:"sans-serif"},T=null;function U(){if(null===T){var a=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);T=!!a&&(536>parseInt(a[1],10)||536===parseInt(a[1],10)&&11>=parseInt(a[2],10))}return T}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth;this.f["sans-serif"]=this.o.a.offsetWidth;this.A=q();la(this)}; function ma(a,b,d){for(var c in S)if(S.hasOwnProperty(c)&&b===a.f[S[c]]&&d===a.f[S[c]])return!0;return!1}function la(a){var b=a.g.a.offsetWidth,d=a.h.a.offsetWidth,c;(c=b===a.f.serif&&d===a.f["sans-serif"])||(c=U()&&ma(a,b,d));c?q()-a.A>=a.w?U()&&ma(a,b,d)&&(null===a.u||a.u.hasOwnProperty(a.a.c))?V(a,a.v):V(a,a.B):na(a):V(a,a.v)}function na(a){setTimeout(p(function(){la(this)},a),50)}function V(a,b){setTimeout(p(function(){v(this.g.a);v(this.h.a);v(this.j.a);v(this.o.a);b(this.a)},a),0)};function W(a,b,d){this.c=a;this.a=b;this.f=0;this.o=this.j=!1;this.s=d}var X=null;W.prototype.g=function(a){var b=this.a;b.g&&w(b.f,[b.a.c("wf",a.c,K(a).toString(),"active")],[b.a.c("wf",a.c,K(a).toString(),"loading"),b.a.c("wf",a.c,K(a).toString(),"inactive")]);L(b,"fontactive",a);this.o=!0;oa(this)}; W.prototype.h=function(a){var b=this.a;if(b.g){var d=y(b.f,b.a.c("wf",a.c,K(a).toString(),"active")),c=[],e=[b.a.c("wf",a.c,K(a).toString(),"loading")];d||c.push(b.a.c("wf",a.c,K(a).toString(),"inactive"));w(b.f,c,e)}L(b,"fontinactive",a);oa(this)};function oa(a){0==--a.f&&a.j&&(a.o?(a=a.a,a.g&&w(a.f,[a.a.c("wf","active")],[a.a.c("wf","loading"),a.a.c("wf","inactive")]),L(a,"active")):M(a.a))};function pa(a){this.j=a;this.a=new ja;this.h=0;this.f=this.g=!0}pa.prototype.load=function(a){this.c=new ca(this.j,a.context||this.j);this.g=!1!==a.events;this.f=!1!==a.classes;qa(this,new ha(this.c,a),a)}; function ra(a,b,d,c,e){var f=0==--a.h;(a.f||a.g)&&setTimeout(function(){var a=e||null,k=c||null||{};if(0===d.length&&f)M(b.a);else{b.f+=d.length;f&&(b.j=f);var h,m=[];for(h=0;h Welcome to Restful-Booker

Welcome to Restful-Booker

An API playground created by Mark Winteringham for those wanting to learn more about API testing and tools

Welcome to Restful-booker an API that you can use to learn more about API Testing or try out API testing tools against. Restful-booker is a Create Read Update Delete Web API that comes with authentication features and loaded with a bunch of bugs for you to explore. The API comes pre-loaded with 10 records for you to work with and resets itself every 10 minutes back to that default state. Restful-booker also comes with detailed API documentation to help get you started with your API testing straight away.

Support me and Restful-Booker


Restful-booker is a free to use API for practising testing, but if you enjoy using this API please consider supporting me by purchasing one of my books. Alternatively you can support Ministry of Testing who host this API by going Pro.

Buy AI-Assisted Testing

Testing Web APIs

Buy Testing Web APIs

Testing Web APIs

Go Pro with Ministry of Testing

Boost your learning, go Pro
================================================ FILE: routes/apidoc.json ================================================ { "name": "restful-booker", "description": "API documentation for the playground API restful-booker. Click here to go back to Home", "title": "Restful-booker", "url" : "https://restful-booker.herokuapp.com/", "order": [ "GetBookings", "GetBooking", "CreateBooking", "UpdateBooking", "PartialUpdateBooking", "DeleteBooking" ] } ================================================ FILE: routes/index.js ================================================ const express = require('express'); const router = express.Router(), parse = require('../helpers/parser'), crypto = require('crypto'), Booking = require('../models/booking'), validator = require('../helpers/validator'), creator = require('../helpers/bookingcreator'), globalLogins = {}; const { v4: uuidv4 } = require('uuid'); if(process.env.SEED === 'true'){ let count = 1; (function createBooking(){ const newBooking = creator.createBooking(); Booking.create(newBooking, function(err, result){ if(err) return console.error(err); if(count < 10){ count++; createBooking(); } }); })() }; /** * @api {get} ping HealthCheck * @apiName Ping * @apiGroup Ping * @apiVersion 1.0.0 * @apiDescription A simple health check endpoint to confirm whether the API is up and running. * * @apiExample Ping server: * curl -i https://restful-booker.herokuapp.com/ping * * @apiSuccess {String} OK Default HTTP 201 response * * @apiSuccessExample {json} Response: * HTTP/1.1 201 Created */ router.get('/ping', function(req, res, next) { res.sendStatus(201); }); /** * @api {get} booking GetBookingIds * @apiName GetBookings * @apiGroup Booking * @apiVersion 1.0.0 * @apiDescription Returns the ids of all the bookings that exist within the API. Can take optional query strings to search and return a subset of booking ids. * * @apiParam {String} [firstname] Return bookings with a specific firstname * @apiParam {String} [lastname] Return bookings with a specific lastname * @apiParam {date} [checkin] Return bookings that have a checkin date greater than or equal to the set checkin date. Format must be CCYY-MM-DD * @apiParam {date} [checkout] Return bookings that have a checkout date greater than or equal to the set checkout date. Format must be CCYY-MM-DD * * @apiExample Example 1 (All IDs): * curl -i https://restful-booker.herokuapp.com/booking * * @apiExample Example 2 (Filter by name): * curl -i https://restful-booker.herokuapp.com/booking?firstname=sally&lastname=brown * * @apiExample Example 3 (Filter by checkin/checkout date): * curl -i https://restful-booker.herokuapp.com/booking?checkin=2014-03-13&checkout=2014-05-21 * * @apiSuccess {object[]} object Array of objects that contain unique booking IDs * @apiSuccess {number} object.bookingid ID of a specific booking that matches search criteria * * @apiSuccessExample {json} Response: * HTTP/1.1 200 OK * * [ { "bookingid": 1 }, { "bookingid": 2 }, { "bookingid": 3 }, { "bookingid": 4 } ] */ router.get('/booking', function(req, res, next) { const query = {}; if(typeof(req.query.firstname) != 'undefined'){ query.firstname = req.query.firstname } if(typeof(req.query.lastname) != 'undefined'){ query.lastname = req.query.lastname } if(typeof(req.query.checkin) != 'undefined'){ query["bookingdates.checkin"] = {$gt: new Date(req.query.checkin).toISOString()} } if(typeof(req.query.checkout) != 'undefined'){ query["bookingdates.checkout"] = {$lt: new Date(req.query.checkout).toISOString()} } Booking.getIDs(query, function(err, record){ const booking = parse.bookingids(req, record); if(!booking){ res.sendStatus(418); } else { res.send(booking); } }) }); /** * @api {get} booking/:id GetBooking * @apiName GetBooking * @apiGroup Booking * @apiVersion 1.0.0 * @apiDescription Returns a specific booking based upon the booking id provided * * @apiParam (Url Parameter) {String} id The id of the booking you would like to retrieve * * @apiHeader {string} Accept=application/json Sets what format the response body is returned in. Can be application/json or application/xml * * @apiExample Example 1 (Get booking): * curl -i https://restful-booker.herokuapp.com/booking/1 * * @apiSuccess {String} firstname Firstname for the guest who made the booking * @apiSuccess {String} lastname Lastname for the guest who made the booking * @apiSuccess {Number} totalprice The total price for the booking * @apiSuccess {Boolean} depositpaid Whether the deposit has been paid or not * @apiSuccess {Object} bookingdates Sub-object that contains the checkin and checkout dates * @apiSuccess {Date} bookingdates.checkin Date the guest is checking in * @apiSuccess {Date} bookingdates.checkout Date the guest is checking out * @apiSuccess {String} additionalneeds Any other needs the guest has * * @apiSuccessExample {json} JSON Response: * HTTP/1.1 200 OK * * { "firstname": "Sally", "lastname": "Brown", "totalprice": 111, "depositpaid": true, "bookingdates": { "checkin": "2013-02-23", "checkout": "2014-10-23" }, "additionalneeds": "Breakfast" } * @apiSuccessExample {xml} XML Response: * HTTP/1.1 200 OK * * Sally Brown 111 true 2013-02-23 2014-10-23 Breakfast * * @apiSuccessExample {url} URL Response: * HTTP/1.1 200 OK * * firstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2019-01-01 */ router.get('/booking/:id',function(req, res, next){ Booking.get(req.params.id, function(err, record){ if(record){ const booking = parse.booking(req.headers.accept, record); if(!booking){ res.sendStatus(418); } else { res.send(booking); } } else { res.sendStatus(404) } }) }); /** * @api {post} booking CreateBooking * @apiName CreateBooking * @apiGroup Booking * @apiVersion 1.0.0 * @apiDescription Creates a new booking in the API * * @apiParam (Request body) {String} firstname Firstname for the guest who made the booking * @apiParam (Request body) {String} lastname Lastname for the guest who made the booking * @apiParam (Request body) {Number} totalprice The total price for the booking * @apiParam (Request body) {Boolean} depositpaid Whether the deposit has been paid or not * @apiParam (Request body) {Date} bookingdates.checkin Date the guest is checking in * @apiParam (Request body) {Date} bookingdates.checkout Date the guest is checking out * @apiParam (Request body) {String} additionalneeds Any other needs the guest has * * @apiHeader {string} Content-Type=application/json Sets the format of payload you are sending. Can be application/json or text/xml * @apiHeader {string} Accept=application/json Sets what format the response body is returned in. Can be application/json or application/xml * * @apiExample JSON example usage: * curl -X POST \ https://restful-booker.herokuapp.com/booking \ -H 'Content-Type: application/json' \ -d '{ "firstname" : "Jim", "lastname" : "Brown", "totalprice" : 111, "depositpaid" : true, "bookingdates" : { "checkin" : "2018-01-01", "checkout" : "2019-01-01" }, "additionalneeds" : "Breakfast" }' * @apiExample XML example usage: * curl -X POST \ https://restful-booker.herokuapp.com/booking \ -H 'Content-Type: text/xml' \ -d ' Jim Brown 111 true 2018-01-01 2019-01-01 Breakfast ' * * @apiExample URLencoded example usage: * curl -X POST \ https://restful-booker.herokuapp.com/booking \ -H 'Content-Type: application/x-www-form-urlencoded' \ -d 'firstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2018-01-02' * * @apiSuccess {Number} bookingid ID for newly created booking * @apiSuccess {Object} booking Object that contains * @apiSuccess {String} booking.firstname Firstname for the guest who made the booking * @apiSuccess {String} booking.lastname Lastname for the guest who made the booking * @apiSuccess {Number} booking.totalprice The total price for the booking * @apiSuccess {Boolean} booking.depositpaid Whether the deposit has been paid or not * @apiSuccess {Object} booking.bookingdates Sub-object that contains the checkin and checkout dates * @apiSuccess {Date} booking.bookingdates.checkin Date the guest is checking in * @apiSuccess {Date} booking.bookingdates.checkout Date the guest is checking out * @apiSuccess {String} booking.additionalneeds Any other needs the guest has * * @apiSuccessExample {json} JSON Response: * HTTP/1.1 200 OK * * { "bookingid": 1, "booking": { "firstname": "Jim", "lastname": "Brown", "totalprice": 111, "depositpaid": true, "bookingdates": { "checkin": "2018-01-01", "checkout": "2019-01-01" }, "additionalneeds": "Breakfast" } } * @apiSuccessExample {xml} XML Response: * HTTP/1.1 200 OK * * 1 Jim Brown 111 true 2018-01-01 2019-01-01 Breakfast * @apiSuccessExample {url} URL Response: * HTTP/1.1 200 OK * * bookingid=1&booking%5Bfirstname%5D=Jim&booking%5Blastname%5D=Brown&booking%5Btotalprice%5D=111&booking%5Bdepositpaid%5D=true&booking%5Bbookingdates%5D%5Bcheckin%5D=2018-01-01&booking%5Bbookingdates%5D%5Bcheckout%5D=2019-01-01 */ router.post('/booking', function(req, res, next) { newBooking = req.body; if(req.headers['content-type'] === 'text/xml') newBooking = newBooking.booking; validator.scrubAndValidate(newBooking, function(payload, msg){ if(!msg){ Booking.create(newBooking, function(err, booking){ if(err) res.sendStatus(500); else { const record = parse.bookingWithId(req, booking); if(!record){ res.sendStatus(418); } else { res.send(record); } } }) } else { res.sendStatus(500); } }) }); /** * @api {put} booking/:id UpdateBooking * @apiName UpdateBooking * @apiGroup Booking * @apiVersion 1.0.0 * @apiDescription Updates a current booking * * @apiParam (Url Parameter) {Number} id ID for the booking you want to update * * @apiParam (Request body) {String} firstname Firstname for the guest who made the booking * @apiParam (Request body) {String} lastname Lastname for the guest who made the booking * @apiParam (Request body) {Number} totalprice The total price for the booking * @apiParam (Request body) {Boolean} depositpaid Whether the deposit has been paid or not * @apiParam (Request body) {Date} bookingdates.checkin Date the guest is checking in * @apiParam (Request body) {Date} bookingdates.checkout Date the guest is checking out * @apiParam (Request body) {String} additionalneeds Any other needs the guest has * * @apiHeader {string} Content-Type=application/json Sets the format of payload you are sending. Can be application/json or text/xml * @apiHeader {string} Accept=application/json Sets what format the response body is returned in. Can be application/json or application/xml * @apiHeader {string} [Cookie=token=<token_value>] Sets an authorization token to access the PUT endpoint, can be used as an alternative to the Authorization * @apiHeader {string} [Authorization=Basic YWRtaW46cGFzc3dvcmQxMjM=] Basic authorization header to access the PUT endpoint, can be used as an alternative to the Cookie header * * @apiExample JSON example usage: * curl -X PUT \ https://restful-booker.herokuapp.com/booking/1 \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Cookie: token=abc123' \ -d '{ "firstname" : "James", "lastname" : "Brown", "totalprice" : 111, "depositpaid" : true, "bookingdates" : { "checkin" : "2018-01-01", "checkout" : "2019-01-01" }, "additionalneeds" : "Breakfast" }' * * @apiExample XML example usage: * curl -X PUT \ https://restful-booker.herokuapp.com/booking/1 \ -H 'Content-Type: text/xml' \ -H 'Accept: application/xml' \ -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \ -d ' James Brown 111 true 2018-01-01 2019-01-01 Breakfast ' * * @apiExample URLencoded example usage: * curl -X PUT \ https://restful-booker.herokuapp.com/booking/1 \ -H 'Content-Type: application/x-www-form-urlencoded' \ -H 'Accept: application/x-www-form-urlencoded' \ -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \ -d 'firstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2018-01-02' * * @apiSuccess {String} firstname Firstname for the guest who made the booking * @apiSuccess {String} lastname Lastname for the guest who made the booking * @apiSuccess {Number} totalprice The total price for the booking * @apiSuccess {Boolean} depositpaid Whether the deposit has been paid or not * @apiSuccess {Object} bookingdates Sub-object that contains the checkin and checkout dates * @apiSuccess {Date} bookingdates.checkin Date the guest is checking in * @apiSuccess {Date} bookingdates.checkout Date the guest is checking out * @apiSuccess {String} additionalneeds Any other needs the guest has * * @apiSuccessExample {json} JSON Response: * HTTP/1.1 200 OK * * { "firstname" : "James", "lastname" : "Brown", "totalprice" : 111, "depositpaid" : true, "bookingdates" : { "checkin" : "2018-01-01", "checkout" : "2019-01-01" }, "additionalneeds" : "Breakfast" } * @apiSuccessExample {xml} XML Response: * HTTP/1.1 200 OK * * James Brown 111 true 2018-01-01 2019-01-01 Breakfast * * @apiSuccessExample {url} URL Response: * HTTP/1.1 200 OK * * firstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2019-01-01 */ router.put('/booking/:id', function(req, res, next) { if(globalLogins[req.cookies.token] || req.headers.authorization == 'Basic YWRtaW46cGFzc3dvcmQxMjM='){ updatedBooking = req.body; if(req.headers['content-type'] === 'text/xml') updatedBooking = updatedBooking.booking; validator.scrubAndValidate(updatedBooking, function(payload, msg){ if(!msg){ Booking.update(req.params.id, updatedBooking, function(err){ Booking.get(req.params.id, function(err, record){ if(record){ const booking = parse.booking(req.headers.accept, record); if(!booking){ res.sendStatus(418); } else { res.send(booking); } } else { res.sendStatus(405); } }) }) } else { res.sendStatus(400); } }); } else { res.sendStatus(403); } }); /** * @api {patch} booking/:id PartialUpdateBooking * @apiName PartialUpdateBooking * @apiGroup Booking * @apiVersion 1.0.0 * @apiDescription Updates a current booking with a partial payload * * @apiParam (Url Parameter) {Number} id ID for the booking you want to update * * @apiParam (Request body) {String} [firstname] Firstname for the guest who made the booking * @apiParam (Request body) {String} [lastname] Lastname for the guest who made the booking * @apiParam (Request body) {Number} [totalprice] The total price for the booking * @apiParam (Request body) {Boolean} [depositpaid] Whether the deposit has been paid or not * @apiParam (Request body) {Date} [bookingdates.checkin] Date the guest is checking in * @apiParam (Request body) {Date} [bookingdates.checkout] Date the guest is checking out * @apiParam (Request body) {String} [additionalneeds] Any other needs the guest has * * @apiHeader {string} Content-Type=application/json Sets the format of payload you are sending. Can be application/json or text/xml * @apiHeader {string} Accept=application/json Sets what format the response body is returned in. Can be application/json or application/xml * @apiHeader {string} [Cookie=token=<token_value>] Sets an authorization token to access the PUT endpoint, can be used as an alternative to the Authorization * @apiHeader {string} [Authorization=Basic YWRtaW46cGFzc3dvcmQxMjM=] Basic authorization header to access the PUT endpoint, can be used as an alternative to the Cookie header * * @apiExample JSON example usage: * curl -X PUT \ https://restful-booker.herokuapp.com/booking/1 \ -H 'Content-Type: application/json' \ -H 'Accept: application/json' \ -H 'Cookie: token=abc123' \ -d '{ "firstname" : "James", "lastname" : "Brown" }' * * @apiExample XML example usage: * curl -X PUT \ https://restful-booker.herokuapp.com/booking/1 \ -H 'Content-Type: text/xml' \ -H 'Accept: application/xml' \ -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \ -d ' James Brown ' * * @apiExample URLencoded example usage: * curl -X PUT \ https://restful-booker.herokuapp.com/booking/1 \ -H 'Content-Type: application/x-www-form-urlencoded' \ -H 'Accept: application/x-www-form-urlencoded' \ -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' \ -d 'firstname=Jim&lastname=Brown' * * @apiSuccess {String} firstname Firstname for the guest who made the booking * @apiSuccess {String} lastname Lastname for the guest who made the booking * @apiSuccess {Number} totalprice The total price for the booking * @apiSuccess {Boolean} depositpaid Whether the deposit has been paid or not * @apiSuccess {Object} bookingdates Sub-object that contains the checkin and checkout dates * @apiSuccess {Date} bookingdates.checkin Date the guest is checking in * @apiSuccess {Date} bookingdates.checkout Date the guest is checking out * @apiSuccess {String} additionalneeds Any other needs the guest has * * @apiSuccessExample {json} JSON Response: * HTTP/1.1 200 OK * * { "firstname" : "James", "lastname" : "Brown", "totalprice" : 111, "depositpaid" : true, "bookingdates" : { "checkin" : "2018-01-01", "checkout" : "2019-01-01" }, "additionalneeds" : "Breakfast" } * @apiSuccessExample {xml} XML Response: * HTTP/1.1 200 OK * * James Brown 111 true 2018-01-01 2019-01-01 Breakfast * * @apiSuccessExample {url} URL Response: * HTTP/1.1 200 OK * * firstname=Jim&lastname=Brown&totalprice=111&depositpaid=true&bookingdates%5Bcheckin%5D=2018-01-01&bookingdates%5Bcheckout%5D=2019-01-01 */ router.patch('/booking/:id', function(req, res) { if(globalLogins[req.cookies.token] || req.headers.authorization == 'Basic YWRtaW46cGFzc3dvcmQxMjM='){ updatedBooking = req.body; if(req.headers['content-type'] === 'text/xml') updatedBooking = updatedBooking.booking; Booking.update(req.params.id, updatedBooking, function(err){ Booking.get(req.params.id, function(err, record){ if(record){ const booking = parse.booking(req.headers.accept, record); if(!booking){ res.sendStatus(500); } else { res.send(booking); } } else { res.sendStatus(405); } }) }); } else { res.sendStatus(403); } }); /** * @api {delete} booking/1 DeleteBooking * @apiName DeleteBooking * @apiGroup Booking * @apiVersion 1.0.0 * @apiDescription Deletes a booking from the API. Requires an authorization token to be set in the header or a Basic auth header. * * @apiParam (Url Parameter) {Number} id ID for the booking you want to update * * @apiHeader {string} [Cookie=token=<token_value>] Sets an authorization token to access the DELETE endpoint, can be used as an alternative to the Authorization * @apiHeader {string} [Authorization=Basic YWRtaW46cGFzc3dvcmQxMjM=] Basic authorization header to access the DELETE endpoint, can be used as an alternative to the Cookie header * * @apiExample Example 1 (Cookie): * curl -X DELETE \ https://restful-booker.herokuapp.com/booking/1 \ -H 'Content-Type: application/json' \ -H 'Cookie: token=abc123' * * @apiExample Example 2 (Basic auth): * curl -X DELETE \ https://restful-booker.herokuapp.com/booking/1 \ -H 'Content-Type: application/json' \ -H 'Authorization: Basic YWRtaW46cGFzc3dvcmQxMjM=' * * @apiSuccess {String} OK Default HTTP 201 response * * @apiSuccessExample {json} Response: * HTTP/1.1 201 Created */ router.delete('/booking/:id', function(req, res, next) { if(globalLogins[req.cookies.token] || req.headers.authorization == 'Basic YWRtaW46cGFzc3dvcmQxMjM='){ Booking.get(req.params.id, function(err, record){ if(record){ Booking.delete(req.params.id, function(err){ res.sendStatus(201); }); } else { res.sendStatus(405); } }); } else { res.sendStatus(403); } }); /** * @api {post} auth CreateToken * @apiName CreateToken * @apiGroup Auth * @apiVersion 1.0.0 * @apiDescription Creates a new auth token to use for access to the PUT and DELETE /booking * * @apiParam (Request body) {String} username=admin Username for authentication * @apiParam (Request body) {String} password=password123 Password for authentication * * @apiHeader {string} Content-Type=application/json Sets the format of payload you are sending * * @apiExample Example 1: * curl -X POST \ https://restful-booker.herokuapp.com/auth \ -H 'Content-Type: application/json' \ -d '{ "username" : "admin", "password" : "password123" }' * @apiSuccess {String} token Token to use in future requests * * @apiSuccessExample {json} Response: * HTTP/1.1 200 OK * * { "token": "abc123" } */ router.post('/auth', function(req, res, next){ if(req.body.username === "admin" && req.body.password === "password123"){ const token = crypto.randomBytes(Math.ceil(15 / 2)) .toString('hex') .slice(0, 15); globalLogins[token] = true; res.send({'token': token}); } else { res.send({'reason': 'Bad credentials'}); } }); module.exports = router; ================================================ FILE: tests/spec.js ================================================ const request = require('supertest'), expect = require('chai').expect, should = require('chai').should(), js2xmlparser = require("js2xmlparser"), assert = require('assert'), Booking = require('../models/booking'), xml2js = require('xml2js').parseString; const generatePayload = function (firstname, lastname, totalprice, depositpaid, additionalneeds, checkin, checkout) { const payload = { 'firstname': firstname, 'lastname': lastname, 'totalprice': totalprice, 'depositpaid': depositpaid, 'bookingdates': { 'checkin': checkin, 'checkout': checkout } }; if (typeof (additionalneeds) !== 'undefined') { payload.additionalneeds = additionalneeds; } return payload }; const payload = generatePayload('Sally', 'Brown', 111, true, 'Breakfast', '2013-02-01', '2013-02-04'), payload2 = generatePayload('Geoff', 'White', 111, true, 'Breakfast', '2013-02-02', '2013-02-05'), payload3 = generatePayload('Bob', 'Brown', 111, true, 'Breakfast', '2013-02-03', '2013-02-06'); const server = require('../app'); describe('restful-booker', function () { it('responds to /ping', function testPing(done){ request(server) .get('/ping') .expect(201, done); }); it('404 everything else', function testPath(done) { request(server) .get('/foo/bar') .expect(404, done); }); }); describe('restful-booker - GET /booking', function () { beforeEach(function(done){ Booking.deleteAll(function(){ done(); }); }); it('responds with all booking ids when GET /booking', function testGetAllBookings(done){ request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/booking') .send(payload2) }).then(function(){ request(server) .get('/booking') .expect(200) .expect(function(res){ res.body[0].should.have.property('bookingid').and.match(/[0-9]/); res.body[1].should.have.property('bookingid').and.match(/[0-9]/); }) .end(done); }); }); it('responds with a subset of booking ids when searching by firstname date', function testQueryString(done){ request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/booking') .send(payload2) }).then(function(){ request(server) .get('/booking?firstname=Geoff') .expect(200) .expect(function(res){ res.body[0].should.have.property('bookingid').and.equal(2); }) .end(done) }) }); it('responds with a subset of booking ids when searching by lastname date', function testQueryString(done){ request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/booking') .send(payload2) }).then(function(){ request(server) .get('/booking?lastname=White') .expect(200) .expect(function(res){ res.body[0].should.have.property('bookingid').and.equal(2); }) .end(done) }) }); it('responds with a subset of booking ids when searching for checkin date', function testQueryString(done){ request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/booking') .send(payload2) }).then(function(){ request(server) .get('/booking?checkin=2013-02-01') .expect(200) .expect(function(res){ res.body[0].should.have.property('bookingid').and.equal(2); }) .end(done) }) }); it('responds with a subset of booking ids when searching for checkout date', function testQueryString(done){ request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/booking') .send(payload2) }).then(function(){ request(server) .get('/booking?checkout=2013-02-05') .expect(200) .expect(function(res){ res.body[0].should.have.property('bookingid').and.equal(1); }) .end(done) }) }); it('responds with a subset of booking ids when searching for checkin and checkout date', function testQueryString(done){ request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/booking') .send(payload2) }).then(function(){ return request(server) .post('/booking') .send(payload3) }).then(function(){ request(server) .get('/booking?checkin=2013-02-01&checkout=2013-02-06') .expect(200) .expect(function(res){ res.body[0].should.have.property('bookingid').and.equal(2); }) .end(done) }); }); it('responds with a subset of booking ids when searching for name, checkin and checkout date', function testQueryString(done){ request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/booking') .send(payload2) }).then(function(){ return request(server) .post('/booking') .send(payload3) }).then(function(){ request(server) .get('/booking?firstname=Geoff&lastname=White&checkin=2013-02-01&checkout=2013-02-06') .expect(200) .expect(function(res){ res.body[0].should.have.property('bookingid').and.equal(2); }) .end(done) }) }); it('responds with a 500 error when GET /booking with a bad date query string', function testGetWithBadDate(done){ request(server) .get('/booking?checkout=2013-02-0') .expect(500, done) }); it('responds with a payload when GET /booking/{id}', function testGetOneBooking(done){ request(server) .post('/booking') .send(payload) .then(function(){ request(server) .get('/booking/1') .set('Accept', 'application/json') .expect(200) .expect(payload, done) }); }); it('responds with an XML payload when GET /booking/{id} with accept application/xml', function testGetWithXMLAccept(done){ xmlPayload = js2xmlparser.parse('booking', payload) request(server) .post('/booking') .send(payload) .then(function(){ request(server) .get('/booking/1') .set('Accept', 'application/xml') .expect(200) .expect(xmlPayload, done) }); }); }); describe('restful-booker - POST /booking', function () { beforeEach(function(done){ Booking.deleteAll(function(){ done(); }); }); it('responds with the created booking and assigned booking id', function testCreateBooking(done){ request(server) .post('/booking') .set('Accept', 'application/json') .send(payload) .expect(200) .expect(function(res){ res.body.bookingid.should.equal(1); res.body.booking.should.deep.equal(payload); }) .end(done) }); it('responds with the created booking and assigned booking id when sent an XML payload', function testCreateBooking(done){ const xmlPayload = js2xmlparser.parse('booking', payload); request(server) .post('/booking') .set('Content-type', 'text/xml') .set('Accept', 'application/json') .send(xmlPayload) .expect(200) .expect(function(res){ res.body.bookingid.should.equal(1); res.body.booking.should.deep.equal(payload); }) .end(done) }); it('responds with a 500 error when a bad payload is sent', function testCreateBadBooking(done){ badpayload = { 'lastname': 'Brown', 'totalprice': 111, 'depositpaid': true, 'additionalneeds': 'Breakfast'} request(server) .post('/booking') .send(badpayload) .expect(500, done); }); it('responds with the correct assigned booking id when multiple payloads are sent', function testBookingId(done){ request(server) .post('/booking') .send(payload) .then(function(){ request(server) .post('/booking') .send(payload2) .set('Accept', 'application/json') .expect(200) .expect(function(res) { res.body.bookingid.should.equal(2); }) .end(done) }) }); it('responds with an XML payload when POST /booking with accept application/xml', function testGetWithXMLAccept(done){ const xmlPayload = js2xmlparser.parse('created-booking', {"bookingid": 1, "booking": payload2}); parseBooleans = function(str) { if (/^(?:true|false)$/i.test(str)) { str = str.toLowerCase() === 'true'; } return str; }; parseNumbers = function(str) { if (!isNaN(str)) { str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str); } return str; }; request(server) .post('/booking') .set('Accept', 'application/xml') .send(payload2) .expect(200) .expect(function(res){ xml2js(res.text, {explicitArray: false, valueProcessors: [parseNumbers, parseBooleans]}, function (err, result) { result['created-booking'].booking.should.deep.equal(payload2); result['created-booking'].bookingid.should.equal(1); }); }) .end(done); }); it('responds with a 200 when a payload with too many params are sent', function testCreateExtraPayload(done){ const extraPayload = payload; extraPayload.extra = 'bad' request(server) .post('/booking') .set('Accept', 'application/json') .send(extraPayload) .expect(200, done); }); it('responds with a 418 when using a bad accept header', function testTeapot(done){ request(server) .post('/booking') .set('Accept', 'application/ogg') .send(payload) .expect(418, done) }) }); describe('restful-booker POST /auth', function(){ it('responds with a 200 and a token to use when POSTing a valid credential', function testAuthReturnsToken(done){ request(server) .post('/auth') .send({'username': 'admin', 'password': 'password123'}) .expect(200) .expect(function(res){ res.body.should.have.property('token').and.to.match(/[a-zA-Z0-9]{15,}/); }) .end(done) }) it('responds with a 200 and a message informing of login failed when POSTing invalid credential', function testAuthReturnsError(done){ request(server) .post('/auth') .send({'username': 'nimda', 'password': '321drowssap'}) .expect(200) .expect(function(res){ res.body.should.have.property('reason').and.to.equal('Bad credentials'); }) .end(done) }) }); describe('restful-booker - PUT /booking', function () { it('responds with a 403 when no token is sent', function testNoLoginForPut(done){ request(server) .put('/booking/1') .expect(403, done); }); it('responds with a 403 when not authorised', function testBadLoginForPut(done){ request(server) .post('/auth') .send({'username': 'nmida', 'password': '321drowssap'}) .expect(200) .then(function(res){ request(server) .put('/booking/1') .set('Accept', 'application/json') .set('Cookie', 'token=' + res.body.token) .send(payload2) .expect(403, done) }) }); it('responds with a 200 and an updated payload', function testUpdatingABooking(done){ request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/auth') .send({'username': 'admin', 'password': 'password123'}) }) .then(function(res){ request(server) .put('/booking/1') .set('Accept', 'application/json') .set('Cookie', 'token=' + res.body.token) .send(payload2) .expect(200) .expect(payload2, done); }) }); it('responds with a 200 and an updated payload using auth', function testUpdatingABooking(done){ request(server) .post('/booking') .send(payload) .then(function(res){ request(server) .put('/booking/1') .set('Accept', 'application/json') .set('Authorization', 'Basic YWRtaW46cGFzc3dvcmQxMjM=') .send(payload2) .expect(200) .expect(payload2, done); }) }); it('responds with a 405 when attempting to update a booking that does not exist', function testUpdatingNonExistantBooking(done){ request(server) .post('/auth') .send({'username': 'admin', 'password': 'password123'}) .then(function(res){ request(server) .put('/booking/100000') .set('Accept', 'application/json') .set('Cookie', 'token=' + res.body.token) .send(payload2) .expect(405, done); }) }) it('responds with a 200 and an updated payload when requesting with an XML', function testUpdatingABookingWithXML(done){ const xmlPayload = js2xmlparser.parse('booking', payload2); request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/auth') .send({'username': 'admin', 'password': 'password123'}) }) .then(function(res){ request(server) .put('/booking/1') .set('Cookie', 'token=' + res.body.token) .set('Content-type', 'text/xml') .set('Accept', 'application/json') .send(xmlPayload) .expect(200) .expect(payload2, done); }) }); it('responds with an XML payload when PUT /booking with accept application/xml', function testPutWithXMLAccept(done){ xmlPayload = js2xmlparser.parse('booking', payload2) request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/auth') .send({'username': 'admin', 'password': 'password123'}) }) .then(function(res){ request(server) .put('/booking/1') .set('Cookie', 'token=' + res.body.token) .set('Accept', 'application/xml') .send(payload2) .expect(200) .expect(xmlPayload, done); }) }); }); describe('restful-booker DELETE /booking', function(){ it('responds with a 403 when not authorised', function testNoLoginForDelete(done){ request(server) .delete('/booking/1') .expect(403, done); }); it('responds with a 403 when not authorised', function testBadLoginForDelete(done){ request(server) .post('/auth') .send({'username': 'nmida', 'password': '321drowssap'}) .expect(200) .then(function(res){ request(server) .delete('/booking/1') .set('Cookie', 'token=' + res.body.token) .expect(403, done) }) }) it('responds with a 201 when deleting an existing booking', function testDeletingAValidBooking(done){ request(server) .post('/booking') .send(payload) .then(function(){ return request(server) .post('/auth') .send({'username': 'admin', 'password': 'password123'}) }) .then(function(res){ request(server) .delete('/booking/1') .set('Cookie', 'token=' + res.body.token) .expect(201, done) }); }); it('responds with a 201 when deleting an existing booking with a basic auth header', function testDeletingAValidBookingWithAuth(done){ request(server) .post('/booking') .send(payload) .then(function(res){ request(server) .delete('/booking/2') .set('Authorization', 'Basic YWRtaW46cGFzc3dvcmQxMjM=') .expect(201, done) }); }); it('responds with a 405 when deleting a non existing booking', function testDeletingNonExistantBooking(done){ request(server) .post('/auth') .send({'username': 'admin', 'password': 'password123'}) .then(function(res){ request(server) .delete('/booking/10000000') .set('Cookie', 'token=' + res.body.token) .expect(405, done) }) }) });