ratchet_design 0.1.27 → 0.1.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ratchet/_icons.js +1 -1
- data/app/assets/javascripts/ratchet/core.js +1 -3
- data/app/views/layouts/ratchet/default.html.slim +5 -6
- data/app/views/shared/ratchet/_fonts.html.slim +1 -4
- data/lib/ratchet_design/version.rb +1 -1
- data/public/{core-0.1.27.js → core-0.1.28.js} +75 -145
- data/public/core-0.1.28.js.gz +0 -0
- data/public/core-0.1.28.map.json +1 -0
- data/public/{fonts-woff-0.1.27.css → fonts-woff-0.1.28.css} +0 -0
- data/public/{fonts-woff-0.1.27.css.gz → fonts-woff-0.1.28.css.gz} +0 -0
- data/public/{fonts-woff2-0.1.27.css → fonts-woff2-0.1.28.css} +0 -0
- data/public/{fonts-woff2-0.1.27.css.gz → fonts-woff2-0.1.28.css.gz} +0 -0
- metadata +9 -9
- data/public/core-0.1.27.js.gz +0 -0
- data/public/core-0.1.27.map.json +0 -1
@@ -2,7 +2,7 @@
|
|
2
2
|
"use strict";!function(){function t(t){return t.replace(/[\W,_]/g,"-").replace(/-{2,}/g,"-")}function e(e,i){i=i||{};var n=t(e),s=r()[n];if(s){var a=s.parentElement,o=a.dataset.prefix,u=a.dataset.symbolClass,l=document.createRange().createContextualFragment('<svg><use xlink:href="#'+n+'"/></svg>').firstChild;return l.setAttribute("class",u+" "+o+"-"+n+" "+(i.class||"").trim()),l.setAttribute("viewBox",s.getAttribute("viewBox")),i.width||i.height||i.scale?(i.width&&l.setAttribute("width",i.width),i.height&&l.setAttribute("height",i.height)):(l.setAttribute("width",s.getAttribute("width")),l.setAttribute("height",s.getAttribute("height"))),l}console.error('Cannot find "'+e+'" svg symbol. Ensure that svg scripts are loaded')}function r(){if(!i){i={};var t=!0,e=!1,r=void 0;try{for(var n,s=document.querySelectorAll("svg[id^=esvg] symbol")[Symbol.iterator]();!(t=(n=s.next()).done);t=!0){var a=n.value;i[a.dataset.name]=a}}catch(t){e=!0,r=t}finally{try{!t&&s.return&&s.return()}finally{if(e)throw r}}}return i}var i,n={svgs:r,use:e};window.Turbolinks&&document.addEventListener("turbolinks:load",function(t){i=null,n.svgs()}),"undefined"!=typeof module?module.exports=n:window.esvg=n}();
|
3
3
|
},{}],2:[function(require,module,exports){
|
4
4
|
"use strict";!function(){function c(){
|
5
|
-
document.querySelector("#esvg-svg-icons")||document.querySelector("body").insertAdjacentHTML("afterbegin",'<svg id="esvg-svg-icons" data-symbol-class="svg-symbol" data-prefix="svg" version="1.1" style="height:0;position:absolute"><symbol id="svg-icons-compose-logomark" data-name="icons-compose-logomark" viewBox="0 0 210 120" width="210" height="120" fill="currentColor"><path d="M158.1 23.1h-.1L119.2.5 80.9 22.8 41.6 0 0 24.2v44L80.3 115l38.4-22.2 39.4 22.8L200 91.4v-44l-41.9-24.3zm-.2 45.1L125 49.1l33.2-19.4L191.1 49l-33.2 19.2zM80 29.4l33.2 19.2-32.8 19.1-33.1-19.3 32.7-19zm72.2-3l-32.5 18.9-33.1-19.2 32.6-19 33 19.3zm-77.5-.6L68 29.7 40.9 45 8.6 25.8 41.7 6.6l33 19.2zM5.8 30.6l32.5 19.6v34.6L5.8 65V30.6zm39 23l32.5 19.3v34.5L44.8 88.1V53.6zm77.3.4l33.1 19.5v34.2L122.1 88V54z"/><g opacity=".5"><path d="M44.8 88.2l32.5 19.1V72.9L44.8 53.6zM5.8 64.9l32.5 19.8V50.2L5.8 30.6zM122.1 88.1l33.1 19.7V73.5L122.1 54z"/></g></symbol><symbol id="svg-icons-deployment" data-name="icons-deployment" viewBox="0 0 176 201" width="176" height="201" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M88 5.985l82.272 47.5v95L88 195.985l-82.272-47.5v-95L88 5.985z"/></symbol><symbol id="svg-icons-facebook" data-name="icons-facebook" viewBox="0 0 38 38" width="38" height="38"><path d="M21.4 12.8h2.1V9.4h-2.7c-2.9 0-4.2 1.3-4.2 3.7v2.6h-2V19h2v9.6h3.9v-9.7h2.7l.3-3.2h-3v-1.8c0-.8.2-1.1.9-1.1z"/></symbol><symbol id="svg-icons-github" data-name="icons-github" viewBox="0 0 38 38" width="38" height="38"><path d="M23 35.9v-4.5c0-1.6-.5-2.5-1.1-3 3.6-.4 7.5-1.8 7.5-8.1 0-1.8-.6-3.3-1.7-4.4.2-.4.7-2.1-.2-4.3 0 0-1.4-.4-4.5 1.6-1.3-.3-2.7-.5-4.2-.5-1.4 0-2.8.2-4.2.5-3.1-2.1-4.5-1.6-4.5-1.6-.9 2.3-.3 3.9-.2 4.3-1 1.1-1.7 2.6-1.7 4.4 0 6.3 3.8 7.7 7.4 8.1-.4.4-.9 1.1-1 2.2-1 .4-3.3 1.1-4.8-1.4 0 0-.9-1.6-2.5-1.7 0 0-1.6 0-.1 1 0 0 1 .5 1.8 2.4 0 0 1 2.9 5.5 1.9v3c0 .4-.3 1-1 .8 1.6.5 3.4.9 5.2.9 1.8 0 3.5-.3 5.2-.9-.6.3-.9-.2-.9-.7z"/></symbol><symbol id="svg-icons-google-plus" data-name="icons-google-plus" viewBox="0 0 38 38" width="38" height="38"><path d="M10.6 24c0 2 2.3 3.2 5.1 3.2 3.9 0 5.4-2.1 5.4-3.7 0-1.4-.5-2.3-2-3.4-1.6-1.1-1.9-1.8-.5-2.9.8-.6 1.4-1.5 1.4-2.6 0-1.2-.5-2.2-1.4-2.7h1.3l1.1-1.1h-4.8c-3 0-4.5 1.8-4.5 3.8s1.4 3.6 4.1 3.6c-.4.9-.3 1.6.4 2.2-4.6 0-5.6 2-5.6 3.6zm3-9.5c-.3-1.7.6-3 1.9-3s2.4 1.4 2.6 3.1c.2 1.7-.5 2.8-1.7 2.8-1.3 0-2.6-1.2-2.8-2.9zm2.4 6.3c2.2.1 3.4 1.4 3.4 2.8 0 1.5-1.2 2.6-3.7 2.6-1.9 0-3.3-1.2-3.3-2.7 0-1.4 1.6-2.7 3.6-2.7zM25.2 10.9h-1.1v2.2h-2.2v1.1h2.2v2.2h1.1v-2.2h2.2v-1.1h-2.2z"/></symbol><symbol id="svg-icons-ibm" data-name="icons-ibm" viewBox="0 0 75 30" width="75" height="30"><path d="M0 0v2h14.6V0H0zm16.7 0v2h20.8s-2.1-2-4.9-2H16.7zm24.8 0v2h12.6l-.8-2H41.5zm21.7 0l-.8 2h12.5V0H63.2zM0 4v2h14.6V4H0zm16.7 0v2h23.2s-.3-1.6-.8-2H16.7zm24.8 0v2h14l-.7-2H41.5zm20.2 0L61 6h13.9V4H61.7zM4.2 8v2.1h6.3V8H4.2zm16.7 0v2.1h6.3V8h-6.3zm12.4 0v2.1h6.3S40 9 40 8h-6.7zm12.5 0v2.1H57L56.2 8H45.8zm14.5 0l-.8 2.1h11.3V8H60.3zM4.2 12v2h6.3v-2H4.2zm16.7 0v2H37s1.4-1.1 1.8-2H20.9zm24.9 0v2h6.3v-1.1l.4 1.1H64l.4-1.1V14h6.3v-2H58.9l-.6 1.7-.6-1.7H45.8zM4.2 16v2h6.3v-2H4.2zm16.7 0v2h17.9c-.4-1-1.8-2-1.8-2H20.9zm24.9 0v2h6.3v-2h-6.3zm7.4 0l.8 2h8.7l.7-2H53.2zm11.3 0v2h6.3v-2h-6.3zM4.2 20v2h6.3v-2H4.2zm16.7 0v2h6.3v-2h-6.3zm12.4 0v2H40c0-1-.4-2-.4-2h-6.3zm12.5 0v2h6.3v-2h-6.3zm8.9 0l.8 2h5.8l.8-2h-7.4zm9.8 0v2h6.3v-2h-6.3zM.1 23.9V26h14.6v-2.1H.1zm16.6 0V26h22.5c.5-.5.8-2.1.8-2.1H16.7zm25 0V26h10.4v-2.1H41.7zm14.4 0l.8 2.1h2.9l.7-2.1h-4.4zm8.4 0V26H75v-2.1H64.5zM.1 28v2h14.6v-2H.1zm16.6 0v2h15.9c2.8 0 4.9-2 4.9-2H16.7zm25 0v2h10.4v-2H41.7zm15.8 0l.7 2h.1l.8-2h-1.6zm7 0v2H75v-2H64.5z"/></symbol><symbol id="svg-icons-inbox" data-name="icons-inbox" viewBox="0 0 76 54" width="76" height="54" fill="#fff"><path d="M74 7S38.66 31 38 31C37.34 31 2 7 2 7V2.63h72V7zm0 6.24v38.33H2V13.24s34.59 22.9 36 22.9c1.41 0 36-22.9 36-22.9z"/></symbol><symbol id="svg-icons-index" data-name="icons-index" viewBox="0 0 15 13" width="15" height="13" stroke="currentColor" fill="none" stroke-width=".75" stroke-linecap="round"><path d="M7.5 2.606c0-1.233 3.335-2.231 7.125-2.231v9.939c-3.79 0-7.125.828-7.125 2.061 0-1.233-3.335-2.061-7.125-2.061V.375c3.79 0 7.125.998 7.125 2.231zm0 0v9.769M5.881 3.339c-1.043-.393-2.518-.677-4.211-.79m4.211 2.703c-1.043-.393-2.518-.677-4.211-.791m4.211 2.703c-1.043-.393-2.518-.677-4.211-.79m4.211 2.703C4.838 8.684 3.363 8.4 1.67 8.286m7.449-4.947c1.044-.393 2.518-.677 4.211-.79M9.119 5.252c1.044-.393 2.518-.677 4.211-.791M9.119 7.164c1.044-.393 2.518-.677 4.211-.79M9.119 9.077c1.044-.393 2.518-.677 4.211-.791"/></symbol><symbol id="svg-icons-linkedin" data-name="icons-linkedin" viewBox="0 0 38 38" width="38" height="38"><path d="M11.6 15.5H15v10.8h-3.4z"/><ellipse cx="13.3" cy="12.1" rx="2" ry="2"/><path d="M27.5 26.4v-6.9c0-2.9-1.6-4.3-3.9-4.3S20.3 17 20.3 17v-1.5h-3.2v10.8h3.2v-5.7c0-1.5.7-2.4 2-2.4 1.2 0 1.8.9 1.8 2.4v5.7h3.4z"/></symbol><symbol id="svg-icons-ratchet" data-name="icons-ratchet" viewBox="0 0 600 120" width="600" height="120"><path d="M502.1 2.5H397v39h-20v-39h-37v101.8l-16.8-30.2c-4.5 7.4-12.6 12.4-21.9 12.4-14.2 0-25.7-11.5-25.7-25.7s11.5-25.7 25.7-25.7c8.2 0 15.5 3.8 20.2 9.8l.6-1 18-31.7c-3.1-2.2-6.7-4.2-11-6-3.7-1.6-8-3-13.1-4.3C311 .6 305.2 0 298.7 0c-8.2 0-16 1.4-23.3 4.2C268 7 261.6 11 256.2 16.3c-4.3 4.2-8 9-10.9 14.5 2.2-5.5 5.8-12.5 11.5-18.1 3.8-3.8 8.2-7.2 12.9-9.2H113.5L82.8 83.6l13.7 32.9h9.6l2.9-8h36.4l2.9 8H222v-77h19.5c-2.1 6.3-3.2 13.1-3.2 20.5 0 8.9 1.5 17.1 4.6 24.4 3.1 7.4 7.4 13.7 12.9 18.9 5.5 5.3 12 9.3 19.5 12.3 7.5 2.9 15.8 4.4 24.7 4.4 6.6 0 12.5-.7 17.7-2.1 5.1-1.4 9.3-2.9 13-4.5 3.6-1.7 7.3-3.5 9.3-5.6v9.6h37v-43h20v43h32l5.8-107.9.6 107.9H503v-37h-32v-7h19v-28h-19v-6h31V3.2l6.3 36.3H532v78h38v-78h23.7l6.3-37h-97.9zm-379 71l4.2-10.9 4.2 10.9h-8.4zm19.3-66.4l18.4 32.4H184v76.1L142.4 7.1zM92 43.5c0-22.9-18.5-41-41.4-41H0v114h37V87.6l16.7 28.9h42.9L74.2 77.1C84.9 69.7 92 57.6 92 43.5zm-50.1 13H37v-21h4.9c5.4 0 9.7 4.7 9.8 10.5-.1 5.1-4.5 10.5-9.8 10.5zm251.9 17.2l-7.6-13.2 7.6-13.1h15l7.5 13.1-7.5 13.2h-15z"/></symbol><symbol id="svg-icons-search" data-name="icons-search" viewBox="0 0 38 38" width="38" height="38"><path d="M26.7 25.1L23 21.3c.7-1.1 1.2-2.4 1.2-3.8-.1-3.6-3-6.5-6.7-6.5-3.6 0-6.6 2.9-6.6 6.6s3 6.6 6.6 6.6c1.4 0 2.7-.5 3.8-1.2l3.7 3.7c.2.2.5.3.9.3.3 0 .6-.1.9-.3.3-.4.3-1.2-.1-1.6m-9.1-2.6c-2.7 0-4.9-2.2-4.9-4.9s2.2-4.9 4.9-4.9 4.9 2.2 4.9 4.9-2.2 4.9-4.9 4.9"/></symbol><symbol id="svg-icons-subscribe" data-name="icons-subscribe" viewBox="0 0 38 38" width="38" height="38" fill="currentColor"><path d="M21.6 26.9c0-5.8-4.7-10.5-10.5-10.5v3.2c4 0 7.3 3.3 7.3 7.3h3.2zm-6.2-2.2c0-1.2-1-2.2-2.2-2.2-1.2 0-2.2 1-2.2 2.2s1 2.2 2.2 2.2c1.2 0 2.2-.9 2.2-2.2zM27 27c0-8.8-7.1-16-15.9-16v3.2c3.4 0 6.6 1.3 9 3.7s3.7 5.6 3.7 9l3.2.1z"/></symbol><symbol id="svg-icons-twitter" data-name="icons-twitter" viewBox="0 0 38 38" width="38" height="38"><path d="M27 12.4c-.7.4-1.4.6-2.2.8-.6-.7-1.5-1.1-2.5-1.1-2.3 0-3.9 2.1-3.4 4.3-2.9-.1-5.5-1.5-7.2-3.6-.9 1.5-.4 3.6 1.1 4.6-.6 0-1.1-.1-1.6-.4 0 1.7 1.1 3.2 2.8 3.5-.5.2-1.1.2-1.6.1.4 1.4 1.7 2.4 3.2 2.4a7.5 7.5 0 0 1-5.2 1.4c1.5 1 3.3 1.6 5.3 1.6 6.5 0 10.1-5.4 9.9-10.3.7-.5 1.3-1.1 1.9-1.9-.6.2-1.3.4-2 .5.7-.4 1.3-1.2 1.5-1.9z"/></symbol><symbol id="svg-icons-y-combinator" data-name="icons-y-combinator" viewBox="0 0 38 38" width="38" height="38"><path d="M22.4 10.9h3.8l-5.3 10v6h-3.3v-6l-5.5-10H16l3.3 7 3.1-7z"/></symbol><symbol id="svg-icons-youtube" data-name="icons-youtube" viewBox="0 0 38 38" width="38" height="38" fill="currentColor"><path d="M29.3 14.8s-.2-1.4-.8-2.1c-.8-.8-1.7-.8-2.1-.9-2.9-.2-7.3-.2-7.3-.2s-4.4 0-7.3.2c-.4 0-1.3.1-2.1.9-.6.6-.8 2.1-.8 2.1s-.2 1.7-.2 3.4v1.6c0 1.7.2 3.4.2 3.4s.2 1.4.8 2.1c.8.8 1.8.8 2.3.9 1.7.2 7.1.2 7.1.2s4.4 0 7.3-.2c.4 0 1.3-.1 2.1-.9.6-.6.8-2.1.8-2.1s.2-1.7.2-3.4v-1.6c0-1.7-.2-3.4-.2-3.4zm-12.5 6.9v-5.9l5.7 3-5.7 2.9z"/></symbol><symbol id="svg-icons-backup" data-name="icons-backup" viewBox="0 0 37.8 34.6" width="37" height="34"><path d="M20.3 21.3l-1.8-.8V9h2.2v9.3l4.6-3.4 1.3 1.7z" fill="url(#azure)" opacity=".5"/><path fill="url(#azure)" d="M37.3 13.2c-1.1-4.5-3.9-8.3-7.8-10.7C25.6.1 20.9-.6 16.4.5 12 1.6 8.2 4.4 5.8 8.3c-1.6 2.6-2.5 5.6-2.5 8.9H0l3 5.4 3 5.3 3-5.3 3.1-5.4H8.7c0-2.3.7-4.5 1.9-6.3 1.6-2.5 4.1-4.3 7.1-5.1 3.1-.8 6.2-.3 8.9 1.4 2.7 1.6 4.6 4.2 5.4 7.3.8 3.1.3 6.2-1.4 8.9-3.4 5.6-10.7 7.4-16.2 4l-2.8 4.7c2.8 1.7 5.9 2.5 8.9 2.5 5.9 0 11.6-3 14.8-8.3 2.4-4 3.1-8.7 2-13.1z"/></symbol><symbol id="svg-icons-block" data-name="icons-block" viewBox="0 0 29.9 34.6" width="29" height="34"><path fill="url(#azure)" d="M29.9 25.9L15 34.6 0 25.9V8.6l15 8.7 14.9-8.7z"/><path fill="url(#azure)" opacity=".5" d="M0 8.6l15 8.7 14.9-8.7L15 0z"/><path fill="url(#azure)" d="M19.7 7.5c-2.6 1.5-6.8 1.5-9.4 0C9 6.8 8.4 5.8 8.4 4.8v3.8c0 1 .6 2 1.9 2.7 2.6 1.5 6.8 1.5 9.4 0 1.3-.7 1.9-1.7 1.9-2.7V4.8c0 1-.7 2-1.9 2.7z"/></symbol><symbol id="svg-icons-connecting-in" data-name="icons-connecting-in" viewBox="0 0 34.8 34.8" width="34" height="34"><path d="M17.4 0C7.8 0 0 7.8 0 17.4 0 27 7.8 34.8 17.4 34.8c9.6 0 17.4-7.8 17.4-17.4C34.9 7.8 27.1 0 17.4 0zm0 27.1c-5.3 0-9.7-4.3-9.7-9.7 0-5.3 4.3-9.7 9.7-9.7 5.3 0 9.7 4.3 9.7 9.7 0 5.4-4.3 9.7-9.7 9.7z" fill="url(#azure)" opacity=".5"/><g fill="url(#azure)"><path d="M17.4 13.6l-.9-1.6-.9-1.6h3.7l-1 1.6zM17.4 21.3l1 1.6.9 1.6h-3.7l.9-1.6zM21.3 17.4l1.6-.9 1.6-.9v3.7l-1.6-.9zM13.6 17.4l-1.6 1-1.6.9v-3.7l1.6.9zM20.1 14.7l.5-1.8.5-1.8 1.3 1.3 1.3 1.3-1.8.5zM14.7 20.2l-.5 1.8-.4 1.8-1.4-1.4-1.3-1.3 1.8-.5zM20.2 20.1l1.8.5 1.7.5-1.3 1.3-1.3 1.3-.5-1.8zM14.7 14.7l-1.8-.5-1.8-.4 1.3-1.4 1.3-1.3.5 1.8z"/></g><g fill="url(#azure)"><path d="M13.2 11.8L5.8 4.4c-.5.4-1 .9-1.4 1.4l7.4 7.4c.4-.5.9-1 1.4-1.4z"/><path d="M13.2 11.8L5.8 4.4c-.5.4-1 .9-1.4 1.4l7.4 7.4c.4-.5.9-1 1.4-1.4zM17.4 10.4c.3 0 .7 0 1 .1V.1c-.3 0-.7-.1-1-.1-.3 0-.7 0-1 .1v10.5c.4-.1.7-.2 1-.2z"/><path d="M17.4 10.4c.3 0 .7 0 1 .1V.1c-.3 0-.7-.1-1-.1-.3 0-.7 0-1 .1v10.5c.4-.1.7-.2 1-.2zM10.4 17.4c0-.3 0-.7.1-1H.1c0 .3-.1.7-.1 1 0 .3 0 .7.1 1h10.5c-.1-.3-.2-.6-.2-1z"/><path d="M10.4 17.4c0-.3 0-.7.1-1H.1c0 .3-.1.7-.1 1 0 .3 0 .7.1 1h10.5c-.1-.3-.2-.6-.2-1zM23 13.2l7.4-7.4c-.4-.5-.9-1-1.4-1.4l-7.4 7.4c.6.4 1 .9 1.4 1.4z"/><path d="M23 13.2l7.4-7.4c-.4-.5-.9-1-1.4-1.4l-7.4 7.4c.6.4 1 .9 1.4 1.4zM17.4 24.4c-.3 0-.7 0-1-.1v10.5c.3 0 .7.1 1 .1.3 0 .7 0 1-.1V24.4h-1z"/><path d="M17.4 24.4c-.3 0-.7 0-1-.1v10.5c.3 0 .7.1 1 .1.3 0 .7 0 1-.1V24.4h-1zM11.8 21.6L4.4 29c.4.5.9 1 1.4 1.4l7.4-7.4c-.5-.4-1-.8-1.4-1.4z"/><path d="M11.8 21.6L4.4 29c.4.5.9 1 1.4 1.4l7.4-7.4c-.5-.4-1-.8-1.4-1.4zM21.6 23l7.4 7.4c.5-.4 1-.9 1.4-1.4L23 21.6c-.4.6-.8 1-1.4 1.4z"/><path d="M21.6 23l7.4 7.4c.5-.4 1-.9 1.4-1.4L23 21.6c-.4.6-.8 1-1.4 1.4zM24.4 17.4c0 .3 0 .7-.1 1h10.5c0-.3.1-.7.1-1 0-.3 0-.7-.1-1H24.4v1z"/><path d="M24.4 17.4c0 .3 0 .7-.1 1h10.5c0-.3.1-.7.1-1 0-.3 0-.7-.1-1H24.4v1z"/></g></symbol><symbol id="svg-icons-connecting-out" data-name="icons-connecting-out" viewBox="0 0 34.8 34.8" width="34" height="34"><path d="M17.4 5.2c-6.7 0-12.2 5.5-12.2 12.2 0 6.7 5.5 12.2 12.2 12.2 6.7 0 12.2-5.5 12.2-12.2 0-6.7-5.5-12.2-12.2-12.2zm0 16.1c-2.2 0-3.9-1.8-3.9-3.9 0-2.2 1.8-3.9 3.9-3.9 2.2 0 3.9 1.8 3.9 3.9 0 2.2-1.7 3.9-3.9 3.9z" fill="url(#azure)" opacity=".5"/><g fill="url(#azure)"><path d="M17.4 0l.9 1.6 1 1.6h-3.7l.9-1.6zM18.4 13.5V3.2h-2v10.3c.3 0 .7-.1 1-.1.3.1.7.1 1 .1zM17.4 34.8l-.9-1.6-.9-1.6h3.7l-1 1.6z"/><path d="M16.4 21.3v10.3h2V21.3c-.3 0-.7.1-1 .1-.3-.1-.7-.1-1-.1z"/></g><g fill="url(#azure)"><path d="M34.8 17.4l-1.6.9-1.6 1v-3.7l1.6.9z"/><path d="M21.3 18.4h10.3v-2H21.3c0 .3.1.7.1 1-.1.3-.1.7-.1 1zM0 17.4l1.6-.9 1.6-.9v3.7l-1.6-1zM13.5 16.4H3.2v2h10.3c0-.3-.1-.7-.1-1 .1-.3.1-.6.1-1z"/></g><g fill="url(#azure)"><path d="M29.7 5.1l-.5 1.8-.4 1.8-1.4-1.3-1.3-1.3 1.8-.5zM20.8 15.4l7.3-7.3-1.4-1.4-7.3 7.3c.3.2.5.4.7.7.3.2.5.4.7.7zM5.1 29.7l.5-1.8.5-1.8 1.3 1.4 1.3 1.3-1.8.4z"/><path d="M14 19.5l-7.3 7.3 1.4 1.4 7.3-7.3c-.3-.2-.5-.4-.7-.7-.3-.2-.5-.5-.7-.7z"/></g><g fill="url(#azure)"><path d="M5.1 5.1l1.8.5 1.8.5-1.3 1.3-1.3 1.3-.5-1.8z"/><path d="M15.4 14L8.1 6.7 6.6 8.1l7.3 7.3c.2-.3.4-.5.7-.7.3-.3.5-.5.8-.7zM29.7 29.7l-1.8-.5-1.8-.4 1.3-1.3 1.4-1.4.4 1.8z"/><path d="M19.4 20.9l7.3 7.3 1.4-1.4-7.3-7.3c-.2.3-.4.5-.7.7l-.7.7z"/></g></symbol><symbol id="svg-icons-gear" data-name="icons-gear" viewBox="0 0 35 34.6" width="35" height="34"><path fill="url(#azure)" opacity="0.5" d="M22.5,12.5c-2.7-2.7-7.2-2.7-9.9,0s-2.7,7.2,0,9.9s7.2,2.7,9.9,0S25.2,15.3,22.5,12.5z M17.5,20.4c-1.6,0-2.9-1.3-2.9-2.9c0-1.6,1.3-2.9,2.9-2.9s2.9,1.3,2.9,2.9S19.1,20.4,17.5,20.4z"/><path fill="url(#azure)" d="M28,27.8c1.4-1.4,3.4-2,5.2-1.8c0.7-1.2,1.2-2.5,1.6-3.8c-1.5-1.1-2.4-2.9-2.4-4.9 c0-2,1-3.8,2.4-4.9c-0.4-1.3-0.9-2.6-1.6-3.8c-1.9,0.2-3.8-0.3-5.2-1.8c-1.4-1.4-2-3.4-1.8-5.2C25,0.9,23.7,0.4,22.4,0 c-1.1,1.5-2.9,2.4-4.9,2.4c-2,0-3.8-1-4.9-2.4C11.3,0.4,10,0.9,8.8,1.6C9,3.4,8.4,5.4,7,6.8c-1.4,1.4-3.4,2-5.2,1.8 C1.1,9.8,0.6,11,0.2,12.4c1.5,1.1,2.4,2.9,2.4,4.9c0,2-1,3.8-2.4,4.9c0.4,1.3,0.9,2.6,1.6,3.8c1.9-0.2,3.8,0.3,5.2,1.8 c1.4,1.4,2,3.4,1.8,5.2c1.2,0.7,2.5,1.2,3.8,1.6c1.1-1.5,2.9-2.4,4.9-2.4c2,0,3.8,1,4.9,2.4c1.3-0.4,2.6-0.9,3.8-1.6 C26,31.1,26.6,29.2,28,27.8z M10.9,24.8c-4.1-3.6-4.6-9.9-0.9-14.1c3.6-4.1,9.9-4.6,14.1-0.9c4.1,3.6,4.6,9.9,0.9,14.1 C21.4,28,15.1,28.4,10.9,24.8z"/></g></symbol><symbol id="svg-icons-life-preserver" data-name="icons-life-preserver" viewBox="0 0 34.9 34.9" width="34" height="34"><path d="M17.4 0C7.8 0 0 7.8 0 17.4 0 27 7.8 34.8 17.4 34.8c9.6 0 17.4-7.8 17.4-17.4C34.9 7.8 27.1 0 17.4 0zm0 27.1c-5.3 0-9.7-4.3-9.7-9.7 0-5.3 4.3-9.7 9.7-9.7 5.3 0 9.7 4.3 9.7 9.7 0 5.4-4.3 9.7-9.7 9.7z" fill="url(#azure)" fill-opacity=".5"/><g fill="url(#azure)"><path d="M27.1 17.4c0 1.2-.2 2.3-.6 3.3h8c.2-1.1.3-2.2.3-3.3 0-1.1-.1-2.2-.3-3.3h-8c.4 1.1.6 2.2.6 3.3zM7.8 17.4c0-1.2.2-2.3.6-3.3h-8c-.3 1.1-.4 2.2-.4 3.3 0 1.1.1 2.2.3 3.3h8c-.3-1-.5-2.1-.5-3.3zM20.7 34.5v-8c-1 .4-2.1.6-3.3.6-1.2 0-2.3-.2-3.3-.6v8c1.1.2 2.2.3 3.3.3 1.2.1 2.3-.1 3.3-.3zM14.1.3v8c1-.4 2.1-.6 3.3-.6 1.2 0 2.3.2 3.3.6v-8c-1-.2-2.1-.3-3.3-.3-1.1 0-2.2.1-3.3.3z"/></g></symbol><symbol id="svg-icons-metrics" data-name="icons-metrics" viewBox="0 0 29.9 34.6" width="29" height="34"><path fill="url(#azure)" opacity=".2" d="M15 0L0 8.6v17.3l15 8.7 14.9-8.7V8.6z"/><path fill="url(#azure)" opacity=".5" d="M29.9 25.9V10.6l-2.2-.7-3.8 2.5-2.5 2.9-3.9.7-5-3.1L8 15.1l-3.6-2.7L0 14.8v11.1l15 8.7z"/><path fill="url(#azure)" d="M29.9 17.3l-2.2-1.4-1.8 2.9-3.4-.5-2.8 2.9-2.3-3.2-2.4-2.1-3.1 3.4L8 18.1l-2 2.7-2.3-1.6L2.2 17l-2.2.6v8.3l15 8.7 14.9-8.7z"/></symbol><symbol id="svg-icons-scaling" data-name="icons-scaling" viewBox="0 0 29.8 34.6" width="29" height="34"><path d="M29.8 25.9l-14.9 8.7-15-8.7V8.6l15 8.7 14.9-8.7z" fill="url(#azure)" opacity=".5"/><g fill="url(#azure)"><path d="M22.4 30.2l-7.5 4.4-7.5-4.4v-8.6l7.5 4.3 7.5-4.3z"/><path opacity=".5" d="M7.4 21.6l7.5 4.3 7.5-4.3-7.5-4.3z"/></g><g fill="url(#azure)"><path d="M8.1 15.6l-2.4-.2-2.3-.3.3 1.4.4 1.4 1.4-.8 3.9 2.2 1.2-.7-3.9-2.2zM21.6 15.4l2.4-.2 2.4-.2-.4 1.4-.4 1.3-1.4-.8-3.9 2.3-1.1-.7 3.9-2.2z"/></g><path fill="url(#azure)" opacity=".2" d="M-.1 8.6l15 8.7 14.9-8.7L14.9 0z"/></symbol><symbol id="svg-icons-customer-buffer" data-name="icons-customer-buffer" viewBox="0 0 97.7 19.6" width="97" height="19"><path d="M9.6 14.1c-.3 0-.5 0-.7-.1L3 11.2.3 10c-.1-.1-.3-.1-.3-.3 0-.2.2-.2.3-.3.5-.3 1.1-.5 1.5-.7.4-.2.8-.2 1.3 0 2 .9 3.9 1.8 5.9 2.7.4.2.8.2 1.3 0l5.8-2.7c.4-.2.8-.2 1.3 0s1.1.5 1.6.7l.1.1c.2.1.2.3 0 .4l-.3.2c-2.5 1.1-4.9 2.3-7.4 3.5-.4.2-.7.4-1.1.5h-.7m-7.1-.3c.2.1.5.1.7.2l5.7 2.7c.4.2.9.2 1.3 0L16 14c.4-.2.8-.2 1.2 0 .5.2 1.1.5 1.6.7.1 0 .3.1.3.3 0 .2-.1.2-.3.3-2 .9-4 1.9-5.9 2.8l-2.7 1.3c-.4.2-.8.2-1.3 0l-6.3-3-2.2-1.1-.3-.1c-.1 0-.1-.2 0-.3l.2-.1c.5-.2 1-.5 1.5-.7.2-.2.5-.3.7-.3m90.7 5.3h-3.6V5.5h3.5v1.9c1.2-1.3 2.6-2.2 4.3-2.2v3.5h-.7c-1.2 0-2.3.3-3.3 1.1-.2.2-.4.4-.4.8V19c.1-.1.2.1.2.1zM9.6 8.9c-.3 0-.5-.1-.7-.2C6 7.4 3.2 6.1.3 4.7l-.2-.1c-.1-.1-.1-.2 0-.4l.2-.1 8.6-4c.4-.2.9-.2 1.3 0 2.1 1 4.2 1.9 6.3 3l2.2 1.1.3.2c.1.1.1.2 0 .3l-.2.1-8.6 4-.6.1m49 10.2V8.6h-2.2V5.5h2.2v-.2c0-.6 0-1.2.1-1.8.4-1.8 1.8-3.1 3.6-3.4 1.1-.1 2.2 0 3.2.4.4.2.8.4 1.2.8-.4.7-.9 1.4-1.3 2.1l-.5-.4c-.5-.2-1-.3-1.5-.1-.6.2-1 .5-1.1 1.1-.1.5-.1 1-.1 1.5H65v3.1h-2.6c-.2 0-.2 0-.2.2v10.3h-3.6zm7-10.5V5.5h2.2v-.2c0-.6 0-1.2.1-1.8.4-1.8 1.8-3.1 3.6-3.4 1.1-.1 2.2 0 3.2.4.4.2.8.4 1.2.8-.4.7-.9 1.4-1.4 2.1-.3-.3-.6-.4-.9-.5-.5-.1-1.1-.1-1.5.2-.4.2-.6.6-.6 1s-.1.9-.1 1.4h2.8v3.1h-2.7v10.5h-3.6V8.9c0-.2 0-.2-.2-.2h-1.9l-.2-.1zm-23-3.1h3.6v8.1c0 .4 0 .7.1 1 .1.9.7 1.4 1.5 1.5 1.3.3 2.5 0 3.4-.9l.2-.2c.2-.2.3-.4.3-.7V5.5h3.6V19h-3.6v-1.7l-.2.2c-.9.8-1.9 1.4-3 1.7-1.1.2-2.1.2-3.1 0-1.5-.4-2.3-1.3-2.6-2.7-.1-.4-.1-.8-.1-1.3l-.1-9.7M84.7 11v-.1c-.1-.9-.4-1.6-1.1-2.2-.7-.5-1.5-.7-2.3-.7-1.3 0-2.3.6-2.9 1.8-.3.3-.4.7-.4 1.2h6.7zM78 13.4c.1.7.4 1.2.7 1.8.7.8 1.5 1.3 2.6 1.4 1.5.1 2.8-.3 4.1-1.1l.1-.1.1-.1c.5.7 1.1 1.5 1.6 2.3l-.7.6c-.9.6-1.9.9-3 1.1-1 .2-1.9.2-2.9.1-2.3-.3-4.2-1.4-5.4-3.5-.5-.9-.7-1.9-.8-2.9-.1-1.2 0-2.3.5-3.4 1-2.4 2.8-3.9 5.3-4.3 1.5-.3 2.9-.1 4.3.6 1.6.8 2.7 2.1 3.3 3.8.3.9.5 1.9.5 2.8v1c-3.5-.1-6.9-.1-10.3-.1zm-47.2-1.1v2.2c0 .1 0 .3.1.4 1 1.1 2.2 1.5 3.6 1.3 1.2-.2 2-.9 2.4-2 .4-1 .4-2 .2-3-.1-.9-.5-1.6-1.1-2.2-.8-.7-1.8-.8-2.8-.6-.9.2-1.6.6-2.2 1.3-.1.1-.1.2-.1.4-.1.7-.1 1.5-.1 2.2m0 5.1V19h-3.6V.3h3.6v6.9l.1-.1c.9-1.1 2-1.8 3.4-1.9 2.5-.3 4.7.8 5.9 3.1.5 1 .7 1.9.8 3 .1 1.2 0 2.4-.3 3.6-.4 1.2-.9 2.2-1.8 3.1-.9.8-2.1 1.3-3.3 1.4s-2.4-.1-3.4-.8c-.5-.3-1-.7-1.4-1.2"/></symbol><symbol id="svg-icons-customer-citrix" data-name="icons-customer-citrix" viewBox="0 0 72 30" width="72" height="30" fill-rule="evenodd" clip-rule="evenodd"><path d="M51.557 30c-1.599 0-2.908-1.309-2.908-2.908s1.309-2.956 2.908-2.956c1.6 0 2.908 1.357 2.908 2.956.049 1.599-1.26 2.908-2.908 2.908zM14.191 9.354l-2.472 4.022c-.679-1.163-2.036-1.89-3.441-1.89-1.987 0-3.393 1.6-3.393 3.587s1.406 3.586 3.393 3.586c1.357 0 2.762-.727 3.441-1.89l2.472 4.023c-1.503 1.55-3.587 2.52-5.913 2.52-4.507 0-8.191-3.684-8.191-8.142 0-4.508 3.684-8.191 8.191-8.191 2.326-.145 4.41.824 5.913 2.375zm46.187 13.473h-5.67l6.252-8.481-4.798-7.173h5.718l1.891 3.344 2.132-3.344h5.767l-5.185 7.221 5.428 8.433h-5.622l-2.617-4.604-3.296 4.604zM33.334 11.244h-3.538v11.583h-4.652V11.244h-3.587V7.173h11.777v4.071zM20.297 22.827h-4.652V7.173h4.652v15.654zm33.587 0h-4.653V7.173h4.653v15.654zm-14.54-.048h-4.701V7.173h6.107c2.065 0 3.295.533 4.265 1.454.872.872 1.308 2.035 1.308 3.489 0 2.181-1.115 3.878-2.908 4.459l4.798 6.204H42.3l-2.956-4.653v4.653zm2.811-10.372c0-.533-.145-.921-.388-1.212-.533-.533-1.599-.63-2.423-.63v3.684c1.939-.049 2.811-.533 2.811-1.842zM17.971 0c1.599 0 2.908 1.309 2.908 2.908s-1.309 2.956-2.908 2.956-2.908-1.357-2.908-2.956C15.015 1.357 16.323 0 17.971 0z"/></symbol><symbol id="svg-icons-customer-guardian" data-name="icons-customer-guardian" viewBox="0 0 94 17.7" width="94" height="17"><path d="M83.9 13.3h4.7v-.9l-.8-.4V6.1c.4-.3.8-.3 1.3-.3.8 0 1.1.3 1.1 1.2v5l-.9.4v.9H94v-.9l-.9-.4V6.4c0-1.7-.6-2.5-2.1-2.5-1.2 0-2.4.4-3.2 1.2V3.8h-.3l-3.7.7v.8l1 .5V12l-.9.4v.9zM72.5.1c-.9 0-1.6.7-1.6 1.6 0 .9.7 1.6 1.6 1.6.9 0 1.6-.7 1.6-1.6 0-.9-.7-1.6-1.6-1.6zm-2.4 4.4v.8l.9.5V12l-.9.4v.9h4.7v-.9l-.9-.4V3.9h-.3l-3.5.6zm-4.2 7c-.2.2-.5.3-.9.3-1.2 0-1.7-1-1.7-3.2 0-2.6.7-3.4 1.7-3.4.5 0 .8.2 1 .4v5.9zm0-7.2c-.4-.3-1-.4-1.5-.4-2.2 0-4.3 1.3-4.3 5 0 3.5 2.1 4.6 3.5 4.6 1.1 0 1.9-.5 2.2-1h.2v1h.3l3.5-.4v-.7l-.9-.5V.2h-.3l-3.7.6v.8l1 .4v2.3zm-12.4 1l.9.4v6.2l-.9.4v.9h5v-.9l-1.2-.4V7.1c.5-.4 1.2-.6 2-.6.3 0 .5.1.7.1V4c-.1 0-.2-.1-.4-.1-1 0-1.8.6-2.3 1.8V3.8H57l-3.5.6v.9zm-5.7-.2c1.2 0 1.6.6 1.6 1.7v1l-1.8.3c-1.7.3-3.1.9-3.1 2.7 0 1.5 1 2.6 2.5 2.6 1.1 0 2.2-.5 2.6-1.3h.1c.1 1 1 1.3 1.9 1.3.7 0 1.4-.2 1.7-.5v-.6l-1-.3V6.7c0-2.1-1.5-2.8-3.9-2.8-1.6 0-2.5.4-3.4.8V7h1.4l.6-1.8c.3-.1.7-.1.8-.1zm.7 6.8c-.6 0-1.2-.3-1.2-1.4 0-.7.7-1.4 1.4-1.5l.6-.1v2.5c.1 0-.5.5-.8.5zm29.7-6.8c1.2 0 1.6.6 1.6 1.7v1l-1.8.4c-1.7.3-3.1.9-3.1 2.7 0 1.5 1 2.6 2.5 2.6 1.1 0 2.2-.5 2.6-1.3.1 1 1 1.3 1.9 1.3.7 0 1.4-.2 1.7-.5v-.6l-.8-.4V6.7c0-2.1-1.5-2.8-3.9-2.8-1.6 0-2.5.4-3.4.8V7h1.4l.6-1.8c.3-.1.6-.1.7-.1zm.7 6.8c-.6 0-1.2-.3-1.2-1.4 0-.7.7-1.4 1.4-1.5l.6-.1v2.5c.1 0-.5.5-.8.5zm-41 1.6h.4c1-.1 2-.6 2.5-1.2v1.2l3.5-.4v-.6l-.9-.6v-8h-.3l-3.5.7v.8l1.2.5v5.4c-.3.2-.7.4-1.2.4-.7 0-1.4-.2-1.4-1.3V3.8h-.3l-3.5.7v.8l1.2.5v4.8c-.1 1.6.5 2.9 2.3 2.9zm-9.5-2.3c-.4 0-.7-.2-.7-.6 0-.2.2-.5.4-.7.5.1.9.2 1.5.2 2.3 0 3.9-1.1 3.9-3.1 0-.9-.4-1.4-.9-1.9l1.4.5V3.8l-2.4.5c-.6-.2-1.3-.5-2.1-.5-2.3 0-3.9 1.2-3.9 3.2 0 1.2.6 2.1 1.5 2.6l.1.1c-.5.4-1.6 1.2-1.6 2.1 0 .7.4 1.4 1.4 1.6-1 .2-2.2.7-2.2 1.9s1.7 2.4 4.6 2.4c3.5 0 4.9-1.7 4.9-3.8 0-1.8-.8-2.7-2.8-2.7h-3.1zm2.2-4.1c0 1.7-.4 1.9-1 1.9s-1.2-.2-1.2-1.9.5-2.2 1.2-2.2c.6 0 1 .6 1 2.2zM27.2 15c0-.4.3-1 1.1-1.1h2.5c.7 0 1.1.6 1.1 1.1 0 .9-.6 1.3-2.5 1.3-1.6 0-2.2-.6-2.2-1.3zM24.5 8.9c0-3.8-1.5-5-3.8-5-2.7 0-4.4 1.8-4.4 4.8 0 3.1 1.6 4.8 4.7 4.8 1.7 0 2.9-.8 3.3-1.4v-.9c-.6.2-1.2.4-2.3.4-1.7 0-2.7-.9-2.7-2.7h5.2zm-3.8-4c.7 0 1.1.5 1.1 2.8l-2.5.3c0-2.4.5-3.1 1.4-3.1zm-9.8 8.4v-.9L10 12V6.2c.4-.3.9-.5 1.4-.5.8 0 1.3.5 1.2 1.2v5l-.9.4v.9h4.7v-.9l-.7-.3V6.4c0-1.7-1-2.5-2.3-2.5-1.2 0-2.5.4-3.3 1.1V0h-.3L6.2.6v.9l1.2.4V12l-.9.4v.9h4.4zm-9.7-2.5c0 1.7.8 2.7 2.6 2.7.9 0 1.8-.2 2.4-.7v-1.1c-.2.1-.6.1-.9.1-.9 0-1.2-.5-1.2-1.4V5.6h2.1V4.1H4.1V1.9l-3 .4v1.8L0 4.4v1.2h1.2v5.2z"/></symbol><symbol id="svg-icons-customer-roximity" data-name="icons-customer-roximity" viewBox="0 0 123.9 18.5" width="123" height="18"><path d="M35.5 5.6c-.5-1.1-1.2-2.1-2-2.9-.8-.8-1.8-1.5-3-2S28 0 26.7 0c-1.2 0-2.3.2-3.3.6L25 4.8c.5-.2 1.1-.3 1.7-.3.7 0 1.3.1 1.8.4.6.3 1.1.6 1.5 1.1.4.4.7 1 1 1.5.2.6.3 1.2.3 1.8v.1c0 .7-.1 1.2-.3 1.8-.2.6-.5 1.1-.9 1.5-.4.4-.8.8-1.4 1-.6.3-1.2.4-1.8.4-.7 0-1.3-.1-1.8-.4-.6-.3-1.1-.6-1.5-1.1s-.7-1-1-1.5c-.2-.6-.3-1.2-.3-1.8v-.1c0-.7.1-1.2.3-1.8l.3-.7 3.8 2.6L24 5.5l-2.7-3.8c-.5.3-.9.7-1.3 1.1-.4.4-.7.8-1 1.2-.4.6-.7 1.1-1 1.7-.7 1-1 2.3-1 3.5v.1c0 1.3.2 2.5.7 3.6.5 1.1 1.2 2.1 2 2.9.8.8 1.8 1.5 3 2s2.5.7 3.8.7c1.4 0 2.6-.2 3.8-.7 1.2-.5 2.2-1.1 3.1-2 .8-.8 1.5-1.8 2-3 .5-1.1.7-2.4.7-3.6.2-1.3-.1-2.5-.6-3.6zm76.8 5.9L105.5.3h5.6l3.6 6.5 3.7-6.5h5.5l-6.8 11.1v6.7h-5l.2-6.6zM95.4 4.7h-5.3V.3h15.6v4.3h-5.3v13.5h-4.9l-.1-13.4zM83.6.3h5v17.8h-5V.3zM62.2.3h5.2l4.3 6.9L76 .3h5.2v17.8h-4.9V7.9l-4.5 7h-.1L67 8v10.2h-4.8V.3zm-7.5 0h5v17.8h-5V.3zM41.5 9.1L35.7.4h5.7l3.1 5 3.2-5h5.5L47.4 9l6.1 9.1h-5.7l-3.4-5.4-3.4 5.5h-5.5l6-9.1M8.3 8.9c.8 0 1.5-.2 2-.6.4-.4.7-.9.7-1.5v-.1c0-.7-.2-1.2-.7-1.6-.4-.3-1.1-.5-2-.5H5v4.3h3.3zM.1.3h8.4c1.4 0 2.5.2 3.5.5s1.7.8 2.3 1.4c1.1 1 1.6 2.4 1.6 4.1v.1c0 1.4-.3 2.5-1 3.4-.7.9-1.6 1.6-2.7 2.1l4.3 6.2h-5.7l-3.6-5.4H4.9v5.4H0V.3h.1z"/></symbol><symbol id="svg-icons-customer-upworthy" data-name="icons-customer-upworthy" viewBox="0 0 105.6 25.1" width="105" height="25"><path d="M102.2 0h3.4l-2.1 15.9 1 8.9h-3.7l-.9-8.7L94.3 0H98l3.2 10.2 1-10.2zM89.9 10.3L89.1 0h3.6L95 24.8h-3.7l-.9-11.1h-3.5l.8 11.1H84L82.2 0h3.6l.8 10.2 3.3.1zM74.6 24.8L73.5 3.5h-3.2L70.2 0h10l.2 3.4h-3.2l1.2 21.3-3.8.1zM63.5 3.4h-1.8l.2 8h1.6c1 0 1.5-.5 1.5-1.5l-.2-5.1c.1-1-.4-1.4-1.3-1.4M69 16.2l.3 8.7h-3.7l-.3-8.6c-.1-1.1-.5-1.6-1.6-1.6h-1.6l.3 10.2h-3.7L58.2 0h5.9c2.9 0 4.4 1.4 4.5 4.4l.2 4.8c.1 2.1-.6 3.2-1.9 3.8 1.4.3 2 1.3 2.1 3.2m-18-13h-.7c-1 0-1.4.5-1.4 1.4l-.1 15.6c0 1 .5 1.5 1.4 1.5h.8c1 0 1.4-.5 1.4-1.5l-.1-15.6c0-1-.4-1.4-1.3-1.4zm.6 21.9h-2c-3.1 0-4.6-1.6-4.5-4.8l.2-15.9c.1-2.9 1.5-4.4 4.4-4.4h1.9C54.5 0 56 1.4 56 4.4l.2 15.9c0 3.2-1.5 4.8-4.6 4.8zM26.2 0h3.6l1 17.3L33.3 0h3.4l1.4 17.2L40.2 0h3.3l-3.3 24.8h-4.4l-1.2-15-2.1 15H28L26.2 0zm-6.7 3.4H18l-.6 8.9h1.5c.9 0 1.4-.5 1.5-1.4l.3-6.1c.1-1-.3-1.4-1.2-1.4m-2.9 21.4h-3.7L14.8 0h5.6c2.9 0 4.2 1.4 4.1 4.4l-.4 6.6c-.2 3.1-1.8 4.6-4.8 4.6h-2.1l-.6 9.2zm-5.7-4.5c-.2 3.2-1.9 4.8-4.9 4.8H4.1C1 25.1-.3 23.5 0 20.3L2.1 0h3.6L3.8 20.1c-.1 1 .3 1.5 1.3 1.5h.6c1 0 1.4-.5 1.5-1.5L9 0h3.6l-1.7 20.3z"/></symbol><symbol id="svg-icons-keylock" data-name="icons-keylock" viewBox="0 0 35.8 45.2" width="35" height="45"><path fill="url(#azure)" d="M30.1 17.1v-5.3C30.1 5.3 24.6 0 17.9 0 11.2 0 5.7 5.3 5.7 11.8v5.3H0v28.1h35.8V17.1h-5.7zM17.9 36.6c-2 0-3.7-1.6-3.7-3.6 0-1.3.8-2.5 1.9-3.1v-4.3h3.7v4.3c1.1.6 1.9 1.8 1.9 3.1-.1 2-1.7 3.6-3.8 3.6zm-7.3-19.5v-5.3c0-3.9 3.3-7.1 7.4-7.1s7.4 3.2 7.4 7.1v5.3H10.6z"/><path fill="url(#azure)" opacity=".5" d="M17.9 36.6c-2 0-3.7-1.6-3.7-3.6 0-1.3.8-2.5 1.9-3.1v-4.3h3.7v4.3c1.1.6 1.9 1.8 1.9 3.1-.1 2-1.7 3.6-3.8 3.6z"/></symbol><symbol id="svg-icons-safe" data-name="icons-safe" viewBox="0 0 36.5 34.7" width="36" height="34"><path fill="url(#azure)" d="M0 5.4h2.7v6.2H0zM0 23.1h2.7v6.2H0z"/><path fill="url(#azure)" opacity=".5" d="M26.2 18h-3c-.1.6-.3 1.1-.7 1.6l2.1 2.1c.3.3.3.7 0 .9-.3.3-.7.3-.9 0l-2.1-2.1c-.5.3-1 .6-1.6.7v3c0 .4-.3.7-.7.7s-.7-.3-.7-.7v-3c-.6-.1-1.1-.3-1.6-.7l-2.1 2.1c-.3.3-.7.3-.9 0-.3-.3-.3-.7 0-.9l2.1-2.1c-.3-.5-.6-1-.7-1.6h-3c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7h3c.1-.6.3-1.1.7-1.6L14 12.9c-.3-.3-.3-.7 0-.9.3-.3.7-.3.9 0l2.1 2.1c.5-.3 1-.6 1.6-.7v-3c0-.4.3-.7.7-.7s.7.3.7.7v3c.6.1 1.1.3 1.6.7l2.1-2.1c.3-.3.7-.3.9 0 .3.3.3.7 0 .9L22.5 15c.3.5.6 1 .7 1.6h3c.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/><circle fill="url(#azure)" cx="19.3" cy="17.3" r="2.4"/><path fill="url(#azure)" d="M31.8 4.8H6.9v25h24.9v-25zM26.2 18h-3c-.1.6-.3 1.1-.7 1.6l2.1 2.1c.3.3.3.7 0 .9-.3.3-.7.3-.9 0l-2.1-2.1c-.5.3-1 .6-1.6.7v3c0 .4-.3.7-.7.7-.4 0-.7-.3-.7-.7v-3c-.6-.1-1.1-.3-1.6-.7l-2.1 2.1c-.3.3-.7.3-.9 0-.3-.3-.3-.7 0-.9l2.1-2.1c-.3-.5-.6-1-.7-1.6h-3c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7h3c.1-.6.3-1.1.7-1.6L14 12.9c-.3-.3-.3-.7 0-.9.3-.3.7-.3.9 0l2.1 2.1c.5-.3 1-.6 1.6-.7v-3c0-.4.3-.7.7-.7.4 0 .7.3.7.7v3c.6.1 1.1.3 1.6.7l2.1-2.1c.3-.3.7-.3.9 0 .3.3.3.7 0 .9L22.5 15c.3.5.6 1 .7 1.6h3c.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/><path fill="url(#azure)" d="M2.1 0v34.7h34.5V0H2.1zm31.7 31.9H4.9v-29h28.9v29z"/><path fill="url(#azure)" d="M31.8 4.8H6.9v25h24.9v-25zM26.2 18h-3c-.1.6-.3 1.1-.7 1.6l2.1 2.1c.3.3.3.7 0 .9-.3.3-.7.3-.9 0l-2.1-2.1c-.5.3-1 .6-1.6.7v3c0 .4-.3.7-.7.7-.4 0-.7-.3-.7-.7v-3c-.6-.1-1.1-.3-1.6-.7l-2.1 2.1c-.3.3-.7.3-.9 0-.3-.3-.3-.7 0-.9l2.1-2.1c-.3-.5-.6-1-.7-1.6h-3c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7h3c.1-.6.3-1.1.7-1.6L14 12.9c-.3-.3-.3-.7 0-.9.3-.3.7-.3.9 0l2.1 2.1c.5-.3 1-.6 1.6-.7v-3c0-.4.3-.7.7-.7.4 0 .7.3.7.7v3c.6.1 1.1.3 1.6.7l2.1-2.1c.3-.3.7-.3.9 0 .3.3.3.7 0 .9L22.5 15c.3.5.6 1 .7 1.6h3c.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></symbol><symbol id="svg-icons-customer-atlassian" data-name="icons-customer-atlassian" viewBox="0 0 576 122.5" width="576" height="122"><path d="M168.1 32.9c-.3-.9-1.2-1.6-2.2-1.6h-21.4c-1 0-1.9.6-2.2 1.6l-26.9 85.3c-.1.2-.1.5-.1.7 0 1.3 1 2.3 2.3 2.3h14.7c1 0 1.9-.7 2.2-1.6L153 56.9c.3-.9 1.2-1.6 2.2-1.6 1 0 1.9.7 2.1 1.6l8.6 29.7h-11.5c-1 0-1.9.7-2.2 1.7l-3.3 11.8c-.1.2-.1.4-.1.6 0 1.2 1 2.3 2.3 2.3h19.7l5.2 16.7c.3 1 1.2 1.6 2.2 1.6h14.7c1.3 0 2.3-1 2.3-2.3 0-.2 0-.5-.1-.7l-27-85.4zM257 29.6h-13.5c-1.2 0-2.2 1-2.3 2.3v87c0 1.2 1 2.3 2.3 2.3H257c1.2 0 2.3-1 2.3-2.3v-87c0-1.3-1-2.3-2.3-2.3zM110.9 30c-.7-.5-1.6-.6-2.4-.3-5.1 1.9-10.4 3.5-15.7 4.7-1 .2-1.8.9-2.2 1.9-3.6 9.9-12.8 19.3-22.4 29.1-.5.5-1.1.8-1.8.9-.7 0-1.4-.3-1.8-.9-9.7-9.8-18.9-19.2-22.6-29.1-.4-.9-1.2-1.7-2.2-1.9-5.3-1.2-10.6-2.8-15.7-4.8-.3-.1-.6-.2-.9-.2-.5 0-1.1.2-1.5.5-.7.5-1 1.3-1 2.2.8 8.2 4.1 16.3 9.9 24.6 5.5 7.9 12.7 15.2 19.6 22.3 12.8 13 24.9 25.4 26 39.7.1 1.3 1.2 2.3 2.5 2.3h15c1.4 0 2.5-1.1 2.5-2.5v-.1c-.5-9.6-4.1-19.1-11-29.3-1.4-2.1-3-4.2-4.6-6.2-.6-.7-.5-1.7.1-2.4l1.5-1.5c7-7.1 14.1-14.4 19.6-22.3 5.9-8.4 9.1-16.4 9.9-24.6.2-.8-.1-1.6-.8-2.1z"/><path d="M66.4 37.4c-4.7 0-7.4-.3-8.4-.3-1.3 0-2.3 1-2.3 2.3 0 .3.1.6.2.9 2.1 4.8 5.1 9.2 8.8 12.8.5.5 1.1.7 1.7.7.6 0 1.3-.2 1.7-.7 3.7-3.7 6.7-8 8.8-12.8.1-.3.2-.6.2-.9 0-1.2-1-2.3-2.3-2.3-1 0-3.7.3-8.4.3zM50.2 90.3c-.5-.5-1.1-.7-1.8-.7-.8 0-1.6.5-2 1.2-6.3 9.6-9.6 18.7-10 27.8v.1c0 1.4 1.1 2.5 2.5 2.5h15c1.3 0 2.4-1 2.5-2.3.4-4.7 1.9-9.3 4.2-13.4.6-1.2.5-2.7-.3-3.8-3.2-4-6.5-7.8-10.1-11.4zM66.4 27.2c11.9 0 23.7-1.9 34.9-5.8 10.9-3.7 21.1-9.1 30.3-15.9 1.3-1 1.6-2.9.6-4.3-.6-.8-1.5-1.3-2.5-1.3-.5 0-1 .1-1.4.4-18.4 10.1-39.8 15.4-61.8 15.4S23.1 10.4 4.7.3C4.1.1 3.6 0 3.1 0 2.1 0 1.2.5.6 1.3c-1 1.3-.7 3.2.6 4.3 9.2 6.9 19.4 12.2 30.2 15.9 11.3 3.8 23.1 5.7 35 5.7zM232.1 108c-.2-1.1-1.2-2-2.3-2-.2 0-.4 0-.6.1-2.1.6-4.3.9-6.4.9-3.3 0-4.8-1.4-4.8-4.7V69.7h13.1c1.2 0 2.3-1 2.3-2.3V57.2c0-1.3-1-2.3-2.3-2.3H218V39.2c0-1.3-1-2.3-2.3-2.3h-.3l-13.5 1.9c-1.1.2-2 1.1-2 2.3V55h-7.3c-1.3 0-2.3 1-2.3 2.3v10.2c0 1.2 1 2.3 2.3 2.3h7.3v34.8c0 11.9 6.3 18 18.7 18 4.6-.1 9.1-.8 13.4-2.2 1-.4 1.7-1.4 1.5-2.5l-1.4-9.9zM483.5 53.6c-7.1 0-14.2.9-21.1 2.7-1.1.3-1.8 1.4-1.6 2.6l1.6 9.8c.2 1.1 1.1 1.9 2.3 1.9h.4c5.4-1.1 10.8-1.7 16.3-1.7 9.7 0 11.3 2.1 11.3 8.7v5.8H478c-13.8 0-19.7 5.7-19.7 19.1 0 12.8 6.5 20.1 17.7 20.1 6.5 0 12.9-1.8 18.5-5.1l.6 2.1c.3 1 1.2 1.7 2.2 1.7h10.9c1.2 0 2.3-1 2.3-2.3V78c.1-17.9-7.3-24.4-27-24.4zm9 51.2c-3.4 1.9-7.3 2.8-11.2 2.9-4.2 0-5.5-1.3-5.5-5.5 0-4.1.8-5.4 5.8-5.4h10.9v8zM291.7 53.6c-7.1 0-14.3 1-21.2 2.7-1.1.3-1.8 1.4-1.7 2.5l1.6 9.8c.2 1.1 1.1 1.9 2.3 1.9h.4c5.4-1.1 10.9-1.7 16.3-1.7 9.7 0 11.3 2.1 11.3 8.7v5.8h-14.5c-13.8 0-19.7 5.7-19.7 19.1 0 12.8 6.5 20.1 17.7 20.1 6.5 0 12.9-1.8 18.5-5.1l.6 2.1c.3 1 1.2 1.7 2.2 1.7h11c1.3 0 2.3-1 2.3-2.3V77.8c.1-17.7-7.3-24.2-27.1-24.2zm9 51.2c-3.4 1.9-7.3 2.8-11.2 2.9-4.2 0-5.5-1.3-5.5-5.5 0-4.1.8-5.4 5.8-5.4h10.9v8zM448.5 29.6H435c-1.2 0-2.3 1-2.3 2.3v11.9c0 1.3 1 2.3 2.3 2.3h13.5c1.3 0 2.3-1 2.3-2.3V31.9c-.1-1.3-1.1-2.3-2.3-2.3zM560.5 53.6c-7.2.1-16.9 2.5-25.1 6.4l-1-3.4c-.3-1-1.2-1.6-2.2-1.6h-10c-1.3 0-2.3 1-2.3 2.3V119c0 1.2 1 2.3 2.3 2.3h13.5c1.3 0 2.3-1 2.3-2.3V76.2c4.9-2.5 11.7-5 15.8-5 3 0 4.2 1.1 4.2 4.2V119c0 1.2 1 2.3 2.3 2.3h13.5c1.3 0 2.3-1 2.3-2.3V73.6c-.1-13.3-5.3-20-15.6-20zM352.6 80.2c-8.4-2.2-8.4-2.3-8.4-6.9 0-3.1.3-4.6 7.2-4.6 5.4.1 10.8.7 16.2 1.6h.4c1.2 0 2.1-.9 2.3-2l1.3-10.3c.1-1.2-.6-2.2-1.7-2.5-6-1.3-12.2-1.9-18.4-1.9-20.7 0-25 7.8-25 19.6 0 12.9 2.4 17.3 18.3 21.1 10.5 2.5 10.5 4.4 10.5 7.5 0 4.1-.4 5.5-7.2 5.5-5.9-.1-11.8-.8-17.5-2.4-.2-.1-.4-.1-.6-.1-1.1 0-2 .8-2.2 1.9l-1.8 9.8c-.2 1.1.5 2.2 1.5 2.6 6.9 2.1 14.1 3.2 21.4 3.4 20.1 0 24.2-8.4 24.2-21-.1-14-2.5-16.6-20.5-21.3zM404.8 80.2c-8.4-2.2-8.4-2.3-8.4-6.9 0-3.1.3-4.6 7.2-4.6 5.4.1 10.8.7 16.2 1.6h.4c1.1 0 2.1-.9 2.3-2l1.3-10.3c.1-1.2-.6-2.2-1.7-2.5-6-1.3-12.2-1.9-18.3-2-20.7 0-25 7.8-25 19.6 0 12.9 2.4 17.3 18.3 21.1 10.5 2.5 10.5 4.4 10.5 7.5 0 4.1-.4 5.5-7.2 5.5-5.9-.1-11.8-.8-17.6-2.4-.2 0-.4-.1-.6-.1-1.1 0-2 .8-2.2 1.9l-1.8 9.8c-.2 1.1.5 2.2 1.5 2.6 6.9 2.1 14.2 3.2 21.4 3.4 20.1 0 24.2-8.4 24.2-21-.1-13.9-2.6-16.5-20.5-21.2zM448.5 54.9H435c-1.3 0-2.3 1-2.3 2.3v61.7c0 1.2 1 2.3 2.3 2.3h13.5c1.3 0 2.3-1 2.3-2.3V57.2c-.1-1.3-1.1-2.3-2.3-2.3z"/></symbol><symbol id="svg-icons-customer-digit" data-name="icons-customer-digit" viewBox="0 0 565.3 192" width="565" height="192"><path d="M78.7 90.3v-4.9h4.8c.5 0 .9-.4.9-.9v-4c0-.5-.4-.8-.9-.9h-4.9v-4.9c0-.5-.4-.9-.9-.9h-4c-.5 0-.9.4-.9.9v4.9H68c-.5 0-.9.4-.9.9v4c0 .5.4.9.9.9h4.9v4.9c0 .5.4.9.9.9h4.1c.4 0 .8-.4.8-.9zM124.6 80.6c0-.5-.4-.9-.9-.9h-15.5c-.5 0-.9.4-.9.9v4c0 .5.4.9.9.9h15.5c.5 0 .9-.4.9-.9v-4z"/><path d="M96 0C43 0 0 43 0 96s43 96 96 96 96-43 96-96S149 0 96 0zm48 129.6c0 8.4-6.9 15.3-15.3 15.3H63.3c-8.4 0-15.3-6.9-15.3-15.3V64.2c0-8.4 6.9-15.2 15.3-15.3h65.4c8.4.1 15.3 6.9 15.3 15.3v65.4z"/><path d="M118.5 102.7h-5.2c-.2 0-.3.1-.4.3-2.7 10-11.9 17-22.2 17-4.4 0-8.7-1.3-12.4-3.6-.1-.1-.3-.1-.4 0l-3.6 3.6c-.1.1-.1.2-.1.2 0 .1.1.2.1.3 4.8 3.4 10.6 5.2 16.4 5.2 13.5 0 25.2-9.4 28.1-22.6v-.1c.1-.2-.1-.3-.3-.3zM325.3 32.9h-16c-1.5 0-2.7 1.2-2.7 2.7V57c-7.9-5.3-17.2-8.1-26.7-8.1-26.3 0-48 21.7-48 48s21.7 48 48 48c9.5 0 18.8-2.8 26.7-8.1v5.4c0 1.5 1.2 2.7 2.7 2.7h16c1.5 0 2.7-1.2 2.7-2.7V35.6c-.1-1.5-1.3-2.7-2.7-2.7zM306.6 97c-.1 14.6-12.1 26.6-26.7 26.6s-26.7-12-26.7-26.7c0-14.6 12-26.7 26.7-26.7 14.6 0 26.6 12 26.7 26.6v.2zM562.6 48.9h-13.3V35.6c0-1.5-1.2-2.7-2.7-2.7h-16c-1.5 0-2.7 1.2-2.7 2.7v13.3h-13.3c-1.5 0-2.7 1.2-2.7 2.7v16c0 1.5 1.2 2.7 2.7 2.7h13.3v72c0 1.5 1.2 2.7 2.7 2.7h16c1.5 0 2.7-1.2 2.7-2.7v-72h13.3c1.5 0 2.7-1.2 2.7-2.7v-16c0-1.5-1.2-2.7-2.7-2.7zM501.3 48.9h-16c-1.5 0-2.7 1.2-2.7 2.7v90.7c0 1.5 1.2 2.7 2.7 2.7h16c1.5 0 2.7-1.2 2.7-2.7V51.6c-.1-1.5-1.3-2.7-2.7-2.7zM359.9 48.9h-16c-1.5 0-2.7 1.2-2.7 2.7v90.7c0 1.5 1.2 2.7 2.7 2.7h16c1.5 0 2.7-1.2 2.7-2.7V51.6c0-1.5-1.2-2.7-2.7-2.7zM466.6 48.9h-16c-1.5 0-2.7 1.2-2.7 2.7V57c-7.9-5.3-17.2-8.1-26.7-8.1-26.3 0-48 21.7-48 48s21.7 48 48 48c9.4 0 18.7-2.8 26.5-8-1.4 13.5-12.9 24-26.5 24-7.7 0-15-3.3-20-9.1-.9-1-2.1-1.6-3.5-1.6h-18.2c-1.3 0-2.3 1.1-2.3 2.3 0 .3.1.6.2.9 7.5 17.2 24.5 28.5 43.3 28.7 26.7.2 48.5-22.3 48.5-48.9V51.6c.1-1.5-1.1-2.7-2.6-2.7zm-45.3 74.7c-14.6 0-26.7-12-26.7-26.7 0-14.6 12-26.7 26.7-26.7 14.6 0 26.7 12 26.7 26.7-.1 14.6-12.1 26.7-26.7 26.7z"/></symbol><symbol id="svg-icons-customer-dronedeploy" data-name="icons-customer-dronedeploy" viewBox="0 0 576 124.3" width="576" height="124"><path d="M62.2 9.9c-14.4 0-27.4 5.8-36.9 15.3S9.9 47.8 9.9 62.2v.1c0 14.4 5.8 27.4 15.3 36.8 9.5 9.5 22.5 15.3 36.9 15.3v10h.1-.1c-17.1 0-32.6-7-43.9-18.3C6.9 94.9 0 79.3 0 62.3v-.1c0-17.2 6.9-32.7 18.2-44C29.4 7 45 0 62.2 0s32.7 7 44 18.2c11.3 11.3 18.2 26.8 18.2 44h.1v.1h-.1c0 17.1-6.9 32.6-18.2 43.8-11.3 11.3-26.7 18.3-44 18.3v-9.9c14.4 0 27.4-5.9 36.9-15.3 9.5-9.5 15.4-22.5 15.4-36.8h-.1v-.1h.1c0-14.4-5.9-27.4-15.3-36.9-9.6-9.6-22.7-15.5-37-15.5zm386.7 88h-6.5V49.7h6.3v5.5c2.9-4.4 7.2-6.5 12.8-6.5 5.3 0 9.7 1.9 13.3 5.6 3.5 3.7 5.4 8.4 5.4 13.9 0 5.3-1.7 9.6-5.3 13.2-3.5 3.5-7.8 5.4-13 5.4-6 0-10.3-2.1-12.9-6.2l-.1 17.3zm107.2-.1h-7l5.3-12.8L540 49.6h7.3l10.6 28 10.8-28h7.3l-19.9 48.2zM27.4 49.4s10.2-7.6 13.5-6.9l51.5-.4-26.1 44.5c-2.6 3.8-12.7 8.3-12.7 8.3L57 62.6 27.4 49.4zM245.5 87c-5.6 0-10.3-1.8-14-5.5-3.7-3.6-5.5-8.2-5.5-13.6 0-5.6 1.8-10.3 5.5-14 3.7-3.7 8.4-5.5 14-5.5 5.5 0 10.3 1.8 13.9 5.5 3.7 3.6 5.5 8.3 5.5 13.8s-1.8 10.2-5.5 13.8c-3.8 3.7-8.4 5.5-13.9 5.5zm88.9-12l.5-.5h11c-1.7 3.9-4.1 7-7.2 9.2-3.1 2.2-6.5 3.4-10.4 3.4-5.3 0-9.8-1.9-13.4-5.6-3.6-3.7-5.5-8.3-5.5-13.6s1.8-10 5.5-13.7c3.6-3.7 8.1-5.6 13.3-5.6 5.4 0 9.9 1.9 13.5 5.6 3.6 3.8 5.5 8.5 5.5 14.1 0 .9-.1 1.8-.3 3h-27.1c.3 2 1.1 3.6 2.5 4.9 1.5 1.3 3.3 1.8 5.4 1.8 2.5-.2 4.7-1.1 6.7-3zm83.4-26.5c4.9.1 9.1 1.9 12.7 5.5 3.5 3.7 5.4 8.1 5.4 13.3 0 .7-.1 1.9-.2 3.5h-29.8c.7 3 2.2 5.4 4.3 7.2 2.2 1.8 4.7 2.7 7.6 2.7 4.3-.2 7.7-2.2 10.1-6.3h6.8c-1.4 3.7-3.5 6.7-6.7 9-3.1 2.2-6.6 3.4-10.5 3.4-5.1 0-9.4-1.9-13-5.6-3.6-3.7-5.5-8.2-5.5-13.4s1.8-9.8 5.5-13.5c3.6-3.7 8-5.6 13.2-5.6l.1-.2zm101.9.2c5.4 0 10 1.8 13.8 5.5 3.8 3.6 5.7 8.1 5.7 13.3 0 5.3-1.9 9.8-5.7 13.5-3.8 3.7-8.4 5.6-13.8 5.6s-9.9-1.9-13.7-5.6c-3.8-3.7-5.7-8.3-5.7-13.5 0-5.2 1.9-9.6 5.7-13.3 3.8-3.7 8.3-5.5 13.7-5.5zM175.9 85.8H157V37.6h16.2c6.4 0 11.5 1.2 15.2 3.5 2.3 1.4 4.2 3.3 5.8 5.5 2.9 4.1 4.4 9.1 4.4 14.9 0 7.4-2.1 13.2-6.2 17.6-4.3 4.5-9.7 6.7-16.5 6.7zm39.1 0h-10.8V49.6h10.3v3.8c1.9-3.4 4.8-5.1 8.7-5.1h.3v10.9c-3.1.1-5.3.5-6.5 1.5-1.3 1-1.9 2.6-1.9 5l-.1 20.1zm66.4 0h-10.8V49.6h10.3v3.8c2.4-3.4 5.6-5.1 9.9-5.1 3.9 0 7.2 1.3 9.7 3.7 1.4 1.4 2.4 2.8 2.8 4.4.5 1.5.7 3.7.7 6.7v22.6h-10.8V66c0-5-1.9-7.5-5.6-7.5-4.1 0-6.2 2.4-6.2 7.1v20.2zm87.6 0h-15V37.6h17.1c6.6 0 12 2.2 16.2 6.5 4.6 4.8 7 10.8 7 17.9 0 6.8-2 12.4-6.1 16.8-4.2 4.6-10.7 7-19.2 7zm124.6 0h-6.7V37.6h6.7v48.2zm-32.3-5.2c3.5 0 6.3-1.3 8.6-3.7 2.4-2.5 3.5-5.5 3.5-9s-1.2-6.5-3.6-9.1c-2.5-2.5-5.4-3.8-8.8-3.8-3.4 0-6.2 1.3-8.5 3.7-2.4 2.5-3.5 5.5-3.5 9 0 3.6 1.2 6.6 3.5 9.2 2.4 2.4 5.4 3.7 8.8 3.7zm58.4-.1c3.5 0 6.5-1.3 9-3.7 2.5-2.5 3.7-5.5 3.7-9.1 0-3.5-1.3-6.5-3.7-9-2.5-2.5-5.5-3.7-9-3.7s-6.5 1.3-9 3.7c-2.5 2.5-3.7 5.5-3.7 9s1.3 6.5 3.7 9.1c2.4 2.4 5.4 3.7 9 3.7zM361 44.1v35.3h5.7c6.5 0 11.4-1.4 14.6-4.1 3.9-3.2 5.8-7.6 5.8-13.4 0-5.2-1.7-9.5-5.1-13-3.2-3.2-7.4-4.8-12.5-4.8H361zM245.5 58.4c-2.5 0-4.5.9-6.2 2.6-1.7 1.8-2.5 3.9-2.5 6.5s.8 4.9 2.5 6.6c1.6 1.8 3.7 2.6 6.3 2.6 2.5 0 4.5-.9 6.2-2.6 1.6-1.8 2.5-4 2.5-6.6 0-2.5-.8-4.7-2.5-6.5-1.9-1.7-3.9-2.6-6.3-2.6zm-76.3-9.9v26.4h5.3c7.8 0 11.8-4.4 11.8-13 0-4.3-1-7.5-3-9.9-2-2.4-4.9-3.5-8.6-3.5h-5.5zm239.3 10c-1.5 1.6-2.4 3.9-2.8 6.9H429c-.2-3-1.4-5.5-3.6-7.6-2.3-2.1-4.9-3.2-8-3.2-3.6 0-6.5 1.4-8.9 3.9zm-88.4 5.4h16.3c-.4-1.9-1.4-3.4-2.8-4.5s-3.3-1.7-5.4-1.7c-4.5-.1-7.2 2-8.1 6.2z"/></symbol><symbol id="svg-icons-customer-emarsys" data-name="icons-customer-emarsys" viewBox="0 0 576 120.6" width="576" height="120"><path d="M148.9 37.4c-18.5 0-30.2 12.5-30.2 28.7v1.5c0 17.2 12.7 26.8 30.4 26.8 12.7 0 21.2-4.2 26.3-8.7l-6.2-8.7c-3.6 4.5-10.2 7.6-19.5 7.6-11 0-18.9-4.7-19.5-16.1h48.2V67c.2-14.5-7.4-29.6-29.5-29.6zm-18.1 22.5c1.7-8.7 8.1-13.8 18.1-13.8 11 0 16.4 5.5 17.6 13.8h-35.7zM260.6 37.4c-9.8 0-17 5.1-21 10.2-3-6.2-10-10.2-18.7-10.2-10.4 0-17.2 4.7-20.6 9.1l-.8-8.1H188V93h12.7V55.2c3.4-4.7 9.3-7.2 15.7-7.2 10 0 13.8 5.1 13.8 13.8v31h13V54.6c3.4-3.8 8.1-6.4 15.1-6.4 10.2 0 14.4 5.5 14.4 15.5v29.1h12.7V63.9c.3-17.6-8-26.5-24.8-26.5zM0 55.9l41.6 18.6L83 55.9V37.4L41.6 55.9l-20.8-9.4L83 18.7V0L0 37.4zM21 120.6l62-27.4V74.5l-62 27.4zM523.8 38.7h-13.4v-.2L491.7 83l-18.3-44.6h-13.6l25.1 54.4c-2.3 5.1-6.6 12.7-11.7 20.2l12.1 3.8c11.5-18.7 24.6-46.9 38.5-78.1zM434.1 60.5c-11-1.3-18.1-1.1-18.1-5.9 0-5.1 5.1-7.6 14-7.6 7.9 0 15.1 1.5 19.8 4.7l3.6-9.6c-6.4-3-14.4-4.7-23.6-4.7-17 0-24.8 8.1-24.8 18.1 0 10 8.1 12.3 21.7 14 11.5 1.1 18.5.6 18.5 7 0 5.9-6.2 8.3-16.1 8.3-8.7 0-17-2.8-22.1-7.4l-4.2 10.4c6.6 4 16.1 6.6 26.5 6.6 16.4 0 26.3-5.9 26.3-18.5.2-12.8-11.5-14.3-21.5-15.4zM376.4 50.8l-.6-12.5h-11.5v54.6h12.3V60.5c2.1-6.4 7-11.3 13.2-11.3 3.2 0 5.7.8 7.4 1.9l2.1-11.9c-1.7-.8-4.9-1.5-7.6-1.5-7.7.1-13 4.8-15.3 13.1zM351.3 61.5v-.6c.4-17-11.3-23.6-26.8-23.6-11.5 0-18.9 2.5-24.8 5.7l4 9.8c3.8-3.4 10.6-5.7 19.3-5.7 10 0 17.2 3 17 12.7l-.2 3.4c-5.3-2.3-12.5-4.2-20.4-4.2-13.6 0-24.4 4.2-24.4 18.1 0 12.5 11.9 17.2 23.8 17.2 11.3 0 17.8-4.2 21.5-7.9.2 2.3.6 4.9 1.1 6.8h10.8c-.6-2.3-1.1-6.2-1.1-14.7 0-5.3 0-11.6.2-17zM340 78.6c-3.8 4.2-11 6.2-18.3 6.2-7.9 0-14.4-1.9-14.4-8.5 0-7 5.5-8.7 15.3-8.7 6.4 0 12.5 1.5 17.6 3.2v7.9h-.2zM554.5 60.5c-11-1.3-18.1-1.1-18.1-5.9 0-5.1 5.1-7.6 14-7.6 7.9 0 15.1 1.5 19.8 4.7l3.6-9.6c-6.4-3-14.4-4.7-23.6-4.7-17 0-24.8 8.1-24.8 18.1 0 10 8.1 12.3 21.7 14 11.5 1.1 18.5.6 18.5 7 0 5.9-6.2 8.3-16.1 8.3-8.7 0-17-2.8-22.1-7.4l-4.2 10.4c6.6 4 16.1 6.6 26.5 6.6 16.4 0 26.3-5.9 26.3-18.5.2-12.8-11.5-14.3-21.5-15.4z"/></symbol><symbol id="svg-icons-customer-fathom" data-name="icons-customer-fathom" viewBox="0 0 576 375.7" width="576" height="375"><path d="M313.5 324.9h-45v-24.8h-21.3v69.6h21.3v-26.3h45v26.3h21.3v-69.6h-21.3zM156.1 317.4H186v52.3h21.4v-52.3h30v-17.3h-81.3zM215.4 180.2l-7.5 4.9c-2.5 1.6-3.1 5-1.4 7.5l3.3 4.9c1.7 2.5 5 3.3 7.4 1.7l7.5-4.9c2.4-1.6 3.1-5 1.4-7.5l-3.3-4.9c-1.7-2.6-5-3.3-7.4-1.7zM70.5 369.7h23.7l26.7-41.4 26.8 41.4h23.7l-50.5-75.5zM142.4 164.9h.4c.2 0 .3-.1.5-.1.9 8 2.5 15.5 5 22.6-4.2-4.1-10.3-6.4-16-6.4-1.4 0-2.8.1-4.1.4-.4.1-.7.3-.8.6-.2.3-.2.7-.1 1 2.9 9.4 12.1 16.8 21.2 16.9 1.4 0 2.8-.2 4.2-.6.2-.1.5-.2.6-.4 3.3 6.3 7.4 12.2 12.4 17.7-2.2-.8-4.6-1.2-6.9-1.2-5.8 0-11.7 2.1-15.7 6-.3.3-.4.6-.4 1s.2.7.4 1c4.5 3.9 10.5 5.9 16.3 5.9 5.3 0 10.4-1.7 13.8-5.4 5 4.3 10.7 8.3 17.2 11.9h-.6c-7.1 0-14.5 3.7-18.5 9.5-.2.2-.2.5-.2.8l-.2.9c.1 0 .4.1.8.1 3.7 2.1 7.9 3.1 12.1 3.1 7.1 0 14.1-2.9 17.6-8.7l.1-.1c2.3 1 4.7 2 7.1 3 .3.1.6.2 1 .2 1 0 2-.6 2.4-1.6.5-1.3-.1-2.8-1.5-3.3-2.2-.9-4.3-1.8-6.4-2.7 1.1-2.2 1.5-4.6 1.5-6.9 0-8.8-6.6-17.5-14.8-20.3h-.1l-.4-.4-1 1 .1.1c-.1.1-.2.2-.2.3-.5 1.8-.7 3.7-.7 5.5 0 5.8 2.1 11.7 5.7 16-6.9-3.8-12.9-7.9-18-12.4l.2-.1c4.2-3.5 6.1-8.7 6.1-14 0-6-2.4-12.2-6.6-16.3-.3-.3-.6-.4-1-.4s-.7.2-.9.5c-3.5 4.4-5.3 10.1-5.3 15.6 0 3.4.7 6.8 2.2 9.7-5.4-5.6-9.7-11.7-13.1-18.2.1 0 .3 0 .4-.1 6.9-3.2 10.2-10.8 10.2-18.1 0-4-1-8.1-3-11.4-.2-.3-.5-.5-.8-.6-.3-.1-.7 0-1 .2-6.1 4.6-9.9 12.3-9.9 19.5v.9c-2.5-6.8-4.1-14.1-5-21.8h.2c9.9-1.4 16.1-11.6 16.1-21.1 0-1.7-.2-3.4-.6-5-.1-.3-.3-.6-.6-.8-.3-.2-.7-.2-1-.1-7 2.5-12.7 8.5-14.9 15.2-.1-1.4-.1-2.8-.1-4.2 0-5.7.3-11.5.9-17.5.2.3.5.4.8.5.9.2 1.8.2 2.7.2h.1c10.5-.1 19.3-10.2 20-20.3 0-.4-.1-.7-.4-1-.3-.3-.6-.4-1-.4-9.3.3-18.5 6.5-21.5 14.7.4-3.1.8-6.2 1.3-9.4 5.4-3.6 8-10.3 8-16.7 0-4.1-1-8.2-3.1-11.6-.2-.3-.5-.5-.9-.6-.4-.1-.7 0-1 .3-6.1 4.6-9.7 12.2-9.7 19.4 0 2.7.5 5.4 1.7 7.9-.3 2.2-.7 4.4-1 6.6-2.2-7.6-9.1-14.1-16.8-15.7-.4-.1-.7 0-1 .2-.3.2-.5.6-.5.9-.1.8-.1 1.6-.1 2.4.1 10.5 7.1 21.2 17.1 22.6H143.7c-.6 6-.9 11.8-.9 17.4 0 1.8 0 3.6.1 5.4-3.4-7.2-11.3-12.4-19.1-12.7-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1 .4 10.8 9.4 21.5 20 21.6zM234.5 188.2c2.2-1.4 2.8-4.4 1.4-6.6l-4.3-6.6c-.9-1.4-2.4-2.2-4-2.2-.9 0-1.8.3-2.6.8-2.2 1.4-2.8 4.4-1.4 6.6l4.3 6.7c1.4 2.1 4.4 2.8 6.6 1.3zM71.5 329.8H21.4v-12.9h50.3v-16.8H.1v69.6h21.3V346h50.1zM541 369.7h20.7v-37.9L541 362zM573 365c.3-.2.4-.6.4-1.1 0-.5-.2-.9-.5-1.2-.3-.3-.8-.4-1.4-.4h-2.1v5.5h.9v-2.4h.9l1.5 2.4h.9l-1.6-2.4c.4 0 .8-.1 1-.4zm-1.8-.2h-.9v-1.7h1.5c.2 0 .3.1.4.1l.3.3c.1.1.1.3.1.4 0 .2 0 .4-.1.5l-.3.3c-.1.1-.3.1-.5.1h-.5zM559.9 300.1h-24.4l-26.8 41.4-26.8-41.4h-26.2v69.6h20.8v-42.3l32.2 48.3 51.2-75.6z"/><path d="M575.6 363.3c-.3-.6-.6-1.1-1-1.5-.4-.4-.9-.7-1.5-1s-1.2-.4-1.8-.4c-.6 0-1.3.1-1.8.4-.6.2-1.1.6-1.5 1-.4.4-.8.9-1 1.5-.3.6-.4 1.2-.4 1.8 0 .7.1 1.3.4 1.9s.6 1.1 1 1.5c.4.4.9.8 1.5 1 .6.2 1.2.4 1.8.4.6 0 1.3-.1 1.8-.4.6-.2 1.1-.6 1.5-1 .4-.4.8-.9 1-1.5.3-.6.4-1.2.4-1.9-.1-.6-.2-1.3-.4-1.8zm-.8 3.4c-.2.5-.5.9-.8 1.3-.3.4-.8.7-1.2.9-.5.2-1 .3-1.5.3-.6 0-1.1-.1-1.5-.3-.5-.2-.9-.5-1.2-.9-.3-.4-.6-.8-.8-1.3-.2-.5-.3-1-.3-1.6 0-.6.1-1.1.3-1.6.2-.5.5-.9.8-1.3.4-.4.8-.6 1.2-.8.5-.2 1-.3 1.5-.3s1 .1 1.5.3c.5.2.9.5 1.2.8.4.4.6.8.8 1.3.2.5.3 1 .3 1.6 0 .6-.1 1.1-.3 1.6zM354 241.3v.1c3.5 5.8 10.5 8.7 17.6 8.7 4.2 0 8.4-1 12.1-3.1.3-.2.5-.5.6-.8.1-.4 0-.7-.2-1-4-5.8-11.4-9.4-18.5-9.5h-.6c6.4-3.6 12.1-7.6 17.1-12 3.5 3.7 8.6 5.5 13.8 5.5 5.8 0 11.8-2.1 16.2-5.9.3-.3.4-.6.5-1 0-.4-.1-.7-.4-1-4.1-3.9-10-6-15.7-6-2.4 0-4.7.4-6.9 1.2 5-5.5 9.2-11.4 12.4-17.7.2.2.4.3.6.4 1.4.4 2.8.6 4.1.6h.1c9.1-.1 18.3-7.5 21.2-16.9.1-.3.1-.7-.1-1-.2-.3-.5-.5-.8-.6-1.3-.3-2.7-.4-4.1-.4-5.8 0-11.9 2.4-16.1 6.5 2.5-7.1 4.2-14.7 5.1-22.6.2.1.3.1.5.1h.4c10.6-.1 19.6-10.9 20.3-22 0-.4-.1-.7-.4-1-.2-.3-.6-.4-1-.4-7.8.3-15.7 5.5-19.1 12.7.1-1.8.1-3.6.1-5.4 0-5.6-.3-11.5-.9-17.4H412.2c9.9-1.4 17-12.1 17-22.6 0-.8-.1-1.6-.1-2.5-.1-.3-.2-.7-.5-.9-.3-.2-.7-.3-1-.2-7.7 1.6-14.7 8-16.9 15.7-.3-2.2-.7-4.4-1-6.6 1.2-2.4 1.7-5.1 1.7-7.9 0-7.2-3.6-14.9-9.7-19.4-.3-.2-.6-.3-1-.2-.3.1-.7.3-.9.6-2.1 3.4-3.2 7.5-3.2 11.6 0 6.5 2.6 13.1 8 16.7.5 3.2.9 6.3 1.3 9.4-3-8.2-12.1-14.4-21.5-14.7-.4 0-.7.1-1 .4-.2.3-.4.6-.4 1 .6 10.1 9.5 20.2 20 20.3.9 0 1.9-.1 2.8-.2.3-.1.6-.2.8-.5.6 6 .9 11.9.9 17.5 0 1.4 0 2.8-.1 4.2-2.3-6.7-8-12.7-14.9-15.1-.4-.1-.7-.1-1 .1-.3.2-.6.5-.6.8-.4 1.6-.6 3.3-.6 5 0 9.5 6.2 19.7 16.1 21.1h.2c-.9 7.7-2.5 15-5 21.8 0-.3.1-.6.1-.9 0-7.3-3.7-15-9.9-19.5-.3-.2-.7-.3-1-.2-.4.1-.7.3-.9.6-2 3.3-3 7.4-3 11.4 0 7.4 3.3 14.9 10.3 18.1.1 0 .2.1.3.1-3.4 6.6-7.7 12.6-13.1 18.2 1.5-2.9 2.2-6.3 2.2-9.7 0-5.5-1.8-11.2-5.3-15.6-.3-.3-.6-.4-1-.5-.3 0-.7.1-1 .4-4.3 4.1-6.6 10.3-6.6 16.3 0 5.3 1.8 10.5 6.1 14l.2.1c-5.2 4.5-11.2 8.7-18.1 12.5 3.6-4.2 5.7-10.2 5.7-16 0-1.9-.2-3.7-.7-5.5-.1-.4-.3-.7-.6-.8-.3-.2-.7-.2-1-.1-8.3 2.9-14.8 11.5-14.9 20.4 0 2.3.5 4.7 1.6 6.9-2.1.9-4.2 1.8-6.4 2.7-1.3.5-2 2-1.5 3.3.4 1 1.4 1.6 2.4 1.6.3 0 .6-.1 1-.2 2.9-1 5.2-2 7.5-3.1zM350.4 194.2c2.7-4 1.5-9.5-2.5-12.1l-51.6-33.9 51.9-34.1c.4-.3.8-.7 1.2-1l24.8-24.4c.8-.8.9-2 .3-3-.6-.9-1.8-1.3-2.9-.9l-32.3 13.1c-.5.2-1 .4-1.4.7l-50.2 33v-29.2h2c2.8 0 5-2.3 5-5v-2.7c4.4-1 7.7-5 7.7-9.8-.1-4.6-3.4-8.5-7.7-9.5V71L345 58.7c2.5-.6 4.1-3 3.8-5.5-.3-2.5-2.5-4.4-5-4.4h-56V24.1h56.1c2.8 0 5.1-2.3 5.1-5.1 0-2.4-1.8-4.5-4-4.9L291 .2c-.4-.1-.8-.2-1.3-.2h-21.2c-2.8 0-5.1 2.3-5.1 5v14c0 .5.1 1 .3 1.5h-6.9c-2.8 0-5 2.3-5 5.1s2.3 5 5 5h13.3v11.7h-13.3c-2.8 0-5 2.3-5 5 0 2.8 2.3 5.1 5 5.1h6.9c-.2.5-.3.9-.3 1.5v43.5c0 2.8 2.3 5 5.1 5h1.6V131l-33.5-22 8.7-13.3c2.7-4.2 1.6-9.9-2.6-12.7l-18.1-11.9c-4.2-2.8-9.9-1.6-12.7 2.6L203 87.3c-3.7-1.3-7.9.1-10.1 3.5-2.2 3.4-1.8 7.8.8 10.7l-8.4 12.7c-2.8 4.2-1.6 9.9 2.6 12.7l18.1 11.9c4.2 2.8 9.9 1.6 12.7-2.6l8.3-12.5 36.5 24-29.1 19.2c-2.4 1.6-3 4.7-1.5 7l4.6 7c1.5 2.3 4.7 3 7 1.4l25.6-16.8v52.3c0 4.9 4 8.8 8.8 8.8 4.9 0 8.8-3.9 8.8-8.8v-54.2l50.5 33.1c4.1 2.7 9.6 1.5 12.2-2.5zm5.6-98l1.5 2.2-8.2 8-3.9-5.9 10.6-4.3zM411.7 298.6h-34.2c-19.2 0-30.6 4.8-30.6 25.2v20.7c0 20.4 11.4 25.2 30.6 25.2h34.2c19.2 0 30.7-4.8 30.7-25.2v-20.7c0-20.4-11.5-25.2-30.7-25.2zm8.8 39.3c0 10.1-2.1 13.9-12.2 13.9H381c-10.1 0-12.2-3.8-12.2-13.9v-7.5c0-8.6 2.1-13.9 13.4-13.9h25c11.2 0 13.4 5.3 13.4 13.9v7.5z"/></symbol><symbol id="svg-icons-customer-harmonix" data-name="icons-customer-harmonix" viewBox="0 0 576 85.2" width="576" height="85"><path d="M116.5 14.8s-2.7-7.7-12.7-7.7S91 14.8 91 14.8 71.7 65.3 71.1 66.5c-.6 1.3-.8 2.6-.8 3.2 0 5.8 3.8 8.6 9.7 8.6 4.4 0 7.6-3.6 7.6-3.6l4.2-5c2.5-2.9 7.6-3.2 7.6-3.2h8.5s5.1.3 7.6 3.2l4.3 5s3.2 3.6 7.6 3.6c5.9 0 9.7-2.8 9.7-8.6 0-.6-.2-1.9-.8-3.2-.5-1.2-19.8-51.7-19.8-51.7zm-9.6 38.5h-6.1c-3 0-3-3.6-3-3.6s1.1-11.4 6.1-11.4 6.1 11.4 6.1 11.4-.1 3.6-3.1 3.6zM52 7.1c-10.5 0-10.5 10.5-10.5 10.5v7.1s0 7.4-10.8 7.4C20 32.1 20 24.7 20 24.7v-7.1S20 7.1 9.5 7.1-1 17.6-1 17.6v52.1s0 8.6 10.4 8.6C20 78.4 20 69.7 20 69.7V56c0 .3 0-6.4 10.8-6.4s10.8 6.7 10.8 6.4v13.8s0 8.6 10.5 8.6c10.4 0 10.4-8.6 10.4-8.6V17.6S62.5 7.1 52 7.1zM203.4 40.4c8.2-11.1-.2-33.3-20.7-33.3h-27.2c-10.7 0-10.7 10.5-10.7 10.5v52.1s0 8.6 10.1 8.6c10.7 0 10.7-8.6 10.7-8.6V58.1s0-4.9 5.4-4.9c4.1 0 4.8 2.7 4.8 2.7s7.4 15.9 10 19.2c2.5 3.2 7.4 3.2 7.4 3.2h6.7c9.2 0 4.2-9.2 4.2-9.2l-7-14.3c-1.9-3.9.3-6.2.3-6.2l6-8.2zM175 38.5h-3c-6.7 0-6.7-1.7-6.7-6.5 0-4.3 0-6 6.7-6h3c5.3 0 9 1.5 9 6 0 4.9-3.7 6.5-9 6.5zM452 7.1c-8.1 0-8.2 7.7-8.2 7.7v17.5c0 3.2-1.9 4.1-3 4.1-3.8 0-6-4.3-6-4.3l-11.7-18.7s-3.6-6.3-9.9-6.3h-3.4c-9.6 0-9.6 7.7-9.6 7.7v54.9s0 8.7 9.6 8.7 9.6-8.7 9.6-8.7V53.3c0-3.6 3.6-4.3 6.4 0l11.9 17.2c4.5 6.9 7.1 7.9 12.1 7.9h4c7.6 0 7.6-10 7.6-10V14.7c.1 0 .1-7.6-9.4-7.6zM348.1 0c-23.5 0-42.6 19.1-42.6 42.6s19.1 42.6 42.6 42.6 42.6-19.1 42.6-42.6S371.6 0 348.1 0zm0 78c-19.5 0-35.4-15.9-35.4-35.4s15.9-35.4 35.4-35.4 35.4 15.9 35.4 35.4S367.6 78 348.1 78zM286.7 7.1h-11.4s-7-.1-9.3 8.2c-2.3 8.3-5.6 20.5-6.4 22.8-.7 2.3-2.1 3.4-3.4 3.4-1.3 0-2.6-1.1-3.4-3.4-.7-2.3-4.1-14.5-6.4-22.8-2.3-8.2-9.2-8.2-9.3-8.2H226c-8.8 0-8.8 9.6-8.8 9.6v53s0 8.6 9.3 8.6c9.2 0 9.2-8.6 9.2-8.6V56c0-2.7 5.5-4.3 6.9 0 0 0 3.5 11.7 4.1 13.8.8 2.2 1.7 8.6 9.5 8.6s8.8-6.4 9.5-8.6c.7-2 4.2-13.8 4.2-13.8 1.5-4.3 6.9-2.7 6.9 0v13.7s0 8.6 9.2 8.6c9.3 0 9.3-8.6 9.3-8.6v-53c.2 0 .2-9.6-8.6-9.6zM487 7.1c-10 0-11.6 7.7-11.6 10.5v50.2c0 2.8 1.6 10.5 11.6 10.5s11.6-7.7 11.6-10.5V17.6c0-2.8-1.6-10.5-11.6-10.5zM574.1 69.7L558.9 47c-.9-1.3-1.8-2.9-1.8-5.6 0-3.8 2.5-6.7 2.5-6.7S569.2 21 570 19.6c6.4-10.7-8.8-12.7-8.8-12.7-6.8 0-9.2 3.6-9.2 3.6l-6.4 7.2c-2.4 2.6-3.3 2.7-4.5 2.7-1.1 0-2-.1-4.5-2.7l-6.4-7.2s-2.3-3.6-9.1-3.6c0 0-15.2 2-8.8 12.7.8 1.4 10.5 15.2 10.5 15.2s2.4 3 2.5 6.7c0 2.7-.9 4.3-1.8 5.6l-15.2 22.7c-2.4 3.3.2 8.6 6.1 8.6h6.5c.1 0 7.3 0 11-5.4l5.7-8.6s1.1-1.9 3.5-1.9 3.5 1.9 3.5 1.9l5.7 8.6c3.7 5.4 11 5.4 11 5.4h6.5c6.1 0 8.7-5.4 6.3-8.7z"/><path d="M348.1 11.5c-17.2 0-31.1 13.9-31.1 31.1 0 17.2 13.9 31.1 31.1 31.1 17.2 0 31.1-13.9 31.1-31.1 0-17.2-13.9-31.1-31.1-31.1zm-8.7 26.9c-3 0-5.4-2.4-5.4-5.4 0-3 2.4-5.4 5.4-5.4 3 0 5.4 2.4 5.4 5.4.1 3-2.3 5.4-5.4 5.4z"/></symbol><symbol id="svg-icons-customer-interloop" data-name="icons-customer-interloop" viewBox="0 0 576 105.2" width="576" height="105"><path d="M171.1 13.7c-2 0-3.3 1.5-3.3 3.5v67.2c0 2 1.4 3.5 3.3 3.5 2.1 0 3.6-1.5 3.6-3.5V17.2c0-2-1.5-3.5-3.6-3.5zM214.2 31.2c-8 0-14.1 3.6-17.5 9.2v-4.7c0-2-1.5-3.3-3.5-3.3s-3.3 1.4-3.3 3.3v48.8c0 2 1.4 3.3 3.3 3.3 2 0 3.5-1.4 3.5-3.3v-32c.9-9.2 6.9-14.9 16.3-14.9 10 0 16.3 6.7 16.3 17.3v29.6c0 2 1.4 3.3 3.3 3.3 2.1 0 3.5-1.4 3.5-3.3V53.6c-.1-13.5-8.8-22.4-21.9-22.4zM140.9 60c-1.5-2.9-3.5-5.6-5.9-7.9-2.3-2.2-5-4-7.9-5.3-2.4-1.1-4.9-1.8-7.5-2.2.1-3.2-.1-6.4-.7-9.5-.7-4.1-2.1-8-4-11.7-2.2-4.2-5-8.1-8.4-11.3-3.5-3.4-7.7-6.2-12.1-8.2C90.7 2.2 87 1.1 83.1.5c-1.3-.2-2.7-.3-4-.4-.7-.1-1.5-.1-2.2-.1h-.6c-.7 0-1.5 0-2.2.1-1.4.1-2.7.2-4.1.4-3.8.6-7.5 1.7-11 3.3-4.4 2-8.4 4.7-11.9 8.1-3.6 3.4-6.5 7.4-8.7 11.8-1.1 2.1-2 4.3-2.7 6.6h-.3c-1.2.1-2.4.2-3.5.4-3.4.5-6.6 1.5-9.7 2.9-3.8 1.7-7.4 4.1-10.4 7C8.5 43.5 5.9 47 4 50.8 2.4 54 1.3 57.3.6 60.8c-.7 4-.8 8.1-.3 12.1.5 3.8 1.7 7.6 3.3 11 1.9 4 4.6 7.7 7.8 10.7 3.4 3.2 7.3 5.9 11.7 7.7 2.3 1 4.8 1.7 7.3 2.2 2.3.4 4.7.7 7.1.7 2.4 0 4.8-.2 7.1-.7 2.5-.5 4.9-1.2 7.3-2.2 4.3-1.8 8.3-4.4 11.7-7.7 2.8-2.7 5.2-5.9 7.1-9.3 2 .3 4 .4 6 .4 2.7 0 5.4-.3 8.1-.8 1.2-.2 2.4-.5 3.6-.8.2.6.5 1.2.8 1.7 1.5 3.1 3.6 5.9 6 8.2 2.6 2.5 5.7 4.5 9 5.9 1.8.7 3.7 1.3 5.6 1.7 1.8.3 3.6.5 5.5.5 1.8 0 3.5-.2 5.3-.5 2-.4 3.9-1 5.8-1.8 3.3-1.4 6.4-3.4 9-6 2.5-2.4 4.5-5.2 6-8.3 1.3-2.7 2.1-5.6 2.5-8.5.4-3.1.3-6.3-.3-9.3-.6-2.7-1.5-5.3-2.7-7.7zM58.2 89.2c-2.7 2.6-5.8 4.7-9.3 6.1-1.9.8-3.8 1.4-5.8 1.7-1.9.4-3.8.5-5.6.5-1.9 0-3.8-.2-5.6-.5-2-.4-3.9-1-5.8-1.7-3.4-1.4-6.6-3.5-9.3-6.1-2.6-2.5-4.7-5.5-6.3-8.7-1.3-2.8-2.2-5.7-2.6-8.8-.4-3.3-.3-6.7.3-10 .6-2.8 1.6-5.5 2.9-8 1.6-2.9 3.6-5.5 6-7.8 2.4-2.2 5.1-4 8-5.4 2.5-1.1 5.1-1.9 7.7-2.3.3-.1.7-.1 1-.1-.4 3.6-.4 7.2.1 10.8.6 4.4 1.9 8.6 3.8 12.6 2.2 4.6 5.2 8.7 8.9 12.3 1.9 1.8 4 3.5 6.2 5s4.6 2.7 7.1 3.8c.9.4 1.8.7 2.7 1-1.1 2-2.6 3.9-4.4 5.6zm8.9-17.5c-.2 1.6-.6 3.2-1.1 4.8-1-.3-2-.7-2.9-1.1-4.1-1.7-7.8-4.1-10.9-7.2-3.1-2.9-5.6-6.4-7.4-10.3-1.6-3.3-2.6-6.8-3.1-10.4-.4-3.1-.4-6.3 0-9.4l.4.1c2.7.4 5.3 1.2 7.7 2.3 3 1.3 5.7 3.2 8 5.4 2.5 2.3 4.5 5 6.1 7.9 1.3 2.5 2.3 5.1 2.8 7.9.7 3.3.9 6.7.4 10zm19.4-3.4c-.5 2.8-.6 5.7-.2 8.5-1 .3-2 .5-3.1.7-2.2.4-4.4.6-6.7.6-1 0-2 0-3-.1.5-1.7.8-3.3 1.1-5 .6-4 .5-8.1-.3-12.1-.6-3.5-1.8-6.9-3.4-10-1.9-3.8-4.5-7.3-7.6-10.3-3.1-2.9-6.6-5.3-10.4-7-3-1.4-6.1-2.3-9.4-2.8.6-1.5 1.2-3 2-4.4 1.8-3.4 4.2-6.5 7.1-9.2 2.8-2.6 6-4.8 9.5-6.3 2.9-1.3 6-2.2 9.1-2.7 1.1-.2 2.2-.3 3.3-.3.6 0 1.2-.1 1.8-.1h.5c.6 0 1.2 0 1.8.1l3.3.3c3.1.5 6.2 1.4 9.1 2.7 3.4 1.5 6.6 3.6 9.3 6.2 2.9 2.7 5.4 5.8 7.2 9.3 1.6 3 2.8 6.2 3.4 9.5.6 2.8.8 5.7.7 8.6-.5.1-1 .1-1.5.2-2.6.4-5.1 1.2-7.5 2.3-2.9 1.4-5.7 3.3-8 5.5-2.4 2.3-4.3 5-5.8 8-.9 2.4-1.8 5.1-2.3 7.8zm7.3 5.3c0-1.6.1-3.2.4-4.7.4-2 1.1-3.9 2-5.6 1.1-2.1 2.6-4 4.3-5.7 1.7-1.6 3.6-2.9 5.7-3.8 1.3-.6 2.8-1.1 4.2-1.4-.5 1.9-1.2 3.8-2.1 5.5a35.5 35.5 0 0 1-7.4 10.3c-2 2.1-4.5 3.9-7.1 5.4zm42.3 2.7c-.3 2.1-.9 4.2-1.9 6.1-1.1 2.3-2.6 4.4-4.5 6.2-1.9 1.8-4.2 3.3-6.6 4.3-1.3.5-2.7 1-4.1 1.2-1.3.2-2.7.4-4 .4-1.3 0-2.7-.1-4-.4-1.4-.3-2.8-.7-4.1-1.3-2.4-1-4.7-2.5-6.6-4.4-1.8-1.8-3.3-3.9-4.4-6.2-.1-.2-.2-.5-.3-.7 1.6-.8 3.2-1.7 4.7-2.7 2.2-1.5 4.3-3.1 6.2-5 3.7-3.5 6.7-7.7 8.9-12.3 1.4-3 2.5-6.1 3.2-9.3h.1c1.9.3 3.7.9 5.5 1.7 2.1 1 4 2.3 5.6 3.8 1.8 1.7 3.3 3.6 4.4 5.8.9 1.8 1.6 3.7 1.9 5.6.3 2.4.4 4.8 0 7.2zM274.3 80.5c-2 0-3.6 2.2-8.3 2.2-5.3 0-8.3-3.1-8.3-9.2V38.6h14.5c1.7 0 3-1.2 3-3s-1.3-3.1-3-3.1h-14.6V20.1c0-2.1-1.4-3.5-3.3-3.5-2.1 0-3.5 1.4-3.5 3.5v12.4h-6.9c-1.7 0-3 1.3-3 3 0 2 1.3 3.1 3 3.1h6.9v34.6c0 10.4 5.4 15.8 15.1 15.8 7.1 0 11-3.3 11-6-.1-1.4-.9-2.5-2.6-2.5zM421.5 31.2c-15.8 0-27.7 12.9-27.7 28.8s11.9 28.9 27.7 28.9c15.8 0 27.7-13 27.7-28.9 0-15.8-11.9-28.8-27.7-28.8zm.1 51.5c-12.1 0-21-10.3-21-22.7 0-12.5 8.9-22.4 21-22.4s20.8 9.9 20.8 22.4c0 12.4-8.7 22.7-20.8 22.7zM482.8 31.2c-15.8 0-27.7 12.9-27.7 28.8s11.9 28.9 27.7 28.9c15.8 0 27.7-13 27.7-28.9 0-15.8-11.9-28.8-27.7-28.8zm.2 51.5c-12.1 0-21-10.3-21-22.7 0-12.5 8.9-22.4 21-22.4s20.8 9.9 20.8 22.4c-.1 12.4-8.7 22.7-20.8 22.7zM549 31.2c-9.6 0-17.1 4.7-21.6 12v-7.5c0-2-1.4-3.3-3.5-3.3-2 0-3.3 1.4-3.3 3.3v65.2c0 2 1.4 3.5 3.3 3.5 2.1 0 3.5-1.5 3.5-3.5V76.8C532 84.2 539.6 89 549 89c15.3 0 27-12.6 27-28.8 0-16.2-11.4-29-27-29zm-.7 51.5c-12.1 0-20.9-9.9-20.9-22.4 0-12.5 8.8-22.7 20.9-22.7 12.2 0 20.9 10.3 20.9 22.7 0 12.4-8.6 22.4-20.9 22.4zM379.5 10.2c-2 0-3.3 1.4-3.3 3.3v70.9c0 2 1.4 3.3 3.3 3.3 2 0 3.5-1.4 3.5-3.3V13.6c-.1-2-1.6-3.4-3.5-3.4zM305.6 31.2c-15.8 0-27 12.9-27 28.8 0 16 11.8 29 28.4 29 11.8 0 20.4-5.5 20.4-9.3 0-1.5-1-2.5-2.7-2.5-2.6 0-6.2 5.8-17.5 5.8-12.2 0-20.9-9.2-21.7-21h41.9c2.9 0 4.5-1.7 4.5-4.5 0-12.9-9.7-26.3-26.3-26.3zm-20.1 25.7c1.3-11.2 9.1-19.7 19.9-19.7 10.4 0 18.4 7.4 19.6 19.7h-39.5zM359.3 33.8c-6 2.1-10.6 9.2-13.5 14.4V35.7c0-2-1.5-3.3-3.5-3.3s-3.3 1.4-3.3 3.3v48.8c0 2 1.4 3.3 3.3 3.3 2 0 3.5-1.4 3.5-3.3V62.6c0-10.3 11.3-23.3 17.8-22.1 3.4.6 5.2-1.8 5.2-3.5.1-3.3-4.1-5.1-9.5-3.2z"/></symbol><symbol id="svg-icons-customer-readme" data-name="icons-customer-readme" viewBox="0 0 576 103" width="576" height="103"><path d="M114.1 12.4H84c-10.6 0-19.4 7.4-21.7 17.3-2.2-9.9-11.1-17.3-21.7-17.3H10.5C4.7 12.4 0 17 0 22.8v53.1c0 5.8 4.7 10.5 10.5 10.5h19.4c22.1 0 28.6 5.3 31.8 16.2.1.3.3.4.6.4h.2c.2 0 .5-.1.6-.4 3.2-10.9 9.8-16.2 31.8-16.2h19.4c5.8 0 10.5-4.7 10.5-10.5V22.8c-.2-5.8-4.9-10.4-10.7-10.4zM52.3 69.6c0 .4-.3.8-.8.8H17c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm0-13.1c0 .4-.3.8-.8.8H17c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm0-13.2c0 .4-.3.8-.8.8H17c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm57 26.3c0 .4-.3.8-.8.8H73.9c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm0-13.1c0 .4-.3.8-.8.8H73.9c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm0-13.2c0 .4-.3.8-.8.8H73.9c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zM212.6 22c.8-.7.4-2-.6-2.2-2.9-.6-6.5-.9-8.6-.9-20.6 0-25.6 16.4-25.6 16.4h-.5v-14c0-1-.8-1.8-1.8-1.8h-18.9c-1 0-1.8.8-1.8 1.8v9.9c0 1.3.8 1.8 1.8 1.8h6.2v35.4h-4.5c-1.1 0-1.8.5-1.8 1.8v9.9c0 1.1.8 1.8 1.8 1.8H184c1 0 1.8-.8 1.8-1.8v-9.9c0-1-.8-1.8-1.8-1.8h-4.4V53c0-8.6 10.3-18.5 21.5-17.4.6.1 1.2-.3 1.4-.8 2.2-5.1 6.2-9.3 10.1-12.8zM511.9 68.6h-4.7V41.2c0-13-7.3-22.3-21-22.3-13.4 0-18 8.7-19.1 10.4-3-6.3-9.2-10.4-18.2-10.4-14 0-18.5 9.7-19.1 10.9h-.4v-7.3c0-2-.9-2.7-2.8-2.7h-9.1c-1.5 0-2.8 1.2-2.8 2.8v55.7c0 2.1 1.7 3.8 3.8 3.8H436c1 0 1.8-.8 1.8-1.8v-9.9c0-1.3-.6-1.8-1.8-1.8h-4.4V41.8c0 .1 1.9-8.2 11.1-8.2 8.1 0 10.4 5.3 10.4 13l-.1 34c0 .8.7 1.5 1.5 1.5h19.9c1 0 1.8-.6 1.8-1.8v-9.9c0-1.3-.6-1.8-1.8-1.8h-4.5V43.2c0-.6-.3-1.8-.4-2.4.8-1.9 3.3-7.2 10.5-7.2 8 0 10.4 5.3 10.4 13v29.6c0 3.2 2.6 5.8 5.8 5.8h15.6c1 0 1.8-.8 1.8-1.8v-9.9c.1-1.2-.5-1.7-1.7-1.7zM575.2 67l-6.1-6.6c-1-.9-2-.6-2.7.3-.8 1.1-7.3 8.1-17.6 8.1-8.1 0-15.7-4.7-16.8-15.2h41.5c1.1 0 2-.9 2-2 0-20.8-9.9-32.6-29.6-32.6-15.1 0-31.3 11.3-31.3 31.9 0 20.3 14.8 32.1 32.8 32.1 18 0 26.7-11.1 28-13.2.9-1 .7-1.8-.2-2.8zm-28.6-34.8c9 0 12.7 5.8 12.9 11.6h-27.2c1.4-7.9 7-11.6 14.3-11.6zM405.1 0h-18.6c-1.3 0-1.9.6-1.9 1.8v9.9c0 1.3.8 1.8 1.9 1.8h4.1v9.1c0 2.6.3 5.2.3 5.2h-.3c-1.1-2.4-6.1-9-17.5-9-17.6 0-28.9 13.2-28.9 31.8 0 20.6 12 32.3 28.5 32.3 11.9 0 18.1-7.7 19.1-10.3h.3v6.1c0 1.8 1.4 3.2 3.2 3.2h8.9c1.4 0 2.5-1.1 2.5-2.5V1.8c.2-1.2-.3-1.8-1.6-1.8zM376 68.6c-9.1 0-15.1-7.3-15.1-18.2 0-10.9 6.5-17.5 15.1-17.5 7.7 0 14.6 5.7 14.6 17.6-.1 11.8-6.4 18.1-14.6 18.1zM261 60.6c-1-.9-2-.6-2.7.3-.7 1.1-7.3 8.1-17.5 8.1-8.1 0-15.7-4.7-16.8-15.2h41.5c1.1 0 2-.9 2-2 0-20.8-9.9-32.6-29.6-32.6-15.1 0-31.3 11.3-31.3 31.9 0 20.2 14.8 32.1 32.8 32.1s26.7-11.1 28-13.2c.8-1 .6-1.8-.2-2.8l-6.2-6.6zm-22.5-28.2c9 0 12.7 5.8 12.9 11.6h-27.2c1.4-7.9 7-11.6 14.3-11.6zM340.8 68.8H336V21.9c0-1.1-.8-1.8-1.8-1.8h-11.4c-1.1 0-1.8.6-1.8 1.8v5.9h-.3c-1-2.3-6.7-8.9-18.7-8.9-16.4 0-28.5 11.8-28.5 32.3 0 18.7 10.8 31.9 28.3 31.9 12.4 0 17.5-7.7 19.2-12h.4v5.3c0 3.9 2 5.8 5.8 5.8h13.3c1 0 1.6-.6 1.6-1.8v-9.9c.3-1.2-.2-1.7-1.3-1.7zm-35.5.3c-8.6 0-15.1-6.8-15.1-17.6 0-11 6.1-18.1 15.1-18.1 8.1 0 14.6 6.1 14.6 18-.1 11.7-6.9 17.7-14.6 17.7z"/></symbol><symbol id="svg-icons-db-money" data-name="icons-db-money" viewBox="0 0 28.8 34.7" width="28" height="34"><path fill="url(#azure)" d="M14.4 28.1c-8 0-14.4-2.4-14.4-5.4v6.6c0 3 6.4 5.4 14.4 5.4s14.4-2.4 14.4-5.4v-6.6c0 3-6.5 5.4-14.4 5.4zM28.8 14zM0 14z"/><path fill="url(#azure)" d="M14.4 19.4C6.4 19.4 0 17 0 14v6.6c0 3 6.4 5.4 14.4 5.4s14.4-2.4 14.4-5.4V14c0 3-6.5 5.4-14.4 5.4z"/><ellipse fill="url(#azure)" opacity=".2" cx="14.4" cy="5.4" rx="14.4" ry="5.4"/><path fill="url(#azure)" d="M0 5.4zM28.8 5.4z"/><path fill="url(#azure)" opacity=".5" d="M14.4 10.7C6.4 10.7 0 8.3 0 5.4V12c0 3 6.4 5.4 14.4 5.4S28.8 15 28.8 12V5.4c0 2.9-6.5 5.3-14.4 5.3z"/><path fill="url(#white)" d="M4.1 31.1c0 .5-.3.6-.7.4s-.7-.8-.7-1.2.3-.6.7-.4.7.7.7 1.2zM4.1 28.7c0 .5-.3.6-.7.4s-.7-.8-.7-1.2.3-.6.7-.4c.4.1.7.7.7 1.2zM4.1 22.5c0 .5-.3.6-.7.4s-.7-.8-.7-1.2c0-.5.3-.6.7-.4s.7.7.7 1.2zM4.1 20.1c0 .5-.3.6-.7.4s-.7-.8-.7-1.2c0-.5.3-.6.7-.4s.7.7.7 1.2z"/><path fill="url(#azure)" d="M17.3 7.5c-1.2.6-2.4.8-3.5.8l-.3-1.1c.8 0 1.7-.1 2.5-.4l-1.6-.9c-1.4.3-3 .8-4.4 0-1-.6-1.1-1.6.1-2.5l-1-.6 1-.6 1 .6c.9-.4 2-.7 3-.7l.3 1.1c-.7 0-1.4.2-2 .4l1.5.8c1.3-.5 2.9-.9 4.4-.1 1.2.7 1.3 1.7-.1 2.6l.9.5-1 .6-.8-.5zm-4.6-2.6l-1.3-.7c-.4.2-.4.5 0 .7.3.2.7.1 1.3 0zm2.8.5l1.4.8c.4-.4.4-.7 0-.9-.3-.2-.8-.1-1.4.1z"/><g fill="url(#azure)" opacity=".2"><path d="M1.5 7.7v6.6c.3.2.6.4 1 .6V8.4c-.4-.2-.7-.4-1-.7z"/><path class="st1" d="M6.5 9.8v6.6c.3.1.7.2 1 .2V10c-.3 0-.7-.1-1-.2zM3.5 8.9v6.6c.3.1.6.3 1 .4V9.3c-.4-.2-.7-.3-1-.4zM21.3 10.1v6.6c.3-.1.7-.1 1-.2V9.8c-.3.1-.7.2-1 .3zM28.8 12V5.4c0 .5-.2.9-.5 1.4v6.6c.3-.5.5-1 .5-1.4zM11.5 10.6v6.6c.3 0 .7 0 1 .1v-6.6c-.3 0-.7-.1-1-.1zM26.3 8.4V15c.4-.2.7-.4 1-.6V7.7c-.3.3-.6.5-1 .7zM24.3 9.3v6.6c.4-.1.7-.3 1-.4V8.9c-.3.1-.7.2-1 .4zM16.3 10.7v6.6c.3 0 .7 0 1-.1v-6.6c-.3 0-.7.1-1 .1z"/></g></symbol><symbol id="svg-icons-money-stack" data-name="icons-money-stack" viewBox="0 0 28.8 34.7" width="28" height="34"><ellipse fill="url(#azure)" opacity="0.2" cx="14.4" cy="5.4" rx="14.4" ry="5.4"/><polygon fill="url(#azure)" opacity="0.5" points="0,5.4 0,5.4 0,5.4 "/><polygon fill="url(#azure)" opacity="0.5" points="28.8,5.4 28.8,5.4 28.8,5.4 "/><path fill="url(#azure)" opacity="0.5" d="M14.4,10.7C6.4,10.7,0,8.3,0,5.4V12c0,3,6.4,5.4,14.4,5.4s14.4-2.4,14.4-5.4V5.4 C28.8,8.3,22.3,10.7,14.4,10.7z"/><path fill="url(#azure)" d="M17.3,7.5c-1.2,0.6-2.4,0.8-3.5,0.8l-0.3-1.1c0.8,0,1.7-0.1,2.5-0.4l-1.6-0.9 C13,6.2,11.4,6.7,10,5.9c-1-0.6-1.1-1.6,0.1-2.5l-1-0.6l1-0.6l1,0.6c0.9-0.4,2-0.7,3-0.7l0.3,1.1c-0.7,0-1.4,0.2-2,0.4l1.5,0.8 c1.3-0.5,2.9-0.9,4.4-0.1C19.5,5,19.6,6,18.2,6.9l0.9,0.5l-1,0.6L17.3,7.5z M12.7,4.9l-1.3-0.7C11,4.4,11,4.7,11.4,4.9 C11.7,5.1,12.1,5,12.7,4.9z M15.5,5.4l1.4,0.8c0.4-0.4,0.4-0.7,0-0.9C16.6,5.1,16.1,5.2,15.5,5.4z"/><g fill="url(#azure)" opacity="0.2"><path d="M1.5,7.7v6.6c0.3,0.2,0.6,0.4,1,0.6V8.4C2.1,8.2,1.8,8,1.5,7.7z"/><path d="M6.5,9.8v6.6c0.3,0.1,0.7,0.2,1,0.2v-6.6C7.2,10,6.8,9.9,6.5,9.8z"/><path d="M3.5,8.9v6.6c0.3,0.1,0.6,0.3,1,0.4V9.3C4.1,9.1,3.8,9,3.5,8.9z"/><path d="M21.3,10.1v6.6c0.3-0.1,0.7-0.1,1-0.2V9.8C22,9.9,21.6,10,21.3,10.1z"/><path d="M28.8,12V5.4c0,0.5-0.2,0.9-0.5,1.4v6.6C28.6,12.9,28.8,12.4,28.8,12z"/><path d="M11.5,10.6v6.6c0.3,0,0.7,0,1,0.1v-6.6C12.2,10.7,11.8,10.6,11.5,10.6z"/><path d="M26.3,8.4V15c0.4-0.2,0.7-0.4,1-0.6V7.7C27,8,26.7,8.2,26.3,8.4z"/><path d="M24.3,9.3v6.6c0.4-0.1,0.7-0.3,1-0.4V8.9C25,9,24.6,9.1,24.3,9.3z"/><path d="M16.3,10.7v6.6c0.3,0,0.7,0,1-0.1v-6.6C17,10.6,16.6,10.7,16.3,10.7z"/><path class="st2" d="M0,12c0,0.5,0.2,0.9,0.5,1.4V6.7C0.2,6.3,0,5.8,0,5.4V12z"/></g><polygon fill="url(#azure)" points="0,14 0,14 0,14 "/><polygon fill="url(#azure)" points="28.8,14 28.8,14 28.8,14 "/><path fill="url(#azure)" opacity="0.5" d="M14.4,19.4C6.4,19.4,0,17,0,14v6.6c0,3,6.4,5.4,14.4,5.4s14.4-2.4,14.4-5.4V14 C28.8,17,22.3,19.4,14.4,19.4z"/><g fill="url(#azure)" opacity="0.2"><path d="M1.5,16.4V23c0.3,0.2,0.6,0.4,1,0.6V17C2.1,16.8,1.8,16.6,1.5,16.4z"/><path d="M6.5,18.5v6.6c0.3,0.1,0.7,0.2,1,0.2v-6.6C7.2,18.7,6.8,18.6,6.5,18.5z"/><path d="M3.5,17.5v6.6c0.3,0.1,0.6,0.3,1,0.4v-6.6C4.1,17.8,3.8,17.7,3.5,17.5z"/><path d="M21.3,18.7v6.6c0.3-0.1,0.7-0.1,1-0.2v-6.6C22,18.6,21.6,18.7,21.3,18.7z"/><path d="M28.8,20.6V14c0,0.5-0.2,0.9-0.5,1.4V22C28.6,21.6,28.8,21.1,28.8,20.6z"/><path d="M11.5,19.3v6.6c0.3,0,0.7,0,1,0.1v-6.6C12.2,19.3,11.8,19.3,11.5,19.3z"/><path d="M26.3,17v6.6c0.4-0.2,0.7-0.4,1-0.6v-6.6C27,16.6,26.7,16.8,26.3,17z"/><path d="M24.3,17.9v6.6c0.4-0.1,0.7-0.3,1-0.4v-6.6C25,17.7,24.6,17.8,24.3,17.9z"/><path d="M16.3,19.3v6.6c0.3,0,0.7,0,1-0.1v-6.6C17,19.3,16.6,19.3,16.3,19.3z"/><path class="st2" d="M0,20.6c0,0.5,0.2,0.9,0.5,1.4v-6.6C0.2,15,0,14.5,0,14V20.6z"/></g><polygon class="st2" points="0,22.7 0,22.7 0,22.7 "/><polygon class="st2" points="28.8,22.7 28.8,22.7 28.8,22.7 "/><path fill="url(#azure)" opacity="0.5" d="M14.4,28.1C6.4,28.1,0,25.7,0,22.7v6.6c0,3,6.4,5.4,14.4,5.4s14.4-2.4,14.4-5.4v-6.6 C28.8,25.7,22.3,28.1,14.4,28.1z"/><g fill="url(#azure)" opacity="0.2"><path d="M1.5,25.1v6.6c0.3,0.2,0.6,0.4,1,0.6v-6.6C2.1,25.5,1.8,25.3,1.5,25.1z"/><path d="M6.5,27.2v6.6c0.3,0.1,0.7,0.2,1,0.2v-6.6C7.2,27.3,6.8,27.3,6.5,27.2z"/><path d="M3.5,26.2v6.6c0.3,0.1,0.6,0.3,1,0.4v-6.6C4.1,26.5,3.8,26.3,3.5,26.2z"/><path d="M21.3,27.4V34c0.3-0.1,0.7-0.1,1-0.2v-6.6C22,27.3,21.6,27.3,21.3,27.4z"/><path d="M28.8,29.3v-6.6c0,0.5-0.2,0.9-0.5,1.4v6.6C28.6,30.2,28.8,29.8,28.8,29.3z"/><path d="M11.5,28v6.6c0.3,0,0.7,0,1,0.1V28C12.2,28,11.8,28,11.5,28z"/><path class="st2" d="M0,29.3c0,0.5,0.2,0.9,0.5,1.4v-6.6C0.2,23.6,0,23.2,0,22.7V29.3z"/><path d="M26.3,25.7v6.6c0.4-0.2,0.7-0.4,1-0.6v-6.6C27,25.3,26.7,25.5,26.3,25.7z"/><path d="M24.3,26.6v6.6c0.4-0.1,0.7-0.3,1-0.4v-6.6C25,26.3,24.6,26.5,24.3,26.6z"/><path d="M16.3,28v6.6c0.3,0,0.7,0,1-0.1V28C17,28,16.6,28,16.3,28z"/></g></g></symbol><symbol id="svg-icons-notepad" data-name="icons-notepad" viewBox="0 0 28.9 34.6" width="28" height="34"><path fill="url(#azure)" opacity=".5" d="M0 5.9h28.9v5.3H0z"/><path fill="url(#azure)" opacity=".2" d="M0 11.2h28.9v23.4H0z"/><path fill="url(#azure)" opacity=".2" d="M2.2 27.6H15v1H2.2zM2.2 21.5h24v1h-24zM2.2 15.4h24v1h-24z"/><path fill="url(#azure)" opacity=".2" d="M8.6 28.1l.4-2.5.4-2.5 1.1.1.6.9 1.1.2.6.9-2.1 1.4z"/><path fill="url(#azure)" d="M9.4 23.1l1.1.1.6.9 1.1.2.6.9L25.6 5l-3.4-2.1L9.4 23.1zM8.6 28.1l.9-.6-.7-.5z"/><path fill="url(#azure)" opacity=".2" transform="rotate(32.363 24.126 3.547)" d="M22 3.1h4.3V4H22z"/><path fill="url(#azure)" opacity=".5" transform="rotate(32.363 25.034 2.115)" d="M23 .9h4v2.5h-4z"/></symbol><symbol id="svg-icons-notepad2" data-name="icons-notepad2" viewBox="0 0 29.8 28.7" width="29" height="28"><path fill="url(#azure)" opacity=".5" d="M0 0h22.9v5.3H0z"/><path fill="url(#azure)" opacity=".2" d="M0 5.3h22.9v23.4H0zM27.5 28.7l-.9-2.4-1-2.3 1-.4 1 .4 1-.4 1 .4-1 2.3z"/><path fill="url(#azure)" d="M25.6 24l1-.4 1 .4 1-.4 1 .4V3.4h-4V24z"/><path fill="url(#azure)" opacity=".2" d="M27.5 28.7l.5-1h-.9z"/><path fill="url(#azure)" opacity=".2" transform="rotate(.19 27.64 2.94)" d="M25.5 2.5h4.3v.9h-4.3z"/><path fill="url(#azure)" opacity=".5" transform="rotate(.19 27.645 1.244)" d="M25.6 0h4v2.5h-4z"/><path fill="url(#azure)" opacity=".2" d="M2.2 23.1H15v1H2.2zM2.2 18.5h18v1h-18zM2.2 14h18v1h-18zM2.2 9.4h18v1h-18z"/></symbol><symbol id="svg-icons-one-click" data-name="icons-one-click" viewBox="0 0 30 35" width="30" height="35"><path fill="url(#azure)" opacity=".6" d="M26.158 9.76l-5.703 5.702 2.197 2.197 3.506-3.506v8.343l-13.079 7.673-1.851-1.086 3.134-3.134-2.197-2.196-3.706 3.706L0 22.496V7.499l4.849 2.78-.032.032 7.348 7.348 2.197-2.197-.763-.763 2.256-1.293v1.438h3.107v-3.219l7.196-4.126V9.76zM11.547 22.259v-3.106H1.155v3.106h10.392z"/><path fill="url(#azure)" opacity=".3" d="M0 7.499L13.079 0l13.079 7.499-7.196 4.126V4.452h-3.107v8.954l-2.256 1.293-6.585-6.585-2.165 2.165L0 7.499z"/><path fill="url(#azure)" d="M23.518 31.263l2.954 3.599 1.695-1.416-2.83-3.507L30 28.24l-12.68-7.857L20.702 35l2.816-3.737z"/><path fill="url(#azure)" opacity=".8" d="M8.459 27.459l2.769 1.624-4.214 4.214-2.197-2.196 3.642-3.642zM26.158 9.76l1.645-1.646L30 10.311l-3.842 3.842V9.76z"/></symbol><symbol id="svg-icons-reliability" data-name="icons-reliability" viewBox="0 0 30 35" width="30" height="35"><path fill="url(#azure)" opacity=".67" d="M30 31.508L24.02 35 18 31.508v-6.943l6.02 3.492L30 24.565v6.943z"/><path fill="url(#azure)" opacity=".33" d="M18 24.565l6.02 3.492L30 24.565l-5.98-3.452L18 24.565z"/><path fill="url(#azure)" opacity=".67" d="M12 31.508L6.02 35 0 31.508v-6.943l6.02 3.492L12 24.565v6.943z"/><path fill="url(#azure)" opacity=".33" d="M0 24.565l6.02 3.492L12 24.565l-5.98-3.452L0 24.565z"/><path fill="url(#azure)" opacity=".67" d="M26 19.057l-10.963 6.401L4 19.057V6.327l11.037 6.402L26 6.327v12.73z"/><path fill="url(#azure)" opacity=".33" d="M4 6.327l11.037 6.402L26 6.327 15.037 0 4 6.327z"/><path fill="url(#azure)" d="M5.44 16.751l1.025.613V25l-1.025-.647v-7.602zM24.483 16.751l-1.025.613V25l1.025-.647v-7.602z"/><path fill="url(#azure)" d="M5.44 16.751l1.025.613 3.545-2.069-.975-.563-3.595 2.019zM24.483 16.751l-1.025.613-3.544-2.069.975-.563 3.594 2.019z"/></symbol><symbol id="svg-icons-datacenters" data-name="icons-datacenters" viewBox="0 0 30 35" width="30" height="35"><path fill="url(#azure)" opacity=".25" d="M29.9 25.9L15 34.6 0 25.9V8.6L15 0l14.9 8.6v17.3z"/><path fill="url(#azure)" d="M16.222.705l1.054.609-.167.27.413.13-.001.637.297-.486.265.401-.067.447.215.395.231-.423.162-.523.001-.07.801.463-.002.004.156.317-.028.283-.434.395-.309.086-.23-.168-.066.279-.214.457-.064.231-.258.35-.317.034-.175.214-.015.323-.258.061-.271.391-.241.526-.086.357-.012.511.326.072.1.398.103.315.311-.081.412.178.221.154.16.19.277.109.235.166.367.023.241.037-.036.334.068.38.161.412.33.341.171-.116.12-.373-.115-.59-.157-.202.355-.182.252-.276.122-.279-.018-.273-.15-.354-.27-.32.262-.459-.097-.408-.074-.732.154-.112.381.132.228.046.183-.126.207.163.273.274.067.181.396.035-.006.383.073.557.203.068.16.252.322-.237.212-.482.147-.208.172.397.289.549.245.499-.089.256.295.225.199.225.354.101.143.123.087.323.173.05.089.141.016.414-.161.137-.159.126-.366.127-.279.288-.375.057-.475-.074-.333-.002-.23.024-.186.248-.282.151-.32.445-.255.303.188-.054.356-.434.465-.282.332-.034.196.167-.21.225.071.356.073.245.288.16.366-.046.222-.364.023.233.144.116-.275.209-.491.188-.22.126-.248.222-.169-.022-.008-.263.385-.259-.355.01-.247.038-.145-.179v-.44l-.099-.095-.007.002.099.095.002.443.145.18.038.103-.236.151-.228.107-.234.092-.118.181-.038.069-.002.16.074.159.091.007-.023-.109.067.067-.017.085-.15.049-.107-.006-.164.052-.096.015-.129.015-.185.085.326-.056.065.056-.311.089h-.141l.006-.036-.067.082.066.013-.049.209-.161.222-.017-.073-.049-.016-.073-.071.046.154.056.051.003.108-.071.11-.125.224-.021-.011.069-.191-.113-.109-.026-.237-.043.124.047.18-.146-.044.153.09.009.268.063.019.023.096.031.276-.141.202-.229.08-.146.158-.11.018-.113.098-.031.089-.244.172-.125.126-.105.154-.034.185.04.179.074.219.099.18.002.109.105.291-.007.167-.01.097-.055.151-.066.031-.11-.03-.034-.107-.085-.057-.118-.214-.103-.191-.033-.098.046-.168-.063-.139-.173-.214-.086-.039-.224.116-.04-.012-.107-.12-.14-.064-.25.033-.197-.029-.17.018-.092.04.04.068-.004.104.048.05-.042.034-.083-.038-.083.049-.16-.008-.166-.135-.194.032-.161-.059-.138.018-.186.06-.202.189-.221.109-.121.121-.051.113-.003.172.011.12.039.078h.001l-.001.001.003.005-.005.001-.083.209-.039.176-.017.326-.021.117.039.131.068.117.045.184.147.176.051.135.087.116.236.063.092.097.195-.065.168-.023.166-.043.14-.04.141-.096.053-.138.018-.199.039-.069.15-.063.235-.055.196.008.134-.02.053.05-.007.115-.119.141-.052.145.04.04-.033.102-.056.183-.056-.06-.046.004v.034l.042.001-.003.064-.036.101.019.036-.022.084.013.021-.025.118-.044.062-.04.007-.045.08.073.042.019-.035.065.029.023.01.049-.041.063-.003.021.019.035-.012.103.021.103-.006.071-.026.026-.025.07.012.053.016.058-.006.044-.02.102.032.035.005.068.043.064.052.08.035.059.064-.019.022-.011.051.022.084-.051.078-.023.091-.008.102.012.058.006.103-.034.022-.021.097.015.06L19 21l.012.061.033.038.057.122.085.091.105.097.079.08-.005.048.089.01.021-.019.061.056.109-.017.094-.056.135-.046.076-.067.122.013-.008.022.124.008.099.04.072.066.084.063.114.007.167-.157.091-.024.002-.074.041-.191.127-.105.14-.004.017-.047.174.018.175-.114.086-.051.107-.109.079.013.058.06-.043.077-.006.053-.131.026.073.103-.003.119-.097.131.084.179.095-.015.05-.162-.069-.08-.011-.171.276-.092-.03-.107.077-.072.08.16.156.004.144.125.009.075.198.002.238-.023.127.101.169.028.125-.07.002-.057.275-.014.266-.003-.188.067.075.107.178.016.168.111.035.18.116-.005.087.053.146.082.137.146.006.116.084.006.118.108.088.078.266.045.024-.041.179-.016.239.061-.116.191v.001l.116-.192.075.025.163.052.235.188.036.091-.131.204-.067.164.068-.164.131-.204.076-.01.054.123.125.389.118.037.007.153-.167.182.069.067.392.035.008.223.169-.146.279.08.368.136.108.13-.036.123.258-.069.432.118.331-.009.328.185.283.249.171.064.19.01.081.07.075.284.037.135-.089.372-.113.147-.312.314-.142.256-.026.031-7.135 4.166-.008-.087.079-.232.146-.236.157-.155-.067-.098.047-.08-.007-.41.241-.12.076-.252-.027-.061.185-.217.287.058-.291-.059-.184.217-.001.001.027.06-.076.252-.241.12.007.41-.047.08.067.098-.157.156-.146.236-.079.231.008.091-.341.198.033-.103-.027-.315.129-.309.041-.482.071-.508.07-.538-.017-.388-.046-.331.114-.06.059-.119.109.158.029.169.116.1-.069.229.119.266-.118-.266.069-.229-.116-.1-.029-.169-.11-.159-.059.12-.114.059-.222-.134-.02-.096-.439-.232-.398-.253-.172-.142-.092-.189.037-.066-.188-.299-.219-.418-.209-.448-.091-.103-.069-.164-.173-.147-.158-.09.072-.1-.108-.213.069-.155.177-.142.118-.165-.048-.098-.085.104-.133-.098.045-.062-.037-.202.078-.034.041-.138.084-.143-.016-.09.122-.048.152-.089-.03-.069.083-.017-.01-.111.052-.08.11-.015.094-.14.085-.116-.083-.054.042-.129-.05-.204.048-.058-.035-.189-.09-.12-.074-.064-.047-.122.054-.059-.056-.016-.041-.074-.111-.062-.097.014-.044.079-.091.055-.048.008-.021.047.105.122-.06.028-.033.034-.102.011-.039-.134-.029.038-.073-.012-.045-.091-.091-.015-.057-.026h-.095l-.007.049-.026-.034-.12-.05-.045-.047.025-.039-.008-.05-.061-.054-.087-.044-.077-.028-.014-.067-.059-.04.014.066-.044.053-.051-.062-.071-.022-.03-.046.002-.068.029-.072-.063-.032.051-.043-.077-.072-.103-.091-.049-.077-.094-.071-.111-.103.024-.035.037.034.017-.016-.038-.071-.068-.02-.025.053-.128-.003-.08-.022-.092-.045-.123-.014-.062-.05-.114-.04-.139-.004-.101-.045-.12-.094-.25-.248-.115-.075-.181-.061-.124.017-.179.087-.111.023-.157-.061-.166-.044-.207-.106-.167-.033-.251-.108-.185-.111-.056-.063-.125-.013-.227-.074-.092-.107-.239-.133-.11-.149-.053-.116.073-.023-.023-.068.052-.061.001-.083-.075-.107-.02-.096-.075-.121-.195-.241-.223-.19-.108-.153-.191-.1-.04-.061.034-.153-.113-.058-.132-.121-.055-.175-.119-.021-.129-.132-.104-.124-.009-.079-.12-.193-.078-.198.003-.1-.161-.103-.073.011-.127-.071-.036.106.037.124.021.194.077.106.165.176.036.06.034.018.028.087.04-.004.045.163.067.064.047.088.14.128.074.23.065.108.062.115.012.129.107.008.089.111.081.108-.006.043-.093.089-.04-.001-.058-.147-.145-.138-.16-.118-.114-.063.007-.179-.033-.134-.106-.077-.153-.11-.029.031-.055-.065-.137-.06-.131-.146.016-.019.091.015.082-.095.009-.114-.171-.181-.13-.071-.082-.16-.082-.169-.103-.208-.088-.231h-.001l-.038-.135-.144-.153-.103-.032-.025-.077-.124-.013-.079-.073-.206-.026-.056-.044-.027-.149-.215-.275-.185-.387.008-.065-.099-.094-.171-.238-.031-.235-.118-.159.048-.243-.008-.255-.071-.232.087-.288.027-.282.027-.286-.04-.432-.071-.282-.065-.154.027-.066.321.113.118.312.054-.087-.035-.272-.076-.276h6.141v-.008h-6.164l-.429-.338-.158-.15-.402-.146-.124-.315.032-.223-.284-.156-.039-.3-.268-.275L8.65 8.9l.086-.131-.092.134-.121-.146-.196-.125-.062-.347-.286-.33-.119-.394-.213-.027-.353-.01-.261-.123-.458-.45-.213-.083-.387-.159-.307.038-.436-.206-.264-.194-.246.096.046.314-.123.028-.256.093-.195.148-.246.093-.032-.259.1-.441.235-.141-.046-.089 2.122-1.216-.001 1.639.218.013.216.124.156.195.197.287.216-.243.222-.143.118.227.149.178.204.193.138.302.227.469.378.256.006.246.002-.003-.006-.249-.377-.255-.227-.469-.139-.302-.203-.193-.15-.178-.118-.227-.222.142-.216.244-.197-.288-.155-.194-.216-.124-.219-.014.001-1.635 5.167-2.962.023.01.306.105.217-.04.299.311-.312.299.402.127.599-.07.189-.104.236.353.242-.297-.227-.254.144-.208.269-.028.178-.062.178.147.224.328.247-.048.392.267.344-.093.324.014-.026-.372.197-.106.344.206-.002.558.141-.469.179.016.1-.615-.237-.392-.259-.262.015-.625zm9.532 22.382l-.03-.062h-.001l.031.062zm-.189-.151l-.057.093.001.001.056-.094zm-1.645-1.797l.128-.029.047.008-.009.168-.185.025-.041-.02.065-.062-.005-.09zm-2.372-1.712l-.104.016-.135-.017-.104.044-.12-.073.02-.076.204.033.168.019.08-.053-.101-.101.001-.09-.14-.037.05-.065.135.01.193.038.027-.041.174.002.131.06.059-.006.04.084.121-.005-.007.07.099.009.109.086-.082.096-.106-.052-.102.01-.072-.011-.041.043-.085.014-.033-.057-.074.034-.089.16-.057-.037-.012-.067-.147-.04zm-1.153-.064l.15.02.118.057.036.064-.156.004-.067.039-.124-.038-.127-.085.026-.054.094-.015.05.008zm2.505-.006l.113.021.04.046-.057.059-.167-.002-.129.008-.013-.099.031-.035.182.002zm-3.547-1.112l.192.017.174.002.208.083.089.088.207-.027.078.056.189.149.137.108.073-.004.133.049-.017.067.164.01.168.097-.026.055-.148.03-.15.012-.152-.019-.318.023.149-.132-.09-.062-.143-.016-.077-.068-.053-.136-.125.009-.207-.064-.067-.05-.289-.037-.077-.048.083-.059-.218-.012-.159.124-.092.003-.032.059-.109.027-.095-.023.117-.075.047-.087.101-.053.113-.047.169-.023.053-.026zm1.05-.139l-.054.012-.056-.141-.084-.071.049-.155.066.009.078.204.001.142zm.119-.696l-.038.177-.041-.032.004-.13-.1-.098-.001-.029.176.112zm-.182.003l-.242.04-.016-.092.105-.02.146.007.007.065zm-8.189-1.567l-.019.045.003.001.019-.046h-.003zm7.944-2.903l-.186.036-.109.038-.059.047-.122-.03-.065.014-.098.084-.164.096-.122-.019.049-.106.104-.166.143-.101.019-.086-.012-.147.106-.173-.029-.198.113.194.18.043.071-.103-.144-.243-.072-.1-.198-.062-.18-.033-.168-.003-.167-.04-.043-.072-.042.048-.059-.01.046-.11-.093-.04.038-.125-.088-.096.039-.094-.249-.05-.075-.19-.053-.046-.153-.008-.206-.068-.05.044-.049.082-.126.052-.09.133-.273-.087-.18.044-.215-.104-.226-.053-.155-.021-.069-.058-.04-.187-.075.002v.007l.068-.002.04.188.069.057.155.021.226.053.215.104.18-.044.273.087-.226.109-.158.132-.15.138-.001.048.222-.068.136.111.171-.083.178-.106.197-.109-.072.173.126.042.156.123.197-.071.218-.029.046.091.068.012.06.011.111.128-.196.029-.007-.002-.175-.033-.173.064-.151.028-.132.205-.087.114.03.036.163-.202.033-.001-.116.241-.049.217-.042.173.027.15-.006.075.002.078.06.158.02.019.075-.001.061-.033.045-.041.09-.147.006-.2-.073-.19.011-.131.057-.153.056-.105.088-.076.021.106.04-.155.049-.032.03-.121.189.063.164.124.019.143-.021.142-.122.125.011.077.045.003.137-.136.083.031.039.179.011.125-.104.167-.049.105-.076.116.137.061.11.015.161-.04.131-.082.114-.041.167-.087.192-.181-.004-.029v-.001zm.577-.359l-.001-.002-.048-.023-.07.043-.062.068-.098-.059-.187.043-.157.044-.067.037-.067.105.089.029.068-.016.01-.003.098-.033.174.011.182.026.166-.101-.013-.121-.023-.043.006-.005zm1.068-.276h-.402l-.337.003-.004.002.334-.002h.409v-.003zm.093-.091l.003-.002-.067.015v.001l.064-.014zm1.648-.4l.161.043.206-.009-.11.133-.082.021-.281-.137-.056-.108.084-.101.078.158zm2.374-.529l-.028-.178-.155.057.068-.248-.221-.105-.102.084-.197-.094.077-.121-.148-.074-.145.117.147-.304.119-.224.042-.097-.103-.016-.192.124-.138.202-.229.551-.186.204.097.091-.139.118.034.098.431.01.238-.02.213.081-.157.154.132.011.257-.286.062.043-.048.268.145.062.101-.012.093-.288-.068-.208zm-3.608.239l.07.083.007-.003-.073-.086-.004.006zm-12.044-.357l-.092-.186-.221-.141-.11-.164-.075-.119-.209-.037-.136-.053-.233-.077-.019.081.086.19.228.062.04.098.198.12.067.12.364.154.112-.048zm13.683-.263l-.227-.144-.292-.087-.076.03.206.162.287.107.108-.006-.006-.062zM8.163 9.196l.212-.03-.065.426.193.295h-.089l-.134-.168-.082-.17-.112-.116-.041-.165.013-.121.105.049zM4.084 6.258l-.176.161-.151.3-.32.315.162.211-.209.308-.238.176-.223.127-.054.182-.347.21-.07.188-.26.17-.152-.03-.207.11-.226.133-.184.13-.381.11-.034-.065.243-.181.216-.12.237-.216.275-.045.109-.164.308-.243.05-.083.164-.145.038-.319.113-.253-.256.131-.071-.075-.12.156-.08-.121 1.844-1.058zM3.61 7.627l-.119.063-.202.149.034.193.113.105.222-.155.192-.197-.094-.13-.146-.028z"/></symbol><symbol id="svg-icons-health" data-name="icons-health" viewBox="0 0 34 34" width="34" height="34"><path fill="url(#azure)" opacity=".5" d="M22 12h12v10H22v12H12V22H0V12h12V0h10v12z"/><path fill="url(#azure)" d="M6.776 31.454A17.809 17.809 0 0 1 1 24.589h2.965a15.17 15.17 0 0 0 4.129 4.582l.831-1.438 1.113 4.154L5.884 33l.892-1.546zm24.678-4.23A17.809 17.809 0 0 1 24.589 33v-2.965a15.132 15.132 0 0 0 4.582-4.129l-1.438-.831 4.154-1.113L33 28.116l-1.546-.892zM2.546 6.776A17.809 17.809 0 0 1 9.411 1v2.965a15.17 15.17 0 0 0-4.582 4.129l1.438.831-4.154 1.113L1 5.884l1.546.892zM33 9.411h-2.965a15.17 15.17 0 0 0-4.129-4.582l-.831 1.438-1.113-4.154L28.116 1l-.892 1.546A17.809 17.809 0 0 1 33 9.411z"/></symbol></svg>')
|
5
|
+
document.querySelector("#esvg-svg-icons")||document.querySelector("body").insertAdjacentHTML("afterbegin",'<svg id="esvg-svg-icons" data-symbol-class="svg-symbol" data-prefix="svg" version="1.1" style="height:0;position:absolute"><symbol id="svg-icons-compose-logomark" data-name="icons-compose-logomark" viewBox="0 0 210 120" width="210" height="120" fill="currentColor"><path d="M158.1 23.1h-.1L119.2.5 80.9 22.8 41.6 0 0 24.2v44L80.3 115l38.4-22.2 39.4 22.8L200 91.4v-44l-41.9-24.3zm-.2 45.1L125 49.1l33.2-19.4L191.1 49l-33.2 19.2zM80 29.4l33.2 19.2-32.8 19.1-33.1-19.3 32.7-19zm72.2-3l-32.5 18.9-33.1-19.2 32.6-19 33 19.3zm-77.5-.6L68 29.7 40.9 45 8.6 25.8 41.7 6.6l33 19.2zM5.8 30.6l32.5 19.6v34.6L5.8 65V30.6zm39 23l32.5 19.3v34.5L44.8 88.1V53.6zm77.3.4l33.1 19.5v34.2L122.1 88V54z"/><g opacity=".5"><path d="M44.8 88.2l32.5 19.1V72.9L44.8 53.6zM5.8 64.9l32.5 19.8V50.2L5.8 30.6zM122.1 88.1l33.1 19.7V73.5L122.1 54z"/></g></symbol><symbol id="svg-icons-deployment" data-name="icons-deployment" viewBox="0 0 176 201" width="176" height="201" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M88 5.985l82.272 47.5v95L88 195.985l-82.272-47.5v-95L88 5.985z"/></symbol><symbol id="svg-icons-facebook" data-name="icons-facebook" viewBox="0 0 38 38" width="38" height="38"><path d="M21.4 12.8h2.1V9.4h-2.7c-2.9 0-4.2 1.3-4.2 3.7v2.6h-2V19h2v9.6h3.9v-9.7h2.7l.3-3.2h-3v-1.8c0-.8.2-1.1.9-1.1z"/></symbol><symbol id="svg-icons-github" data-name="icons-github" viewBox="0 0 38 38" width="38" height="38"><path d="M23 35.9v-4.5c0-1.6-.5-2.5-1.1-3 3.6-.4 7.5-1.8 7.5-8.1 0-1.8-.6-3.3-1.7-4.4.2-.4.7-2.1-.2-4.3 0 0-1.4-.4-4.5 1.6-1.3-.3-2.7-.5-4.2-.5-1.4 0-2.8.2-4.2.5-3.1-2.1-4.5-1.6-4.5-1.6-.9 2.3-.3 3.9-.2 4.3-1 1.1-1.7 2.6-1.7 4.4 0 6.3 3.8 7.7 7.4 8.1-.4.4-.9 1.1-1 2.2-1 .4-3.3 1.1-4.8-1.4 0 0-.9-1.6-2.5-1.7 0 0-1.6 0-.1 1 0 0 1 .5 1.8 2.4 0 0 1 2.9 5.5 1.9v3c0 .4-.3 1-1 .8 1.6.5 3.4.9 5.2.9 1.8 0 3.5-.3 5.2-.9-.6.3-.9-.2-.9-.7z"/></symbol><symbol id="svg-icons-google-plus" data-name="icons-google-plus" viewBox="0 0 38 38" width="38" height="38"><path d="M10.6 24c0 2 2.3 3.2 5.1 3.2 3.9 0 5.4-2.1 5.4-3.7 0-1.4-.5-2.3-2-3.4-1.6-1.1-1.9-1.8-.5-2.9.8-.6 1.4-1.5 1.4-2.6 0-1.2-.5-2.2-1.4-2.7h1.3l1.1-1.1h-4.8c-3 0-4.5 1.8-4.5 3.8s1.4 3.6 4.1 3.6c-.4.9-.3 1.6.4 2.2-4.6 0-5.6 2-5.6 3.6zm3-9.5c-.3-1.7.6-3 1.9-3s2.4 1.4 2.6 3.1c.2 1.7-.5 2.8-1.7 2.8-1.3 0-2.6-1.2-2.8-2.9zm2.4 6.3c2.2.1 3.4 1.4 3.4 2.8 0 1.5-1.2 2.6-3.7 2.6-1.9 0-3.3-1.2-3.3-2.7 0-1.4 1.6-2.7 3.6-2.7zM25.2 10.9h-1.1v2.2h-2.2v1.1h2.2v2.2h1.1v-2.2h2.2v-1.1h-2.2z"/></symbol><symbol id="svg-icons-ibm" data-name="icons-ibm" viewBox="0 0 75 30" width="75" height="30"><path d="M0 0v2h14.6V0H0zm16.7 0v2h20.8s-2.1-2-4.9-2H16.7zm24.8 0v2h12.6l-.8-2H41.5zm21.7 0l-.8 2h12.5V0H63.2zM0 4v2h14.6V4H0zm16.7 0v2h23.2s-.3-1.6-.8-2H16.7zm24.8 0v2h14l-.7-2H41.5zm20.2 0L61 6h13.9V4H61.7zM4.2 8v2.1h6.3V8H4.2zm16.7 0v2.1h6.3V8h-6.3zm12.4 0v2.1h6.3S40 9 40 8h-6.7zm12.5 0v2.1H57L56.2 8H45.8zm14.5 0l-.8 2.1h11.3V8H60.3zM4.2 12v2h6.3v-2H4.2zm16.7 0v2H37s1.4-1.1 1.8-2H20.9zm24.9 0v2h6.3v-1.1l.4 1.1H64l.4-1.1V14h6.3v-2H58.9l-.6 1.7-.6-1.7H45.8zM4.2 16v2h6.3v-2H4.2zm16.7 0v2h17.9c-.4-1-1.8-2-1.8-2H20.9zm24.9 0v2h6.3v-2h-6.3zm7.4 0l.8 2h8.7l.7-2H53.2zm11.3 0v2h6.3v-2h-6.3zM4.2 20v2h6.3v-2H4.2zm16.7 0v2h6.3v-2h-6.3zm12.4 0v2H40c0-1-.4-2-.4-2h-6.3zm12.5 0v2h6.3v-2h-6.3zm8.9 0l.8 2h5.8l.8-2h-7.4zm9.8 0v2h6.3v-2h-6.3zM.1 23.9V26h14.6v-2.1H.1zm16.6 0V26h22.5c.5-.5.8-2.1.8-2.1H16.7zm25 0V26h10.4v-2.1H41.7zm14.4 0l.8 2.1h2.9l.7-2.1h-4.4zm8.4 0V26H75v-2.1H64.5zM.1 28v2h14.6v-2H.1zm16.6 0v2h15.9c2.8 0 4.9-2 4.9-2H16.7zm25 0v2h10.4v-2H41.7zm15.8 0l.7 2h.1l.8-2h-1.6zm7 0v2H75v-2H64.5z"/></symbol><symbol id="svg-icons-inbox" data-name="icons-inbox" viewBox="0 0 76 54" width="76" height="54" fill="#fff"><path d="M74 7S38.66 31 38 31C37.34 31 2 7 2 7V2.63h72V7zm0 6.24v38.33H2V13.24s34.59 22.9 36 22.9c1.41 0 36-22.9 36-22.9z"/></symbol><symbol id="svg-icons-index" data-name="icons-index" viewBox="0 0 15 13" width="15" height="13" stroke="currentColor" fill="none" stroke-width=".75" stroke-linecap="round"><path d="M7.5 2.606c0-1.233 3.335-2.231 7.125-2.231v9.939c-3.79 0-7.125.828-7.125 2.061 0-1.233-3.335-2.061-7.125-2.061V.375c3.79 0 7.125.998 7.125 2.231zm0 0v9.769M5.881 3.339c-1.043-.393-2.518-.677-4.211-.79m4.211 2.703c-1.043-.393-2.518-.677-4.211-.791m4.211 2.703c-1.043-.393-2.518-.677-4.211-.79m4.211 2.703C4.838 8.684 3.363 8.4 1.67 8.286m7.449-4.947c1.044-.393 2.518-.677 4.211-.79M9.119 5.252c1.044-.393 2.518-.677 4.211-.791M9.119 7.164c1.044-.393 2.518-.677 4.211-.79M9.119 9.077c1.044-.393 2.518-.677 4.211-.791"/></symbol><symbol id="svg-icons-linkedin" data-name="icons-linkedin" viewBox="0 0 38 38" width="38" height="38"><path d="M11.6 15.5H15v10.8h-3.4z"/><ellipse cx="13.3" cy="12.1" rx="2" ry="2"/><path d="M27.5 26.4v-6.9c0-2.9-1.6-4.3-3.9-4.3S20.3 17 20.3 17v-1.5h-3.2v10.8h3.2v-5.7c0-1.5.7-2.4 2-2.4 1.2 0 1.8.9 1.8 2.4v5.7h3.4z"/></symbol><symbol id="svg-icons-ratchet" data-name="icons-ratchet" viewBox="0 0 600 120" width="600" height="120"><path d="M502.1 2.5H397v39h-20v-39h-37v101.8l-16.8-30.2c-4.5 7.4-12.6 12.4-21.9 12.4-14.2 0-25.7-11.5-25.7-25.7s11.5-25.7 25.7-25.7c8.2 0 15.5 3.8 20.2 9.8l.6-1 18-31.7c-3.1-2.2-6.7-4.2-11-6-3.7-1.6-8-3-13.1-4.3C311 .6 305.2 0 298.7 0c-8.2 0-16 1.4-23.3 4.2C268 7 261.6 11 256.2 16.3c-4.3 4.2-8 9-10.9 14.5 2.2-5.5 5.8-12.5 11.5-18.1 3.8-3.8 8.2-7.2 12.9-9.2H113.5L82.8 83.6l13.7 32.9h9.6l2.9-8h36.4l2.9 8H222v-77h19.5c-2.1 6.3-3.2 13.1-3.2 20.5 0 8.9 1.5 17.1 4.6 24.4 3.1 7.4 7.4 13.7 12.9 18.9 5.5 5.3 12 9.3 19.5 12.3 7.5 2.9 15.8 4.4 24.7 4.4 6.6 0 12.5-.7 17.7-2.1 5.1-1.4 9.3-2.9 13-4.5 3.6-1.7 7.3-3.5 9.3-5.6v9.6h37v-43h20v43h32l5.8-107.9.6 107.9H503v-37h-32v-7h19v-28h-19v-6h31V3.2l6.3 36.3H532v78h38v-78h23.7l6.3-37h-97.9zm-379 71l4.2-10.9 4.2 10.9h-8.4zm19.3-66.4l18.4 32.4H184v76.1L142.4 7.1zM92 43.5c0-22.9-18.5-41-41.4-41H0v114h37V87.6l16.7 28.9h42.9L74.2 77.1C84.9 69.7 92 57.6 92 43.5zm-50.1 13H37v-21h4.9c5.4 0 9.7 4.7 9.8 10.5-.1 5.1-4.5 10.5-9.8 10.5zm251.9 17.2l-7.6-13.2 7.6-13.1h15l7.5 13.1-7.5 13.2h-15z"/></symbol><symbol id="svg-icons-search" data-name="icons-search" viewBox="0 0 38 38" width="38" height="38"><path d="M26.7 25.1L23 21.3c.7-1.1 1.2-2.4 1.2-3.8-.1-3.6-3-6.5-6.7-6.5-3.6 0-6.6 2.9-6.6 6.6s3 6.6 6.6 6.6c1.4 0 2.7-.5 3.8-1.2l3.7 3.7c.2.2.5.3.9.3.3 0 .6-.1.9-.3.3-.4.3-1.2-.1-1.6m-9.1-2.6c-2.7 0-4.9-2.2-4.9-4.9s2.2-4.9 4.9-4.9 4.9 2.2 4.9 4.9-2.2 4.9-4.9 4.9"/></symbol><symbol id="svg-icons-subscribe" data-name="icons-subscribe" viewBox="0 0 38 38" width="38" height="38" fill="currentColor"><path d="M21.6 26.9c0-5.8-4.7-10.5-10.5-10.5v3.2c4 0 7.3 3.3 7.3 7.3h3.2zm-6.2-2.2c0-1.2-1-2.2-2.2-2.2-1.2 0-2.2 1-2.2 2.2s1 2.2 2.2 2.2c1.2 0 2.2-.9 2.2-2.2zM27 27c0-8.8-7.1-16-15.9-16v3.2c3.4 0 6.6 1.3 9 3.7s3.7 5.6 3.7 9l3.2.1z"/></symbol><symbol id="svg-icons-twitter" data-name="icons-twitter" viewBox="0 0 38 38" width="38" height="38"><path d="M27 12.4c-.7.4-1.4.6-2.2.8-.6-.7-1.5-1.1-2.5-1.1-2.3 0-3.9 2.1-3.4 4.3-2.9-.1-5.5-1.5-7.2-3.6-.9 1.5-.4 3.6 1.1 4.6-.6 0-1.1-.1-1.6-.4 0 1.7 1.1 3.2 2.8 3.5-.5.2-1.1.2-1.6.1.4 1.4 1.7 2.4 3.2 2.4a7.5 7.5 0 0 1-5.2 1.4c1.5 1 3.3 1.6 5.3 1.6 6.5 0 10.1-5.4 9.9-10.3.7-.5 1.3-1.1 1.9-1.9-.6.2-1.3.4-2 .5.7-.4 1.3-1.2 1.5-1.9z"/></symbol><symbol id="svg-icons-y-combinator" data-name="icons-y-combinator" viewBox="0 0 38 38" width="38" height="38"><path d="M22.4 10.9h3.8l-5.3 10v6h-3.3v-6l-5.5-10H16l3.3 7 3.1-7z"/></symbol><symbol id="svg-icons-youtube" data-name="icons-youtube" viewBox="0 0 38 38" width="38" height="38" fill="currentColor"><path d="M29.3 14.8s-.2-1.4-.8-2.1c-.8-.8-1.7-.8-2.1-.9-2.9-.2-7.3-.2-7.3-.2s-4.4 0-7.3.2c-.4 0-1.3.1-2.1.9-.6.6-.8 2.1-.8 2.1s-.2 1.7-.2 3.4v1.6c0 1.7.2 3.4.2 3.4s.2 1.4.8 2.1c.8.8 1.8.8 2.3.9 1.7.2 7.1.2 7.1.2s4.4 0 7.3-.2c.4 0 1.3-.1 2.1-.9.6-.6.8-2.1.8-2.1s.2-1.7.2-3.4v-1.6c0-1.7-.2-3.4-.2-3.4zm-12.5 6.9v-5.9l5.7 3-5.7 2.9z"/></symbol><symbol id="svg-icons-backup" data-name="icons-backup" viewBox="0 0 37.8 34.6" width="37" height="34"><path d="M20.3 21.3l-1.8-.8V9h2.2v9.3l4.6-3.4 1.3 1.7z" fill="url(#azure)" opacity=".5"/><path fill="url(#azure)" d="M37.3 13.2c-1.1-4.5-3.9-8.3-7.8-10.7C25.6.1 20.9-.6 16.4.5 12 1.6 8.2 4.4 5.8 8.3c-1.6 2.6-2.5 5.6-2.5 8.9H0l3 5.4 3 5.3 3-5.3 3.1-5.4H8.7c0-2.3.7-4.5 1.9-6.3 1.6-2.5 4.1-4.3 7.1-5.1 3.1-.8 6.2-.3 8.9 1.4 2.7 1.6 4.6 4.2 5.4 7.3.8 3.1.3 6.2-1.4 8.9-3.4 5.6-10.7 7.4-16.2 4l-2.8 4.7c2.8 1.7 5.9 2.5 8.9 2.5 5.9 0 11.6-3 14.8-8.3 2.4-4 3.1-8.7 2-13.1z"/></symbol><symbol id="svg-icons-block" data-name="icons-block" viewBox="0 0 29.9 34.6" width="29" height="34"><path fill="url(#azure)" d="M29.9 25.9L15 34.6 0 25.9V8.6l15 8.7 14.9-8.7z"/><path fill="url(#azure)" opacity=".5" d="M0 8.6l15 8.7 14.9-8.7L15 0z"/><path fill="url(#azure)" d="M19.7 7.5c-2.6 1.5-6.8 1.5-9.4 0C9 6.8 8.4 5.8 8.4 4.8v3.8c0 1 .6 2 1.9 2.7 2.6 1.5 6.8 1.5 9.4 0 1.3-.7 1.9-1.7 1.9-2.7V4.8c0 1-.7 2-1.9 2.7z"/></symbol><symbol id="svg-icons-connecting-in" data-name="icons-connecting-in" viewBox="0 0 34.8 34.8" width="34" height="34"><path d="M17.4 0C7.8 0 0 7.8 0 17.4 0 27 7.8 34.8 17.4 34.8c9.6 0 17.4-7.8 17.4-17.4C34.9 7.8 27.1 0 17.4 0zm0 27.1c-5.3 0-9.7-4.3-9.7-9.7 0-5.3 4.3-9.7 9.7-9.7 5.3 0 9.7 4.3 9.7 9.7 0 5.4-4.3 9.7-9.7 9.7z" fill="url(#azure)" opacity=".5"/><g fill="url(#azure)"><path d="M17.4 13.6l-.9-1.6-.9-1.6h3.7l-1 1.6zM17.4 21.3l1 1.6.9 1.6h-3.7l.9-1.6zM21.3 17.4l1.6-.9 1.6-.9v3.7l-1.6-.9zM13.6 17.4l-1.6 1-1.6.9v-3.7l1.6.9zM20.1 14.7l.5-1.8.5-1.8 1.3 1.3 1.3 1.3-1.8.5zM14.7 20.2l-.5 1.8-.4 1.8-1.4-1.4-1.3-1.3 1.8-.5zM20.2 20.1l1.8.5 1.7.5-1.3 1.3-1.3 1.3-.5-1.8zM14.7 14.7l-1.8-.5-1.8-.4 1.3-1.4 1.3-1.3.5 1.8z"/></g><g fill="url(#azure)"><path d="M13.2 11.8L5.8 4.4c-.5.4-1 .9-1.4 1.4l7.4 7.4c.4-.5.9-1 1.4-1.4z"/><path d="M13.2 11.8L5.8 4.4c-.5.4-1 .9-1.4 1.4l7.4 7.4c.4-.5.9-1 1.4-1.4zM17.4 10.4c.3 0 .7 0 1 .1V.1c-.3 0-.7-.1-1-.1-.3 0-.7 0-1 .1v10.5c.4-.1.7-.2 1-.2z"/><path d="M17.4 10.4c.3 0 .7 0 1 .1V.1c-.3 0-.7-.1-1-.1-.3 0-.7 0-1 .1v10.5c.4-.1.7-.2 1-.2zM10.4 17.4c0-.3 0-.7.1-1H.1c0 .3-.1.7-.1 1 0 .3 0 .7.1 1h10.5c-.1-.3-.2-.6-.2-1z"/><path d="M10.4 17.4c0-.3 0-.7.1-1H.1c0 .3-.1.7-.1 1 0 .3 0 .7.1 1h10.5c-.1-.3-.2-.6-.2-1zM23 13.2l7.4-7.4c-.4-.5-.9-1-1.4-1.4l-7.4 7.4c.6.4 1 .9 1.4 1.4z"/><path d="M23 13.2l7.4-7.4c-.4-.5-.9-1-1.4-1.4l-7.4 7.4c.6.4 1 .9 1.4 1.4zM17.4 24.4c-.3 0-.7 0-1-.1v10.5c.3 0 .7.1 1 .1.3 0 .7 0 1-.1V24.4h-1z"/><path d="M17.4 24.4c-.3 0-.7 0-1-.1v10.5c.3 0 .7.1 1 .1.3 0 .7 0 1-.1V24.4h-1zM11.8 21.6L4.4 29c.4.5.9 1 1.4 1.4l7.4-7.4c-.5-.4-1-.8-1.4-1.4z"/><path d="M11.8 21.6L4.4 29c.4.5.9 1 1.4 1.4l7.4-7.4c-.5-.4-1-.8-1.4-1.4zM21.6 23l7.4 7.4c.5-.4 1-.9 1.4-1.4L23 21.6c-.4.6-.8 1-1.4 1.4z"/><path d="M21.6 23l7.4 7.4c.5-.4 1-.9 1.4-1.4L23 21.6c-.4.6-.8 1-1.4 1.4zM24.4 17.4c0 .3 0 .7-.1 1h10.5c0-.3.1-.7.1-1 0-.3 0-.7-.1-1H24.4v1z"/><path d="M24.4 17.4c0 .3 0 .7-.1 1h10.5c0-.3.1-.7.1-1 0-.3 0-.7-.1-1H24.4v1z"/></g></symbol><symbol id="svg-icons-connecting-out" data-name="icons-connecting-out" viewBox="0 0 34.8 34.8" width="34" height="34"><path d="M17.4 5.2c-6.7 0-12.2 5.5-12.2 12.2 0 6.7 5.5 12.2 12.2 12.2 6.7 0 12.2-5.5 12.2-12.2 0-6.7-5.5-12.2-12.2-12.2zm0 16.1c-2.2 0-3.9-1.8-3.9-3.9 0-2.2 1.8-3.9 3.9-3.9 2.2 0 3.9 1.8 3.9 3.9 0 2.2-1.7 3.9-3.9 3.9z" fill="url(#azure)" opacity=".5"/><g fill="url(#azure)"><path d="M17.4 0l.9 1.6 1 1.6h-3.7l.9-1.6zM18.4 13.5V3.2h-2v10.3c.3 0 .7-.1 1-.1.3.1.7.1 1 .1zM17.4 34.8l-.9-1.6-.9-1.6h3.7l-1 1.6z"/><path d="M16.4 21.3v10.3h2V21.3c-.3 0-.7.1-1 .1-.3-.1-.7-.1-1-.1z"/></g><g fill="url(#azure)"><path d="M34.8 17.4l-1.6.9-1.6 1v-3.7l1.6.9z"/><path d="M21.3 18.4h10.3v-2H21.3c0 .3.1.7.1 1-.1.3-.1.7-.1 1zM0 17.4l1.6-.9 1.6-.9v3.7l-1.6-1zM13.5 16.4H3.2v2h10.3c0-.3-.1-.7-.1-1 .1-.3.1-.6.1-1z"/></g><g fill="url(#azure)"><path d="M29.7 5.1l-.5 1.8-.4 1.8-1.4-1.3-1.3-1.3 1.8-.5zM20.8 15.4l7.3-7.3-1.4-1.4-7.3 7.3c.3.2.5.4.7.7.3.2.5.4.7.7zM5.1 29.7l.5-1.8.5-1.8 1.3 1.4 1.3 1.3-1.8.4z"/><path d="M14 19.5l-7.3 7.3 1.4 1.4 7.3-7.3c-.3-.2-.5-.4-.7-.7-.3-.2-.5-.5-.7-.7z"/></g><g fill="url(#azure)"><path d="M5.1 5.1l1.8.5 1.8.5-1.3 1.3-1.3 1.3-.5-1.8z"/><path d="M15.4 14L8.1 6.7 6.6 8.1l7.3 7.3c.2-.3.4-.5.7-.7.3-.3.5-.5.8-.7zM29.7 29.7l-1.8-.5-1.8-.4 1.3-1.3 1.4-1.4.4 1.8z"/><path d="M19.4 20.9l7.3 7.3 1.4-1.4-7.3-7.3c-.2.3-.4.5-.7.7l-.7.7z"/></g></symbol><symbol id="svg-icons-gear" data-name="icons-gear" viewBox="0 0 35 34.6" width="35" height="34"><path fill="url(#azure)" opacity="0.5" d="M22.5,12.5c-2.7-2.7-7.2-2.7-9.9,0s-2.7,7.2,0,9.9s7.2,2.7,9.9,0S25.2,15.3,22.5,12.5z M17.5,20.4c-1.6,0-2.9-1.3-2.9-2.9c0-1.6,1.3-2.9,2.9-2.9s2.9,1.3,2.9,2.9S19.1,20.4,17.5,20.4z"/><path fill="url(#azure)" d="M28,27.8c1.4-1.4,3.4-2,5.2-1.8c0.7-1.2,1.2-2.5,1.6-3.8c-1.5-1.1-2.4-2.9-2.4-4.9 c0-2,1-3.8,2.4-4.9c-0.4-1.3-0.9-2.6-1.6-3.8c-1.9,0.2-3.8-0.3-5.2-1.8c-1.4-1.4-2-3.4-1.8-5.2C25,0.9,23.7,0.4,22.4,0 c-1.1,1.5-2.9,2.4-4.9,2.4c-2,0-3.8-1-4.9-2.4C11.3,0.4,10,0.9,8.8,1.6C9,3.4,8.4,5.4,7,6.8c-1.4,1.4-3.4,2-5.2,1.8 C1.1,9.8,0.6,11,0.2,12.4c1.5,1.1,2.4,2.9,2.4,4.9c0,2-1,3.8-2.4,4.9c0.4,1.3,0.9,2.6,1.6,3.8c1.9-0.2,3.8,0.3,5.2,1.8 c1.4,1.4,2,3.4,1.8,5.2c1.2,0.7,2.5,1.2,3.8,1.6c1.1-1.5,2.9-2.4,4.9-2.4c2,0,3.8,1,4.9,2.4c1.3-0.4,2.6-0.9,3.8-1.6 C26,31.1,26.6,29.2,28,27.8z M10.9,24.8c-4.1-3.6-4.6-9.9-0.9-14.1c3.6-4.1,9.9-4.6,14.1-0.9c4.1,3.6,4.6,9.9,0.9,14.1 C21.4,28,15.1,28.4,10.9,24.8z"/></g></symbol><symbol id="svg-icons-life-preserver" data-name="icons-life-preserver" viewBox="0 0 34.9 34.9" width="34" height="34"><path d="M17.4 0C7.8 0 0 7.8 0 17.4 0 27 7.8 34.8 17.4 34.8c9.6 0 17.4-7.8 17.4-17.4C34.9 7.8 27.1 0 17.4 0zm0 27.1c-5.3 0-9.7-4.3-9.7-9.7 0-5.3 4.3-9.7 9.7-9.7 5.3 0 9.7 4.3 9.7 9.7 0 5.4-4.3 9.7-9.7 9.7z" fill="url(#azure)" fill-opacity=".5"/><g fill="url(#azure)"><path d="M27.1 17.4c0 1.2-.2 2.3-.6 3.3h8c.2-1.1.3-2.2.3-3.3 0-1.1-.1-2.2-.3-3.3h-8c.4 1.1.6 2.2.6 3.3zM7.8 17.4c0-1.2.2-2.3.6-3.3h-8c-.3 1.1-.4 2.2-.4 3.3 0 1.1.1 2.2.3 3.3h8c-.3-1-.5-2.1-.5-3.3zM20.7 34.5v-8c-1 .4-2.1.6-3.3.6-1.2 0-2.3-.2-3.3-.6v8c1.1.2 2.2.3 3.3.3 1.2.1 2.3-.1 3.3-.3zM14.1.3v8c1-.4 2.1-.6 3.3-.6 1.2 0 2.3.2 3.3.6v-8c-1-.2-2.1-.3-3.3-.3-1.1 0-2.2.1-3.3.3z"/></g></symbol><symbol id="svg-icons-metrics" data-name="icons-metrics" viewBox="0 0 29.9 34.6" width="29" height="34"><path fill="url(#azure)" opacity=".2" d="M15 0L0 8.6v17.3l15 8.7 14.9-8.7V8.6z"/><path fill="url(#azure)" opacity=".5" d="M29.9 25.9V10.6l-2.2-.7-3.8 2.5-2.5 2.9-3.9.7-5-3.1L8 15.1l-3.6-2.7L0 14.8v11.1l15 8.7z"/><path fill="url(#azure)" d="M29.9 17.3l-2.2-1.4-1.8 2.9-3.4-.5-2.8 2.9-2.3-3.2-2.4-2.1-3.1 3.4L8 18.1l-2 2.7-2.3-1.6L2.2 17l-2.2.6v8.3l15 8.7 14.9-8.7z"/></symbol><symbol id="svg-icons-scaling" data-name="icons-scaling" viewBox="0 0 29.8 34.6" width="29" height="34"><path d="M29.8 25.9l-14.9 8.7-15-8.7V8.6l15 8.7 14.9-8.7z" fill="url(#azure)" opacity=".5"/><g fill="url(#azure)"><path d="M22.4 30.2l-7.5 4.4-7.5-4.4v-8.6l7.5 4.3 7.5-4.3z"/><path opacity=".5" d="M7.4 21.6l7.5 4.3 7.5-4.3-7.5-4.3z"/></g><g fill="url(#azure)"><path d="M8.1 15.6l-2.4-.2-2.3-.3.3 1.4.4 1.4 1.4-.8 3.9 2.2 1.2-.7-3.9-2.2zM21.6 15.4l2.4-.2 2.4-.2-.4 1.4-.4 1.3-1.4-.8-3.9 2.3-1.1-.7 3.9-2.2z"/></g><path fill="url(#azure)" opacity=".2" d="M-.1 8.6l15 8.7 14.9-8.7L14.9 0z"/></symbol><symbol id="svg-icons-customer-buffer" data-name="icons-customer-buffer" viewBox="0 0 97.7 19.6" width="97" height="19"><path d="M9.6 14.1c-.3 0-.5 0-.7-.1L3 11.2.3 10c-.1-.1-.3-.1-.3-.3 0-.2.2-.2.3-.3.5-.3 1.1-.5 1.5-.7.4-.2.8-.2 1.3 0 2 .9 3.9 1.8 5.9 2.7.4.2.8.2 1.3 0l5.8-2.7c.4-.2.8-.2 1.3 0s1.1.5 1.6.7l.1.1c.2.1.2.3 0 .4l-.3.2c-2.5 1.1-4.9 2.3-7.4 3.5-.4.2-.7.4-1.1.5h-.7m-7.1-.3c.2.1.5.1.7.2l5.7 2.7c.4.2.9.2 1.3 0L16 14c.4-.2.8-.2 1.2 0 .5.2 1.1.5 1.6.7.1 0 .3.1.3.3 0 .2-.1.2-.3.3-2 .9-4 1.9-5.9 2.8l-2.7 1.3c-.4.2-.8.2-1.3 0l-6.3-3-2.2-1.1-.3-.1c-.1 0-.1-.2 0-.3l.2-.1c.5-.2 1-.5 1.5-.7.2-.2.5-.3.7-.3m90.7 5.3h-3.6V5.5h3.5v1.9c1.2-1.3 2.6-2.2 4.3-2.2v3.5h-.7c-1.2 0-2.3.3-3.3 1.1-.2.2-.4.4-.4.8V19c.1-.1.2.1.2.1zM9.6 8.9c-.3 0-.5-.1-.7-.2C6 7.4 3.2 6.1.3 4.7l-.2-.1c-.1-.1-.1-.2 0-.4l.2-.1 8.6-4c.4-.2.9-.2 1.3 0 2.1 1 4.2 1.9 6.3 3l2.2 1.1.3.2c.1.1.1.2 0 .3l-.2.1-8.6 4-.6.1m49 10.2V8.6h-2.2V5.5h2.2v-.2c0-.6 0-1.2.1-1.8.4-1.8 1.8-3.1 3.6-3.4 1.1-.1 2.2 0 3.2.4.4.2.8.4 1.2.8-.4.7-.9 1.4-1.3 2.1l-.5-.4c-.5-.2-1-.3-1.5-.1-.6.2-1 .5-1.1 1.1-.1.5-.1 1-.1 1.5H65v3.1h-2.6c-.2 0-.2 0-.2.2v10.3h-3.6zm7-10.5V5.5h2.2v-.2c0-.6 0-1.2.1-1.8.4-1.8 1.8-3.1 3.6-3.4 1.1-.1 2.2 0 3.2.4.4.2.8.4 1.2.8-.4.7-.9 1.4-1.4 2.1-.3-.3-.6-.4-.9-.5-.5-.1-1.1-.1-1.5.2-.4.2-.6.6-.6 1s-.1.9-.1 1.4h2.8v3.1h-2.7v10.5h-3.6V8.9c0-.2 0-.2-.2-.2h-1.9l-.2-.1zm-23-3.1h3.6v8.1c0 .4 0 .7.1 1 .1.9.7 1.4 1.5 1.5 1.3.3 2.5 0 3.4-.9l.2-.2c.2-.2.3-.4.3-.7V5.5h3.6V19h-3.6v-1.7l-.2.2c-.9.8-1.9 1.4-3 1.7-1.1.2-2.1.2-3.1 0-1.5-.4-2.3-1.3-2.6-2.7-.1-.4-.1-.8-.1-1.3l-.1-9.7M84.7 11v-.1c-.1-.9-.4-1.6-1.1-2.2-.7-.5-1.5-.7-2.3-.7-1.3 0-2.3.6-2.9 1.8-.3.3-.4.7-.4 1.2h6.7zM78 13.4c.1.7.4 1.2.7 1.8.7.8 1.5 1.3 2.6 1.4 1.5.1 2.8-.3 4.1-1.1l.1-.1.1-.1c.5.7 1.1 1.5 1.6 2.3l-.7.6c-.9.6-1.9.9-3 1.1-1 .2-1.9.2-2.9.1-2.3-.3-4.2-1.4-5.4-3.5-.5-.9-.7-1.9-.8-2.9-.1-1.2 0-2.3.5-3.4 1-2.4 2.8-3.9 5.3-4.3 1.5-.3 2.9-.1 4.3.6 1.6.8 2.7 2.1 3.3 3.8.3.9.5 1.9.5 2.8v1c-3.5-.1-6.9-.1-10.3-.1zm-47.2-1.1v2.2c0 .1 0 .3.1.4 1 1.1 2.2 1.5 3.6 1.3 1.2-.2 2-.9 2.4-2 .4-1 .4-2 .2-3-.1-.9-.5-1.6-1.1-2.2-.8-.7-1.8-.8-2.8-.6-.9.2-1.6.6-2.2 1.3-.1.1-.1.2-.1.4-.1.7-.1 1.5-.1 2.2m0 5.1V19h-3.6V.3h3.6v6.9l.1-.1c.9-1.1 2-1.8 3.4-1.9 2.5-.3 4.7.8 5.9 3.1.5 1 .7 1.9.8 3 .1 1.2 0 2.4-.3 3.6-.4 1.2-.9 2.2-1.8 3.1-.9.8-2.1 1.3-3.3 1.4s-2.4-.1-3.4-.8c-.5-.3-1-.7-1.4-1.2"/></symbol><symbol id="svg-icons-customer-citrix" data-name="icons-customer-citrix" viewBox="0 0 72 30" width="72" height="30" fill-rule="evenodd" clip-rule="evenodd"><path d="M51.557 30c-1.599 0-2.908-1.309-2.908-2.908s1.309-2.956 2.908-2.956c1.6 0 2.908 1.357 2.908 2.956.049 1.599-1.26 2.908-2.908 2.908zM14.191 9.354l-2.472 4.022c-.679-1.163-2.036-1.89-3.441-1.89-1.987 0-3.393 1.6-3.393 3.587s1.406 3.586 3.393 3.586c1.357 0 2.762-.727 3.441-1.89l2.472 4.023c-1.503 1.55-3.587 2.52-5.913 2.52-4.507 0-8.191-3.684-8.191-8.142 0-4.508 3.684-8.191 8.191-8.191 2.326-.145 4.41.824 5.913 2.375zm46.187 13.473h-5.67l6.252-8.481-4.798-7.173h5.718l1.891 3.344 2.132-3.344h5.767l-5.185 7.221 5.428 8.433h-5.622l-2.617-4.604-3.296 4.604zM33.334 11.244h-3.538v11.583h-4.652V11.244h-3.587V7.173h11.777v4.071zM20.297 22.827h-4.652V7.173h4.652v15.654zm33.587 0h-4.653V7.173h4.653v15.654zm-14.54-.048h-4.701V7.173h6.107c2.065 0 3.295.533 4.265 1.454.872.872 1.308 2.035 1.308 3.489 0 2.181-1.115 3.878-2.908 4.459l4.798 6.204H42.3l-2.956-4.653v4.653zm2.811-10.372c0-.533-.145-.921-.388-1.212-.533-.533-1.599-.63-2.423-.63v3.684c1.939-.049 2.811-.533 2.811-1.842zM17.971 0c1.599 0 2.908 1.309 2.908 2.908s-1.309 2.956-2.908 2.956-2.908-1.357-2.908-2.956C15.015 1.357 16.323 0 17.971 0z"/></symbol><symbol id="svg-icons-customer-guardian" data-name="icons-customer-guardian" viewBox="0 0 94 17.7" width="94" height="17"><path d="M83.9 13.3h4.7v-.9l-.8-.4V6.1c.4-.3.8-.3 1.3-.3.8 0 1.1.3 1.1 1.2v5l-.9.4v.9H94v-.9l-.9-.4V6.4c0-1.7-.6-2.5-2.1-2.5-1.2 0-2.4.4-3.2 1.2V3.8h-.3l-3.7.7v.8l1 .5V12l-.9.4v.9zM72.5.1c-.9 0-1.6.7-1.6 1.6 0 .9.7 1.6 1.6 1.6.9 0 1.6-.7 1.6-1.6 0-.9-.7-1.6-1.6-1.6zm-2.4 4.4v.8l.9.5V12l-.9.4v.9h4.7v-.9l-.9-.4V3.9h-.3l-3.5.6zm-4.2 7c-.2.2-.5.3-.9.3-1.2 0-1.7-1-1.7-3.2 0-2.6.7-3.4 1.7-3.4.5 0 .8.2 1 .4v5.9zm0-7.2c-.4-.3-1-.4-1.5-.4-2.2 0-4.3 1.3-4.3 5 0 3.5 2.1 4.6 3.5 4.6 1.1 0 1.9-.5 2.2-1h.2v1h.3l3.5-.4v-.7l-.9-.5V.2h-.3l-3.7.6v.8l1 .4v2.3zm-12.4 1l.9.4v6.2l-.9.4v.9h5v-.9l-1.2-.4V7.1c.5-.4 1.2-.6 2-.6.3 0 .5.1.7.1V4c-.1 0-.2-.1-.4-.1-1 0-1.8.6-2.3 1.8V3.8H57l-3.5.6v.9zm-5.7-.2c1.2 0 1.6.6 1.6 1.7v1l-1.8.3c-1.7.3-3.1.9-3.1 2.7 0 1.5 1 2.6 2.5 2.6 1.1 0 2.2-.5 2.6-1.3h.1c.1 1 1 1.3 1.9 1.3.7 0 1.4-.2 1.7-.5v-.6l-1-.3V6.7c0-2.1-1.5-2.8-3.9-2.8-1.6 0-2.5.4-3.4.8V7h1.4l.6-1.8c.3-.1.7-.1.8-.1zm.7 6.8c-.6 0-1.2-.3-1.2-1.4 0-.7.7-1.4 1.4-1.5l.6-.1v2.5c.1 0-.5.5-.8.5zm29.7-6.8c1.2 0 1.6.6 1.6 1.7v1l-1.8.4c-1.7.3-3.1.9-3.1 2.7 0 1.5 1 2.6 2.5 2.6 1.1 0 2.2-.5 2.6-1.3.1 1 1 1.3 1.9 1.3.7 0 1.4-.2 1.7-.5v-.6l-.8-.4V6.7c0-2.1-1.5-2.8-3.9-2.8-1.6 0-2.5.4-3.4.8V7h1.4l.6-1.8c.3-.1.6-.1.7-.1zm.7 6.8c-.6 0-1.2-.3-1.2-1.4 0-.7.7-1.4 1.4-1.5l.6-.1v2.5c.1 0-.5.5-.8.5zm-41 1.6h.4c1-.1 2-.6 2.5-1.2v1.2l3.5-.4v-.6l-.9-.6v-8h-.3l-3.5.7v.8l1.2.5v5.4c-.3.2-.7.4-1.2.4-.7 0-1.4-.2-1.4-1.3V3.8h-.3l-3.5.7v.8l1.2.5v4.8c-.1 1.6.5 2.9 2.3 2.9zm-9.5-2.3c-.4 0-.7-.2-.7-.6 0-.2.2-.5.4-.7.5.1.9.2 1.5.2 2.3 0 3.9-1.1 3.9-3.1 0-.9-.4-1.4-.9-1.9l1.4.5V3.8l-2.4.5c-.6-.2-1.3-.5-2.1-.5-2.3 0-3.9 1.2-3.9 3.2 0 1.2.6 2.1 1.5 2.6l.1.1c-.5.4-1.6 1.2-1.6 2.1 0 .7.4 1.4 1.4 1.6-1 .2-2.2.7-2.2 1.9s1.7 2.4 4.6 2.4c3.5 0 4.9-1.7 4.9-3.8 0-1.8-.8-2.7-2.8-2.7h-3.1zm2.2-4.1c0 1.7-.4 1.9-1 1.9s-1.2-.2-1.2-1.9.5-2.2 1.2-2.2c.6 0 1 .6 1 2.2zM27.2 15c0-.4.3-1 1.1-1.1h2.5c.7 0 1.1.6 1.1 1.1 0 .9-.6 1.3-2.5 1.3-1.6 0-2.2-.6-2.2-1.3zM24.5 8.9c0-3.8-1.5-5-3.8-5-2.7 0-4.4 1.8-4.4 4.8 0 3.1 1.6 4.8 4.7 4.8 1.7 0 2.9-.8 3.3-1.4v-.9c-.6.2-1.2.4-2.3.4-1.7 0-2.7-.9-2.7-2.7h5.2zm-3.8-4c.7 0 1.1.5 1.1 2.8l-2.5.3c0-2.4.5-3.1 1.4-3.1zm-9.8 8.4v-.9L10 12V6.2c.4-.3.9-.5 1.4-.5.8 0 1.3.5 1.2 1.2v5l-.9.4v.9h4.7v-.9l-.7-.3V6.4c0-1.7-1-2.5-2.3-2.5-1.2 0-2.5.4-3.3 1.1V0h-.3L6.2.6v.9l1.2.4V12l-.9.4v.9h4.4zm-9.7-2.5c0 1.7.8 2.7 2.6 2.7.9 0 1.8-.2 2.4-.7v-1.1c-.2.1-.6.1-.9.1-.9 0-1.2-.5-1.2-1.4V5.6h2.1V4.1H4.1V1.9l-3 .4v1.8L0 4.4v1.2h1.2v5.2z"/></symbol><symbol id="svg-icons-customer-roximity" data-name="icons-customer-roximity" viewBox="0 0 123.9 18.5" width="123" height="18"><path d="M35.5 5.6c-.5-1.1-1.2-2.1-2-2.9-.8-.8-1.8-1.5-3-2S28 0 26.7 0c-1.2 0-2.3.2-3.3.6L25 4.8c.5-.2 1.1-.3 1.7-.3.7 0 1.3.1 1.8.4.6.3 1.1.6 1.5 1.1.4.4.7 1 1 1.5.2.6.3 1.2.3 1.8v.1c0 .7-.1 1.2-.3 1.8-.2.6-.5 1.1-.9 1.5-.4.4-.8.8-1.4 1-.6.3-1.2.4-1.8.4-.7 0-1.3-.1-1.8-.4-.6-.3-1.1-.6-1.5-1.1s-.7-1-1-1.5c-.2-.6-.3-1.2-.3-1.8v-.1c0-.7.1-1.2.3-1.8l.3-.7 3.8 2.6L24 5.5l-2.7-3.8c-.5.3-.9.7-1.3 1.1-.4.4-.7.8-1 1.2-.4.6-.7 1.1-1 1.7-.7 1-1 2.3-1 3.5v.1c0 1.3.2 2.5.7 3.6.5 1.1 1.2 2.1 2 2.9.8.8 1.8 1.5 3 2s2.5.7 3.8.7c1.4 0 2.6-.2 3.8-.7 1.2-.5 2.2-1.1 3.1-2 .8-.8 1.5-1.8 2-3 .5-1.1.7-2.4.7-3.6.2-1.3-.1-2.5-.6-3.6zm76.8 5.9L105.5.3h5.6l3.6 6.5 3.7-6.5h5.5l-6.8 11.1v6.7h-5l.2-6.6zM95.4 4.7h-5.3V.3h15.6v4.3h-5.3v13.5h-4.9l-.1-13.4zM83.6.3h5v17.8h-5V.3zM62.2.3h5.2l4.3 6.9L76 .3h5.2v17.8h-4.9V7.9l-4.5 7h-.1L67 8v10.2h-4.8V.3zm-7.5 0h5v17.8h-5V.3zM41.5 9.1L35.7.4h5.7l3.1 5 3.2-5h5.5L47.4 9l6.1 9.1h-5.7l-3.4-5.4-3.4 5.5h-5.5l6-9.1M8.3 8.9c.8 0 1.5-.2 2-.6.4-.4.7-.9.7-1.5v-.1c0-.7-.2-1.2-.7-1.6-.4-.3-1.1-.5-2-.5H5v4.3h3.3zM.1.3h8.4c1.4 0 2.5.2 3.5.5s1.7.8 2.3 1.4c1.1 1 1.6 2.4 1.6 4.1v.1c0 1.4-.3 2.5-1 3.4-.7.9-1.6 1.6-2.7 2.1l4.3 6.2h-5.7l-3.6-5.4H4.9v5.4H0V.3h.1z"/></symbol><symbol id="svg-icons-customer-upworthy" data-name="icons-customer-upworthy" viewBox="0 0 105.6 25.1" width="105" height="25"><path d="M102.2 0h3.4l-2.1 15.9 1 8.9h-3.7l-.9-8.7L94.3 0H98l3.2 10.2 1-10.2zM89.9 10.3L89.1 0h3.6L95 24.8h-3.7l-.9-11.1h-3.5l.8 11.1H84L82.2 0h3.6l.8 10.2 3.3.1zM74.6 24.8L73.5 3.5h-3.2L70.2 0h10l.2 3.4h-3.2l1.2 21.3-3.8.1zM63.5 3.4h-1.8l.2 8h1.6c1 0 1.5-.5 1.5-1.5l-.2-5.1c.1-1-.4-1.4-1.3-1.4M69 16.2l.3 8.7h-3.7l-.3-8.6c-.1-1.1-.5-1.6-1.6-1.6h-1.6l.3 10.2h-3.7L58.2 0h5.9c2.9 0 4.4 1.4 4.5 4.4l.2 4.8c.1 2.1-.6 3.2-1.9 3.8 1.4.3 2 1.3 2.1 3.2m-18-13h-.7c-1 0-1.4.5-1.4 1.4l-.1 15.6c0 1 .5 1.5 1.4 1.5h.8c1 0 1.4-.5 1.4-1.5l-.1-15.6c0-1-.4-1.4-1.3-1.4zm.6 21.9h-2c-3.1 0-4.6-1.6-4.5-4.8l.2-15.9c.1-2.9 1.5-4.4 4.4-4.4h1.9C54.5 0 56 1.4 56 4.4l.2 15.9c0 3.2-1.5 4.8-4.6 4.8zM26.2 0h3.6l1 17.3L33.3 0h3.4l1.4 17.2L40.2 0h3.3l-3.3 24.8h-4.4l-1.2-15-2.1 15H28L26.2 0zm-6.7 3.4H18l-.6 8.9h1.5c.9 0 1.4-.5 1.5-1.4l.3-6.1c.1-1-.3-1.4-1.2-1.4m-2.9 21.4h-3.7L14.8 0h5.6c2.9 0 4.2 1.4 4.1 4.4l-.4 6.6c-.2 3.1-1.8 4.6-4.8 4.6h-2.1l-.6 9.2zm-5.7-4.5c-.2 3.2-1.9 4.8-4.9 4.8H4.1C1 25.1-.3 23.5 0 20.3L2.1 0h3.6L3.8 20.1c-.1 1 .3 1.5 1.3 1.5h.6c1 0 1.4-.5 1.5-1.5L9 0h3.6l-1.7 20.3z"/></symbol><symbol id="svg-icons-keylock" data-name="icons-keylock" viewBox="0 0 35.8 45.2" width="35" height="45"><path fill="url(#azure)" d="M30.1 17.1v-5.3C30.1 5.3 24.6 0 17.9 0 11.2 0 5.7 5.3 5.7 11.8v5.3H0v28.1h35.8V17.1h-5.7zM17.9 36.6c-2 0-3.7-1.6-3.7-3.6 0-1.3.8-2.5 1.9-3.1v-4.3h3.7v4.3c1.1.6 1.9 1.8 1.9 3.1-.1 2-1.7 3.6-3.8 3.6zm-7.3-19.5v-5.3c0-3.9 3.3-7.1 7.4-7.1s7.4 3.2 7.4 7.1v5.3H10.6z"/><path fill="url(#azure)" opacity=".5" d="M17.9 36.6c-2 0-3.7-1.6-3.7-3.6 0-1.3.8-2.5 1.9-3.1v-4.3h3.7v4.3c1.1.6 1.9 1.8 1.9 3.1-.1 2-1.7 3.6-3.8 3.6z"/></symbol><symbol id="svg-icons-safe" data-name="icons-safe" viewBox="0 0 36.5 34.7" width="36" height="34"><path fill="url(#azure)" d="M0 5.4h2.7v6.2H0zM0 23.1h2.7v6.2H0z"/><path fill="url(#azure)" opacity=".5" d="M26.2 18h-3c-.1.6-.3 1.1-.7 1.6l2.1 2.1c.3.3.3.7 0 .9-.3.3-.7.3-.9 0l-2.1-2.1c-.5.3-1 .6-1.6.7v3c0 .4-.3.7-.7.7s-.7-.3-.7-.7v-3c-.6-.1-1.1-.3-1.6-.7l-2.1 2.1c-.3.3-.7.3-.9 0-.3-.3-.3-.7 0-.9l2.1-2.1c-.3-.5-.6-1-.7-1.6h-3c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7h3c.1-.6.3-1.1.7-1.6L14 12.9c-.3-.3-.3-.7 0-.9.3-.3.7-.3.9 0l2.1 2.1c.5-.3 1-.6 1.6-.7v-3c0-.4.3-.7.7-.7s.7.3.7.7v3c.6.1 1.1.3 1.6.7l2.1-2.1c.3-.3.7-.3.9 0 .3.3.3.7 0 .9L22.5 15c.3.5.6 1 .7 1.6h3c.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/><circle fill="url(#azure)" cx="19.3" cy="17.3" r="2.4"/><path fill="url(#azure)" d="M31.8 4.8H6.9v25h24.9v-25zM26.2 18h-3c-.1.6-.3 1.1-.7 1.6l2.1 2.1c.3.3.3.7 0 .9-.3.3-.7.3-.9 0l-2.1-2.1c-.5.3-1 .6-1.6.7v3c0 .4-.3.7-.7.7-.4 0-.7-.3-.7-.7v-3c-.6-.1-1.1-.3-1.6-.7l-2.1 2.1c-.3.3-.7.3-.9 0-.3-.3-.3-.7 0-.9l2.1-2.1c-.3-.5-.6-1-.7-1.6h-3c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7h3c.1-.6.3-1.1.7-1.6L14 12.9c-.3-.3-.3-.7 0-.9.3-.3.7-.3.9 0l2.1 2.1c.5-.3 1-.6 1.6-.7v-3c0-.4.3-.7.7-.7.4 0 .7.3.7.7v3c.6.1 1.1.3 1.6.7l2.1-2.1c.3-.3.7-.3.9 0 .3.3.3.7 0 .9L22.5 15c.3.5.6 1 .7 1.6h3c.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/><path fill="url(#azure)" d="M2.1 0v34.7h34.5V0H2.1zm31.7 31.9H4.9v-29h28.9v29z"/><path fill="url(#azure)" d="M31.8 4.8H6.9v25h24.9v-25zM26.2 18h-3c-.1.6-.3 1.1-.7 1.6l2.1 2.1c.3.3.3.7 0 .9-.3.3-.7.3-.9 0l-2.1-2.1c-.5.3-1 .6-1.6.7v3c0 .4-.3.7-.7.7-.4 0-.7-.3-.7-.7v-3c-.6-.1-1.1-.3-1.6-.7l-2.1 2.1c-.3.3-.7.3-.9 0-.3-.3-.3-.7 0-.9l2.1-2.1c-.3-.5-.6-1-.7-1.6h-3c-.4 0-.7-.3-.7-.7 0-.4.3-.7.7-.7h3c.1-.6.3-1.1.7-1.6L14 12.9c-.3-.3-.3-.7 0-.9.3-.3.7-.3.9 0l2.1 2.1c.5-.3 1-.6 1.6-.7v-3c0-.4.3-.7.7-.7.4 0 .7.3.7.7v3c.6.1 1.1.3 1.6.7l2.1-2.1c.3-.3.7-.3.9 0 .3.3.3.7 0 .9L22.5 15c.3.5.6 1 .7 1.6h3c.4 0 .7.3.7.7 0 .4-.3.7-.7.7z"/></symbol><symbol id="svg-icons-db-money" data-name="icons-db-money" viewBox="0 0 28.8 34.7" width="28" height="34"><path fill="url(#azure)" d="M14.4 28.1c-8 0-14.4-2.4-14.4-5.4v6.6c0 3 6.4 5.4 14.4 5.4s14.4-2.4 14.4-5.4v-6.6c0 3-6.5 5.4-14.4 5.4zM28.8 14zM0 14z"/><path fill="url(#azure)" d="M14.4 19.4C6.4 19.4 0 17 0 14v6.6c0 3 6.4 5.4 14.4 5.4s14.4-2.4 14.4-5.4V14c0 3-6.5 5.4-14.4 5.4z"/><ellipse fill="url(#azure)" opacity=".2" cx="14.4" cy="5.4" rx="14.4" ry="5.4"/><path fill="url(#azure)" d="M0 5.4zM28.8 5.4z"/><path fill="url(#azure)" opacity=".5" d="M14.4 10.7C6.4 10.7 0 8.3 0 5.4V12c0 3 6.4 5.4 14.4 5.4S28.8 15 28.8 12V5.4c0 2.9-6.5 5.3-14.4 5.3z"/><path fill="url(#white)" d="M4.1 31.1c0 .5-.3.6-.7.4s-.7-.8-.7-1.2.3-.6.7-.4.7.7.7 1.2zM4.1 28.7c0 .5-.3.6-.7.4s-.7-.8-.7-1.2.3-.6.7-.4c.4.1.7.7.7 1.2zM4.1 22.5c0 .5-.3.6-.7.4s-.7-.8-.7-1.2c0-.5.3-.6.7-.4s.7.7.7 1.2zM4.1 20.1c0 .5-.3.6-.7.4s-.7-.8-.7-1.2c0-.5.3-.6.7-.4s.7.7.7 1.2z"/><path fill="url(#azure)" d="M17.3 7.5c-1.2.6-2.4.8-3.5.8l-.3-1.1c.8 0 1.7-.1 2.5-.4l-1.6-.9c-1.4.3-3 .8-4.4 0-1-.6-1.1-1.6.1-2.5l-1-.6 1-.6 1 .6c.9-.4 2-.7 3-.7l.3 1.1c-.7 0-1.4.2-2 .4l1.5.8c1.3-.5 2.9-.9 4.4-.1 1.2.7 1.3 1.7-.1 2.6l.9.5-1 .6-.8-.5zm-4.6-2.6l-1.3-.7c-.4.2-.4.5 0 .7.3.2.7.1 1.3 0zm2.8.5l1.4.8c.4-.4.4-.7 0-.9-.3-.2-.8-.1-1.4.1z"/><g fill="url(#azure)" opacity=".2"><path d="M1.5 7.7v6.6c.3.2.6.4 1 .6V8.4c-.4-.2-.7-.4-1-.7z"/><path class="st1" d="M6.5 9.8v6.6c.3.1.7.2 1 .2V10c-.3 0-.7-.1-1-.2zM3.5 8.9v6.6c.3.1.6.3 1 .4V9.3c-.4-.2-.7-.3-1-.4zM21.3 10.1v6.6c.3-.1.7-.1 1-.2V9.8c-.3.1-.7.2-1 .3zM28.8 12V5.4c0 .5-.2.9-.5 1.4v6.6c.3-.5.5-1 .5-1.4zM11.5 10.6v6.6c.3 0 .7 0 1 .1v-6.6c-.3 0-.7-.1-1-.1zM26.3 8.4V15c.4-.2.7-.4 1-.6V7.7c-.3.3-.6.5-1 .7zM24.3 9.3v6.6c.4-.1.7-.3 1-.4V8.9c-.3.1-.7.2-1 .4zM16.3 10.7v6.6c.3 0 .7 0 1-.1v-6.6c-.3 0-.7.1-1 .1z"/></g></symbol><symbol id="svg-icons-money-stack" data-name="icons-money-stack" viewBox="0 0 28.8 34.7" width="28" height="34"><ellipse fill="url(#azure)" opacity="0.2" cx="14.4" cy="5.4" rx="14.4" ry="5.4"/><polygon fill="url(#azure)" opacity="0.5" points="0,5.4 0,5.4 0,5.4 "/><polygon fill="url(#azure)" opacity="0.5" points="28.8,5.4 28.8,5.4 28.8,5.4 "/><path fill="url(#azure)" opacity="0.5" d="M14.4,10.7C6.4,10.7,0,8.3,0,5.4V12c0,3,6.4,5.4,14.4,5.4s14.4-2.4,14.4-5.4V5.4 C28.8,8.3,22.3,10.7,14.4,10.7z"/><path fill="url(#azure)" d="M17.3,7.5c-1.2,0.6-2.4,0.8-3.5,0.8l-0.3-1.1c0.8,0,1.7-0.1,2.5-0.4l-1.6-0.9 C13,6.2,11.4,6.7,10,5.9c-1-0.6-1.1-1.6,0.1-2.5l-1-0.6l1-0.6l1,0.6c0.9-0.4,2-0.7,3-0.7l0.3,1.1c-0.7,0-1.4,0.2-2,0.4l1.5,0.8 c1.3-0.5,2.9-0.9,4.4-0.1C19.5,5,19.6,6,18.2,6.9l0.9,0.5l-1,0.6L17.3,7.5z M12.7,4.9l-1.3-0.7C11,4.4,11,4.7,11.4,4.9 C11.7,5.1,12.1,5,12.7,4.9z M15.5,5.4l1.4,0.8c0.4-0.4,0.4-0.7,0-0.9C16.6,5.1,16.1,5.2,15.5,5.4z"/><g fill="url(#azure)" opacity="0.2"><path d="M1.5,7.7v6.6c0.3,0.2,0.6,0.4,1,0.6V8.4C2.1,8.2,1.8,8,1.5,7.7z"/><path d="M6.5,9.8v6.6c0.3,0.1,0.7,0.2,1,0.2v-6.6C7.2,10,6.8,9.9,6.5,9.8z"/><path d="M3.5,8.9v6.6c0.3,0.1,0.6,0.3,1,0.4V9.3C4.1,9.1,3.8,9,3.5,8.9z"/><path d="M21.3,10.1v6.6c0.3-0.1,0.7-0.1,1-0.2V9.8C22,9.9,21.6,10,21.3,10.1z"/><path d="M28.8,12V5.4c0,0.5-0.2,0.9-0.5,1.4v6.6C28.6,12.9,28.8,12.4,28.8,12z"/><path d="M11.5,10.6v6.6c0.3,0,0.7,0,1,0.1v-6.6C12.2,10.7,11.8,10.6,11.5,10.6z"/><path d="M26.3,8.4V15c0.4-0.2,0.7-0.4,1-0.6V7.7C27,8,26.7,8.2,26.3,8.4z"/><path d="M24.3,9.3v6.6c0.4-0.1,0.7-0.3,1-0.4V8.9C25,9,24.6,9.1,24.3,9.3z"/><path d="M16.3,10.7v6.6c0.3,0,0.7,0,1-0.1v-6.6C17,10.6,16.6,10.7,16.3,10.7z"/><path class="st2" d="M0,12c0,0.5,0.2,0.9,0.5,1.4V6.7C0.2,6.3,0,5.8,0,5.4V12z"/></g><polygon fill="url(#azure)" points="0,14 0,14 0,14 "/><polygon fill="url(#azure)" points="28.8,14 28.8,14 28.8,14 "/><path fill="url(#azure)" opacity="0.5" d="M14.4,19.4C6.4,19.4,0,17,0,14v6.6c0,3,6.4,5.4,14.4,5.4s14.4-2.4,14.4-5.4V14 C28.8,17,22.3,19.4,14.4,19.4z"/><g fill="url(#azure)" opacity="0.2"><path d="M1.5,16.4V23c0.3,0.2,0.6,0.4,1,0.6V17C2.1,16.8,1.8,16.6,1.5,16.4z"/><path d="M6.5,18.5v6.6c0.3,0.1,0.7,0.2,1,0.2v-6.6C7.2,18.7,6.8,18.6,6.5,18.5z"/><path d="M3.5,17.5v6.6c0.3,0.1,0.6,0.3,1,0.4v-6.6C4.1,17.8,3.8,17.7,3.5,17.5z"/><path d="M21.3,18.7v6.6c0.3-0.1,0.7-0.1,1-0.2v-6.6C22,18.6,21.6,18.7,21.3,18.7z"/><path d="M28.8,20.6V14c0,0.5-0.2,0.9-0.5,1.4V22C28.6,21.6,28.8,21.1,28.8,20.6z"/><path d="M11.5,19.3v6.6c0.3,0,0.7,0,1,0.1v-6.6C12.2,19.3,11.8,19.3,11.5,19.3z"/><path d="M26.3,17v6.6c0.4-0.2,0.7-0.4,1-0.6v-6.6C27,16.6,26.7,16.8,26.3,17z"/><path d="M24.3,17.9v6.6c0.4-0.1,0.7-0.3,1-0.4v-6.6C25,17.7,24.6,17.8,24.3,17.9z"/><path d="M16.3,19.3v6.6c0.3,0,0.7,0,1-0.1v-6.6C17,19.3,16.6,19.3,16.3,19.3z"/><path id="XMLID_97_" class="st2" d="M0,20.6c0,0.5,0.2,0.9,0.5,1.4v-6.6C0.2,15,0,14.5,0,14V20.6z"/></g><polygon id="XMLID_132_" class="st2" points="0,22.7 0,22.7 0,22.7 "/><polygon id="XMLID_130_" class="st2" points="28.8,22.7 28.8,22.7 28.8,22.7 "/><path fill="url(#azure)" opacity="0.5" d="M14.4,28.1C6.4,28.1,0,25.7,0,22.7v6.6c0,3,6.4,5.4,14.4,5.4s14.4-2.4,14.4-5.4v-6.6 C28.8,25.7,22.3,28.1,14.4,28.1z"/><g fill="url(#azure)" opacity="0.2"><path d="M1.5,25.1v6.6c0.3,0.2,0.6,0.4,1,0.6v-6.6C2.1,25.5,1.8,25.3,1.5,25.1z"/><path d="M6.5,27.2v6.6c0.3,0.1,0.7,0.2,1,0.2v-6.6C7.2,27.3,6.8,27.3,6.5,27.2z"/><path d="M3.5,26.2v6.6c0.3,0.1,0.6,0.3,1,0.4v-6.6C4.1,26.5,3.8,26.3,3.5,26.2z"/><path d="M21.3,27.4V34c0.3-0.1,0.7-0.1,1-0.2v-6.6C22,27.3,21.6,27.3,21.3,27.4z"/><path d="M28.8,29.3v-6.6c0,0.5-0.2,0.9-0.5,1.4v6.6C28.6,30.2,28.8,29.8,28.8,29.3z"/><path d="M11.5,28v6.6c0.3,0,0.7,0,1,0.1V28C12.2,28,11.8,28,11.5,28z"/><path id="XMLID_117_" class="st2" d="M0,29.3c0,0.5,0.2,0.9,0.5,1.4v-6.6C0.2,23.6,0,23.2,0,22.7V29.3z"/><path d="M26.3,25.7v6.6c0.4-0.2,0.7-0.4,1-0.6v-6.6C27,25.3,26.7,25.5,26.3,25.7z"/><path d="M24.3,26.6v6.6c0.4-0.1,0.7-0.3,1-0.4v-6.6C25,26.3,24.6,26.5,24.3,26.6z"/><path d="M16.3,28v6.6c0.3,0,0.7,0,1-0.1V28C17,28,16.6,28,16.3,28z"/></g></g></symbol><symbol id="svg-icons-notepad" data-name="icons-notepad" viewBox="0 0 28.9 34.6" width="28" height="34"><path fill="url(#azure)" opacity=".5" d="M0 5.9h28.9v5.3H0z"/><path fill="url(#azure)" opacity=".2" d="M0 11.2h28.9v23.4H0z"/><path fill="url(#azure)" opacity=".2" d="M2.2 27.6H15v1H2.2zM2.2 21.5h24v1h-24zM2.2 15.4h24v1h-24z"/><path fill="url(#azure)" opacity=".2" d="M8.6 28.1l.4-2.5.4-2.5 1.1.1.6.9 1.1.2.6.9-2.1 1.4z"/><path fill="url(#azure)" d="M9.4 23.1l1.1.1.6.9 1.1.2.6.9L25.6 5l-3.4-2.1L9.4 23.1zM8.6 28.1l.9-.6-.7-.5z"/><path fill="url(#azure)" opacity=".2" transform="rotate(32.363 24.126 3.547)" d="M22 3.1h4.3V4H22z"/><path fill="url(#azure)" opacity=".5" transform="rotate(32.363 25.034 2.115)" d="M23 .9h4v2.5h-4z"/></symbol><symbol id="svg-icons-notepad2" data-name="icons-notepad2" viewBox="0 0 29.8 28.7" width="29" height="28"><path fill="url(#azure)" opacity=".5" d="M0 0h22.9v5.3H0z"/><path fill="url(#azure)" opacity=".2" d="M0 5.3h22.9v23.4H0zM27.5 28.7l-.9-2.4-1-2.3 1-.4 1 .4 1-.4 1 .4-1 2.3z"/><path fill="url(#azure)" d="M25.6 24l1-.4 1 .4 1-.4 1 .4V3.4h-4V24z"/><path fill="url(#azure)" opacity=".2" d="M27.5 28.7l.5-1h-.9z"/><path fill="url(#azure)" opacity=".2" transform="rotate(.19 27.64 2.94)" d="M25.5 2.5h4.3v.9h-4.3z"/><path fill="url(#azure)" opacity=".5" transform="rotate(.19 27.645 1.244)" d="M25.6 0h4v2.5h-4z"/><path fill="url(#azure)" opacity=".2" d="M2.2 23.1H15v1H2.2zM2.2 18.5h18v1h-18zM2.2 14h18v1h-18zM2.2 9.4h18v1h-18z"/></symbol><symbol id="svg-icons-one-click" data-name="icons-one-click" viewBox="0 0 30 35" width="30" height="35"><path fill="url(#azure)" opacity=".6" d="M26.158 9.76l-5.703 5.702 2.197 2.197 3.506-3.506v8.343l-13.079 7.673-1.851-1.086 3.134-3.134-2.197-2.196-3.706 3.706L0 22.496V7.499l4.849 2.78-.032.032 7.348 7.348 2.197-2.197-.763-.763 2.256-1.293v1.438h3.107v-3.219l7.196-4.126V9.76zM11.547 22.259v-3.106H1.155v3.106h10.392z"/><path fill="url(#azure)" opacity=".3" d="M0 7.499L13.079 0l13.079 7.499-7.196 4.126V4.452h-3.107v8.954l-2.256 1.293-6.585-6.585-2.165 2.165L0 7.499z"/><path fill="url(#azure)" d="M23.518 31.263l2.954 3.599 1.695-1.416-2.83-3.507L30 28.24l-12.68-7.857L20.702 35l2.816-3.737z"/><path fill="url(#azure)" opacity=".8" d="M8.459 27.459l2.769 1.624-4.214 4.214-2.197-2.196 3.642-3.642zM26.158 9.76l1.645-1.646L30 10.311l-3.842 3.842V9.76z"/></symbol><symbol id="svg-icons-reliability" data-name="icons-reliability" viewBox="0 0 30 35" width="30" height="35"><path fill="url(#azure)" opacity=".67" d="M30 31.508L24.02 35 18 31.508v-6.943l6.02 3.492L30 24.565v6.943z"/><path fill="url(#azure)" opacity=".33" d="M18 24.565l6.02 3.492L30 24.565l-5.98-3.452L18 24.565z"/><path fill="url(#azure)" opacity=".67" d="M12 31.508L6.02 35 0 31.508v-6.943l6.02 3.492L12 24.565v6.943z"/><path fill="url(#azure)" opacity=".33" d="M0 24.565l6.02 3.492L12 24.565l-5.98-3.452L0 24.565z"/><path fill="url(#azure)" opacity=".67" d="M26 19.057l-10.963 6.401L4 19.057V6.327l11.037 6.402L26 6.327v12.73z"/><path fill="url(#azure)" opacity=".33" d="M4 6.327l11.037 6.402L26 6.327 15.037 0 4 6.327z"/><path fill="url(#azure)" d="M5.44 16.751l1.025.613V25l-1.025-.647v-7.602zM24.483 16.751l-1.025.613V25l1.025-.647v-7.602z"/><path fill="url(#azure)" d="M5.44 16.751l1.025.613 3.545-2.069-.975-.563-3.595 2.019zM24.483 16.751l-1.025.613-3.544-2.069.975-.563 3.594 2.019z"/></symbol><symbol id="svg-icons-customer-atlassian" data-name="icons-customer-atlassian" viewBox="0 0 576 122.5" width="576" height="122"><path d="M168.1 32.9c-.3-.9-1.2-1.6-2.2-1.6h-21.4c-1 0-1.9.6-2.2 1.6l-26.9 85.3c-.1.2-.1.5-.1.7 0 1.3 1 2.3 2.3 2.3h14.7c1 0 1.9-.7 2.2-1.6L153 56.9c.3-.9 1.2-1.6 2.2-1.6 1 0 1.9.7 2.1 1.6l8.6 29.7h-11.5c-1 0-1.9.7-2.2 1.7l-3.3 11.8c-.1.2-.1.4-.1.6 0 1.2 1 2.3 2.3 2.3h19.7l5.2 16.7c.3 1 1.2 1.6 2.2 1.6h14.7c1.3 0 2.3-1 2.3-2.3 0-.2 0-.5-.1-.7l-27-85.4zM257 29.6h-13.5c-1.2 0-2.2 1-2.3 2.3v87c0 1.2 1 2.3 2.3 2.3H257c1.2 0 2.3-1 2.3-2.3v-87c0-1.3-1-2.3-2.3-2.3zM110.9 30c-.7-.5-1.6-.6-2.4-.3-5.1 1.9-10.4 3.5-15.7 4.7-1 .2-1.8.9-2.2 1.9-3.6 9.9-12.8 19.3-22.4 29.1-.5.5-1.1.8-1.8.9-.7 0-1.4-.3-1.8-.9-9.7-9.8-18.9-19.2-22.6-29.1-.4-.9-1.2-1.7-2.2-1.9-5.3-1.2-10.6-2.8-15.7-4.8-.3-.1-.6-.2-.9-.2-.5 0-1.1.2-1.5.5-.7.5-1 1.3-1 2.2.8 8.2 4.1 16.3 9.9 24.6 5.5 7.9 12.7 15.2 19.6 22.3 12.8 13 24.9 25.4 26 39.7.1 1.3 1.2 2.3 2.5 2.3h15c1.4 0 2.5-1.1 2.5-2.5v-.1c-.5-9.6-4.1-19.1-11-29.3-1.4-2.1-3-4.2-4.6-6.2-.6-.7-.5-1.7.1-2.4l1.5-1.5c7-7.1 14.1-14.4 19.6-22.3 5.9-8.4 9.1-16.4 9.9-24.6.2-.8-.1-1.6-.8-2.1z"/><path d="M66.4 37.4c-4.7 0-7.4-.3-8.4-.3-1.3 0-2.3 1-2.3 2.3 0 .3.1.6.2.9 2.1 4.8 5.1 9.2 8.8 12.8.5.5 1.1.7 1.7.7.6 0 1.3-.2 1.7-.7 3.7-3.7 6.7-8 8.8-12.8.1-.3.2-.6.2-.9 0-1.2-1-2.3-2.3-2.3-1 0-3.7.3-8.4.3zM50.2 90.3c-.5-.5-1.1-.7-1.8-.7-.8 0-1.6.5-2 1.2-6.3 9.6-9.6 18.7-10 27.8v.1c0 1.4 1.1 2.5 2.5 2.5h15c1.3 0 2.4-1 2.5-2.3.4-4.7 1.9-9.3 4.2-13.4.6-1.2.5-2.7-.3-3.8-3.2-4-6.5-7.8-10.1-11.4zM66.4 27.2c11.9 0 23.7-1.9 34.9-5.8 10.9-3.7 21.1-9.1 30.3-15.9 1.3-1 1.6-2.9.6-4.3-.6-.8-1.5-1.3-2.5-1.3-.5 0-1 .1-1.4.4-18.4 10.1-39.8 15.4-61.8 15.4S23.1 10.4 4.7.3C4.1.1 3.6 0 3.1 0 2.1 0 1.2.5.6 1.3c-1 1.3-.7 3.2.6 4.3 9.2 6.9 19.4 12.2 30.2 15.9 11.3 3.8 23.1 5.7 35 5.7zM232.1 108c-.2-1.1-1.2-2-2.3-2-.2 0-.4 0-.6.1-2.1.6-4.3.9-6.4.9-3.3 0-4.8-1.4-4.8-4.7V69.7h13.1c1.2 0 2.3-1 2.3-2.3V57.2c0-1.3-1-2.3-2.3-2.3H218V39.2c0-1.3-1-2.3-2.3-2.3h-.3l-13.5 1.9c-1.1.2-2 1.1-2 2.3V55h-7.3c-1.3 0-2.3 1-2.3 2.3v10.2c0 1.2 1 2.3 2.3 2.3h7.3v34.8c0 11.9 6.3 18 18.7 18 4.6-.1 9.1-.8 13.4-2.2 1-.4 1.7-1.4 1.5-2.5l-1.4-9.9zM483.5 53.6c-7.1 0-14.2.9-21.1 2.7-1.1.3-1.8 1.4-1.6 2.6l1.6 9.8c.2 1.1 1.1 1.9 2.3 1.9h.4c5.4-1.1 10.8-1.7 16.3-1.7 9.7 0 11.3 2.1 11.3 8.7v5.8H478c-13.8 0-19.7 5.7-19.7 19.1 0 12.8 6.5 20.1 17.7 20.1 6.5 0 12.9-1.8 18.5-5.1l.6 2.1c.3 1 1.2 1.7 2.2 1.7h10.9c1.2 0 2.3-1 2.3-2.3V78c.1-17.9-7.3-24.4-27-24.4zm9 51.2c-3.4 1.9-7.3 2.8-11.2 2.9-4.2 0-5.5-1.3-5.5-5.5 0-4.1.8-5.4 5.8-5.4h10.9v8zM291.7 53.6c-7.1 0-14.3 1-21.2 2.7-1.1.3-1.8 1.4-1.7 2.5l1.6 9.8c.2 1.1 1.1 1.9 2.3 1.9h.4c5.4-1.1 10.9-1.7 16.3-1.7 9.7 0 11.3 2.1 11.3 8.7v5.8h-14.5c-13.8 0-19.7 5.7-19.7 19.1 0 12.8 6.5 20.1 17.7 20.1 6.5 0 12.9-1.8 18.5-5.1l.6 2.1c.3 1 1.2 1.7 2.2 1.7h11c1.3 0 2.3-1 2.3-2.3V77.8c.1-17.7-7.3-24.2-27.1-24.2zm9 51.2c-3.4 1.9-7.3 2.8-11.2 2.9-4.2 0-5.5-1.3-5.5-5.5 0-4.1.8-5.4 5.8-5.4h10.9v8zM448.5 29.6H435c-1.2 0-2.3 1-2.3 2.3v11.9c0 1.3 1 2.3 2.3 2.3h13.5c1.3 0 2.3-1 2.3-2.3V31.9c-.1-1.3-1.1-2.3-2.3-2.3zM560.5 53.6c-7.2.1-16.9 2.5-25.1 6.4l-1-3.4c-.3-1-1.2-1.6-2.2-1.6h-10c-1.3 0-2.3 1-2.3 2.3V119c0 1.2 1 2.3 2.3 2.3h13.5c1.3 0 2.3-1 2.3-2.3V76.2c4.9-2.5 11.7-5 15.8-5 3 0 4.2 1.1 4.2 4.2V119c0 1.2 1 2.3 2.3 2.3h13.5c1.3 0 2.3-1 2.3-2.3V73.6c-.1-13.3-5.3-20-15.6-20zM352.6 80.2c-8.4-2.2-8.4-2.3-8.4-6.9 0-3.1.3-4.6 7.2-4.6 5.4.1 10.8.7 16.2 1.6h.4c1.2 0 2.1-.9 2.3-2l1.3-10.3c.1-1.2-.6-2.2-1.7-2.5-6-1.3-12.2-1.9-18.4-1.9-20.7 0-25 7.8-25 19.6 0 12.9 2.4 17.3 18.3 21.1 10.5 2.5 10.5 4.4 10.5 7.5 0 4.1-.4 5.5-7.2 5.5-5.9-.1-11.8-.8-17.5-2.4-.2-.1-.4-.1-.6-.1-1.1 0-2 .8-2.2 1.9l-1.8 9.8c-.2 1.1.5 2.2 1.5 2.6 6.9 2.1 14.1 3.2 21.4 3.4 20.1 0 24.2-8.4 24.2-21-.1-14-2.5-16.6-20.5-21.3zM404.8 80.2c-8.4-2.2-8.4-2.3-8.4-6.9 0-3.1.3-4.6 7.2-4.6 5.4.1 10.8.7 16.2 1.6h.4c1.1 0 2.1-.9 2.3-2l1.3-10.3c.1-1.2-.6-2.2-1.7-2.5-6-1.3-12.2-1.9-18.3-2-20.7 0-25 7.8-25 19.6 0 12.9 2.4 17.3 18.3 21.1 10.5 2.5 10.5 4.4 10.5 7.5 0 4.1-.4 5.5-7.2 5.5-5.9-.1-11.8-.8-17.6-2.4-.2 0-.4-.1-.6-.1-1.1 0-2 .8-2.2 1.9l-1.8 9.8c-.2 1.1.5 2.2 1.5 2.6 6.9 2.1 14.2 3.2 21.4 3.4 20.1 0 24.2-8.4 24.2-21-.1-13.9-2.6-16.5-20.5-21.2zM448.5 54.9H435c-1.3 0-2.3 1-2.3 2.3v61.7c0 1.2 1 2.3 2.3 2.3h13.5c1.3 0 2.3-1 2.3-2.3V57.2c-.1-1.3-1.1-2.3-2.3-2.3z"/></symbol><symbol id="svg-icons-customer-digit" data-name="icons-customer-digit" viewBox="0 0 565.3 192" width="565" height="192"><path d="M78.7 90.3v-4.9h4.8c.5 0 .9-.4.9-.9v-4c0-.5-.4-.8-.9-.9h-4.9v-4.9c0-.5-.4-.9-.9-.9h-4c-.5 0-.9.4-.9.9v4.9H68c-.5 0-.9.4-.9.9v4c0 .5.4.9.9.9h4.9v4.9c0 .5.4.9.9.9h4.1c.4 0 .8-.4.8-.9zM124.6 80.6c0-.5-.4-.9-.9-.9h-15.5c-.5 0-.9.4-.9.9v4c0 .5.4.9.9.9h15.5c.5 0 .9-.4.9-.9v-4z"/><path d="M96 0C43 0 0 43 0 96s43 96 96 96 96-43 96-96S149 0 96 0zm48 129.6c0 8.4-6.9 15.3-15.3 15.3H63.3c-8.4 0-15.3-6.9-15.3-15.3V64.2c0-8.4 6.9-15.2 15.3-15.3h65.4c8.4.1 15.3 6.9 15.3 15.3v65.4z"/><path d="M118.5 102.7h-5.2c-.2 0-.3.1-.4.3-2.7 10-11.9 17-22.2 17-4.4 0-8.7-1.3-12.4-3.6-.1-.1-.3-.1-.4 0l-3.6 3.6c-.1.1-.1.2-.1.2 0 .1.1.2.1.3 4.8 3.4 10.6 5.2 16.4 5.2 13.5 0 25.2-9.4 28.1-22.6v-.1c.1-.2-.1-.3-.3-.3zM325.3 32.9h-16c-1.5 0-2.7 1.2-2.7 2.7V57c-7.9-5.3-17.2-8.1-26.7-8.1-26.3 0-48 21.7-48 48s21.7 48 48 48c9.5 0 18.8-2.8 26.7-8.1v5.4c0 1.5 1.2 2.7 2.7 2.7h16c1.5 0 2.7-1.2 2.7-2.7V35.6c-.1-1.5-1.3-2.7-2.7-2.7zM306.6 97c-.1 14.6-12.1 26.6-26.7 26.6s-26.7-12-26.7-26.7c0-14.6 12-26.7 26.7-26.7 14.6 0 26.6 12 26.7 26.6v.2zM562.6 48.9h-13.3V35.6c0-1.5-1.2-2.7-2.7-2.7h-16c-1.5 0-2.7 1.2-2.7 2.7v13.3h-13.3c-1.5 0-2.7 1.2-2.7 2.7v16c0 1.5 1.2 2.7 2.7 2.7h13.3v72c0 1.5 1.2 2.7 2.7 2.7h16c1.5 0 2.7-1.2 2.7-2.7v-72h13.3c1.5 0 2.7-1.2 2.7-2.7v-16c0-1.5-1.2-2.7-2.7-2.7zM501.3 48.9h-16c-1.5 0-2.7 1.2-2.7 2.7v90.7c0 1.5 1.2 2.7 2.7 2.7h16c1.5 0 2.7-1.2 2.7-2.7V51.6c-.1-1.5-1.3-2.7-2.7-2.7zM359.9 48.9h-16c-1.5 0-2.7 1.2-2.7 2.7v90.7c0 1.5 1.2 2.7 2.7 2.7h16c1.5 0 2.7-1.2 2.7-2.7V51.6c0-1.5-1.2-2.7-2.7-2.7zM466.6 48.9h-16c-1.5 0-2.7 1.2-2.7 2.7V57c-7.9-5.3-17.2-8.1-26.7-8.1-26.3 0-48 21.7-48 48s21.7 48 48 48c9.4 0 18.7-2.8 26.5-8-1.4 13.5-12.9 24-26.5 24-7.7 0-15-3.3-20-9.1-.9-1-2.1-1.6-3.5-1.6h-18.2c-1.3 0-2.3 1.1-2.3 2.3 0 .3.1.6.2.9 7.5 17.2 24.5 28.5 43.3 28.7 26.7.2 48.5-22.3 48.5-48.9V51.6c.1-1.5-1.1-2.7-2.6-2.7zm-45.3 74.7c-14.6 0-26.7-12-26.7-26.7 0-14.6 12-26.7 26.7-26.7 14.6 0 26.7 12 26.7 26.7-.1 14.6-12.1 26.7-26.7 26.7z"/></symbol><symbol id="svg-icons-customer-dronedeploy" data-name="icons-customer-dronedeploy" viewBox="0 0 576 124.3" width="576" height="124"><path d="M62.2 9.9c-14.4 0-27.4 5.8-36.9 15.3S9.9 47.8 9.9 62.2v.1c0 14.4 5.8 27.4 15.3 36.8 9.5 9.5 22.5 15.3 36.9 15.3v10h.1-.1c-17.1 0-32.6-7-43.9-18.3C6.9 94.9 0 79.3 0 62.3v-.1c0-17.2 6.9-32.7 18.2-44C29.4 7 45 0 62.2 0s32.7 7 44 18.2c11.3 11.3 18.2 26.8 18.2 44h.1v.1h-.1c0 17.1-6.9 32.6-18.2 43.8-11.3 11.3-26.7 18.3-44 18.3v-9.9c14.4 0 27.4-5.9 36.9-15.3 9.5-9.5 15.4-22.5 15.4-36.8h-.1v-.1h.1c0-14.4-5.9-27.4-15.3-36.9-9.6-9.6-22.7-15.5-37-15.5zm386.7 88h-6.5V49.7h6.3v5.5c2.9-4.4 7.2-6.5 12.8-6.5 5.3 0 9.7 1.9 13.3 5.6 3.5 3.7 5.4 8.4 5.4 13.9 0 5.3-1.7 9.6-5.3 13.2-3.5 3.5-7.8 5.4-13 5.4-6 0-10.3-2.1-12.9-6.2l-.1 17.3zm107.2-.1h-7l5.3-12.8L540 49.6h7.3l10.6 28 10.8-28h7.3l-19.9 48.2zM27.4 49.4s10.2-7.6 13.5-6.9l51.5-.4-26.1 44.5c-2.6 3.8-12.7 8.3-12.7 8.3L57 62.6 27.4 49.4zM245.5 87c-5.6 0-10.3-1.8-14-5.5-3.7-3.6-5.5-8.2-5.5-13.6 0-5.6 1.8-10.3 5.5-14 3.7-3.7 8.4-5.5 14-5.5 5.5 0 10.3 1.8 13.9 5.5 3.7 3.6 5.5 8.3 5.5 13.8s-1.8 10.2-5.5 13.8c-3.8 3.7-8.4 5.5-13.9 5.5zm88.9-12l.5-.5h11c-1.7 3.9-4.1 7-7.2 9.2-3.1 2.2-6.5 3.4-10.4 3.4-5.3 0-9.8-1.9-13.4-5.6-3.6-3.7-5.5-8.3-5.5-13.6s1.8-10 5.5-13.7c3.6-3.7 8.1-5.6 13.3-5.6 5.4 0 9.9 1.9 13.5 5.6 3.6 3.8 5.5 8.5 5.5 14.1 0 .9-.1 1.8-.3 3h-27.1c.3 2 1.1 3.6 2.5 4.9 1.5 1.3 3.3 1.8 5.4 1.8 2.5-.2 4.7-1.1 6.7-3zm83.4-26.5c4.9.1 9.1 1.9 12.7 5.5 3.5 3.7 5.4 8.1 5.4 13.3 0 .7-.1 1.9-.2 3.5h-29.8c.7 3 2.2 5.4 4.3 7.2 2.2 1.8 4.7 2.7 7.6 2.7 4.3-.2 7.7-2.2 10.1-6.3h6.8c-1.4 3.7-3.5 6.7-6.7 9-3.1 2.2-6.6 3.4-10.5 3.4-5.1 0-9.4-1.9-13-5.6-3.6-3.7-5.5-8.2-5.5-13.4s1.8-9.8 5.5-13.5c3.6-3.7 8-5.6 13.2-5.6l.1-.2zm101.9.2c5.4 0 10 1.8 13.8 5.5 3.8 3.6 5.7 8.1 5.7 13.3 0 5.3-1.9 9.8-5.7 13.5-3.8 3.7-8.4 5.6-13.8 5.6s-9.9-1.9-13.7-5.6c-3.8-3.7-5.7-8.3-5.7-13.5 0-5.2 1.9-9.6 5.7-13.3 3.8-3.7 8.3-5.5 13.7-5.5zM175.9 85.8H157V37.6h16.2c6.4 0 11.5 1.2 15.2 3.5 2.3 1.4 4.2 3.3 5.8 5.5 2.9 4.1 4.4 9.1 4.4 14.9 0 7.4-2.1 13.2-6.2 17.6-4.3 4.5-9.7 6.7-16.5 6.7zm39.1 0h-10.8V49.6h10.3v3.8c1.9-3.4 4.8-5.1 8.7-5.1h.3v10.9c-3.1.1-5.3.5-6.5 1.5-1.3 1-1.9 2.6-1.9 5l-.1 20.1zm66.4 0h-10.8V49.6h10.3v3.8c2.4-3.4 5.6-5.1 9.9-5.1 3.9 0 7.2 1.3 9.7 3.7 1.4 1.4 2.4 2.8 2.8 4.4.5 1.5.7 3.7.7 6.7v22.6h-10.8V66c0-5-1.9-7.5-5.6-7.5-4.1 0-6.2 2.4-6.2 7.1v20.2zm87.6 0h-15V37.6h17.1c6.6 0 12 2.2 16.2 6.5 4.6 4.8 7 10.8 7 17.9 0 6.8-2 12.4-6.1 16.8-4.2 4.6-10.7 7-19.2 7zm124.6 0h-6.7V37.6h6.7v48.2zm-32.3-5.2c3.5 0 6.3-1.3 8.6-3.7 2.4-2.5 3.5-5.5 3.5-9s-1.2-6.5-3.6-9.1c-2.5-2.5-5.4-3.8-8.8-3.8-3.4 0-6.2 1.3-8.5 3.7-2.4 2.5-3.5 5.5-3.5 9 0 3.6 1.2 6.6 3.5 9.2 2.4 2.4 5.4 3.7 8.8 3.7zm58.4-.1c3.5 0 6.5-1.3 9-3.7 2.5-2.5 3.7-5.5 3.7-9.1 0-3.5-1.3-6.5-3.7-9-2.5-2.5-5.5-3.7-9-3.7s-6.5 1.3-9 3.7c-2.5 2.5-3.7 5.5-3.7 9s1.3 6.5 3.7 9.1c2.4 2.4 5.4 3.7 9 3.7zM361 44.1v35.3h5.7c6.5 0 11.4-1.4 14.6-4.1 3.9-3.2 5.8-7.6 5.8-13.4 0-5.2-1.7-9.5-5.1-13-3.2-3.2-7.4-4.8-12.5-4.8H361zM245.5 58.4c-2.5 0-4.5.9-6.2 2.6-1.7 1.8-2.5 3.9-2.5 6.5s.8 4.9 2.5 6.6c1.6 1.8 3.7 2.6 6.3 2.6 2.5 0 4.5-.9 6.2-2.6 1.6-1.8 2.5-4 2.5-6.6 0-2.5-.8-4.7-2.5-6.5-1.9-1.7-3.9-2.6-6.3-2.6zm-76.3-9.9v26.4h5.3c7.8 0 11.8-4.4 11.8-13 0-4.3-1-7.5-3-9.9-2-2.4-4.9-3.5-8.6-3.5h-5.5zm239.3 10c-1.5 1.6-2.4 3.9-2.8 6.9H429c-.2-3-1.4-5.5-3.6-7.6-2.3-2.1-4.9-3.2-8-3.2-3.6 0-6.5 1.4-8.9 3.9zm-88.4 5.4h16.3c-.4-1.9-1.4-3.4-2.8-4.5s-3.3-1.7-5.4-1.7c-4.5-.1-7.2 2-8.1 6.2z"/></symbol><symbol id="svg-icons-customer-emarsys" data-name="icons-customer-emarsys" viewBox="0 0 576 120.6" width="576" height="120"><path d="M148.9 37.4c-18.5 0-30.2 12.5-30.2 28.7v1.5c0 17.2 12.7 26.8 30.4 26.8 12.7 0 21.2-4.2 26.3-8.7l-6.2-8.7c-3.6 4.5-10.2 7.6-19.5 7.6-11 0-18.9-4.7-19.5-16.1h48.2V67c.2-14.5-7.4-29.6-29.5-29.6zm-18.1 22.5c1.7-8.7 8.1-13.8 18.1-13.8 11 0 16.4 5.5 17.6 13.8h-35.7zM260.6 37.4c-9.8 0-17 5.1-21 10.2-3-6.2-10-10.2-18.7-10.2-10.4 0-17.2 4.7-20.6 9.1l-.8-8.1H188V93h12.7V55.2c3.4-4.7 9.3-7.2 15.7-7.2 10 0 13.8 5.1 13.8 13.8v31h13V54.6c3.4-3.8 8.1-6.4 15.1-6.4 10.2 0 14.4 5.5 14.4 15.5v29.1h12.7V63.9c.3-17.6-8-26.5-24.8-26.5zM0 55.9l41.6 18.6L83 55.9V37.4L41.6 55.9l-20.8-9.4L83 18.7V0L0 37.4zM21 120.6l62-27.4V74.5l-62 27.4zM523.8 38.7h-13.4v-.2L491.7 83l-18.3-44.6h-13.6l25.1 54.4c-2.3 5.1-6.6 12.7-11.7 20.2l12.1 3.8c11.5-18.7 24.6-46.9 38.5-78.1zM434.1 60.5c-11-1.3-18.1-1.1-18.1-5.9 0-5.1 5.1-7.6 14-7.6 7.9 0 15.1 1.5 19.8 4.7l3.6-9.6c-6.4-3-14.4-4.7-23.6-4.7-17 0-24.8 8.1-24.8 18.1 0 10 8.1 12.3 21.7 14 11.5 1.1 18.5.6 18.5 7 0 5.9-6.2 8.3-16.1 8.3-8.7 0-17-2.8-22.1-7.4l-4.2 10.4c6.6 4 16.1 6.6 26.5 6.6 16.4 0 26.3-5.9 26.3-18.5.2-12.8-11.5-14.3-21.5-15.4zM376.4 50.8l-.6-12.5h-11.5v54.6h12.3V60.5c2.1-6.4 7-11.3 13.2-11.3 3.2 0 5.7.8 7.4 1.9l2.1-11.9c-1.7-.8-4.9-1.5-7.6-1.5-7.7.1-13 4.8-15.3 13.1zM351.3 61.5v-.6c.4-17-11.3-23.6-26.8-23.6-11.5 0-18.9 2.5-24.8 5.7l4 9.8c3.8-3.4 10.6-5.7 19.3-5.7 10 0 17.2 3 17 12.7l-.2 3.4c-5.3-2.3-12.5-4.2-20.4-4.2-13.6 0-24.4 4.2-24.4 18.1 0 12.5 11.9 17.2 23.8 17.2 11.3 0 17.8-4.2 21.5-7.9.2 2.3.6 4.9 1.1 6.8h10.8c-.6-2.3-1.1-6.2-1.1-14.7 0-5.3 0-11.6.2-17zM340 78.6c-3.8 4.2-11 6.2-18.3 6.2-7.9 0-14.4-1.9-14.4-8.5 0-7 5.5-8.7 15.3-8.7 6.4 0 12.5 1.5 17.6 3.2v7.9h-.2zM554.5 60.5c-11-1.3-18.1-1.1-18.1-5.9 0-5.1 5.1-7.6 14-7.6 7.9 0 15.1 1.5 19.8 4.7l3.6-9.6c-6.4-3-14.4-4.7-23.6-4.7-17 0-24.8 8.1-24.8 18.1 0 10 8.1 12.3 21.7 14 11.5 1.1 18.5.6 18.5 7 0 5.9-6.2 8.3-16.1 8.3-8.7 0-17-2.8-22.1-7.4l-4.2 10.4c6.6 4 16.1 6.6 26.5 6.6 16.4 0 26.3-5.9 26.3-18.5.2-12.8-11.5-14.3-21.5-15.4z"/></symbol><symbol id="svg-icons-customer-fathom" data-name="icons-customer-fathom" viewBox="0 0 576 375.7" width="576" height="375"><path d="M313.5 324.9h-45v-24.8h-21.3v69.6h21.3v-26.3h45v26.3h21.3v-69.6h-21.3zM156.1 317.4H186v52.3h21.4v-52.3h30v-17.3h-81.3zM215.4 180.2l-7.5 4.9c-2.5 1.6-3.1 5-1.4 7.5l3.3 4.9c1.7 2.5 5 3.3 7.4 1.7l7.5-4.9c2.4-1.6 3.1-5 1.4-7.5l-3.3-4.9c-1.7-2.6-5-3.3-7.4-1.7zM70.5 369.7h23.7l26.7-41.4 26.8 41.4h23.7l-50.5-75.5zM142.4 164.9h.4c.2 0 .3-.1.5-.1.9 8 2.5 15.5 5 22.6-4.2-4.1-10.3-6.4-16-6.4-1.4 0-2.8.1-4.1.4-.4.1-.7.3-.8.6-.2.3-.2.7-.1 1 2.9 9.4 12.1 16.8 21.2 16.9 1.4 0 2.8-.2 4.2-.6.2-.1.5-.2.6-.4 3.3 6.3 7.4 12.2 12.4 17.7-2.2-.8-4.6-1.2-6.9-1.2-5.8 0-11.7 2.1-15.7 6-.3.3-.4.6-.4 1s.2.7.4 1c4.5 3.9 10.5 5.9 16.3 5.9 5.3 0 10.4-1.7 13.8-5.4 5 4.3 10.7 8.3 17.2 11.9h-.6c-7.1 0-14.5 3.7-18.5 9.5-.2.2-.2.5-.2.8l-.2.9c.1 0 .4.1.8.1 3.7 2.1 7.9 3.1 12.1 3.1 7.1 0 14.1-2.9 17.6-8.7l.1-.1c2.3 1 4.7 2 7.1 3 .3.1.6.2 1 .2 1 0 2-.6 2.4-1.6.5-1.3-.1-2.8-1.5-3.3-2.2-.9-4.3-1.8-6.4-2.7 1.1-2.2 1.5-4.6 1.5-6.9 0-8.8-6.6-17.5-14.8-20.3h-.1l-.4-.4-1 1 .1.1c-.1.1-.2.2-.2.3-.5 1.8-.7 3.7-.7 5.5 0 5.8 2.1 11.7 5.7 16-6.9-3.8-12.9-7.9-18-12.4l.2-.1c4.2-3.5 6.1-8.7 6.1-14 0-6-2.4-12.2-6.6-16.3-.3-.3-.6-.4-1-.4s-.7.2-.9.5c-3.5 4.4-5.3 10.1-5.3 15.6 0 3.4.7 6.8 2.2 9.7-5.4-5.6-9.7-11.7-13.1-18.2.1 0 .3 0 .4-.1 6.9-3.2 10.2-10.8 10.2-18.1 0-4-1-8.1-3-11.4-.2-.3-.5-.5-.8-.6-.3-.1-.7 0-1 .2-6.1 4.6-9.9 12.3-9.9 19.5v.9c-2.5-6.8-4.1-14.1-5-21.8h.2c9.9-1.4 16.1-11.6 16.1-21.1 0-1.7-.2-3.4-.6-5-.1-.3-.3-.6-.6-.8-.3-.2-.7-.2-1-.1-7 2.5-12.7 8.5-14.9 15.2-.1-1.4-.1-2.8-.1-4.2 0-5.7.3-11.5.9-17.5.2.3.5.4.8.5.9.2 1.8.2 2.7.2h.1c10.5-.1 19.3-10.2 20-20.3 0-.4-.1-.7-.4-1-.3-.3-.6-.4-1-.4-9.3.3-18.5 6.5-21.5 14.7.4-3.1.8-6.2 1.3-9.4 5.4-3.6 8-10.3 8-16.7 0-4.1-1-8.2-3.1-11.6-.2-.3-.5-.5-.9-.6-.4-.1-.7 0-1 .3-6.1 4.6-9.7 12.2-9.7 19.4 0 2.7.5 5.4 1.7 7.9-.3 2.2-.7 4.4-1 6.6-2.2-7.6-9.1-14.1-16.8-15.7-.4-.1-.7 0-1 .2-.3.2-.5.6-.5.9-.1.8-.1 1.6-.1 2.4.1 10.5 7.1 21.2 17.1 22.6H143.7c-.6 6-.9 11.8-.9 17.4 0 1.8 0 3.6.1 5.4-3.4-7.2-11.3-12.4-19.1-12.7-.4 0-.7.1-1 .4-.3.3-.4.6-.4 1 .4 10.8 9.4 21.5 20 21.6zM234.5 188.2c2.2-1.4 2.8-4.4 1.4-6.6l-4.3-6.6c-.9-1.4-2.4-2.2-4-2.2-.9 0-1.8.3-2.6.8-2.2 1.4-2.8 4.4-1.4 6.6l4.3 6.7c1.4 2.1 4.4 2.8 6.6 1.3zM71.5 329.8H21.4v-12.9h50.3v-16.8H.1v69.6h21.3V346h50.1zM541 369.7h20.7v-37.9L541 362zM573 365c.3-.2.4-.6.4-1.1 0-.5-.2-.9-.5-1.2-.3-.3-.8-.4-1.4-.4h-2.1v5.5h.9v-2.4h.9l1.5 2.4h.9l-1.6-2.4c.4 0 .8-.1 1-.4zm-1.8-.2h-.9v-1.7h1.5c.2 0 .3.1.4.1l.3.3c.1.1.1.3.1.4 0 .2 0 .4-.1.5l-.3.3c-.1.1-.3.1-.5.1h-.5zM559.9 300.1h-24.4l-26.8 41.4-26.8-41.4h-26.2v69.6h20.8v-42.3l32.2 48.3 51.2-75.6z"/><path d="M575.6 363.3c-.3-.6-.6-1.1-1-1.5-.4-.4-.9-.7-1.5-1s-1.2-.4-1.8-.4c-.6 0-1.3.1-1.8.4-.6.2-1.1.6-1.5 1-.4.4-.8.9-1 1.5-.3.6-.4 1.2-.4 1.8 0 .7.1 1.3.4 1.9s.6 1.1 1 1.5c.4.4.9.8 1.5 1 .6.2 1.2.4 1.8.4.6 0 1.3-.1 1.8-.4.6-.2 1.1-.6 1.5-1 .4-.4.8-.9 1-1.5.3-.6.4-1.2.4-1.9-.1-.6-.2-1.3-.4-1.8zm-.8 3.4c-.2.5-.5.9-.8 1.3-.3.4-.8.7-1.2.9-.5.2-1 .3-1.5.3-.6 0-1.1-.1-1.5-.3-.5-.2-.9-.5-1.2-.9-.3-.4-.6-.8-.8-1.3-.2-.5-.3-1-.3-1.6 0-.6.1-1.1.3-1.6.2-.5.5-.9.8-1.3.4-.4.8-.6 1.2-.8.5-.2 1-.3 1.5-.3s1 .1 1.5.3c.5.2.9.5 1.2.8.4.4.6.8.8 1.3.2.5.3 1 .3 1.6 0 .6-.1 1.1-.3 1.6zM354 241.3v.1c3.5 5.8 10.5 8.7 17.6 8.7 4.2 0 8.4-1 12.1-3.1.3-.2.5-.5.6-.8.1-.4 0-.7-.2-1-4-5.8-11.4-9.4-18.5-9.5h-.6c6.4-3.6 12.1-7.6 17.1-12 3.5 3.7 8.6 5.5 13.8 5.5 5.8 0 11.8-2.1 16.2-5.9.3-.3.4-.6.5-1 0-.4-.1-.7-.4-1-4.1-3.9-10-6-15.7-6-2.4 0-4.7.4-6.9 1.2 5-5.5 9.2-11.4 12.4-17.7.2.2.4.3.6.4 1.4.4 2.8.6 4.1.6h.1c9.1-.1 18.3-7.5 21.2-16.9.1-.3.1-.7-.1-1-.2-.3-.5-.5-.8-.6-1.3-.3-2.7-.4-4.1-.4-5.8 0-11.9 2.4-16.1 6.5 2.5-7.1 4.2-14.7 5.1-22.6.2.1.3.1.5.1h.4c10.6-.1 19.6-10.9 20.3-22 0-.4-.1-.7-.4-1-.2-.3-.6-.4-1-.4-7.8.3-15.7 5.5-19.1 12.7.1-1.8.1-3.6.1-5.4 0-5.6-.3-11.5-.9-17.4H412.2c9.9-1.4 17-12.1 17-22.6 0-.8-.1-1.6-.1-2.5-.1-.3-.2-.7-.5-.9-.3-.2-.7-.3-1-.2-7.7 1.6-14.7 8-16.9 15.7-.3-2.2-.7-4.4-1-6.6 1.2-2.4 1.7-5.1 1.7-7.9 0-7.2-3.6-14.9-9.7-19.4-.3-.2-.6-.3-1-.2-.3.1-.7.3-.9.6-2.1 3.4-3.2 7.5-3.2 11.6 0 6.5 2.6 13.1 8 16.7.5 3.2.9 6.3 1.3 9.4-3-8.2-12.1-14.4-21.5-14.7-.4 0-.7.1-1 .4-.2.3-.4.6-.4 1 .6 10.1 9.5 20.2 20 20.3.9 0 1.9-.1 2.8-.2.3-.1.6-.2.8-.5.6 6 .9 11.9.9 17.5 0 1.4 0 2.8-.1 4.2-2.3-6.7-8-12.7-14.9-15.1-.4-.1-.7-.1-1 .1-.3.2-.6.5-.6.8-.4 1.6-.6 3.3-.6 5 0 9.5 6.2 19.7 16.1 21.1h.2c-.9 7.7-2.5 15-5 21.8 0-.3.1-.6.1-.9 0-7.3-3.7-15-9.9-19.5-.3-.2-.7-.3-1-.2-.4.1-.7.3-.9.6-2 3.3-3 7.4-3 11.4 0 7.4 3.3 14.9 10.3 18.1.1 0 .2.1.3.1-3.4 6.6-7.7 12.6-13.1 18.2 1.5-2.9 2.2-6.3 2.2-9.7 0-5.5-1.8-11.2-5.3-15.6-.3-.3-.6-.4-1-.5-.3 0-.7.1-1 .4-4.3 4.1-6.6 10.3-6.6 16.3 0 5.3 1.8 10.5 6.1 14l.2.1c-5.2 4.5-11.2 8.7-18.1 12.5 3.6-4.2 5.7-10.2 5.7-16 0-1.9-.2-3.7-.7-5.5-.1-.4-.3-.7-.6-.8-.3-.2-.7-.2-1-.1-8.3 2.9-14.8 11.5-14.9 20.4 0 2.3.5 4.7 1.6 6.9-2.1.9-4.2 1.8-6.4 2.7-1.3.5-2 2-1.5 3.3.4 1 1.4 1.6 2.4 1.6.3 0 .6-.1 1-.2 2.9-1 5.2-2 7.5-3.1zM350.4 194.2c2.7-4 1.5-9.5-2.5-12.1l-51.6-33.9 51.9-34.1c.4-.3.8-.7 1.2-1l24.8-24.4c.8-.8.9-2 .3-3-.6-.9-1.8-1.3-2.9-.9l-32.3 13.1c-.5.2-1 .4-1.4.7l-50.2 33v-29.2h2c2.8 0 5-2.3 5-5v-2.7c4.4-1 7.7-5 7.7-9.8-.1-4.6-3.4-8.5-7.7-9.5V71L345 58.7c2.5-.6 4.1-3 3.8-5.5-.3-2.5-2.5-4.4-5-4.4h-56V24.1h56.1c2.8 0 5.1-2.3 5.1-5.1 0-2.4-1.8-4.5-4-4.9L291 .2c-.4-.1-.8-.2-1.3-.2h-21.2c-2.8 0-5.1 2.3-5.1 5v14c0 .5.1 1 .3 1.5h-6.9c-2.8 0-5 2.3-5 5.1s2.3 5 5 5h13.3v11.7h-13.3c-2.8 0-5 2.3-5 5 0 2.8 2.3 5.1 5 5.1h6.9c-.2.5-.3.9-.3 1.5v43.5c0 2.8 2.3 5 5.1 5h1.6V131l-33.5-22 8.7-13.3c2.7-4.2 1.6-9.9-2.6-12.7l-18.1-11.9c-4.2-2.8-9.9-1.6-12.7 2.6L203 87.3c-3.7-1.3-7.9.1-10.1 3.5-2.2 3.4-1.8 7.8.8 10.7l-8.4 12.7c-2.8 4.2-1.6 9.9 2.6 12.7l18.1 11.9c4.2 2.8 9.9 1.6 12.7-2.6l8.3-12.5 36.5 24-29.1 19.2c-2.4 1.6-3 4.7-1.5 7l4.6 7c1.5 2.3 4.7 3 7 1.4l25.6-16.8v52.3c0 4.9 4 8.8 8.8 8.8 4.9 0 8.8-3.9 8.8-8.8v-54.2l50.5 33.1c4.1 2.7 9.6 1.5 12.2-2.5zm5.6-98l1.5 2.2-8.2 8-3.9-5.9 10.6-4.3zM411.7 298.6h-34.2c-19.2 0-30.6 4.8-30.6 25.2v20.7c0 20.4 11.4 25.2 30.6 25.2h34.2c19.2 0 30.7-4.8 30.7-25.2v-20.7c0-20.4-11.5-25.2-30.7-25.2zm8.8 39.3c0 10.1-2.1 13.9-12.2 13.9H381c-10.1 0-12.2-3.8-12.2-13.9v-7.5c0-8.6 2.1-13.9 13.4-13.9h25c11.2 0 13.4 5.3 13.4 13.9v7.5z"/></symbol><symbol id="svg-icons-customer-harmonix" data-name="icons-customer-harmonix" viewBox="0 0 576 85.2" width="576" height="85"><path d="M116.5 14.8s-2.7-7.7-12.7-7.7S91 14.8 91 14.8 71.7 65.3 71.1 66.5c-.6 1.3-.8 2.6-.8 3.2 0 5.8 3.8 8.6 9.7 8.6 4.4 0 7.6-3.6 7.6-3.6l4.2-5c2.5-2.9 7.6-3.2 7.6-3.2h8.5s5.1.3 7.6 3.2l4.3 5s3.2 3.6 7.6 3.6c5.9 0 9.7-2.8 9.7-8.6 0-.6-.2-1.9-.8-3.2-.5-1.2-19.8-51.7-19.8-51.7zm-9.6 38.5h-6.1c-3 0-3-3.6-3-3.6s1.1-11.4 6.1-11.4 6.1 11.4 6.1 11.4-.1 3.6-3.1 3.6zM52 7.1c-10.5 0-10.5 10.5-10.5 10.5v7.1s0 7.4-10.8 7.4C20 32.1 20 24.7 20 24.7v-7.1S20 7.1 9.5 7.1-1 17.6-1 17.6v52.1s0 8.6 10.4 8.6C20 78.4 20 69.7 20 69.7V56c0 .3 0-6.4 10.8-6.4s10.8 6.7 10.8 6.4v13.8s0 8.6 10.5 8.6c10.4 0 10.4-8.6 10.4-8.6V17.6S62.5 7.1 52 7.1zM203.4 40.4c8.2-11.1-.2-33.3-20.7-33.3h-27.2c-10.7 0-10.7 10.5-10.7 10.5v52.1s0 8.6 10.1 8.6c10.7 0 10.7-8.6 10.7-8.6V58.1s0-4.9 5.4-4.9c4.1 0 4.8 2.7 4.8 2.7s7.4 15.9 10 19.2c2.5 3.2 7.4 3.2 7.4 3.2h6.7c9.2 0 4.2-9.2 4.2-9.2l-7-14.3c-1.9-3.9.3-6.2.3-6.2l6-8.2zM175 38.5h-3c-6.7 0-6.7-1.7-6.7-6.5 0-4.3 0-6 6.7-6h3c5.3 0 9 1.5 9 6 0 4.9-3.7 6.5-9 6.5zM452 7.1c-8.1 0-8.2 7.7-8.2 7.7v17.5c0 3.2-1.9 4.1-3 4.1-3.8 0-6-4.3-6-4.3l-11.7-18.7s-3.6-6.3-9.9-6.3h-3.4c-9.6 0-9.6 7.7-9.6 7.7v54.9s0 8.7 9.6 8.7 9.6-8.7 9.6-8.7V53.3c0-3.6 3.6-4.3 6.4 0l11.9 17.2c4.5 6.9 7.1 7.9 12.1 7.9h4c7.6 0 7.6-10 7.6-10V14.7c.1 0 .1-7.6-9.4-7.6zM348.1 0c-23.5 0-42.6 19.1-42.6 42.6s19.1 42.6 42.6 42.6 42.6-19.1 42.6-42.6S371.6 0 348.1 0zm0 78c-19.5 0-35.4-15.9-35.4-35.4s15.9-35.4 35.4-35.4 35.4 15.9 35.4 35.4S367.6 78 348.1 78zM286.7 7.1h-11.4s-7-.1-9.3 8.2c-2.3 8.3-5.6 20.5-6.4 22.8-.7 2.3-2.1 3.4-3.4 3.4-1.3 0-2.6-1.1-3.4-3.4-.7-2.3-4.1-14.5-6.4-22.8-2.3-8.2-9.2-8.2-9.3-8.2H226c-8.8 0-8.8 9.6-8.8 9.6v53s0 8.6 9.3 8.6c9.2 0 9.2-8.6 9.2-8.6V56c0-2.7 5.5-4.3 6.9 0 0 0 3.5 11.7 4.1 13.8.8 2.2 1.7 8.6 9.5 8.6s8.8-6.4 9.5-8.6c.7-2 4.2-13.8 4.2-13.8 1.5-4.3 6.9-2.7 6.9 0v13.7s0 8.6 9.2 8.6c9.3 0 9.3-8.6 9.3-8.6v-53c.2 0 .2-9.6-8.6-9.6zM487 7.1c-10 0-11.6 7.7-11.6 10.5v50.2c0 2.8 1.6 10.5 11.6 10.5s11.6-7.7 11.6-10.5V17.6c0-2.8-1.6-10.5-11.6-10.5zM574.1 69.7L558.9 47c-.9-1.3-1.8-2.9-1.8-5.6 0-3.8 2.5-6.7 2.5-6.7S569.2 21 570 19.6c6.4-10.7-8.8-12.7-8.8-12.7-6.8 0-9.2 3.6-9.2 3.6l-6.4 7.2c-2.4 2.6-3.3 2.7-4.5 2.7-1.1 0-2-.1-4.5-2.7l-6.4-7.2s-2.3-3.6-9.1-3.6c0 0-15.2 2-8.8 12.7.8 1.4 10.5 15.2 10.5 15.2s2.4 3 2.5 6.7c0 2.7-.9 4.3-1.8 5.6l-15.2 22.7c-2.4 3.3.2 8.6 6.1 8.6h6.5c.1 0 7.3 0 11-5.4l5.7-8.6s1.1-1.9 3.5-1.9 3.5 1.9 3.5 1.9l5.7 8.6c3.7 5.4 11 5.4 11 5.4h6.5c6.1 0 8.7-5.4 6.3-8.7z"/><path d="M348.1 11.5c-17.2 0-31.1 13.9-31.1 31.1 0 17.2 13.9 31.1 31.1 31.1 17.2 0 31.1-13.9 31.1-31.1 0-17.2-13.9-31.1-31.1-31.1zm-8.7 26.9c-3 0-5.4-2.4-5.4-5.4 0-3 2.4-5.4 5.4-5.4 3 0 5.4 2.4 5.4 5.4.1 3-2.3 5.4-5.4 5.4z"/></symbol><symbol id="svg-icons-customer-interloop" data-name="icons-customer-interloop" viewBox="0 0 576 105.2" width="576" height="105"><path d="M171.1 13.7c-2 0-3.3 1.5-3.3 3.5v67.2c0 2 1.4 3.5 3.3 3.5 2.1 0 3.6-1.5 3.6-3.5V17.2c0-2-1.5-3.5-3.6-3.5zM214.2 31.2c-8 0-14.1 3.6-17.5 9.2v-4.7c0-2-1.5-3.3-3.5-3.3s-3.3 1.4-3.3 3.3v48.8c0 2 1.4 3.3 3.3 3.3 2 0 3.5-1.4 3.5-3.3v-32c.9-9.2 6.9-14.9 16.3-14.9 10 0 16.3 6.7 16.3 17.3v29.6c0 2 1.4 3.3 3.3 3.3 2.1 0 3.5-1.4 3.5-3.3V53.6c-.1-13.5-8.8-22.4-21.9-22.4zM140.9 60c-1.5-2.9-3.5-5.6-5.9-7.9-2.3-2.2-5-4-7.9-5.3-2.4-1.1-4.9-1.8-7.5-2.2.1-3.2-.1-6.4-.7-9.5-.7-4.1-2.1-8-4-11.7-2.2-4.2-5-8.1-8.4-11.3-3.5-3.4-7.7-6.2-12.1-8.2C90.7 2.2 87 1.1 83.1.5c-1.3-.2-2.7-.3-4-.4-.7-.1-1.5-.1-2.2-.1h-.6c-.7 0-1.5 0-2.2.1-1.4.1-2.7.2-4.1.4-3.8.6-7.5 1.7-11 3.3-4.4 2-8.4 4.7-11.9 8.1-3.6 3.4-6.5 7.4-8.7 11.8-1.1 2.1-2 4.3-2.7 6.6h-.3c-1.2.1-2.4.2-3.5.4-3.4.5-6.6 1.5-9.7 2.9-3.8 1.7-7.4 4.1-10.4 7C8.5 43.5 5.9 47 4 50.8 2.4 54 1.3 57.3.6 60.8c-.7 4-.8 8.1-.3 12.1.5 3.8 1.7 7.6 3.3 11 1.9 4 4.6 7.7 7.8 10.7 3.4 3.2 7.3 5.9 11.7 7.7 2.3 1 4.8 1.7 7.3 2.2 2.3.4 4.7.7 7.1.7 2.4 0 4.8-.2 7.1-.7 2.5-.5 4.9-1.2 7.3-2.2 4.3-1.8 8.3-4.4 11.7-7.7 2.8-2.7 5.2-5.9 7.1-9.3 2 .3 4 .4 6 .4 2.7 0 5.4-.3 8.1-.8 1.2-.2 2.4-.5 3.6-.8.2.6.5 1.2.8 1.7 1.5 3.1 3.6 5.9 6 8.2 2.6 2.5 5.7 4.5 9 5.9 1.8.7 3.7 1.3 5.6 1.7 1.8.3 3.6.5 5.5.5 1.8 0 3.5-.2 5.3-.5 2-.4 3.9-1 5.8-1.8 3.3-1.4 6.4-3.4 9-6 2.5-2.4 4.5-5.2 6-8.3 1.3-2.7 2.1-5.6 2.5-8.5.4-3.1.3-6.3-.3-9.3-.6-2.7-1.5-5.3-2.7-7.7zM58.2 89.2c-2.7 2.6-5.8 4.7-9.3 6.1-1.9.8-3.8 1.4-5.8 1.7-1.9.4-3.8.5-5.6.5-1.9 0-3.8-.2-5.6-.5-2-.4-3.9-1-5.8-1.7-3.4-1.4-6.6-3.5-9.3-6.1-2.6-2.5-4.7-5.5-6.3-8.7-1.3-2.8-2.2-5.7-2.6-8.8-.4-3.3-.3-6.7.3-10 .6-2.8 1.6-5.5 2.9-8 1.6-2.9 3.6-5.5 6-7.8 2.4-2.2 5.1-4 8-5.4 2.5-1.1 5.1-1.9 7.7-2.3.3-.1.7-.1 1-.1-.4 3.6-.4 7.2.1 10.8.6 4.4 1.9 8.6 3.8 12.6 2.2 4.6 5.2 8.7 8.9 12.3 1.9 1.8 4 3.5 6.2 5s4.6 2.7 7.1 3.8c.9.4 1.8.7 2.7 1-1.1 2-2.6 3.9-4.4 5.6zm8.9-17.5c-.2 1.6-.6 3.2-1.1 4.8-1-.3-2-.7-2.9-1.1-4.1-1.7-7.8-4.1-10.9-7.2-3.1-2.9-5.6-6.4-7.4-10.3-1.6-3.3-2.6-6.8-3.1-10.4-.4-3.1-.4-6.3 0-9.4l.4.1c2.7.4 5.3 1.2 7.7 2.3 3 1.3 5.7 3.2 8 5.4 2.5 2.3 4.5 5 6.1 7.9 1.3 2.5 2.3 5.1 2.8 7.9.7 3.3.9 6.7.4 10zm19.4-3.4c-.5 2.8-.6 5.7-.2 8.5-1 .3-2 .5-3.1.7-2.2.4-4.4.6-6.7.6-1 0-2 0-3-.1.5-1.7.8-3.3 1.1-5 .6-4 .5-8.1-.3-12.1-.6-3.5-1.8-6.9-3.4-10-1.9-3.8-4.5-7.3-7.6-10.3-3.1-2.9-6.6-5.3-10.4-7-3-1.4-6.1-2.3-9.4-2.8.6-1.5 1.2-3 2-4.4 1.8-3.4 4.2-6.5 7.1-9.2 2.8-2.6 6-4.8 9.5-6.3 2.9-1.3 6-2.2 9.1-2.7 1.1-.2 2.2-.3 3.3-.3.6 0 1.2-.1 1.8-.1h.5c.6 0 1.2 0 1.8.1l3.3.3c3.1.5 6.2 1.4 9.1 2.7 3.4 1.5 6.6 3.6 9.3 6.2 2.9 2.7 5.4 5.8 7.2 9.3 1.6 3 2.8 6.2 3.4 9.5.6 2.8.8 5.7.7 8.6-.5.1-1 .1-1.5.2-2.6.4-5.1 1.2-7.5 2.3-2.9 1.4-5.7 3.3-8 5.5-2.4 2.3-4.3 5-5.8 8-.9 2.4-1.8 5.1-2.3 7.8zm7.3 5.3c0-1.6.1-3.2.4-4.7.4-2 1.1-3.9 2-5.6 1.1-2.1 2.6-4 4.3-5.7 1.7-1.6 3.6-2.9 5.7-3.8 1.3-.6 2.8-1.1 4.2-1.4-.5 1.9-1.2 3.8-2.1 5.5a35.5 35.5 0 0 1-7.4 10.3c-2 2.1-4.5 3.9-7.1 5.4zm42.3 2.7c-.3 2.1-.9 4.2-1.9 6.1-1.1 2.3-2.6 4.4-4.5 6.2-1.9 1.8-4.2 3.3-6.6 4.3-1.3.5-2.7 1-4.1 1.2-1.3.2-2.7.4-4 .4-1.3 0-2.7-.1-4-.4-1.4-.3-2.8-.7-4.1-1.3-2.4-1-4.7-2.5-6.6-4.4-1.8-1.8-3.3-3.9-4.4-6.2-.1-.2-.2-.5-.3-.7 1.6-.8 3.2-1.7 4.7-2.7 2.2-1.5 4.3-3.1 6.2-5 3.7-3.5 6.7-7.7 8.9-12.3 1.4-3 2.5-6.1 3.2-9.3h.1c1.9.3 3.7.9 5.5 1.7 2.1 1 4 2.3 5.6 3.8 1.8 1.7 3.3 3.6 4.4 5.8.9 1.8 1.6 3.7 1.9 5.6.3 2.4.4 4.8 0 7.2zM274.3 80.5c-2 0-3.6 2.2-8.3 2.2-5.3 0-8.3-3.1-8.3-9.2V38.6h14.5c1.7 0 3-1.2 3-3s-1.3-3.1-3-3.1h-14.6V20.1c0-2.1-1.4-3.5-3.3-3.5-2.1 0-3.5 1.4-3.5 3.5v12.4h-6.9c-1.7 0-3 1.3-3 3 0 2 1.3 3.1 3 3.1h6.9v34.6c0 10.4 5.4 15.8 15.1 15.8 7.1 0 11-3.3 11-6-.1-1.4-.9-2.5-2.6-2.5zM421.5 31.2c-15.8 0-27.7 12.9-27.7 28.8s11.9 28.9 27.7 28.9c15.8 0 27.7-13 27.7-28.9 0-15.8-11.9-28.8-27.7-28.8zm.1 51.5c-12.1 0-21-10.3-21-22.7 0-12.5 8.9-22.4 21-22.4s20.8 9.9 20.8 22.4c0 12.4-8.7 22.7-20.8 22.7zM482.8 31.2c-15.8 0-27.7 12.9-27.7 28.8s11.9 28.9 27.7 28.9c15.8 0 27.7-13 27.7-28.9 0-15.8-11.9-28.8-27.7-28.8zm.2 51.5c-12.1 0-21-10.3-21-22.7 0-12.5 8.9-22.4 21-22.4s20.8 9.9 20.8 22.4c-.1 12.4-8.7 22.7-20.8 22.7zM549 31.2c-9.6 0-17.1 4.7-21.6 12v-7.5c0-2-1.4-3.3-3.5-3.3-2 0-3.3 1.4-3.3 3.3v65.2c0 2 1.4 3.5 3.3 3.5 2.1 0 3.5-1.5 3.5-3.5V76.8C532 84.2 539.6 89 549 89c15.3 0 27-12.6 27-28.8 0-16.2-11.4-29-27-29zm-.7 51.5c-12.1 0-20.9-9.9-20.9-22.4 0-12.5 8.8-22.7 20.9-22.7 12.2 0 20.9 10.3 20.9 22.7 0 12.4-8.6 22.4-20.9 22.4zM379.5 10.2c-2 0-3.3 1.4-3.3 3.3v70.9c0 2 1.4 3.3 3.3 3.3 2 0 3.5-1.4 3.5-3.3V13.6c-.1-2-1.6-3.4-3.5-3.4zM305.6 31.2c-15.8 0-27 12.9-27 28.8 0 16 11.8 29 28.4 29 11.8 0 20.4-5.5 20.4-9.3 0-1.5-1-2.5-2.7-2.5-2.6 0-6.2 5.8-17.5 5.8-12.2 0-20.9-9.2-21.7-21h41.9c2.9 0 4.5-1.7 4.5-4.5 0-12.9-9.7-26.3-26.3-26.3zm-20.1 25.7c1.3-11.2 9.1-19.7 19.9-19.7 10.4 0 18.4 7.4 19.6 19.7h-39.5zM359.3 33.8c-6 2.1-10.6 9.2-13.5 14.4V35.7c0-2-1.5-3.3-3.5-3.3s-3.3 1.4-3.3 3.3v48.8c0 2 1.4 3.3 3.3 3.3 2 0 3.5-1.4 3.5-3.3V62.6c0-10.3 11.3-23.3 17.8-22.1 3.4.6 5.2-1.8 5.2-3.5.1-3.3-4.1-5.1-9.5-3.2z"/></symbol><symbol id="svg-icons-customer-readme" data-name="icons-customer-readme" viewBox="0 0 576 103" width="576" height="103"><path d="M114.1 12.4H84c-10.6 0-19.4 7.4-21.7 17.3-2.2-9.9-11.1-17.3-21.7-17.3H10.5C4.7 12.4 0 17 0 22.8v53.1c0 5.8 4.7 10.5 10.5 10.5h19.4c22.1 0 28.6 5.3 31.8 16.2.1.3.3.4.6.4h.2c.2 0 .5-.1.6-.4 3.2-10.9 9.8-16.2 31.8-16.2h19.4c5.8 0 10.5-4.7 10.5-10.5V22.8c-.2-5.8-4.9-10.4-10.7-10.4zM52.3 69.6c0 .4-.3.8-.8.8H17c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm0-13.1c0 .4-.3.8-.8.8H17c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm0-13.2c0 .4-.3.8-.8.8H17c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm57 26.3c0 .4-.3.8-.8.8H73.9c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm0-13.1c0 .4-.3.8-.8.8H73.9c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zm0-13.2c0 .4-.3.8-.8.8H73.9c-.4 0-.8-.3-.8-.8v-4.9c0-.4.3-.8.8-.8h34.6c.4 0 .8.3.8.8v4.9zM212.6 22c.8-.7.4-2-.6-2.2-2.9-.6-6.5-.9-8.6-.9-20.6 0-25.6 16.4-25.6 16.4h-.5v-14c0-1-.8-1.8-1.8-1.8h-18.9c-1 0-1.8.8-1.8 1.8v9.9c0 1.3.8 1.8 1.8 1.8h6.2v35.4h-4.5c-1.1 0-1.8.5-1.8 1.8v9.9c0 1.1.8 1.8 1.8 1.8H184c1 0 1.8-.8 1.8-1.8v-9.9c0-1-.8-1.8-1.8-1.8h-4.4V53c0-8.6 10.3-18.5 21.5-17.4.6.1 1.2-.3 1.4-.8 2.2-5.1 6.2-9.3 10.1-12.8zM511.9 68.6h-4.7V41.2c0-13-7.3-22.3-21-22.3-13.4 0-18 8.7-19.1 10.4-3-6.3-9.2-10.4-18.2-10.4-14 0-18.5 9.7-19.1 10.9h-.4v-7.3c0-2-.9-2.7-2.8-2.7h-9.1c-1.5 0-2.8 1.2-2.8 2.8v55.7c0 2.1 1.7 3.8 3.8 3.8H436c1 0 1.8-.8 1.8-1.8v-9.9c0-1.3-.6-1.8-1.8-1.8h-4.4V41.8c0 .1 1.9-8.2 11.1-8.2 8.1 0 10.4 5.3 10.4 13l-.1 34c0 .8.7 1.5 1.5 1.5h19.9c1 0 1.8-.6 1.8-1.8v-9.9c0-1.3-.6-1.8-1.8-1.8h-4.5V43.2c0-.6-.3-1.8-.4-2.4.8-1.9 3.3-7.2 10.5-7.2 8 0 10.4 5.3 10.4 13v29.6c0 3.2 2.6 5.8 5.8 5.8h15.6c1 0 1.8-.8 1.8-1.8v-9.9c.1-1.2-.5-1.7-1.7-1.7zM575.2 67l-6.1-6.6c-1-.9-2-.6-2.7.3-.8 1.1-7.3 8.1-17.6 8.1-8.1 0-15.7-4.7-16.8-15.2h41.5c1.1 0 2-.9 2-2 0-20.8-9.9-32.6-29.6-32.6-15.1 0-31.3 11.3-31.3 31.9 0 20.3 14.8 32.1 32.8 32.1 18 0 26.7-11.1 28-13.2.9-1 .7-1.8-.2-2.8zm-28.6-34.8c9 0 12.7 5.8 12.9 11.6h-27.2c1.4-7.9 7-11.6 14.3-11.6zM405.1 0h-18.6c-1.3 0-1.9.6-1.9 1.8v9.9c0 1.3.8 1.8 1.9 1.8h4.1v9.1c0 2.6.3 5.2.3 5.2h-.3c-1.1-2.4-6.1-9-17.5-9-17.6 0-28.9 13.2-28.9 31.8 0 20.6 12 32.3 28.5 32.3 11.9 0 18.1-7.7 19.1-10.3h.3v6.1c0 1.8 1.4 3.2 3.2 3.2h8.9c1.4 0 2.5-1.1 2.5-2.5V1.8c.2-1.2-.3-1.8-1.6-1.8zM376 68.6c-9.1 0-15.1-7.3-15.1-18.2 0-10.9 6.5-17.5 15.1-17.5 7.7 0 14.6 5.7 14.6 17.6-.1 11.8-6.4 18.1-14.6 18.1zM261 60.6c-1-.9-2-.6-2.7.3-.7 1.1-7.3 8.1-17.5 8.1-8.1 0-15.7-4.7-16.8-15.2h41.5c1.1 0 2-.9 2-2 0-20.8-9.9-32.6-29.6-32.6-15.1 0-31.3 11.3-31.3 31.9 0 20.2 14.8 32.1 32.8 32.1s26.7-11.1 28-13.2c.8-1 .6-1.8-.2-2.8l-6.2-6.6zm-22.5-28.2c9 0 12.7 5.8 12.9 11.6h-27.2c1.4-7.9 7-11.6 14.3-11.6zM340.8 68.8H336V21.9c0-1.1-.8-1.8-1.8-1.8h-11.4c-1.1 0-1.8.6-1.8 1.8v5.9h-.3c-1-2.3-6.7-8.9-18.7-8.9-16.4 0-28.5 11.8-28.5 32.3 0 18.7 10.8 31.9 28.3 31.9 12.4 0 17.5-7.7 19.2-12h.4v5.3c0 3.9 2 5.8 5.8 5.8h13.3c1 0 1.6-.6 1.6-1.8v-9.9c.3-1.2-.2-1.7-1.3-1.7zm-35.5.3c-8.6 0-15.1-6.8-15.1-17.6 0-11 6.1-18.1 15.1-18.1 8.1 0 14.6 6.1 14.6 18-.1 11.7-6.9 17.7-14.6 17.7z"/></symbol><symbol id="svg-icons-datacenters" data-name="icons-datacenters" viewBox="0 0 30 35" width="30" height="35"><path fill="url(#azure)" opacity=".25" d="M29.9 25.9L15 34.6 0 25.9V8.6L15 0l14.9 8.6v17.3z"/><path fill="url(#azure)" d="M16.222.705l1.054.609-.167.27.413.13-.001.637.297-.486.265.401-.067.447.215.395.231-.423.162-.523.001-.07.801.463-.002.004.156.317-.028.283-.434.395-.309.086-.23-.168-.066.279-.214.457-.064.231-.258.35-.317.034-.175.214-.015.323-.258.061-.271.391-.241.526-.086.357-.012.511.326.072.1.398.103.315.311-.081.412.178.221.154.16.19.277.109.235.166.367.023.241.037-.036.334.068.38.161.412.33.341.171-.116.12-.373-.115-.59-.157-.202.355-.182.252-.276.122-.279-.018-.273-.15-.354-.27-.32.262-.459-.097-.408-.074-.732.154-.112.381.132.228.046.183-.126.207.163.273.274.067.181.396.035-.006.383.073.557.203.068.16.252.322-.237.212-.482.147-.208.172.397.289.549.245.499-.089.256.295.225.199.225.354.101.143.123.087.323.173.05.089.141.016.414-.161.137-.159.126-.366.127-.279.288-.375.057-.475-.074-.333-.002-.23.024-.186.248-.282.151-.32.445-.255.303.188-.054.356-.434.465-.282.332-.034.196.167-.21.225.071.356.073.245.288.16.366-.046.222-.364.023.233.144.116-.275.209-.491.188-.22.126-.248.222-.169-.022-.008-.263.385-.259-.355.01-.247.038-.145-.179v-.44l-.099-.095-.007.002.099.095.002.443.145.18.038.103-.236.151-.228.107-.234.092-.118.181-.038.069-.002.16.074.159.091.007-.023-.109.067.067-.017.085-.15.049-.107-.006-.164.052-.096.015-.129.015-.185.085.326-.056.065.056-.311.089h-.141l.006-.036-.067.082.066.013-.049.209-.161.222-.017-.073-.049-.016-.073-.071.046.154.056.051.003.108-.071.11-.125.224-.021-.011.069-.191-.113-.109-.026-.237-.043.124.047.18-.146-.044.153.09.009.268.063.019.023.096.031.276-.141.202-.229.08-.146.158-.11.018-.113.098-.031.089-.244.172-.125.126-.105.154-.034.185.04.179.074.219.099.18.002.109.105.291-.007.167-.01.097-.055.151-.066.031-.11-.03-.034-.107-.085-.057-.118-.214-.103-.191-.033-.098.046-.168-.063-.139-.173-.214-.086-.039-.224.116-.04-.012-.107-.12-.14-.064-.25.033-.197-.029-.17.018-.092.04.04.068-.004.104.048.05-.042.034-.083-.038-.083.049-.16-.008-.166-.135-.194.032-.161-.059-.138.018-.186.06-.202.189-.221.109-.121.121-.051.113-.003.172.011.12.039.078h.001l-.001.001.003.005-.005.001-.083.209-.039.176-.017.326-.021.117.039.131.068.117.045.184.147.176.051.135.087.116.236.063.092.097.195-.065.168-.023.166-.043.14-.04.141-.096.053-.138.018-.199.039-.069.15-.063.235-.055.196.008.134-.02.053.05-.007.115-.119.141-.052.145.04.04-.033.102-.056.183-.056-.06-.046.004v.034l.042.001-.003.064-.036.101.019.036-.022.084.013.021-.025.118-.044.062-.04.007-.045.08.073.042.019-.035.065.029.023.01.049-.041.063-.003.021.019.035-.012.103.021.103-.006.071-.026.026-.025.07.012.053.016.058-.006.044-.02.102.032.035.005.068.043.064.052.08.035.059.064-.019.022-.011.051.022.084-.051.078-.023.091-.008.102.012.058.006.103-.034.022-.021.097.015.06L19 21l.012.061.033.038.057.122.085.091.105.097.079.08-.005.048.089.01.021-.019.061.056.109-.017.094-.056.135-.046.076-.067.122.013-.008.022.124.008.099.04.072.066.084.063.114.007.167-.157.091-.024.002-.074.041-.191.127-.105.14-.004.017-.047.174.018.175-.114.086-.051.107-.109.079.013.058.06-.043.077-.006.053-.131.026.073.103-.003.119-.097.131.084.179.095-.015.05-.162-.069-.08-.011-.171.276-.092-.03-.107.077-.072.08.16.156.004.144.125.009.075.198.002.238-.023.127.101.169.028.125-.07.002-.057.275-.014.266-.003-.188.067.075.107.178.016.168.111.035.18.116-.005.087.053.146.082.137.146.006.116.084.006.118.108.088.078.266.045.024-.041.179-.016.239.061-.116.191v.001l.116-.192.075.025.163.052.235.188.036.091-.131.204-.067.164.068-.164.131-.204.076-.01.054.123.125.389.118.037.007.153-.167.182.069.067.392.035.008.223.169-.146.279.08.368.136.108.13-.036.123.258-.069.432.118.331-.009.328.185.283.249.171.064.19.01.081.07.075.284.037.135-.089.372-.113.147-.312.314-.142.256-.026.031-7.135 4.166-.008-.087.079-.232.146-.236.157-.155-.067-.098.047-.08-.007-.41.241-.12.076-.252-.027-.061.185-.217.287.058-.291-.059-.184.217-.001.001.027.06-.076.252-.241.12.007.41-.047.08.067.098-.157.156-.146.236-.079.231.008.091-.341.198.033-.103-.027-.315.129-.309.041-.482.071-.508.07-.538-.017-.388-.046-.331.114-.06.059-.119.109.158.029.169.116.1-.069.229.119.266-.118-.266.069-.229-.116-.1-.029-.169-.11-.159-.059.12-.114.059-.222-.134-.02-.096-.439-.232-.398-.253-.172-.142-.092-.189.037-.066-.188-.299-.219-.418-.209-.448-.091-.103-.069-.164-.173-.147-.158-.09.072-.1-.108-.213.069-.155.177-.142.118-.165-.048-.098-.085.104-.133-.098.045-.062-.037-.202.078-.034.041-.138.084-.143-.016-.09.122-.048.152-.089-.03-.069.083-.017-.01-.111.052-.08.11-.015.094-.14.085-.116-.083-.054.042-.129-.05-.204.048-.058-.035-.189-.09-.12-.074-.064-.047-.122.054-.059-.056-.016-.041-.074-.111-.062-.097.014-.044.079-.091.055-.048.008-.021.047.105.122-.06.028-.033.034-.102.011-.039-.134-.029.038-.073-.012-.045-.091-.091-.015-.057-.026h-.095l-.007.049-.026-.034-.12-.05-.045-.047.025-.039-.008-.05-.061-.054-.087-.044-.077-.028-.014-.067-.059-.04.014.066-.044.053-.051-.062-.071-.022-.03-.046.002-.068.029-.072-.063-.032.051-.043-.077-.072-.103-.091-.049-.077-.094-.071-.111-.103.024-.035.037.034.017-.016-.038-.071-.068-.02-.025.053-.128-.003-.08-.022-.092-.045-.123-.014-.062-.05-.114-.04-.139-.004-.101-.045-.12-.094-.25-.248-.115-.075-.181-.061-.124.017-.179.087-.111.023-.157-.061-.166-.044-.207-.106-.167-.033-.251-.108-.185-.111-.056-.063-.125-.013-.227-.074-.092-.107-.239-.133-.11-.149-.053-.116.073-.023-.023-.068.052-.061.001-.083-.075-.107-.02-.096-.075-.121-.195-.241-.223-.19-.108-.153-.191-.1-.04-.061.034-.153-.113-.058-.132-.121-.055-.175-.119-.021-.129-.132-.104-.124-.009-.079-.12-.193-.078-.198.003-.1-.161-.103-.073.011-.127-.071-.036.106.037.124.021.194.077.106.165.176.036.06.034.018.028.087.04-.004.045.163.067.064.047.088.14.128.074.23.065.108.062.115.012.129.107.008.089.111.081.108-.006.043-.093.089-.04-.001-.058-.147-.145-.138-.16-.118-.114-.063.007-.179-.033-.134-.106-.077-.153-.11-.029.031-.055-.065-.137-.06-.131-.146.016-.019.091.015.082-.095.009-.114-.171-.181-.13-.071-.082-.16-.082-.169-.103-.208-.088-.231h-.001l-.038-.135-.144-.153-.103-.032-.025-.077-.124-.013-.079-.073-.206-.026-.056-.044-.027-.149-.215-.275-.185-.387.008-.065-.099-.094-.171-.238-.031-.235-.118-.159.048-.243-.008-.255-.071-.232.087-.288.027-.282.027-.286-.04-.432-.071-.282-.065-.154.027-.066.321.113.118.312.054-.087-.035-.272-.076-.276h6.141v-.008h-6.164l-.429-.338-.158-.15-.402-.146-.124-.315.032-.223-.284-.156-.039-.3-.268-.275L8.65 8.9l.086-.131-.092.134-.121-.146-.196-.125-.062-.347-.286-.33-.119-.394-.213-.027-.353-.01-.261-.123-.458-.45-.213-.083-.387-.159-.307.038-.436-.206-.264-.194-.246.096.046.314-.123.028-.256.093-.195.148-.246.093-.032-.259.1-.441.235-.141-.046-.089 2.122-1.216-.001 1.639.218.013.216.124.156.195.197.287.216-.243.222-.143.118.227.149.178.204.193.138.302.227.469.378.256.006.246.002-.003-.006-.249-.377-.255-.227-.469-.139-.302-.203-.193-.15-.178-.118-.227-.222.142-.216.244-.197-.288-.155-.194-.216-.124-.219-.014.001-1.635 5.167-2.962.023.01.306.105.217-.04.299.311-.312.299.402.127.599-.07.189-.104.236.353.242-.297-.227-.254.144-.208.269-.028.178-.062.178.147.224.328.247-.048.392.267.344-.093.324.014-.026-.372.197-.106.344.206-.002.558.141-.469.179.016.1-.615-.237-.392-.259-.262.015-.625zm9.532 22.382l-.03-.062h-.001l.031.062zm-.189-.151l-.057.093.001.001.056-.094zm-1.645-1.797l.128-.029.047.008-.009.168-.185.025-.041-.02.065-.062-.005-.09zm-2.372-1.712l-.104.016-.135-.017-.104.044-.12-.073.02-.076.204.033.168.019.08-.053-.101-.101.001-.09-.14-.037.05-.065.135.01.193.038.027-.041.174.002.131.06.059-.006.04.084.121-.005-.007.07.099.009.109.086-.082.096-.106-.052-.102.01-.072-.011-.041.043-.085.014-.033-.057-.074.034-.089.16-.057-.037-.012-.067-.147-.04zm-1.153-.064l.15.02.118.057.036.064-.156.004-.067.039-.124-.038-.127-.085.026-.054.094-.015.05.008zm2.505-.006l.113.021.04.046-.057.059-.167-.002-.129.008-.013-.099.031-.035.182.002zm-3.547-1.112l.192.017.174.002.208.083.089.088.207-.027.078.056.189.149.137.108.073-.004.133.049-.017.067.164.01.168.097-.026.055-.148.03-.15.012-.152-.019-.318.023.149-.132-.09-.062-.143-.016-.077-.068-.053-.136-.125.009-.207-.064-.067-.05-.289-.037-.077-.048.083-.059-.218-.012-.159.124-.092.003-.032.059-.109.027-.095-.023.117-.075.047-.087.101-.053.113-.047.169-.023.053-.026zm1.05-.139l-.054.012-.056-.141-.084-.071.049-.155.066.009.078.204.001.142zm.119-.696l-.038.177-.041-.032.004-.13-.1-.098-.001-.029.176.112zm-.182.003l-.242.04-.016-.092.105-.02.146.007.007.065zm-8.189-1.567l-.019.045.003.001.019-.046h-.003zm7.944-2.903l-.186.036-.109.038-.059.047-.122-.03-.065.014-.098.084-.164.096-.122-.019.049-.106.104-.166.143-.101.019-.086-.012-.147.106-.173-.029-.198.113.194.18.043.071-.103-.144-.243-.072-.1-.198-.062-.18-.033-.168-.003-.167-.04-.043-.072-.042.048-.059-.01.046-.11-.093-.04.038-.125-.088-.096.039-.094-.249-.05-.075-.19-.053-.046-.153-.008-.206-.068-.05.044-.049.082-.126.052-.09.133-.273-.087-.18.044-.215-.104-.226-.053-.155-.021-.069-.058-.04-.187-.075.002v.007l.068-.002.04.188.069.057.155.021.226.053.215.104.18-.044.273.087-.226.109-.158.132-.15.138-.001.048.222-.068.136.111.171-.083.178-.106.197-.109-.072.173.126.042.156.123.197-.071.218-.029.046.091.068.012.06.011.111.128-.196.029-.007-.002-.175-.033-.173.064-.151.028-.132.205-.087.114.03.036.163-.202.033-.001-.116.241-.049.217-.042.173.027.15-.006.075.002.078.06.158.02.019.075-.001.061-.033.045-.041.09-.147.006-.2-.073-.19.011-.131.057-.153.056-.105.088-.076.021.106.04-.155.049-.032.03-.121.189.063.164.124.019.143-.021.142-.122.125.011.077.045.003.137-.136.083.031.039.179.011.125-.104.167-.049.105-.076.116.137.061.11.015.161-.04.131-.082.114-.041.167-.087.192-.181-.004-.029v-.001zm.577-.359l-.001-.002-.048-.023-.07.043-.062.068-.098-.059-.187.043-.157.044-.067.037-.067.105.089.029.068-.016.01-.003.098-.033.174.011.182.026.166-.101-.013-.121-.023-.043.006-.005zm1.068-.276h-.402l-.337.003-.004.002.334-.002h.409v-.003zm.093-.091l.003-.002-.067.015v.001l.064-.014zm1.648-.4l.161.043.206-.009-.11.133-.082.021-.281-.137-.056-.108.084-.101.078.158zm2.374-.529l-.028-.178-.155.057.068-.248-.221-.105-.102.084-.197-.094.077-.121-.148-.074-.145.117.147-.304.119-.224.042-.097-.103-.016-.192.124-.138.202-.229.551-.186.204.097.091-.139.118.034.098.431.01.238-.02.213.081-.157.154.132.011.257-.286.062.043-.048.268.145.062.101-.012.093-.288-.068-.208zm-3.608.239l.07.083.007-.003-.073-.086-.004.006zm-12.044-.357l-.092-.186-.221-.141-.11-.164-.075-.119-.209-.037-.136-.053-.233-.077-.019.081.086.19.228.062.04.098.198.12.067.12.364.154.112-.048zm13.683-.263l-.227-.144-.292-.087-.076.03.206.162.287.107.108-.006-.006-.062zM8.163 9.196l.212-.03-.065.426.193.295h-.089l-.134-.168-.082-.17-.112-.116-.041-.165.013-.121.105.049zM4.084 6.258l-.176.161-.151.3-.32.315.162.211-.209.308-.238.176-.223.127-.054.182-.347.21-.07.188-.26.17-.152-.03-.207.11-.226.133-.184.13-.381.11-.034-.065.243-.181.216-.12.237-.216.275-.045.109-.164.308-.243.05-.083.164-.145.038-.319.113-.253-.256.131-.071-.075-.12.156-.08-.121 1.844-1.058zM3.61 7.627l-.119.063-.202.149.034.193.113.105.222-.155.192-.197-.094-.13-.146-.028z"/></symbol><symbol id="svg-icons-health" data-name="icons-health" viewBox="0 0 34 34" width="34" height="34"><path fill="url(#azure)" opacity=".5" d="M22 12h12v10H22v12H12V22H0V12h12V0h10v12z"/><path fill="url(#azure)" d="M6.776 31.454A17.809 17.809 0 0 1 1 24.589h2.965a15.17 15.17 0 0 0 4.129 4.582l.831-1.438 1.113 4.154L5.884 33l.892-1.546zm24.678-4.23A17.809 17.809 0 0 1 24.589 33v-2.965a15.132 15.132 0 0 0 4.582-4.129l-1.438-.831 4.154-1.113L33 28.116l-1.546-.892zM2.546 6.776A17.809 17.809 0 0 1 9.411 1v2.965a15.17 15.17 0 0 0-4.582 4.129l1.438.831-4.154 1.113L1 5.884l1.546.892zM33 9.411h-2.965a15.17 15.17 0 0 0-4.129-4.582l-.831 1.438-1.113-4.154L28.116 1l-.892 1.546A17.809 17.809 0 0 1 33 9.411z"/></symbol></svg>')
|
6
6
|
}"interactive"==document.readyState&&c(),window.Turbolinks&&document.addEventListener("turbolinks:load",function(l){c()}),document.addEventListener("DOMContentLoaded",function(l){c()})}();
|
7
7
|
},{}],3:[function(require,module,exports){
|
8
8
|
"use strict";!function(){function o(){
|
@@ -10,61 +10,61 @@ document.querySelector("#esvg-svg-topology")||document.querySelector("body").ins
|
|
10
10
|
}"interactive"==document.readyState&&o(),window.Turbolinks&&document.addEventListener("turbolinks:load",function(t){o()}),document.addEventListener("DOMContentLoaded",function(t){o()})}();
|
11
11
|
},{}],4:[function(require,module,exports){
|
12
12
|
"use strict";var toolbox=require("compose-toolbox"),form=function(e,t){function o(e){(e.which<48||e.which>57)&&e.preventDefault()}var r={};if(!document.querySelector(e)&&!document.querySelector("form"))return!1;var n=(toolbox.merge(r,t),document.querySelectorAll("input[type=range]"),document.querySelectorAll("input[type=checkbox], input[type=radio]")),l=document.body;toolbox.event.on(l,"keypress","input[type=number]",o);for(var a=0;a<n.length;a++)!function(e){var t=e.parentNode;"LABEL"===t.tagName?t.classList.add("tick-label"):(e.insertAdjacentHTML("beforebegin",'<label class="tick-label"></label>'),e.previousSibling.insertAdjacentElement("afterbegin",e)),e.insertAdjacentHTML("afterend",'<span class="tick-label"></span>')}(n[a])};module.exports=form;
|
13
|
-
},{"compose-toolbox":
|
13
|
+
},{"compose-toolbox":59}],5:[function(require,module,exports){
|
14
14
|
"use strict";var toolbox=require("compose-toolbox"),mobileMenu=function(o){var e={initWidth:"700px",openClass:"menu-open",nav:".main-nav",button:".mobile-menu-button"},n=toolbox.merge(e,o),t=n.button+", "+n.openClass+" "+n.nav+" a",l=document.body;toolbox.event.on(document,"click",t,function(){l.classList.toggle(n.openClass)})};module.exports=mobileMenu;
|
15
|
-
},{"compose-toolbox":
|
15
|
+
},{"compose-toolbox":59}],6:[function(require,module,exports){
|
16
16
|
"use strict";function syncValue(t){t=t.target||t,t.classList.toggle("empty",!t.value.trim().length)}var toolbox=require("compose-toolbox"),Event=toolbox.event,textSelectors="textarea, input:not([type=radio]):not([type=checkbox]):not([type=range]):not([type=hidden]):not([type=submit]):not([type=image]):not([type=reset])";Event.change(function(){toolbox.each(document.querySelectorAll(textSelectors),syncValue)}),Event.on(document,"input",textSelectors,syncValue);
|
17
|
-
},{"compose-toolbox":
|
18
|
-
"use strict";require("./shim/object_fit"),require("./shim/scope");var
|
19
|
-
},{"./_esvg":1,"./_icons":2,"./_topology":3,"./base/form":4,"./base/mobilemenu":5,"./base/sync-input-value":6,"./enhancement/collapse":8,"./enhancement/lightbox":9,"./enhancement/modal":10,"./enhancement/notice":11,"./enhancement/smooth-scroll":12,"./enhancement/sticky":13,"./enhancement/waypoints":14,"./shim/object_fit":15,"./shim/scope":16,"./utility/
|
17
|
+
},{"compose-toolbox":59}],7:[function(require,module,exports){
|
18
|
+
"use strict";require("./shim/object_fit"),require("./shim/scope");var loadScript=require("./utility/load_script"),toggler=require("compose-toggler"),once=require("./utility/once"),mobileMenu=require("./base/mobilemenu"),form=require("./base/form"),formUp=require("compose-form-up");require("./base/sync-input-value"),Object.assign(form,formUp);var waypoints=require("./enhancement/waypoints"),notice=require("./enhancement/notice"),sticky=require("./enhancement/sticky"),modal=require("./enhancement/modal"),lightbox=require("./enhancement/lightbox"),collapse=require("./enhancement/collapse"),smooth=require("./enhancement/smooth-scroll"),esvg=require("./_esvg");require("./_icons"),require("./_topology");var toolbox=require("compose-toolbox"),event=toolbox.event,ajax=require("superagent"),highlighter=require("compose-code-highlighter"),loader=require("compose-loader");require("codemirror/mode/htmlmixed/htmlmixed"),require("codemirror/mode/slim/slim"),require("codemirror/mode/javascript/javascript"),require("codemirror/mode/css/css"),require("codemirror/mode/sql/sql"),require("codemirror/mode/php/php"),require("codemirror/mode/ruby/ruby"),require("codemirror/mode/shell/shell"),require("codemirror/mode/go/go"),require("codemirror/mode/python/python"),require("codemirror/mode/yaml/yaml"),require("codemirror/mode/clike/clike"),require("codemirror/addon/runmode/runmode"),require("codemirror/addon/edit/matchbrackets"),event.scroll.disablePointer(),event.change(function(){form(),highlighter.highlight()}),require("compose-slider");var ratchet=toolbox.merge({loadScript:loadScript,ajax:ajax,loader:loader,mobileMenu:mobileMenu,form:form,toggler:toggler,once:once,waypoints:waypoints,notice:notice,sticky:sticky,modal:modal,lightbox:lightbox,collapse:collapse,smooth:smooth,esvg:esvg},toolbox);window.ratchet=module.exports=ratchet;
|
19
|
+
},{"./_esvg":1,"./_icons":2,"./_topology":3,"./base/form":4,"./base/mobilemenu":5,"./base/sync-input-value":6,"./enhancement/collapse":8,"./enhancement/lightbox":9,"./enhancement/modal":10,"./enhancement/notice":11,"./enhancement/smooth-scroll":12,"./enhancement/sticky":13,"./enhancement/waypoints":14,"./shim/object_fit":15,"./shim/scope":16,"./utility/load_script":17,"./utility/once":18,"codemirror/addon/edit/matchbrackets":20,"codemirror/addon/runmode/runmode":21,"codemirror/mode/clike/clike":23,"codemirror/mode/css/css":24,"codemirror/mode/go/go":25,"codemirror/mode/htmlmixed/htmlmixed":26,"codemirror/mode/javascript/javascript":27,"codemirror/mode/php/php":28,"codemirror/mode/python/python":29,"codemirror/mode/ruby/ruby":30,"codemirror/mode/shell/shell":31,"codemirror/mode/slim/slim":32,"codemirror/mode/sql/sql":33,"codemirror/mode/yaml/yaml":35,"compose-code-highlighter":36,"compose-form-up":52,"compose-loader":55,"compose-slider":56,"compose-toggler":58,"compose-toolbox":59,"superagent":66}],8:[function(require,module,exports){
|
20
20
|
"use strict";!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t:e.collapse=t(e)}(void 0,function(e){return function(e,t){function n(t){if("expand"!==t.target.className)return!1;t.preventDefault();var n=compose.getClosest(t.target,e),a=d[n.dataset.idx];n.innerHTML=n.innerHTML===a.expanded?a.collapsed:a.expanded,t.target.textContent=t.target.textContent===r.expandText?r.collapseText:r.expandText}var a=document.querySelectorAll(e),o={expandText:"Show more",collapseText:"Show less",triggerText:"{{more}}"};if(!a)return!1;for(var r=compose.extend(o,t),d={},l=0;l<a.length;l++){var s=a[l],x=s.innerHTML,p=x+'<a class="expand" href="#">'+r.collapseText+"</a>",i=x.split(r.triggerText)[0]+'… <a class="expand" href="#">'+r.expandText+"</a>";s.innerHTML=i,s.dataset.idx=l,d[l]={expanded:p,collapsed:i}}document.body.addEventListener("click",n,!1)}});
|
21
21
|
},{}],9:[function(require,module,exports){
|
22
22
|
"use strict";var toolbox=require("compose-toolbox"),Event=toolbox.event,getClosest=toolbox.getClosest,loader=require("compose-loader"),modal=require("./modal"),lightbox=function(e,t){function o(t){if(t.matches){var o=document.querySelectorAll(e);if(o.length)for(var r=0;r<o.length;r++)document.body.insertAdjacentHTML("beforeend",'<link rel="prefetch" href="'+o[r].href+'"/>');modal(e,function(t){var o,r,i=getClosest(t.target,e),n=document.querySelector("[data-modal-content]");i.href.indexOf("youtu")>-1?(n.insertAdjacentHTML("beforeend",'<figure class="lightbox viewport-embed"><iframe src="'+i.href+'" frameborder="0" allowfullscreen></iframe></figure>'),n.querySelector(".lightbox").classList.add("loaded")):(n.insertAdjacentHTML("beforeend",'<figure class="lightbox"><img src="" alt=""></figure>'),r=n.querySelector(".lightbox img"),o=r.parentNode,r.addEventListener("load",function(e){o.classList.add("loaded")},!1),r.addEventListener("error",function(e){o.classList.add("loaded"),o.removeChild(r),o.innerHTML="Content not found :("},!1),r.setAttribute("src",i.href))})}}e=e||"a[href$=jpg] ,a[href$=png], a[href$=gif], a[href$=svg]";var r={initWidth:"700px"},i=Object.assign({},r,t),n=window.matchMedia("(min-width: "+i.initWidth+")");o(n),n.addListener(o)};module.exports=lightbox;
|
23
|
-
},{"./modal":10,"compose-loader":
|
23
|
+
},{"./modal":10,"compose-loader":55,"compose-toolbox":59}],10:[function(require,module,exports){
|
24
24
|
"use strict";function getTriggerPosition(t){var e=t.clientX,o=t.clientY;return{left:e,right:window.innerWidth-e,top:o,bottom:window.innerHeight-o}}function focusInput(t,e){e=e-1||0,t.querySelectorAll("input").length&&t.querySelectorAll("input")[e].focus()}function pythagorean(t,e){return Math.sqrt(Math.pow(t,2)+Math.pow(e,2))}var toolbox=require("compose-toolbox"),Event=toolbox.event,matches=toolbox.matches,getClosest=toolbox.getClosest,once=require("../utility/once"),modal=function(t,e,o){var n=function(e){return getClosest(e.target,"[data-close-modal]")?r():getClosest(e.target,t)&&a(e),!1},a=function(t){t.preventDefault(),document.body.style.overflow="hidden",document.querySelector("[data-modal]")||document.body.insertAdjacentHTML("beforeend",'<aside data-modal><section data-modal-content></section><a data-close-modal><svg viewBox="0 0 30 30" width="16"><path d="M2 2l26 26M2 28l26-26" stroke="currentColor" stroke-width="4" stroke-linecap="round" fill="none" /></svg><span>esc</span></a></aside>');var n=(t.target,document.querySelector("[data-modal]")),a=n.querySelector("[data-modal-content]"),d=(n.querySelector("[data-modal-backdrop]"),getTriggerPosition(t)),r=pythagorean(window.innerHeight,window.innerWidth),i=d.left-Math.round(r),l=d.top-Math.round(r),c="<style data-modal-coords>[data-modal]:after { left: "+i+"px; top: "+l+"px; width: "+2*r+"px; height: "+2*r+"px; }</style>";e&&(e instanceof Function?o=e:a.innerHTML=e),document.body.insertAdjacentHTML("beforeend",c),once.evt(n,"animationend",function(t){n.setAttribute("data-modal","visible"),focusInput(n)},!1),n.setAttribute("data-modal","in"),o&&once.fn(o(t))},d=function(t){t=t||window.event;var e;(e="key"in t?"Escape"==t.key||"Esc"==t.key:27==t.keyCode)&&r()},r=function(t){var e=document.querySelector('[data-modal="visible"]');if(!e)return!1;e.setAttribute("data-modal","out"),once.evt(e,"animationend",function(t){e.setAttribute("data-modal",""),e.querySelector("[data-modal-content]").innerHTML="",document.body.style.overflow="";var o=document.querySelector("[data-modal-coords]");o&&document.body.removeChild(o)},!1)};document.addEventListener("click",n,!1),document.addEventListener("keydown",d,!1)};module.exports=modal;
|
25
|
-
},{"../utility/once":
|
25
|
+
},{"../utility/once":18,"compose-toolbox":59}],11:[function(require,module,exports){
|
26
26
|
"use strict";var toolbox=require("compose-toolbox"),notice=function(e,o){function t(e){e.preventDefault();var o=n.querySelector("."+i.noticeClass);n.removeChild(o),document.cookie=s+"=true; expires=Fri, 31 Dec 9999 23:59:59 GMT; path=/",toolbox.event.off(r)}var c={noticeName:"notice",noticeClass:"notice",noticeMessage:"[your notice message here]"},i=toolbox.merge(c,o),n=document.querySelector(e),s="dismiss-"+i.noticeName,r=n.querySelector("."+i.noticeClass+" .close-btn");if(!n||function(e){var o="; "+document.cookie,t=o.split("; "+e+"=");if(2==t.length)return t.pop().split(";").shift()}(s))return!1;var a='<aside class="'+i.noticeClass+'">'+i.noticeMessage+'<a href="#?" class="close-btn"></a></aside>';document.querySelector("main").insertAdjacentHTML("afterbegin",a),toolbox.event.on(r,"click",t)};module.exports=notice;
|
27
|
-
},{"compose-toolbox":
|
27
|
+
},{"compose-toolbox":59}],12:[function(require,module,exports){
|
28
28
|
"use strict";var toolbox=require("compose-toolbox"),Event=toolbox.event;Event.on(document,"click",'[data-anchor],[href^="#"].smooth',function(o){var t=document.body.scrollTop,e=o.target.dataset.anchor||o.target.getAttribute("href");o.target.getAttribute("href")&&o.preventDefault(),window.location.hash=e,document.body.scrollTop=t;var r=document.querySelector(e);r&&toolbox.scrollTo(r)});
|
29
|
-
},{"compose-toolbox":
|
30
|
-
"use strict";var toolbox=require("compose-toolbox"),fromTop=toolbox.fromTop,sticky=function(o,t){function e(o){i(),s(),o.matches||p.classList.remove("sticky"),y.toggle(o.matches),f.toggle(o.matches)}function i(){a=document.body.scrollHeight,d=window.innerHeight}function s(){var o=window.pageYOffset,t=o>u,e=h?o>=a-g-h+l:null;t&&!e?(p.classList.remove("anchored"),p.classList.add("sticky")):t&&e?(p.classList.remove("sticky"),p.classList.add("anchored")):p.classList.remove("sticky")}var n={topPadding:!1,initWidth:"700px",stickyClass:"sticky",anchorPoint:null},c=toolbox.merge(n,t),r=document.querySelector(o);if(!r)return!1;var a,d,l
|
31
|
-
},{"compose-toolbox":
|
32
|
-
"use strict";var toolbox=require("compose-toolbox"),Event=toolbox.event,matches=toolbox.matches,fromTop=toolbox.fromTop,scrollTo=toolbox.scrollTo,getClosest=toolbox.getClosest,callback=Event.callback,waypoints=function(e){function o(e,o){var t=f.querySelector("."+o);t!=e&&(t&&t.classList.remove(o),e.classList.add(o))}function t(e){o(e,r),n(getClosest(e,a))}function n(e){e&&o(e,i)}var l={initWidth:"0px",elemOffset:0},c=toolbox.merge(l,e),r="active",a="dl",i="pinned",f=document.querySelector(".waypoint-nav"),s=[];if(f&&function(e,o){return Array.prototype.slice.call(e,o)}(f.querySelectorAll("a[href^='#']")).forEach(function(e){var o=document.querySelector(e.getAttribute("href"));o&&s.push(o)}),!f||s.length<1)return!1;var u,h,m,d,w=document.body,v=[];window.location.hash&&(h=window.location.hash.replace("#",""),window.location.hash="",history.replaceState(null,"","#"+h)),Event.on(window,"load",function(){Event.media.minWidth(c.initWidth,function(e){p.toggle(e.matches),p(),b.toggle(e.matches),b(),E.toggle(e.matches),E()})});var p=callback.new(function(){m=w.scrollHeight,d=window.innerHeight,g()}),g=function(){s.forEach(function(e,o){v[o]={elem:s[o],offset:fromTop(s[o])}})},b=callback.new(function(){var e,o,n=window.pageYOffset,l=n<0||n+d>=m;if(v.forEach(function(o,t){var r=v[0],a=v[t+1],i=v[v.length-1];n<r.offset?e=r.elem.id:l||n>i.offset-c.elemOffset?e=i.elem.id:n>o.offset-c.elemOffset&&n<a.offset-c.elemOffset&&(e=o.elem.id)}),e){if(e===u)return!1;if(!(o=f.querySelector('a[href="#'+e+'"]')))return!1;t(o),u=e}}),y=callback.new(function(e){matches(e.target,'a[href^="#"]')&&(e.preventDefault(),x(e.target,!0))}),E=callback.new(function(){if(!window.location.hash)return!1;
|
33
|
-
},{"compose-toolbox":
|
34
|
-
"use strict";var objectFitImages=function(){function t(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+t+"' height='"+e+"'%3E%3C/svg%3E"}function e(t){if(t.srcset&&!m&&window.picturefill){var e=window.picturefill._;t[e.ns]&&t[e.ns].evaled||e.fillImg(t,{reselect:!0}),t[e.ns].curSrc||(t[e.ns].supported=!1,e.fillImg(t,{reselect:!0})),t.currentSrc=t[e.ns].curSrc||t.src}}function i(t){for(var e,i=getComputedStyle(t).fontFamily,r={};null!==(e=l.exec(i));)r[e[1]]=e[2];return r}function r(e,i,r){var n=t(i||1,r||0);p.call(e,"src")!==n&&b.call(e,"src",n)}function n(t,e){t.naturalWidth?e(t):setTimeout(n,100,t,e)}function c(t){var c=i(t),o=t[a];if(c["object-fit"]=c["object-fit"]||"fill",!o.img){if("fill"===c["object-fit"])return;if(!o.skipTest&&g&&!c["object-position"])return}if(!o.img){o.img=new Image(t.width,t.height),o.img.srcset=p.call(t,"data-ofi-srcset")||t.srcset,o.img.src=p.call(t,"data-ofi-src")||t.src,b.call(t,"data-ofi-src",t.src),t.srcset&&b.call(t,"data-ofi-srcset",t.srcset),r(t,t.naturalWidth||t.width,t.naturalHeight||t.height),t.srcset&&(t.srcset="");try{s(t)}catch(t){window.console&&console.log("http://bit.ly/ofi-old-browser")}}e(o.img),t.style.backgroundImage='url("'+(o.img.currentSrc||o.img.src).replace(/"/g,'\\"')+'")',t.style.backgroundPosition=c["object-position"]||"center",t.style.backgroundRepeat="no-repeat",/scale-down/.test(c["object-fit"])?n(o.img,function(){o.img.naturalWidth>t.width||o.img.naturalHeight>t.height?t.style.backgroundSize="contain":t.style.backgroundSize="auto"}):t.style.backgroundSize=c["object-fit"].replace("none","auto").replace("fill","100% 100%"),n(o.img,function(e){r(t,e.naturalWidth,e.naturalHeight)})}function s(t){var e={get:function(e){return t[a].img[e
|
29
|
+
},{"compose-toolbox":59}],13:[function(require,module,exports){
|
30
|
+
"use strict";var toolbox=require("compose-toolbox"),fromTop=toolbox.fromTop,sticky=function(o,t){function e(o){i(),s(),o.matches||p.classList.remove("sticky"),y.toggle(o.matches),f.toggle(o.matches)}function i(){a=document.body.scrollHeight,d=window.innerHeight}function s(){var o=window.pageYOffset,t=o>u,e=h?o>=a-g-h+l:null;t&&!e?(p.classList.remove("anchored"),p.classList.add("sticky")):t&&e?(p.classList.remove("sticky"),p.classList.add("anchored")):p.classList.remove("sticky")}var n={topPadding:!1,initWidth:"700px",stickyClass:"sticky",anchorPoint:null},c=toolbox.merge(n,t),r=document.querySelector(o);if(!r)return!1;var a,d,l=c.topPadding===!0?parseInt(window.getComputedStyle(r,null).getPropertyValue("padding-top")):0,m=window.matchMedia("(min-width: "+c.initWidth+")"),u=fromTop(r)+l,g=r.offsetHeight,h=c.anchorPoint,p=document.body,y=toolbox.event.resize(i),f=toolbox.event.scroll(s);e(m),m.addListener(e)};module.exports=sticky;
|
31
|
+
},{"compose-toolbox":59}],14:[function(require,module,exports){
|
32
|
+
"use strict";var toolbox=require("compose-toolbox"),Event=toolbox.event,matches=toolbox.matches,fromTop=toolbox.fromTop,scrollTo=toolbox.scrollTo,getClosest=toolbox.getClosest,callback=Event.callback,waypoints=function(e){function o(e,o){var t=f.querySelector("."+o);t!=e&&(t&&t.classList.remove(o),e.classList.add(o))}function t(e){o(e,r),n(getClosest(e,a))}function n(e){e&&o(e,i)}var l={initWidth:"0px",elemOffset:0},c=toolbox.merge(l,e),r="active",a="dl",i="pinned",f=document.querySelector(".waypoint-nav"),s=[];if(f&&function(e,o){return Array.prototype.slice.call(e,o)}(f.querySelectorAll("a[href^='#']")).forEach(function(e){var o=document.querySelector(e.getAttribute("href"));o&&s.push(o)}),!f||s.length<1)return!1;var u,h,m,d,w=document.body,v=[];window.location.hash&&(h=window.location.hash.replace("#",""),window.location.hash="",history.replaceState(null,"","#"+h)),Event.on(window,"load",function(){Event.media.minWidth(c.initWidth,function(e){p.toggle(e.matches),p(),b.toggle(e.matches),b(),E.toggle(e.matches),E()})});var p=callback.new(function(){m=w.scrollHeight,d=window.innerHeight,g()}),g=function(){s.forEach(function(e,o){v[o]={elem:s[o],offset:fromTop(s[o])}})},b=callback.new(function(){var e,o,n=window.pageYOffset,l=n<0||n+d>=m;if(v.forEach(function(o,t){var r=v[0],a=v[t+1],i=v[v.length-1];n<r.offset?e=r.elem.id:l||n>i.offset-c.elemOffset?e=i.elem.id:n>o.offset-c.elemOffset&&n<a.offset-c.elemOffset&&(e=o.elem.id)}),e){if(e===u)return!1;if(!(o=f.querySelector('a[href="#'+e+'"]')))return!1;t(o),u=e}}),y=callback.new(function(e){matches(e.target,'a[href^="#"]')&&(e.preventDefault(),x(e.target,!0))}),E=callback.new(function(){if(!window.location.hash)return!1;x(document.querySelector('a[href="'+window.location.hash+'"]'))}),x=function(e,o){var n,l=e.getAttribute("href"),c=document.querySelector(l);c&&(t(e),v.forEach(function(e,o){v[o].elem===c&&(n=v[o].offset)}),o?(b.stop(),history.pushState(null,"",l),scrollTo(c,b.start)):window.scrollTo(0,fromTop(c)))};Event.resize.stop(p),Event.scroll(b),Event.on(document,"click",y),Event.on(window,"hashchange",E)};module.exports=waypoints;
|
33
|
+
},{"compose-toolbox":59}],15:[function(require,module,exports){
|
34
|
+
"use strict";var objectFitImages=function(){function t(t,e){return"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='"+t+"' height='"+e+"'%3E%3C/svg%3E"}function e(t){if(t.srcset&&!m&&window.picturefill){var e=window.picturefill._;t[e.ns]&&t[e.ns].evaled||e.fillImg(t,{reselect:!0}),t[e.ns].curSrc||(t[e.ns].supported=!1,e.fillImg(t,{reselect:!0})),t.currentSrc=t[e.ns].curSrc||t.src}}function i(t){for(var e,i=getComputedStyle(t).fontFamily,r={};null!==(e=l.exec(i));)r[e[1]]=e[2];return r}function r(e,i,r){var n=t(i||1,r||0);p.call(e,"src")!==n&&b.call(e,"src",n)}function n(t,e){t.naturalWidth?e(t):setTimeout(n,100,t,e)}function c(t){var c=i(t),o=t[a];if(c["object-fit"]=c["object-fit"]||"fill",!o.img){if("fill"===c["object-fit"])return;if(!o.skipTest&&g&&!c["object-position"])return}if(!o.img){o.img=new Image(t.width,t.height),o.img.srcset=p.call(t,"data-ofi-srcset")||t.srcset,o.img.src=p.call(t,"data-ofi-src")||t.src,b.call(t,"data-ofi-src",t.src),t.srcset&&b.call(t,"data-ofi-srcset",t.srcset),r(t,t.naturalWidth||t.width,t.naturalHeight||t.height),t.srcset&&(t.srcset="");try{s(t)}catch(t){window.console&&console.log("http://bit.ly/ofi-old-browser")}}e(o.img),t.style.backgroundImage='url("'+(o.img.currentSrc||o.img.src).replace(/"/g,'\\"')+'")',t.style.backgroundPosition=c["object-position"]||"center",t.style.backgroundRepeat="no-repeat",/scale-down/.test(c["object-fit"])?n(o.img,function(){o.img.naturalWidth>t.width||o.img.naturalHeight>t.height?t.style.backgroundSize="contain":t.style.backgroundSize="auto"}):t.style.backgroundSize=c["object-fit"].replace("none","auto").replace("fill","100% 100%"),n(o.img,function(e){r(t,e.naturalWidth,e.naturalHeight)})}function s(t){var e={get:function(e){return t[a].img[e?e:"src"]},set:function(e,i){return t[a].img[i?i:"src"]=e,b.call(t,"data-ofi-"+i,e),c(t),e}};Object.defineProperty(t,"src",e),Object.defineProperty(t,"currentSrc",{get:function(){return e.get("currentSrc")}}),Object.defineProperty(t,"srcset",{get:function(){return e.get("srcset")},set:function(t){return e.set(t,"srcset")}})}function o(t,e){var i=!h&&!t;if(e=e||{},t=t||"img",f&&!e.skipTest||!d)return!1;"string"==typeof t?t=document.querySelectorAll(t):"length"in t||(t=[t]);for(var r=0;r<t.length;r++)t[r][a]=t[r][a]||{skipTest:e.skipTest},c(t[r]);i&&(document.body.addEventListener("load",function(t){"IMG"===t.target.tagName&&o(t.target,{skipTest:e.skipTest})},!0),h=!0,t="img"),e.watchMQ&&window.addEventListener("resize",o.bind(null,t,{skipTest:e.skipTest}))}var a="bfred-it:object-fit-images",l=/(object-fit|object-position)\s*:\s*([-\w\s%]+)/g,u="undefined"==typeof Image?{style:{"object-position":1}}:new Image,g="object-fit"in u.style,f="object-position"in u.style,d="background-size"in u.style,m="string"==typeof u.currentSrc,p=u.getAttribute,b=u.setAttribute,h=!1;return o.supportsObjectFit=g,o.supportsObjectPosition=f,function(){function t(t,e){return t[a]&&t[a].img&&("src"===e||"srcset"===e)?t[a].img:t}f||(HTMLImageElement.prototype.getAttribute=function(e){return p.call(t(this,e),e)},HTMLImageElement.prototype.setAttribute=function(e,i){return b.call(t(this,e),e,String(i))})}(),o}();
|
35
35
|
},{}],16:[function(require,module,exports){
|
36
36
|
"use strict";!function(){if(!HTMLElement.prototype.querySelectorAll)throw new Error("rootedQuerySelectorAll: This polyfill can only be used with browsers that support querySelectorAll");var e=document.createElement("div");try{e.querySelectorAll(":scope *")}catch(o){var t=function(t,o){var l=t[o];t[o]=function(t){var o,i=!1,c=!1;return t.match(r)?(t=t.replace(r,""),this.parentNode||(e.appendChild(this),i=!0),parentNode=this.parentNode,this.id||(this.id="rootedQuerySelector_id_"+(new Date).getTime(),c=!0),o=l.call(parentNode,"#"+this.id+" "+t),c&&(this.id=""),i&&e.removeChild(this),o):l.call(this,t)}},r=/^\s*:scope/gi;t(HTMLElement.prototype,"querySelector"),t(HTMLElement.prototype,"querySelectorAll")}}();
|
37
37
|
},{}],17:[function(require,module,exports){
|
38
|
-
"use strict";var supportsWoff2=function(t){if(!("FontFace"in t))return!1;var e=new FontFace("t",'url( "data:application/font-woff2;base64,d09GMgABAAAAAAIkAAoAAAAABVwAAAHcAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABlYAgloKLEoBNgIkAxgLDgAEIAWDcgc1G7IEyB6SJAFID5YA3nAHC6h4+H7s27nP1kTyOoQkGuJWtNGIJKYznRI3VEL7IaHq985ZUuKryZKcAtJsi5eULwUybm9KzajBBhywZ5ZwoJNuwDX5C/xBjvz5DbsoNsvG1NGQiqp0NMLZ7JlnW+5MaM3HwcHheUQeiVokekHkn/FRdefvJaTp2PczN+I1Sc3k9VuX51Tb0Tqqf1deVXGdJsDOhz0/EffMOPOzHNH06pYkDDjs+P8fb/z/8n9Iq8ITzWywkP6PBMMN9L/O7vY2FNoTAkp5PpD6g1nV9WmyQnM5uPpAMHR2fe06jbfvzPriekVTQxC6lpKr43oDtRZfCATl5OVAUKykqwm9o8R/kg37cxa6eZikS7cjK4aIwoyh6jOFplhFrz2b833G3Jii9AjDUiAZ9AxZtxdEYV6imvRF0+0Nej3wu6nPZrTLh81AVcV3kmMVdQj6Qbe9qetzbuDZ7vXOlRrqooFSxCv6SfrDICA6rnHZXQPVcUHJYGcoqa3jVH7ATrjWBNYYkEqF3RFpVIl0q2JvMOJd7/TyjXHw2NyAuJpNaEbz8RTEVtCbSH7JrwQQOqwGl7sTUOtdBZIY2DKqKlvOmPvUxJaURAZZcviTT0SKHCXqzwc=" ) format( "woff2" )',{});return e.load().catch(function(){}),"loading"==e.status||"loaded"==e.status}(window),localStorageAvailable=function(){var t=window.localStorage;try{return t.setItem("test","1"),t.removeItem("test"),!0}catch(t){return!1}},loadFont=function(t,e,A,o){var a=navigator.userAgent,n=localStorageAvailable();if(window.addEventListener&&n&&(!a.match(/(Android (2|3|4.0|4.1|4.2|4.3))|(Opera (Mini|Mobi))/)||a.match(/Chrome/))){var r={};try{r=localStorage||{}}catch(t){}var s="x-font-"+t,c=s+"url",l=s+"css",i=r[c],u=r[l],d=i===e||i===A,f=document.createElement("style");if(f.rel="stylesheet",document.head.appendChild(f),u&&d)f.textContent=u;else{var p=A&&supportsWoff2?A:e,v=new XMLHttpRequest;v.open("GET",p),v.onload=function(){v.status>=200&&v.status<400&&(r[c]=p,r[l]=v.responseText,o||(f.textContent=v.responseText))},v.send()}}};module.exports=loadFont;
|
39
|
-
},{}],18:[function(require,module,exports){
|
40
38
|
"use strict";var loadScript=function(e,t){var c=document.createElement("script");c.async=!0,c.src=e,document.head.appendChild(c),c.addEventListener("load",function(){t&&t()},!1)};module.exports=loadScript;
|
41
|
-
},{}],
|
39
|
+
},{}],18:[function(require,module,exports){
|
42
40
|
"use strict";var once={evt:function(n,e,t,r){n.addEventListener(e,function o(u){n.removeEventListener(e,o,r),t(u)},r)},fn:function(n,e){var t;return function(){return n&&(t=n.apply(e||this,arguments),n=null),t}}};module.exports=once;
|
41
|
+
},{}],19:[function(require,module,exports){
|
42
|
+
!function(e,t,n){"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):t.bean=n()}(0,this,function(e,t){e=e||"bean",t=t||this;var n,r=window,o=t[e],i="addEventListener",a=document||{},l=a.documentElement||{},u=l[i],c=u?i:"attachEvent",s={},p=Array.prototype.slice,f=function(e,t){return e.split(t||" ")},h=function(e){return"string"==typeof e},g=function(e){return"function"==typeof e},d=function(e){return"object"==typeof e},m=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);if(!d(t))return n;for(r in n)n.hasOwnProperty(r)&&t.hasOwnProperty(r)&&(n[r]=t[r]);return n},v=function(e,t,n){for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},f("click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll "+(u?"show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ":""))),y=function(){var e="compareDocumentPosition"in l?function(e,t){return t.compareDocumentPosition&&16==(16&t.compareDocumentPosition(e))}:"contains"in l?function(e,t){return(t=9===t.nodeType||t===window?l:t)!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},t=function(t){var n=t.relatedTarget;return n?n!==this&&"xul"!==n.prefix&&!/document/.test(this.toString())&&!e(n,this):null==n};return{mouseenter:{base:"mouseover",condition:t},mouseleave:{base:"mouseout",condition:t},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),b=function(){var e=f("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName path"),t=e.concat(f("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement movementX movementY region")),n=t.concat(f("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),o=e.concat(f("char charCode key keyCode keyIdentifier keyLocation location isComposing code")),i=e.concat(f("data")),u=e.concat(f("touches targetTouches changedTouches scale rotation")),c=e.concat(f("data origin source")),s=e.concat(f("state")),p=/over|out/,h=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,o}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,n,r){return n.rightClick=3===e.which||2===e.button,n.pos={x:0,y:0},e.pageX||e.pageY?(n.clientX=e.pageX,n.clientY=e.pageY):(e.clientX||e.clientY)&&(n.clientX=e.clientX+a.body.scrollLeft+l.scrollLeft,n.clientY=e.clientY+a.body.scrollTop+l.scrollTop),p.test(r)&&(n.relatedTarget=e.relatedTarget||e[("mouseover"==r?"from":"to")+"Element"]),t}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return n}},{reg:/^text/i,fix:function(){return i}},{reg:/^touch|^gesture/i,fix:function(){return u}},{reg:/^message$/i,fix:function(){return c}},{reg:/^popstate$/i,fix:function(){return s}},{reg:/.*/,fix:function(){return e}}],g={},d=function(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||r).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var o,i,a,l,u,c=e.type,s=e.target||e.srcElement;if(this.target=s&&3===s.nodeType?s.parentNode:s,n){if(!(u=g[c]))for(o=0,i=h.length;o<i;o++)if(h[o].reg.test(c)){g[c]=u=h[o].fix;break}for(l=u(e,this,c),o=l.length;o--;)!((a=l[o])in this)&&a in e&&(this[a]=e[a])}}};return d.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},d.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},d.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},d.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},d.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},d.prototype.clone=function(e){var t=new d(this,this.element,this.isNative);return t.currentTarget=e,t},d}(),w=function(e,t){return u||t||e!==a&&e!==r?e:l},E=function(){var e=function(e,t,n,r){var o=function(n,o){return t.apply(e,r?p.call(o,n?0:1).concat(r):o)},i=function(n,r){return t.__beanDel?t.__beanDel.ft(n.target,e):r},a=n?function(e){var t=i(e,this);if(n.apply(t,arguments))return e&&(e.currentTarget=t),o(e,arguments)}:function(e){return t.__beanDel&&(e=e.clone(i(e))),o(e,arguments)};return a.__beanDel=t.__beanDel,a},t=function(t,n,r,o,i,a,l){var s,p=y[n];"unload"==n&&(r=k(_,t,n,r,o)),p&&(p.condition&&(r=e(t,r,p.condition,a)),n=p.base||n),this.isNative=s=v[n]&&!!t[c],this.customType=!u&&!s&&n,this.element=t,this.type=n,this.original=o,this.namespaces=i,this.eventType=u||s?n:"propertychange",this.target=w(t,s),this[c]=!!this.target[c],this.root=l,this.handler=e(t,r,null,a)};return t.prototype.inNamespaces=function(e){var t,n,r=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&r++;return e.length===r},t.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},t}(),T=function(){var e={},t=function(n,r,o,i,a,l){var u=a?"r":"$";if(r&&"*"!=r){var c,s=0,p=e[u+r],f="*"==n;if(!p)return;for(c=p.length;s<c;s++)if((f||p[s].matches(n,o,i))&&!l(p[s],p,s,r))return}else for(var h in e)h.charAt(0)==u&&t(n,h.substr(1),o,i,a,l)};return{has:function(t,n,r,o){var i,a=e[(o?"r":"$")+n];if(a)for(i=a.length;i--;)if(!a[i].root&&a[i].matches(t,r,null))return!0;return!1},get:function(e,n,r,o){var i=[];return t(e,n,r,null,o,function(e){return i.push(e)}),i},put:function(t){var n=!t.root&&!this.has(t.element,t.type,null,!1),r=(t.root?"r":"$")+t.type;return(e[r]||(e[r]=[])).push(t),n},del:function(n){t(n.element,n.type,null,n.handler,n.root,function(t,n,r){return n.splice(r,1),t.removed=!0,0===n.length&&delete e[(t.root?"r":"$")+t.type],!1})},entries:function(){var t,n=[];for(t in e)"$"==t.charAt(0)&&(n=n.concat(e[t]));return n}}}(),D=function(e){n=arguments.length?e:a.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}},P=function(e,t){if(u||!t||!e||e.propertyName=="_on"+t){var n=T.get(this,t||e.type,null,!1),r=n.length,o=0;for(e=new b(e,this,!0),t&&(e.type=t);o<r&&!e.isImmediatePropagationStopped();o++)n[o].removed||n[o].handler.call(this,e)}},x=u?function(e,t,n,r,o){e[n?i:"removeEventListener"](t,P,o)}:function(e,t,n,r){var o;n?(T.put(o=new E(e,r||t,function(t){P.call(e,t,r)},P,null,null,!0)),r&&null==e["_on"+r]&&(e["_on"+r]=0),o.target.attachEvent("on"+o.eventType,o.handler)):(o=T.get(e,r||t,P,!0)[0])&&(o.target.detachEvent("on"+o.eventType,o.handler),T.del(o))},k=function(e,t,n,r,o){return function(){r.apply(this,arguments),e(t,n,o)}},_=function(e,t,n,r,o){var i,a,l=t&&t.replace(/\..*/,""),u=T.get(e,l,null,!1),s={};for(i=0,a=u.length;i<a;i++)n&&u[i].original!==n||!u[i].inNamespaces(r)||(T.del(u[i]),!s[u[i].eventType]&&u[i][c]&&(s[u[i].eventType]={t:u[i].eventType,c:u[i].type}));for(i in s)T.has(e,s[i].t,null,!1)||x(e,s[i].t,!1,s[i].c,o)},C=function(e,t){var r=function(t,r){for(var o,i=h(e)?n(e,r):e;t&&t!==r;t=t.parentNode)for(o=i.length;o--;)if(i[o]===t)return t},o=function(e){var n=r(e.target,this);n&&t.apply(n,arguments)};return o.__beanDel={ft:r,selector:e},o},N=u?function(e,t,n){var o=a.createEvent(e?"HTMLEvents":"UIEvents");o[e?"initEvent":"initUIEvent"](t,!0,!0,r,1),n.dispatchEvent(o)}:function(e,t,n){n=w(n,e),e?n.fireEvent("on"+t,a.createEventObject()):n["_on"+t]++},S=function(e,t,n){var r,o,i,a,l=h(t),u={useCapture:!1},c=m(u,arguments[arguments.length-1]);if(l&&t.indexOf(" ")>0){for(t=f(t),a=t.length;a--;)S(e,t[a],n);return e}if(o=l&&t.replace(/\..*/,""),o&&y[o]&&(o=y[o].base),!t||l)(i=l&&t.replace(/[^\.]*(?=\..*)\.|.*/,""))&&(i=f(i,".")),_(e,o,n,i,c.useCapture);else if(g(t))_(e,null,t,null,c.useCapture);else for(r in t)t.hasOwnProperty(r)&&S(e,r,t[r]);return e},X=function(e,t,n,r){var o,i,a,l,u,h,d,v,y={useCapture:!1};{if(void 0!==n||"object"!=typeof t){for(g(n)?(u=p.call(arguments,3),r=o=n):(o=r,u=p.call(arguments,4),r=C(n,o)),v=m(y,u[u.length-1]),a=f(t),this===s&&(r=k(S,e,t,r,o)),l=a.length;l--;)d=T.put(h=new E(e,a[l].replace(/\..*/,""),r,o,f(a[l].replace(/[^\.]*(?=\..*)\.|.*/,""),"."),u,!1)),h[c]&&d&&x(e,h.eventType,!0,h.customType,v.useCapture);return e}for(i in t)t.hasOwnProperty(i)&&X.call(this,e,i,t[i])}},Y=function(e,t,n,r,o){return X.apply(null,h(n)?[e,n,t,r].concat(arguments.length>3?p.call(arguments,4):[]):p.call(arguments))},I=function(){return X.apply(s,arguments)},O=function(e,t,n){var r,o,i,a,l,u=f(t);for(r=u.length;r--;)if(t=u[r].replace(/\..*/,""),(a=u[r].replace(/[^\.]*(?=\..*)\.|.*/,""))&&(a=f(a,".")),a||n||!e[c])for(l=T.get(e,t,null,!1),n=[!1].concat(n),o=0,i=l.length;o<i;o++)l[o].inNamespaces(a)&&l[o].handler.apply(e,n);else N(v[t],t,e);return e},L=function(e,t,n){for(var r,o,i=T.get(t,n,null,!1),a=i.length,l=0;l<a;l++)i[l].original&&(r=[e,i[l].type],(o=i[l].handler.__beanDel)&&r.push(o.selector),r.push(i[l].original),X.apply(null,r));return e},M={on:X,add:Y,one:I,off:S,remove:S,clone:L,fire:O,Event:b,setSelectorEngine:D,noConflict:function(){return t[e]=o,this}};if(r.attachEvent){var $=function(){var e,t=T.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&S(t[e].element,t[e].type);r.detachEvent("onunload",$),r.CollectGarbage&&r.CollectGarbage()};r.attachEvent("onunload",$)}return D(),M});
|
43
43
|
},{}],20:[function(require,module,exports){
|
44
44
|
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){function t(e,t,i,r){var o=e.getLineHandle(t.line),l=t.ch-1,f=l>=0&&c[o.text.charAt(l)]||c[o.text.charAt(++l)];if(!f)return null;var u=">"==f.charAt(1)?1:-1;if(i&&u>0!=(l==t.ch))return null;var h=e.getTokenTypeAt(a(t.line,l+1)),s=n(e,a(t.line,l+(u>0?1:0)),u,h||null,r);return null==s?null:{from:a(t.line,l),to:s&&s.pos,match:s&&s.ch==f.charAt(0),forward:u>0}}function n(e,t,n,i,r){for(var o=r&&r.maxScanLineLength||1e4,l=r&&r.maxScanLines||1e3,f=[],u=r&&r.bracketRegex?r.bracketRegex:/[(){}[\]]/,h=n>0?Math.min(t.line+l,e.lastLine()+1):Math.max(e.firstLine()-1,t.line-l),s=t.line;s!=h;s+=n){var m=e.getLine(s);if(m){var d=n>0?0:m.length-1,g=n>0?m.length:-1;if(!(m.length>o))for(s==t.line&&(d=t.ch-(n<0?1:0));d!=g;d+=n){var p=m.charAt(d);if(u.test(p)&&(void 0===i||e.getTokenTypeAt(a(s,d+1))==i)){var v=c[p];if(">"==v.charAt(1)==n>0)f.push(p);else{if(!f.length)return{pos:a(s,d),ch:p};f.pop()}}}}}return s-n!=(n>0?e.lastLine():e.firstLine())&&null}function i(e,n,i){for(var r=e.state.matchBrackets.maxHighlightLineLength||1e3,c=[],l=e.listSelections(),f=0;f<l.length;f++){var u=l[f].empty()&&t(e,l[f].head,!1,i);if(u&&e.getLine(u.from.line).length<=r){var h=u.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";c.push(e.markText(u.from,a(u.from.line,u.from.ch+1),{className:h})),u.to&&e.getLine(u.to.line).length<=r&&c.push(e.markText(u.to,a(u.to.line,u.to.ch+1),{className:h}))}}if(c.length){o&&e.state.focused&&e.focus();var s=function(){e.operation(function(){for(var e=0;e<c.length;e++)c[e].clear()})};if(!n)return s;setTimeout(s,800)}}function r(e){e.operation(function(){l&&(l(),l=null),l=i(e,!1,e.state.matchBrackets)})}var o=/MSIE \d/.test(navigator.userAgent)&&(null==document.documentMode||document.documentMode<8),a=e.Pos,c={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<"},l=null;e.defineOption("matchBrackets",!1,function(t,n,i){i&&i!=e.Init&&(t.off("cursorActivity",r),l&&(l(),l=null)),n&&(t.state.matchBrackets="object"==typeof n?n:{},t.on("cursorActivity",r))}),e.defineExtension("matchBrackets",function(){i(this,!0)}),e.defineExtension("findMatchingBracket",function(e,n,i){return t(this,e,n,i)}),e.defineExtension("scanForBracket",function(e,t,i,r){return n(this,e,t,i,r)})});
|
45
45
|
},{"../../lib/codemirror":22}],21:[function(require,module,exports){
|
46
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.runMode=function(t,n,r,o){var a=e.getMode(e.defaults,n),d=/MSIE \d/.test(navigator.userAgent),i=d&&(null==document.documentMode||document.documentMode<9);if(r.appendChild){var c=o&&o.tabSize||e.defaults.tabSize,l=r,u=0;l.innerHTML="",r=function(e,t){if("\n"==e)return l.appendChild(document.createTextNode(i?"\r":e)),void(u=0);for(var n="",r=0;;){var o=e.indexOf("\t",r);if(
|
46
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.runMode=function(t,n,r,o){var a=e.getMode(e.defaults,n),d=/MSIE \d/.test(navigator.userAgent),i=d&&(null==document.documentMode||document.documentMode<9);if(r.appendChild){var c=o&&o.tabSize||e.defaults.tabSize,l=r,u=0;l.innerHTML="",r=function(e,t){if("\n"==e)return l.appendChild(document.createTextNode(i?"\r":e)),void(u=0);for(var n="",r=0;;){var o=e.indexOf("\t",r);if(o==-1){n+=e.slice(r),u+=e.length-r;break}u+=o-r,n+=e.slice(r,o);var a=c-u%c;u+=a;for(var d=0;d<a;++d)n+=" ";r=o+1}if(t){var f=l.appendChild(document.createElement("span"));f.className="cm-"+t.replace(/ +/g," cm-"),f.appendChild(document.createTextNode(n))}else l.appendChild(document.createTextNode(n))}}for(var f=e.splitLines(t),s=o&&o.state||e.startState(a),p=0,m=f.length;p<m;++p){p&&r("\n");var v=new e.StringStream(f[p]);for(!v.string&&a.blankLine&&a.blankLine(s);!v.eol();){var b=a.token(v,s);r(v.current(),b,p,v.start,s),v.start=v.pos}}}});
|
47
47
|
},{"../../lib/codemirror":22}],22:[function(require,module,exports){
|
48
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.CodeMirror=t()}(this,function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function r(e,r){return t(e).appendChild(r)}function n(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function i(e,t,r,i){var o=n(e,t,r,i);return o.setAttribute("role","presentation"),o}function o(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function l(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function s(t,r){var n=t.className;e(r).test(n)||(t.className+=(n?" ":"")+r)}function a(t,r){for(var n=t.split(" "),i=0;i<n.length;i++)n[i]&&!e(n[i]).test(r)&&(r+=" "+n[i]);return r}function u(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function c(e,t,r){t||(t={});for(var n in e)!e.hasOwnProperty(n)||!1===r&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function f(e,t,r,n,i){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var o=n||0,l=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return l+(t-o);l+=s-o,l+=r-l%r,o=s+1}}function h(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}function d(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("\t",n);-1==o&&(o=e.length);var l=o-n;if(o==e.length||i+l>=t)return n+Math.min(l,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}function p(e){for(;Dl.length<=e;)Dl.push(g(Dl)+" ");return Dl[e]}function g(e){return e[e.length-1]}function v(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function m(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function y(){}function b(e,t){var r;return Object.create?r=Object.create(e):(y.prototype=e,r=new y),t&&c(t,r),r}function w(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Hl.test(e))}function x(e,t){return t?!!(t.source.indexOf("\\w")>-1&&w(e))||t.test(e):w(e)}function C(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function S(e){return e.charCodeAt(0)>=768&&El.test(e)}function L(e,t,r){for(;(r<0?t>0:t<e.length)&&S(e.charAt(t));)t+=r;return t}function k(e,t,r){for(;;){if(Math.abs(t-r)<=1)return e(t)?t:r;var n=Math.floor((t+r)/2);e(n)?r=n:t=n}}function T(e,t,r){var o=this;this.input=r,o.scrollbarFiller=n("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=n("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=i("div",null,"CodeMirror-code"),o.selectionDiv=n("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=n("div",null,"CodeMirror-cursors"),o.measure=n("div",null,"CodeMirror-measure"),o.lineMeasure=n("div",null,"CodeMirror-measure"),o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=n("div",[l],null,"position: relative"),o.sizer=n("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=n("div",null,null,"position: absolute; height: "+Ml+"px; width: 1px;"),o.gutters=n("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=n("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=n("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),nl&&il<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),ol||Jo&&pl||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,r.init(o)}function M(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function N(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(e){var o=e.text;i==r.line&&(o=o.slice(0,r.ch)),i==t.line&&(o=o.slice(t.ch)),n.push(o),++i}),n}function O(e,t,r){var n=[];return e.iter(t,r,function(e){n.push(e.text)}),n}function A(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function W(e){if(null==e.parent)return null;for(var t=e.parent,r=h(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function D(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var l=0;l<e.lines.length;++l){var s=e.lines[l],a=s.height;if(t<a)break;t-=a}return r+l}function H(e,t){return t>=e.first&&t<e.first+e.size}function E(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function P(e,t,r){if(void 0===r&&(r=null),!(this instanceof P))return new P(e,t,r);this.line=e,this.ch=t,this.sticky=r}function F(e,t){return e.line-t.line||e.ch-t.ch}function I(e,t){return e.sticky==t.sticky&&0==F(e,t)}function z(e){return P(e.line,e.ch)}function R(e,t){return F(e,t)<0?t:e}function B(e,t){return F(e,t)<0?e:t}function G(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function U(e,t){if(t.line<e.first)return P(e.first,0);var r=e.first+e.size-1;return t.line>r?P(r,M(e,r).text.length):V(t,M(e,t.line).text.length)}function V(e,t){var r=e.ch;return null==r||r>t?P(e.line,t):r<0?P(e.line,0):e}function K(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=U(e,t[n]);return r}function j(){Pl=!0}function X(){Fl=!0}function Y(e,t,r){this.marker=e,this.from=t,this.to=r}function _(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function $(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function q(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Z(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,s=null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==l.type&&(!r||!o.marker.insertLeft)){var a=null==o.to||(l.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new Y(l,o.from,a?null:o.to))}}return n}function Q(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,s=null==o.to||(l.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new Y(l,a?null:o.from-t,null==o.to?null:o.to-t))}}return n}function J(e,t){if(t.full)return null;var r=H(e,t.from.line)&&M(e,t.from.line).markedSpans,n=H(e,t.to.line)&&M(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,l=0==F(t.from,t.to),s=Z(r,i,l),a=Q(n,o,l),u=1==t.text.length,c=g(t.text).length+(u?i:0);if(s)for(var f=0;f<s.length;++f){var h=s[f];if(null==h.to){var d=_(a,h.marker);d?u&&(h.to=null==d.to?null:d.to+c):h.to=i}}if(a)for(var p=0;p<a.length;++p){var v=a[p];if(null!=v.to&&(v.to+=c),null==v.from){var m=_(s,v.marker);m||(v.from=c,u&&(s||(s=[])).push(v))}else v.from+=c,u&&(s||(s=[])).push(v)}s&&(s=ee(s)),a&&a!=s&&(a=ee(a));var y=[s];if(!u){var b,w=t.text.length-2;if(w>0&&s)for(var x=0;x<s.length;++x)null==s[x].to&&(b||(b=[])).push(new Y(s[x].marker,null,null));for(var C=0;C<w;++C)y.push(b);y.push(a)}return y}function ee(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&!1!==r.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function te(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||n&&-1!=h(n,r)||(n||(n=[])).push(r)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var l=n[o],s=l.find(0),a=0;a<i.length;++a){var u=i[a];if(!(F(u.to,s.from)<0||F(u.from,s.to)>0)){var c=[a,1],f=F(u.from,s.from),d=F(u.to,s.to);(f<0||!l.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!l.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),a+=c.length-3}}return i}function re(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function ne(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function ie(e){return e.inclusiveLeft?-1:0}function oe(e){return e.inclusiveRight?1:0}function le(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var n=e.find(),i=t.find(),o=F(n.from,i.from)||ie(e)-ie(t);if(o)return-o;var l=F(n.to,i.to)||oe(e)-oe(t);return l||t.id-e.id}function se(e,t){var r,n=Fl&&e.markedSpans;if(n)for(var i=void 0,o=0;o<n.length;++o)i=n[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!r||le(r,i.marker)<0)&&(r=i.marker);return r}function ae(e){return se(e,!0)}function ue(e){return se(e,!1)}function ce(e,t,r,n,i){var o=M(e,t),l=Fl&&o.markedSpans;if(l)for(var s=0;s<l.length;++s){var a=l[s];if(a.marker.collapsed){var u=a.marker.find(0),c=F(u.from,r)||ie(a.marker)-ie(i),f=F(u.to,n)||oe(a.marker)-oe(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?F(u.to,r)>=0:F(u.to,r)>0)||c>=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?F(u.from,n)<=0:F(u.from,n)<0)))return!0}}}function fe(e){for(var t;t=ae(e);)e=t.find(-1,!0).line;return e}function he(e){for(var t;t=ue(e);)e=t.find(1,!0).line;return e}function de(e){for(var t,r;t=ue(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function pe(e,t){var r=M(e,t),n=fe(r);return r==n?t:W(n)}function ge(e,t){if(t>e.lastLine())return t;var r,n=M(e,t);if(!ve(e,n))return t;for(;r=ue(n);)n=r.find(1,!0).line;return W(n)+1}function ve(e,t){var r=Fl&&t.markedSpans;if(r)for(var n=void 0,i=0;i<r.length;++i)if(n=r[i],n.marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&me(e,t,n))return!0}}function me(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return me(e,n.line,_(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(null==i.to||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&me(e,t,i))return!0}function ye(e){e=fe(e);for(var t=0,r=e.parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;r=o,o=r.parent)for(var l=0;l<o.children.length;++l){var s=o.children[l];if(s==r)break;t+=s.height}return t}function be(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=ae(n);){var i=t.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=e;t=ue(n);){var o=t.find(0,!0);r-=n.text.length-o.from.ch,n=o.to.line,r+=n.text.length-o.to.ch}return r}function we(e){var t=e.display,r=e.doc;t.maxLine=M(r,r.first),t.maxLineLength=be(t.maxLine),t.maxLineChanged=!0,r.iter(function(e){var r=be(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}function xe(e,t,r,n){if(!e)return n(t,r,"ltr");for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<r&&l.to>t||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr"),i=!0)}i||n(t,r,"ltr")}function Ce(e,t,r){var n;Il=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:Il=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:Il=i)}return null!=n?n:Il}function Se(e,t){var r=e.order;return null==r&&(r=e.order=zl(e.text,t)),r}function Le(e,t,r){var n=L(e.text,t+r,r);return n<0||n>e.text.length?null:n}function ke(e,t,r){var n=Le(e,t.ch,r);return null==n?null:new P(t.line,n,r<0?"after":"before")}function Te(e,t,r,n,i){if(e){var o=Se(r,t.doc.direction);if(o){var l,s=i<0?g(o):o[0],a=i<0==(1==s.level),u=a?"after":"before";if(s.level>0){var c=qt(t,r);l=i<0?r.text.length-1:0;var f=Zt(t,c,l).top;l=k(function(e){return Zt(t,c,e).top==f},i<0==(1==s.level)?s.from:s.to-1,l),"before"==u&&(l=Le(r,l,1))}else l=i<0?s.to:s.from;return new P(n,l,u)}}return new P(n,i<0?r.text.length:0,i<0?"before":"after")}function Me(e,t,r,n){var i=Se(t,e.doc.direction);if(!i)return ke(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=Ce(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from<r.ch))return ke(t,r,n);var s,a=function(e,r){return Le(t,e instanceof P?e.ch:e,r)},u=function(r){return e.options.lineWrapping?(s=s||qt(e,t),gr(e,t,s,r)):{begin:0,end:t.text.length}},c=u("before"==r.sticky?a(r,-1):r.ch);if("rtl"==e.doc.direction||1==l.level){var f=1==l.level==n<0,h=a(r,f?1:-1);if(null!=h&&(f?h<=l.to&&h<=c.end:h>=l.from&&h>=c.begin)){var d=f?"before":"after";return new P(r.line,h,d)}}var p=function(e,t,n){for(var o=function(e,t){return t?new P(r.line,a(e,1),"before"):new P(r.line,e,"after")};e>=0&&e<i.length;e+=t){var l=i[e],s=t>0==(1!=l.level),u=s?n.begin:a(n.end,-1);if(l.from<=u&&u<l.to)return o(u,s);if(u=s?l.from:a(l.to,-1),n.begin<=u&&u<n.end)return o(u,s)}},g=p(o+n,n,c);if(g)return g;var v=n>0?c.end:a(c.begin,-1);return null==v||n>0&&v==t.text.length||!(g=p(n>0?0:i.length-1,n,u(v)))?null:g}function Ne(e,t){return e._handlers&&e._handlers[t]||Rl}function Oe(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=h(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ae(e,t){var r=Ne(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function We(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ae(e,r||t.type,e,t),Ie(t)||t.codemirrorIgnore}function De(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)-1==h(r,t[n])&&r.push(t[n])}function He(e,t){return Ne(e,t).length>0}function Ee(e){e.prototype.on=function(e,t){Bl(this,e,t)},e.prototype.off=function(e,t){Oe(this,e,t)}}function Pe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Fe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ie(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ze(e){Pe(e),Fe(e)}function Re(e){return e.target||e.srcElement}function Be(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),gl&&e.ctrlKey&&1==t&&(t=3),t}function Ge(e){if(null==kl){var t=n("span","");r(e,n("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(kl=t.offsetWidth<=1&&t.offsetHeight>2&&!(nl&&il<8))}var i=kl?n("span",""):n("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function Ue(e){if(null!=Tl)return Tl;var n=r(e,document.createTextNode("AخA")),i=bl(n,0,1).getBoundingClientRect(),o=bl(n,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(Tl=o.right-i.right<3)}function Ve(e){if(null!=jl)return jl;var t=r(e,n("span","x")),i=t.getBoundingClientRect(),o=bl(t,0,1).getBoundingClientRect();return jl=Math.abs(i.left-o.left)>1}function Ke(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Xl[e]=t}function je(e,t){Yl[e]=t}function Xe(e){if("string"==typeof e&&Yl.hasOwnProperty(e))e=Yl[e];else if(e&&"string"==typeof e.name&&Yl.hasOwnProperty(e.name)){var t=Yl[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Xe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Xe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ye(e,t){t=Xe(t);var r=Xl[t.name];if(!r)return Ye(e,"text/plain");var n=r(e,t);if(_l.hasOwnProperty(t.name)){var i=_l[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}function _e(e,t){c(t,_l.hasOwnProperty(e)?_l[e]:_l[e]={})}function $e(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function qe(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ze(e,t,r){return!e.startState||e.startState(t,r)}function Qe(e,t,r,n){var i=[e.state.modeGen],o={};lt(e,t.text,e.doc.mode,r,function(e,t){return i.push(e,t)},o,n);for(var l=0;l<e.state.overlays.length;++l)!function(r){var n=e.state.overlays[r],l=1,s=0;lt(e,t.text,n.mode,!0,function(e,t){for(var r=l;s<e;){var o=i[l];o>e&&i.splice(l,1,e,i[l+1],o),l+=2,s=Math.min(e,o)}if(t)if(n.opaque)i.splice(r,l-r,e,"overlay "+t),l=r+2;else for(;r<l;r+=2){var a=i[r+1];i[r+1]=(a?a+" ":"")+"overlay "+t}},o)}(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Je(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=et(e,W(t)),i=Qe(e,t,t.text.length>e.options.maxHighlightLength?$e(e.doc.mode,n):n);t.stateAfter=n,t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.frontier&&e.doc.frontier++}return t.styles}function et(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return!0;var o=st(e,t,r),l=o>n.first&&M(n,o-1).stateAfter;return l=l?$e(n.mode,l):Ze(n.mode),n.iter(o,t,function(r){tt(e,r.text,l);var s=o==t-1||o%5==0||o>=i.viewFrom&&o<i.viewTo;r.stateAfter=s?$e(n.mode,l):null,++o}),r&&(n.frontier=o),l}function tt(e,t,r,n){var i=e.doc.mode,o=new $l(t,e.options.tabSize);for(o.start=o.pos=n||0,""==t&&rt(i,r);!o.eol();)nt(i,o,r),o.start=o.pos}function rt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=qe(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function nt(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=qe(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function it(e,t,r,n){var i,o=function(e){return{start:f.start,end:f.pos,string:f.current(),type:i||null,state:e?$e(l.mode,c):c}},l=e.doc,s=l.mode;t=U(l,t);var a,u=M(l,t.line),c=et(e,t.line,r),f=new $l(u.text,e.options.tabSize);for(n&&(a=[]);(n||f.pos<t.ch)&&!f.eol();)f.start=f.pos,i=nt(s,f,c),n&&a.push(o(!0));return n?a:o()}function ot(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==t[n]?t[n]=r[2]:new RegExp("(?:^|s)"+r[2]+"(?:$|s)").test(t[n])||(t[n]+=" "+r[2])}return e}function lt(e,t,r,n,i,o,l){var s=r.flattenSpans;null==s&&(s=e.options.flattenSpans);var a,u=0,c=null,f=new $l(t,e.options.tabSize),h=e.options.addModeClass&&[null];for(""==t&&ot(rt(r,n),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,l&&tt(e,t,n,f.pos),f.pos=t.length,a=null):a=ot(nt(r,f,n,h),o),h){var d=h[0].name;d&&(a="m-"+(a?d+" "+a:d))}if(!s||c!=a){for(;u<f.start;)u=Math.min(f.start,u+5e3),i(u,c);c=a}f.start=f.pos}for(;u<f.pos;){var p=Math.min(f.pos,u+5e3);i(p,c),u=p}}function st(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>l;--s){if(s<=o.first)return o.first;var a=M(o,s-1);if(a.stateAfter&&(!r||s<=o.frontier))return s;var u=f(a.text,null,e.options.tabSize);(null==i||n>u)&&(i=s-1,n=u)}return i}function at(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),re(e),ne(e,r);var i=n?n(e):1;i!=e.height&&A(e,i)}function ut(e){e.parent=null,re(e)}function ct(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Jl:Ql;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function ft(e,t){var r=i("span",null,null,ol?"padding-right: .1px":null),n={pre:i("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(nl||ol)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var l=o?t.rest[o-1]:t.line,s=void 0;n.pos=0,n.addToken=dt,Ue(e.display.measure)&&(s=Se(l,e.doc.direction))&&(n.addToken=gt(n.addToken,s)),n.map=[];mt(l,n,Je(e,l,t!=e.display.externalMeasured&&W(l))),l.styleClasses&&(l.styleClasses.bgClass&&(n.bgClass=a(l.styleClasses.bgClass,n.bgClass||"")),l.styleClasses.textClass&&(n.textClass=a(l.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Ge(e.display.measure))),0==o?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ol){var u=n.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Ae(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=a(n.pre.className,n.textClass||"")),n}function ht(e){var t=n("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function dt(e,t,r,i,o,l,s){if(t){var a,u=e.splitSpaces?pt(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1;if(c.test(t)){a=document.createDocumentFragment();for(var h=0;;){c.lastIndex=h;var d=c.exec(t),g=d?d.index-h:t.length-h;if(g){var v=document.createTextNode(u.slice(h,h+g));nl&&il<9?a.appendChild(n("span",[v])):a.appendChild(v),e.map.push(e.pos,e.pos+g,v),e.col+=g,e.pos+=g}if(!d)break;h+=g+1;var m=void 0;if("\t"==d[0]){var y=e.cm.options.tabSize,b=y-e.col%y;m=a.appendChild(n("span",p(b),"cm-tab")),m.setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=b}else"\r"==d[0]||"\n"==d[0]?(m=a.appendChild(n("span","\r"==d[0]?"␍":"","cm-invalidchar")),m.setAttribute("cm-text",d[0]),e.col+=1):(m=e.cm.options.specialCharPlaceholder(d[0]),m.setAttribute("cm-text",d[0]),nl&&il<9?a.appendChild(n("span",[m])):a.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,a=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,a),nl&&il<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),r||i||o||f||s){var w=r||"";i&&(w+=i),o&&(w+=o);var x=n("span",[a],w,s);return l&&(x.title=l),e.content.appendChild(x)}e.content.appendChild(a)}}function pt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!r||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),n+=o,r=" "==o}return n}function gt(e,t){return function(r,n,i,o,l,s,a){i=i?i+" cm-force-border":"cm-force-border";for(var u=r.pos,c=u+n.length;;){for(var f=void 0,h=0;h<t.length&&(f=t[h],!(f.to>u&&f.from<=u));h++);if(f.to>=c)return e(r,n,i,o,l,s,a);e(r,n.slice(0,f.to-u),i,o,null,s,a),o=null,n=n.slice(f.to-u),u=f.to}}}function vt(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function mt(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,s,a,u,c,f,h,d=i.length,p=0,g=1,v="",m=0;;){if(m==p){a=u=c=f=s="",h=null,m=1/0;for(var y=[],b=void 0,w=0;w<n.length;++w){var x=n[w],C=x.marker;"bookmark"==C.type&&x.from==p&&C.widgetNode?y.push(C):x.from<=p&&(null==x.to||x.to>p||C.collapsed&&x.to==p&&x.from==p)?(null!=x.to&&x.to!=p&&m>x.to&&(m=x.to,u=""),C.className&&(a+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==m&&(b||(b=[])).push(C.endStyle,x.to),C.title&&!f&&(f=C.title),C.collapsed&&(!h||le(h.marker,C)<0)&&(h=x)):x.from>p&&m>x.from&&(m=x.from)}if(b)for(var S=0;S<b.length;S+=2)b[S+1]==m&&(u+=" "+b[S]);if(!h||h.from==p)for(var L=0;L<y.length;++L)vt(t,0,y[L]);if(h&&(h.from||0)==p){if(vt(t,(null==h.to?d+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=d)break;for(var k=Math.min(d,m);;){if(v){var T=p+v.length;if(!h){var M=T>k?v.slice(0,k-p):v;t.addToken(t,M,l?l+a:a,c,p+M.length==m?u:"",f,s)}if(T>=k){v=v.slice(k-p),p=k;break}p=T,c=""}v=i.slice(o,o=r[g++]),l=ct(r[g++],t.cm.options)}}else for(var N=1;N<r.length;N+=2)t.addToken(t,i.slice(o,o=r[N]),ct(r[N+1],t.cm.options))}function yt(e,t,r){this.line=t,this.rest=de(t),this.size=this.rest?W(g(this.rest))-r+1:1,this.node=this.text=null,this.hidden=ve(e,t)}function bt(e,t,r){for(var n,i=[],o=t;o<r;o=n){var l=new yt(e.doc,M(e.doc,o),o);n=o+l.size,i.push(l)}return i}function wt(e){es?es.ops.push(e):e.ownsGroup=es={ops:[e],delayedCallbacks:[]}}function xt(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function Ct(e,t){var r=e.ownsGroup;if(r)try{xt(r)}finally{es=null,t(r)}}function St(e,t){var r=Ne(e,t);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);es?n=es.delayedCallbacks:ts?n=ts:(n=ts=[],setTimeout(Lt,0));for(var o=0;o<r.length;++o)!function(e){n.push(function(){return r[e].apply(null,i)})}(o)}}function Lt(){var e=ts;ts=null;for(var t=0;t<e.length;++t)e[t]()}function kt(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Ot(e,t):"gutter"==o?Wt(e,t,r,n):"class"==o?At(e,t):"widget"==o&&Dt(e,t,n)}t.changes=null}function Tt(e){return e.node==e.text&&(e.node=n("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),nl&&il<8&&(e.node.style.zIndex=2)),e.node}function Mt(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var i=Tt(t);t.background=i.insertBefore(n("div",null,r),i.firstChild),e.display.input.setUneditable(t.background)}}function Nt(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):ft(e,t)}function Ot(e,t){var r=t.text.className,n=Nt(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,At(e,t)):r&&(t.text.className=r)}function At(e,t){Mt(e,t),t.line.wrapClass?Tt(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Wt(e,t,r,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=Tt(t);t.gutterBackground=n("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var l=t.line.gutterMarkers;if(e.options.lineNumbers||l){var s=Tt(t),a=t.gutter=n("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(a),s.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||l&&l["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(n("div",E(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),l)for(var u=0;u<e.options.gutters.length;++u){var c=e.options.gutters[u],f=l.hasOwnProperty(c)&&l[c];f&&a.appendChild(n("div",[f],"CodeMirror-gutter-elt","left: "+i.gutterLeft[c]+"px; width: "+i.gutterWidth[c]+"px"))}}}function Dt(e,t,r){t.alignable&&(t.alignable=null);for(var n=t.node.firstChild,i=void 0;n;n=i)i=n.nextSibling,"CodeMirror-linewidget"==n.className&&t.node.removeChild(n);Et(e,t,r)}function Ht(e,t,r,n){var i=Nt(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),At(e,t),Wt(e,t,r,n),Et(e,t,n),t.node}function Et(e,t,r){if(Pt(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Pt(e,t.rest[n],t,r,!1)}function Pt(e,t,r,i,o){if(t.widgets)for(var l=Tt(r),s=0,a=t.widgets;s<a.length;++s){var u=a[s],c=n("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Ft(u,c,r,i),e.display.input.setUneditable(c),o&&u.above?l.insertBefore(c,r.gutter||r.text):l.appendChild(c),St(u,"redraw")}}function Ft(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function It(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!o(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),r(t.display.measure,n("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function zt(e,t){for(var r=Re(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function Rt(e){return e.lineSpace.offsetTop}function Bt(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=r(e.measure,n("pre","x")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function Ut(e){return Ml-e.display.nativeBarWidth}function Vt(e){return e.display.scroller.clientWidth-Ut(e)-e.display.barWidth}function Kt(e){return e.display.scroller.clientHeight-Ut(e)-e.display.barHeight}function jt(e,t,r){var n=e.options.lineWrapping,i=n&&Vt(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var l=t.text.firstChild.getClientRects(),s=0;s<l.length-1;s++){var a=l[s],u=l[s+1];Math.abs(a.bottom-u.bottom)>2&&o.push((a.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function Xt(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(W(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Yt(e,t){t=fe(t);var n=W(t),i=e.display.externalMeasured=new yt(e.doc,t,n);i.lineN=n;var o=i.built=ft(e,i);return i.text=o.pre,r(e.display.lineMeasure,o.pre),i}function _t(e,t,r,n){return Zt(e,qt(e,t),r,n)}function $t(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Lr(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function qt(e,t){var r=W(t),n=$t(e,r);n&&!n.text?n=null:n&&n.changes&&(kt(e,n,r,br(e)),e.curOp.forceUpdate=!0),n||(n=Yt(e,t));var i=Xt(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,
|
49
|
-
before:i.before,hasHeights:!1}}function Zt(e,t,r,n,i){t.before&&(r=-1);var o,l=r+(n||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(jt(e,t.view,t.rect),t.hasHeights=!0),o=er(e,t,r,n),o.bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}function Qt(e,t,r){for(var n,i,o,l,s,a,u=0;u<e.length;u+=3)if(s=e[u],a=e[u+1],t<s?(i=0,o=1,l="left"):t<a?(i=t-s,o=i+1):(u==e.length-3||t==a&&e[u+3]>t)&&(o=a-s,i=o-1,t>=a&&(l="right")),null!=i){if(n=e[u+2],s==a&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==a-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)n=e[(u+=3)+2],l="right";break}return{node:n,start:i,end:o,collapse:l,coverStart:s,coverEnd:a}}function Jt(e,t){var r=rs;if("left"==t)for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function er(e,t,r,n){var i,o=Qt(t.map,r,n),l=o.node,s=o.start,a=o.end,u=o.collapse;if(3==l.nodeType){for(var c=0;c<4;c++){for(;s&&S(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+a<o.coverEnd&&S(t.line.text.charAt(o.coverStart+a));)++a;if(i=nl&&il<9&&0==s&&a==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Jt(bl(l,s,a).getClientRects(),n),i.left||i.right||0==s)break;a=s,s-=1,u="right"}nl&&il<11&&(i=tr(e.display.measure,i))}else{s>0&&(u=n="right");var f;i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==n?f.length-1:0]:l.getBoundingClientRect()}if(nl&&il<9&&!s&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+yr(e.display),top:h.top,bottom:h.bottom}:rs}for(var d=i.top-t.rect.top,p=i.bottom-t.rect.top,g=(d+p)/2,v=t.view.measure.heights,m=0;m<v.length-1&&!(g<v[m]);m++);var y=m?v[m-1]:0,b=v[m],w={left:("right"==u?i.right:i.left)-t.rect.left,right:("left"==u?i.left:i.right)-t.rect.left,top:y,bottom:b};return i.left||i.right||(w.bogus=!0),e.options.singleCursorHeightPerLine||(w.rtop=d,w.rbottom=p),w}function tr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ve(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function rr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function nr(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)rr(e.display.view[r])}function ir(e){nr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function or(){return sl&&dl?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function lr(){return sl&&dl?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function sr(e,t,r,n,i){if(!i&&t.widgets)for(var o=0;o<t.widgets.length;++o)if(t.widgets[o].above){var l=It(t.widgets[o]);r.top+=l,r.bottom+=l}if("line"==n)return r;n||(n="local");var s=ye(t);if("local"==n?s+=Rt(e.display):s-=e.display.viewOffset,"page"==n||"window"==n){var a=e.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==n?0:lr());var u=a.left+("window"==n?0:or());r.left+=u,r.right+=u}return r.top+=s,r.bottom+=s,r}function ar(e,t,r){if("div"==r)return t;var n=t.left,i=t.top;if("page"==r)n-=or(),i-=lr();else if("local"==r||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:n-l.left,top:i-l.top}}function ur(e,t,r,n,i){return n||(n=M(e.doc,t.line)),sr(e,n,_t(e,n,t.ch,i),r)}function cr(e,t,r,n,i,o){function l(t,l){var s=Zt(e,i,t,l?"right":"left",o);return l?s.left=s.right:s.right=s.left,sr(e,n,s,r)}function s(e,t,r){var n=a[t],i=n.level%2!=0;return l(r?e-1:e,i!=r)}n=n||M(e.doc,t.line),i||(i=qt(e,n));var a=Se(n,e.doc.direction),u=t.ch,c=t.sticky;if(u>=n.text.length?(u=n.text.length,c="before"):u<=0&&(u=0,c="after"),!a)return l("before"==c?u-1:u,"before"==c);var f=Ce(a,u,c),h=Il,d=s(u,f,"before"==c);return null!=h&&(d.other=s(u,h,"before"!=c)),d}function fr(e,t){var r=0;t=U(e.doc,t),e.options.lineWrapping||(r=yr(e.display)*t.ch);var n=M(e.doc,t.line),i=ye(n)+Rt(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function hr(e,t,r,n,i){var o=P(e,t,r);return o.xRel=i,n&&(o.outside=!0),o}function dr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return hr(n.first,0,null,!0,-1);var i=D(n,r),o=n.first+n.size-1;if(i>o)return hr(n.first+n.size-1,M(n,o).text.length,null,!0,1);t<0&&(t=0);for(var l=M(n,i);;){var s=vr(e,l,i,t,r),a=ue(l),u=a&&a.find(0,!0);if(!a||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;i=W(l=u.to.line)}}function pr(e,t,r,n){var i=function(n){return sr(e,t,Zt(e,r,n),"line")},o=t.text.length,l=k(function(e){return i(e-1).bottom<=n},o,0);return o=k(function(e){return i(e).top>n},l,o),{begin:l,end:o}}function gr(e,t,r,n){return pr(e,t,r,sr(e,t,Zt(e,r,n),"line").top)}function vr(e,t,r,n,i){i-=ye(t);var o,l=0,s=t.text.length,a=qt(e,t);if(Se(t,e.doc.direction)){if(e.options.lineWrapping){var u;u=pr(e,t,a,i),l=u.begin,s=u.end}o=new P(r,l);var c,f,h=cr(e,o,"line",t,a).left,d=h<n?1:-1,p=h-n;do{if(c=p,f=o,null==(o=Me(e,t,o,d))||o.ch<l||s<=("before"==o.sticky?o.ch-1:o.ch)){o=f;break}p=cr(e,o,"line",t,a).left-n}while(d<0!=p<0&&Math.abs(p)<=Math.abs(c));if(Math.abs(p)>Math.abs(c)){if(p<0==c<0)throw new Error("Broke out of infinite loop in coordsCharInner");o=f}}else{var g=k(function(r){var o=sr(e,t,Zt(e,a,r),"line");return o.top>i?(s=Math.min(r,s),!0):!(o.bottom<=i)&&(o.left>n||!(o.right<n)&&n-o.left<o.right-n)},l,s);g=L(t.text,g,1),o=new P(r,g,g==s?"before":"after")}var v=cr(e,o,"line",t,a);return(i<v.top||v.bottom<i)&&(o.outside=!0),o.xRel=n<v.left?-1:n>v.right?1:0,o}function mr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Zl){Zl=n("pre");for(var i=0;i<49;++i)Zl.appendChild(document.createTextNode("x")),Zl.appendChild(n("br"));Zl.appendChild(document.createTextNode("x"))}r(e.measure,Zl);var o=Zl.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function yr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=n("span","xxxxxxxxxx"),i=n("pre",[t]);r(e.measure,i);var o=t.getBoundingClientRect(),l=(o.right-o.left)/10;return l>2&&(e.cachedCharWidth=l),l||10}function br(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l)r[e.options.gutters[l]]=o.offsetLeft+o.clientLeft+i,n[e.options.gutters[l]]=o.clientWidth;return{fixedPos:wr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function wr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xr(e){var t=mr(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/yr(e.display)-3);return function(i){if(ve(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return r?o+(Math.ceil(i.text.length/n)||1)*t:o+t}}function Cr(e){var t=e.doc,r=xr(e);t.iter(function(e){var t=r(e);t!=e.height&&A(e,t)})}function Sr(e,t,r,n){var i=e.display;if(!r&&"true"==Re(t).getAttribute("cm-not-content"))return null;var o,l,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,l=t.clientY-s.top}catch(t){return null}var a,u=dr(e,o,l);if(n&&1==u.xRel&&(a=M(e.doc,u.line).text).length==u.ch){var c=f(a,a.length,e.options.tabSize)-a.length;u=P(u.line,Math.max(0,Math.round((o-Gt(e.display).left)/yr(e.display))-c))}return u}function Lr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function kr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Tr(e,t){for(var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),l=0;l<r.sel.ranges.length;l++)if(!1!==t||l!=r.sel.primIndex){var s=r.sel.ranges[l];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var a=s.empty();(a||e.options.showCursorWhenSelecting)&&Mr(e,s.head,i),a||Nr(e,s,o)}}return n}function Mr(e,t,r){var i=cr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=r.appendChild(n("div"," ","CodeMirror-cursor"));if(o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var l=r.appendChild(n("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=i.other.left+"px",l.style.top=i.other.top+"px",l.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Nr(e,t,r){function i(e,t,r,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),a.appendChild(n("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?f-e:r)+"px;\n height: "+(i-t)+"px"))}function o(t,r,n){function o(r,n){return ur(e,P(t,r),"div",u,n)}var l,a,u=M(s,t),h=u.text.length;return xe(Se(u,s.direction),r||0,null==n?h:n,function(e,t,s){var u,d,p,g=o(e,"left");if(e==t)u=g,d=p=g.left;else{if(u=o(t-1,"right"),"rtl"==s){var v=g;g=u,u=v}d=g.left,p=u.right}null==r&&0==e&&(d=c),u.top-g.top>3&&(i(d,g.top,null,g.bottom),d=c,g.bottom<u.top&&i(d,g.bottom,null,u.top)),null==n&&t==h&&(p=f),(!l||g.top<l.top||g.top==l.top&&g.left<l.left)&&(l=g),(!a||u.bottom>a.bottom||u.bottom==a.bottom&&u.right>a.right)&&(a=u),d<c+1&&(d=c),i(d,u.top,p-d,u.bottom)}),{start:l,end:a}}var l=e.display,s=e.doc,a=document.createDocumentFragment(),u=Gt(e.display),c=u.left,f=Math.max(l.sizerWidth,Vt(e)-l.sizer.offsetLeft)-u.right,h=t.from(),d=t.to();if(h.line==d.line)o(h.line,h.ch,d.ch);else{var p=M(s,h.line),g=M(s,d.line),v=fe(p)==fe(g),m=o(h.line,h.ch,v?p.text.length+1:null).end,y=o(d.line,v?0:null,d.ch).start;v&&(m.top<y.top-2?(i(m.right,m.top,null,m.bottom),i(c,y.top,y.left,y.bottom)):i(m.right,m.top,y.left-m.right,m.bottom)),m.bottom<y.top&&i(c,m.bottom,null,y.top)}r.appendChild(a)}function Or(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ar(e){e.state.focused||(e.display.input.focus(),Dr(e))}function Wr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Hr(e))},100)}function Dr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ae(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),ol&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Or(e))}function Hr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ae(e,"blur",e,t),e.state.focused=!1,Cl(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Er(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var i=t.view[n],o=void 0;if(!i.hidden){if(nl&&il<8){var l=i.node.offsetTop+i.node.offsetHeight;o=l-r,r=l}else{var s=i.node.getBoundingClientRect();o=s.bottom-s.top}var a=i.line.height-o;if(o<2&&(o=mr(t)),(a>.001||a<-.001)&&(A(i.line,o),Pr(i.line),i.rest))for(var u=0;u<i.rest.length;u++)Pr(i.rest[u])}}}function Pr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.parentNode.offsetHeight}function Fr(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Rt(e));var i=r&&null!=r.bottom?r.bottom:n+e.wrapper.clientHeight,o=D(t,n),l=D(t,i);if(r&&r.ensure){var s=r.ensure.from.line,a=r.ensure.to.line;s<o?(o=s,l=D(t,ye(M(t,s))+e.wrapper.clientHeight)):Math.min(a,t.lastLine())>=l&&(o=D(t,ye(M(t,a))-e.wrapper.clientHeight),l=a)}return{from:o,to:Math.max(l,o+1)}}function Ir(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=wr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;l<r.length;l++)if(!r[l].hidden){e.options.fixedGutter&&(r[l].gutter&&(r[l].gutter.style.left=o),r[l].gutterBackground&&(r[l].gutterBackground.style.left=o));var s=r[l].alignable;if(s)for(var a=0;a<s.length;a++)s[a].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function zr(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=E(e.options,t.first+t.size-1),i=e.display;if(r.length!=i.lineNumChars){var o=i.measure.appendChild(n("div",[n("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),l=o.firstChild.offsetWidth,s=o.offsetWidth-l;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(l,i.lineGutter.offsetWidth-s)+1,i.lineNumWidth=i.lineNumInnerWidth+s,i.lineNumChars=i.lineNumInnerWidth?r.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",An(e),!0}return!1}function Rr(e,t){if(!We(e,"scrollCursorIntoView")){var r=e.display,i=r.sizer.getBoundingClientRect(),o=null;if(t.top+i.top<0?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!fl){var l=n("div","",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Rt(e.display))+"px;\n height: "+(t.bottom-t.top+Ut(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(o),e.display.lineSpace.removeChild(l)}}}function Br(e,t,r,n){null==n&&(n=0);for(var i,o=0;o<5;o++){var l=!1,s=cr(e,t),a=r&&r!=t?cr(e,r):s;i={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-n,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+n};var u=Ur(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&($r(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(Zr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}function Gr(e,t){var r=Ur(e,t);null!=r.scrollTop&&$r(e,r.scrollTop),null!=r.scrollLeft&&Zr(e,r.scrollLeft)}function Ur(e,t){var r=e.display,n=mr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Kt(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Bt(r),a=t.top<n,u=t.bottom>s-n;if(t.top<i)l.scrollTop=a?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(l.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,h=Vt(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?l.scrollLeft=0:t.left<f?l.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>h+f-3&&(l.scrollLeft=t.right+(d?0:10)-h),l}function Vr(e,t){null!=t&&(Yr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Kr(e){Yr(e);var t=e.getCursor(),r=t,n=t;e.options.lineWrapping||(r=t.ch?P(t.line,t.ch-1):t,n=P(t.line,t.ch+1)),e.curOp.scrollToPos={from:r,to:n,margin:e.options.cursorScrollMargin}}function jr(e,t,r){null==t&&null==r||Yr(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function Xr(e,t){Yr(e),e.curOp.scrollToPos=t}function Yr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;_r(e,fr(e,t.from),fr(e,t.to),t.margin)}}function _r(e,t,r,n){var i=Ur(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});jr(e,i.scrollLeft,i.scrollTop)}function $r(e,t){Math.abs(e.doc.scrollTop-t)<2||(Jo||Nn(e,{top:t}),qr(e,t,!0),Jo&&Nn(e),xn(e,100))}function qr(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Zr(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Ir(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Qr(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Bt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Ut(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}function Jr(e,t){t||(t=Qr(e));var r=e.display.barWidth,n=e.display.barHeight;en(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Er(e),en(e,Qr(e)),r=e.display.barWidth,n=e.display.barHeight}function en(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}function tn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Cl(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new os[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Bl(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?Zr(e,t):$r(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function rn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ls},wt(e.curOp)}function nn(e){Ct(e.curOp,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;on(e)})}function on(e){for(var t=e.ops,r=0;r<t.length;r++)ln(t[r]);for(var n=0;n<t.length;n++)sn(t[n]);for(var i=0;i<t.length;i++)an(t[i]);for(var o=0;o<t.length;o++)un(t[o]);for(var l=0;l<t.length;l++)cn(t[l])}function ln(e){var t=e.cm,r=t.display;Sn(t),e.updateMaxLine&&we(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ss(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function sn(e){e.updatedDisplay=e.mustUpdate&&Tn(e.cm,e.update)}function an(e){var t=e.cm,r=t.display;e.updatedDisplay&&Er(t),e.barMeasure=Qr(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=_t(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Ut(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Vt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection(e.focus))}function un(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Zr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==l()&&(!document.hasFocus||document.hasFocus());e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Jr(t,e.barMeasure),e.updatedDisplay&&Wn(t,e.barMeasure),e.selectionChanged&&Or(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Ar(e.cm)}function cn(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&Mn(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&qr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Zr(t,e.scrollLeft,!0,!0),e.scrollToPos){Rr(t,Br(t,U(n,e.scrollToPos.from),U(n,e.scrollToPos.to),e.scrollToPos.margin))}var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l<i.length;++l)i[l].lines.length||Ae(i[l],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&Ae(o[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ae(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function fn(e,t){if(e.curOp)return t();rn(e);try{return t()}finally{nn(e)}}function hn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);rn(e);try{return t.apply(e,arguments)}finally{nn(e)}}}function dn(e){return function(){if(this.curOp)return e.apply(this,arguments);rn(this);try{return e.apply(this,arguments)}finally{nn(this)}}}function pn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);rn(t);try{return e.apply(this,arguments)}finally{nn(t)}}}function gn(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Fl&&pe(e.doc,t)<i.viewTo&&mn(e);else if(r<=i.viewFrom)Fl&&ge(e.doc,r+n)>i.viewFrom?mn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)mn(e);else if(t<=i.viewFrom){var o=yn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):mn(e)}else if(r>=i.viewTo){var l=yn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):mn(e)}else{var s=yn(e,t,t,-1),a=yn(e,r,r+n,1);s&&a?(i.view=i.view.slice(0,s.index).concat(bt(e,s.lineN,a.lineN)).concat(i.view.slice(a.index)),i.viewTo+=n):mn(e)}var u=i.externalMeasured;u&&(r<u.lineN?u.lineN+=n:t<u.lineN+u.size&&(i.externalMeasured=null))}function vn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[Lr(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);-1==h(l,r)&&l.push(r)}}}function mn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function yn(e,t,r,n){var i,o=Lr(e,t),l=e.display.view;if(!Fl||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,a=0;a<o;a++)s+=l[a].size;if(s!=t){if(n>0){if(o==l.length-1)return null;i=s+l[o].size-t,o++}else i=s-t;t+=i,r+=i}for(;pe(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function bn(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=bt(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=bt(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Lr(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(bt(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,Lr(e,r)))),n.viewTo=r}function wn(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];i.hidden||i.node&&!i.changes||++r}return r}function xn(e,t){e.doc.mode.startState&&e.doc.frontier<e.display.viewTo&&e.state.highlight.set(t,u(Cn,e))}function Cn(e){var t=e.doc;if(t.frontier<t.first&&(t.frontier=t.first),!(t.frontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=$e(t.mode,et(e,t.frontier)),i=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(t.frontier>=e.display.viewFrom){var l=o.styles,s=o.text.length>e.options.maxHighlightLength,a=Qe(e,o,s?$e(t.mode,n):n,!0);o.styles=a.styles;var u=o.styleClasses,c=a.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&h<l.length;++h)f=l[h]!=o.styles[h];f&&i.push(t.frontier),o.stateAfter=s?n:$e(t.mode,n)}else o.text.length<=e.options.maxHighlightLength&&tt(e,o.text,n),o.stateAfter=t.frontier%5==0?$e(t.mode,n):null;if(++t.frontier,+new Date>r)return xn(e,e.options.workDelay),!0}),i.length&&fn(e,function(){for(var t=0;t<i.length;t++)vn(e,i[t],"text")})}}function Sn(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ut(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ut(e)+"px",t.scrollbarsClipped=!0)}function Ln(e){if(e.hasFocus())return null;var t=l();if(!t||!o(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&o(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function kn(e){if(e&&e.activeElt&&e.activeElt!=l()&&(e.activeElt.focus(),e.anchorNode&&o(document.body,e.anchorNode)&&o(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}function Tn(e,r){var n=e.display,i=e.doc;if(r.editorIsHidden)return mn(e),!1;if(!r.force&&r.visible.from>=n.viewFrom&&r.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==wn(e))return!1;zr(e)&&(mn(e),r.dims=br(e));var o=i.first+i.size,l=Math.max(r.visible.from-e.options.viewportMargin,i.first),s=Math.min(o,r.visible.to+e.options.viewportMargin);n.viewFrom<l&&l-n.viewFrom<20&&(l=Math.max(i.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(o,n.viewTo)),Fl&&(l=pe(e.doc,l),s=ge(e.doc,s));var a=l!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=r.wrapperHeight||n.lastWrapWidth!=r.wrapperWidth;bn(e,l,s),n.viewOffset=ye(M(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=wn(e);if(!a&&0==u&&!r.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Ln(e);return u>4&&(n.lineDiv.style.display="none"),On(e,n.updateLineNumbers,r.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,kn(c),t(n.cursorDiv),t(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=r.wrapperHeight,n.lastWrapWidth=r.wrapperWidth,xn(e,400)),n.updateLineNumbers=null,!0}function Mn(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Vt(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+Bt(e.display)-Kt(e),r.top)}),t.visible=Fr(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Tn(e,t);n=!1){Er(e);var i=Qr(e);kr(e),Jr(e,i),Wn(e,i)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Nn(e,t){var r=new ss(e,t);if(Tn(e,r)){Er(e),Mn(e,r);var n=Qr(e);kr(e),Jr(e,n),Wn(e,n),r.finish()}}function On(e,r,n){function i(t){var r=t.nextSibling;return ol&&gl&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var o=e.display,l=e.options.lineNumbers,s=o.lineDiv,a=s.firstChild,u=o.view,c=o.viewFrom,f=0;f<u.length;f++){var d=u[f];if(d.hidden);else if(d.node&&d.node.parentNode==s){for(;a!=d.node;)a=i(a);var p=l&&null!=r&&r<=c&&d.lineNumber;d.changes&&(h(d.changes,"gutter")>-1&&(p=!1),kt(e,d,c,n)),p&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(E(e.options,c)))),a=d.node.nextSibling}else{var g=Ht(e,d,c,n);s.insertBefore(g,a)}c+=d.size}for(;a;)a=i(a)}function An(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Wn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ut(e)+"px"}function Dn(e){var r=e.display.gutters,i=e.options.gutters;t(r);for(var o=0;o<i.length;++o){var l=i[o],s=r.appendChild(n("div",null,"CodeMirror-gutter "+l));"CodeMirror-linenumbers"==l&&(e.display.lineGutter=s,s.style.width=(e.display.lineNumWidth||1)+"px")}r.style.display=o?"":"none",An(e)}function Hn(e){var t=h(e.gutters,"CodeMirror-linenumbers");-1==t&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function En(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function Pn(e){var t=En(e);return t.x*=us,t.y*=us,t}function Fn(e,t){var r=En(t),n=r.x,i=r.y,o=e.display,l=o.scroller,s=l.scrollWidth>l.clientWidth,a=l.scrollHeight>l.clientHeight;if(n&&s||i&&a){if(i&&gl&&ol)e:for(var u=t.target,c=o.view;u!=l;u=u.parentNode)for(var f=0;f<c.length;f++)if(c[f].node==u){e.display.currentWheelTarget=u;break e}if(n&&!Jo&&!al&&null!=us)return i&&a&&$r(e,Math.max(0,l.scrollTop+i*us)),Zr(e,Math.max(0,l.scrollLeft+n*us)),(!i||i&&a)&&Pe(t),void(o.wheelStartX=null);if(i&&null!=us){var h=i*us,d=e.doc.scrollTop,p=d+o.wrapper.clientHeight;h<0?d=Math.max(0,d+h-50):p=Math.min(e.doc.height,p+h+50),Nn(e,{top:d,bottom:p})}as<20&&(null==o.wheelStartX?(o.wheelStartX=l.scrollLeft,o.wheelStartY=l.scrollTop,o.wheelDX=n,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=l.scrollLeft-o.wheelStartX,t=l.scrollTop-o.wheelStartY,r=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,r&&(us=(us*as+r)/(as+1),++as)}},200)):(o.wheelDX+=n,o.wheelDY+=i))}}function In(e,t){var r=e[t];e.sort(function(e,t){return F(e.from(),t.from())}),t=h(e,r);for(var n=1;n<e.length;n++){var i=e[n],o=e[n-1];if(F(o.to(),i.from())>=0){var l=B(o.from(),i.from()),s=R(o.to(),i.to()),a=o.empty()?i.from()==i.head:o.from()==o.head;n<=t&&--t,e.splice(--n,2,new fs(a?s:l,a?l:s))}}return new cs(e,t)}function zn(e,t){return new cs([new fs(e,t||e)],0)}function Rn(e){return e.text?P(e.from.line+e.text.length-1,g(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Bn(e,t){if(F(e,t.from)<0)return e;if(F(e,t.to)<=0)return Rn(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Rn(t).ch-t.to.ch),P(r,n)}function Gn(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new fs(Bn(i.anchor,t),Bn(i.head,t)))}return In(r,e.sel.primIndex)}function Un(e,t,r){return e.line==t.line?P(r.line,e.ch-t.ch+r.ch):P(r.line+(e.line-t.line),e.ch)}function Vn(e,t,r){for(var n=[],i=P(e.first,0),o=i,l=0;l<t.length;l++){var s=t[l],a=Un(s.from,i,o),u=Un(Rn(s),i,o);if(i=s.to,o=u,"around"==r){var c=e.sel.ranges[l],f=F(c.head,c.anchor)<0;n[l]=new fs(f?u:a,f?a:u)}else n[l]=new fs(a,a)}return new cs(n,e.sel.primIndex)}function Kn(e){e.doc.mode=Ye(e.options,e.doc.modeOption),jn(e)}function jn(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,xn(e,100),e.state.modeGen++,e.curOp&&gn(e)}function Xn(e,t){
|
50
|
-
return 0==t.from.ch&&0==t.to.ch&&""==g(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Yn(e,t,r,n){function i(e){return r?r[e]:null}function o(e,r,i){at(e,r,i,n),St(e,"change",e,t)}function l(e,t){for(var r=[],o=e;o<t;++o)r.push(new ql(u[o],i(o),n));return r}var s=t.from,a=t.to,u=t.text,c=M(e,s.line),f=M(e,a.line),h=g(u),d=i(u.length-1),p=a.line-s.line;if(t.full)e.insert(0,l(0,u.length)),e.remove(u.length,e.size-u.length);else if(Xn(e,t)){var v=l(0,u.length-1);o(f,f.text,d),p&&e.remove(s.line,p),v.length&&e.insert(s.line,v)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,s.ch)+h+c.text.slice(a.ch),d);else{var m=l(1,u.length-1);m.push(new ql(h+c.text.slice(a.ch),d,n)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(a.ch),i(0)),e.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(f,h+f.text.slice(a.ch),d);var y=l(1,u.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,y)}St(e,"change",e,t)}function _n(e,t,r){function n(e,i,o){if(e.linked)for(var l=0;l<e.linked.length;++l){var s=e.linked[l];if(s.doc!=i){var a=o&&s.sharedHist;r&&!a||(t(s.doc,a),n(s.doc,e,a))}}}n(e,null,!0)}function $n(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Cr(e),Kn(e),qn(e),e.options.lineWrapping||we(e),e.options.mode=t.modeOption,gn(e)}function qn(e){("rtl"==e.doc.direction?s:Cl)(e.display.lineDiv,"CodeMirror-rtl")}function Zn(e){fn(e,function(){qn(e),gn(e)})}function Qn(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Jn(e,t){var r={from:z(t.from),to:Rn(t),text:N(e,t.from,t.to)};return li(e,r,t.from.line,t.to.line+1),_n(e,function(e){return li(e,r,t.from.line,t.to.line+1)},!0),r}function ei(e){for(;e.length;){if(!g(e).ranges)break;e.pop()}}function ti(e,t){return t?(ei(e.done),g(e.done)):e.done.length&&!g(e.done).ranges?g(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),g(e.done)):void 0}function ri(e,t,r,n){var i=e.history;i.undone.length=0;var o,l,s=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=ti(i,i.lastOp==n)))l=g(o.changes),0==F(t.from,t.to)&&0==F(t.from,l.to)?l.to=Rn(t):o.changes.push(Jn(e,t));else{var a=g(i.done);for(a&&a.ranges||oi(e.sel,i.done),o={changes:[Jn(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||Ae(e,"historyAdded")}function ni(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ii(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ni(e,o,g(i.done),t))?i.done[i.done.length-1]=t:oi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&!1!==n.clearRedo&&ei(i.undone)}function oi(e,t){var r=g(t);r&&r.ranges&&r.equals(e)||t.push(e)}function li(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function si(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function ai(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(si(r[i]));return n}function ui(e,t){var r=ai(e,t),n=J(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],l=n[i];if(o&&l)e:for(var s=0;s<l.length;++s){for(var a=l[s],u=0;u<o.length;++u)if(o[u].marker==a.marker)continue e;o.push(a)}else l&&(r[i]=l)}return r}function ci(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)n.push(r?cs.prototype.deepCopy.call(o):o);else{var l=o.changes,s=[];n.push({changes:s});for(var a=0;a<l.length;++a){var u=l[a],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&h(t,Number(c[1]))>-1&&(g(s)[f]=u[f],delete u[f])}}}return n}function fi(e,t,r,n){if(e.cm&&e.cm.display.shift||e.extend){var i=t.anchor;if(n){var o=F(r,i)<0;o!=F(n,i)<0?(i=r,r=n):o!=F(r,n)<0&&(r=n)}return new fs(i,r)}return new fs(n||r,r)}function hi(e,t,r,n){yi(e,new cs([fi(e,e.sel.primary(),t,r)],0),n)}function di(e,t,r){for(var n=[],i=0;i<e.sel.ranges.length;i++)n[i]=fi(e,e.sel.ranges[i],t[i],null);yi(e,In(n,e.sel.primIndex),r)}function pi(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,yi(e,In(i,e.sel.primIndex),n)}function gi(e,t,r,n){yi(e,zn(t,r),n)}function vi(e,t,r){var n={ranges:t.ranges,update:function(t){var r=this;this.ranges=[];for(var n=0;n<t.length;n++)r.ranges[n]=new fs(U(e,t[n].anchor),U(e,t[n].head))},origin:r&&r.origin};return Ae(e,"beforeSelectionChange",e,n),e.cm&&Ae(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?In(n.ranges,n.ranges.length-1):t}function mi(e,t,r){var n=e.history.done,i=g(n);i&&i.ranges?(n[n.length-1]=t,bi(e,t,r)):yi(e,t,r)}function yi(e,t,r){bi(e,t,r),ii(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function bi(e,t,r){(He(e,"beforeSelectionChange")||e.cm&&He(e.cm,"beforeSelectionChange"))&&(t=vi(e,t,r)),wi(e,Ci(e,t,r&&r.bias||(F(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),r&&!1===r.scroll||!e.cm||Kr(e.cm)}function wi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,De(e.cm)),St(e,"cursorActivity",e))}function xi(e){wi(e,Ci(e,e.sel,null,!1))}function Ci(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],a=Li(e,l.anchor,s&&s.anchor,r,n),u=Li(e,l.head,s&&s.head,r,n);(i||a!=l.anchor||u!=l.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new fs(a,u))}return i?In(i,t.primIndex):t}function Si(e,t,r,n,i){var o=M(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var s=o.markedSpans[l],a=s.marker;if((null==s.from||(a.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(a.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(Ae(a,"beforeCursorEnter"),a.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!a.atomic)continue;if(r){var u=a.find(n<0?1:-1),c=void 0;if((n<0?a.inclusiveRight:a.inclusiveLeft)&&(u=ki(e,u,-n,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=F(u,r))&&(n<0?c<0:c>0))return Si(e,u,t,n,i)}var f=a.find(n<0?-1:1);return(n<0?a.inclusiveLeft:a.inclusiveRight)&&(f=ki(e,f,n,f.line==t.line?o:null)),f?Si(e,f,t,n,i):null}}return t}function Li(e,t,r,n,i){var o=n||1,l=Si(e,t,r,o,i)||!i&&Si(e,t,r,o,!0)||Si(e,t,r,-o,i)||!i&&Si(e,t,r,-o,!0);return l||(e.cantEdit=!0,P(e.first,0))}function ki(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?U(e,P(t.line-1)):null:r>0&&t.ch==(n||M(e,t.line)).text.length?t.line<e.first+e.size-1?P(t.line+1,0):null:new P(t.line,t.ch+r)}function Ti(e){e.setSelection(P(e.firstLine(),0),P(e.lastLine()),Ol)}function Mi(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(t,r,i,o){t&&(n.from=U(e,t)),r&&(n.to=U(e,r)),i&&(n.text=i),void 0!==o&&(n.origin=o)}),Ae(e,"beforeChange",e,n),e.cm&&Ae(e.cm,"beforeChange",e.cm,n),n.canceled?null:{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Ni(e,t,r){if(e.cm){if(!e.cm.curOp)return hn(e.cm,Ni)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(He(e,"beforeChange")||e.cm&&He(e.cm,"beforeChange"))||(t=Mi(e,t,!0))){var n=Pl&&!r&&te(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)Oi(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text});else Oi(e,t)}}function Oi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=F(t.from,t.to)){var r=Gn(e,t);ri(e,t,r,e.cm?e.cm.curOp.id:NaN),Di(e,t,r,J(e,t));var n=[];_n(e,function(e,r){r||-1!=h(n,e.history)||(Ii(e.history,t),n.push(e.history)),Di(e,t,null,J(e,t))})}}function Ai(e,t,r){if(!e.cm||!e.cm.state.suppressEdits||r){for(var n,i=e.history,o=e.sel,l="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,a=0;a<l.length&&(n=l[a],r?!n.ranges||n.equals(e.sel):n.ranges);a++);if(a!=l.length){for(i.lastOrigin=i.lastSelOrigin=null;n=l.pop(),n.ranges;){if(oi(n,s),r&&!n.equals(e.sel))return void yi(e,n,{clearRedo:!1});o=n}var u=[];oi(o,s),s.push({changes:u,generation:i.generation}),i.generation=n.generation||++i.maxGeneration;for(var c=He(e,"beforeChange")||e.cm&&He(e.cm,"beforeChange"),f=n.changes.length-1;f>=0;--f){var d=function(r){var i=n.changes[r];if(i.origin=t,c&&!Mi(e,i,!1))return l.length=0,{};u.push(Jn(e,i));var o=r?Gn(e,i):g(l);Di(e,i,o,ui(e,i)),!r&&e.cm&&e.cm.scrollIntoView({from:i.from,to:Rn(i)});var s=[];_n(e,function(e,t){t||-1!=h(s,e.history)||(Ii(e.history,i),s.push(e.history)),Di(e,i,null,ui(e,i))})}(f);if(d)return d.v}}}}function Wi(e,t){if(0!=t&&(e.first+=t,e.sel=new cs(v(e.sel.ranges,function(e){return new fs(P(e.anchor.line+t,e.anchor.ch),P(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){gn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)vn(e.cm,n,"gutter")}}function Di(e,t,r,n){if(e.cm&&!e.cm.curOp)return hn(e.cm,Di)(e,t,r,n);if(t.to.line<e.first)return void Wi(e,t.text.length-1-(t.to.line-t.from.line));if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Wi(e,i),t={from:P(e.first,0),to:P(t.to.line+i,t.to.ch),text:[g(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:P(o,M(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=N(e,t.from,t.to),r||(r=Gn(e,t)),e.cm?Hi(e.cm,t,n):Yn(e,t,n),bi(e,r,Ol)}}function Hi(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,s=!1,a=o.line;e.options.lineWrapping||(a=W(fe(M(n,o.line))),n.iter(a,l.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),n.sel.contains(t.from,t.to)>-1&&De(e),Yn(n,t,r,xr(e)),e.options.lineWrapping||(n.iter(a,o.line+t.text.length,function(e){var t=be(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),n.frontier=Math.min(n.frontier,o.line),xn(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?gn(e):o.line!=l.line||1!=t.text.length||Xn(e.doc,t)?gn(e,o.line,l.line+1,u):vn(e,o.line,"text");var c=He(e,"changes"),f=He(e,"change");if(f||c){var h={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};f&&St(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function Ei(e,t,r,n,i){if(n||(n=r),F(n,r)<0){var o=n;n=r,r=o}"string"==typeof t&&(t=e.splitLines(t)),Ni(e,{from:r,to:n,text:t,origin:i})}function Pi(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Fi(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)Pi(o.ranges[s].anchor,t,r,n),Pi(o.ranges[s].head,t,r,n)}else{for(var a=0;a<o.changes.length;++a){var u=o.changes[a];if(r<u.from.line)u.from=P(u.from.line+n,u.from.ch),u.to=P(u.to.line+n,u.to.ch);else if(t<=u.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}}function Ii(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;Fi(e.done,r,n,i),Fi(e.undone,r,n,i)}function zi(e,t,r,n){var i=t,o=t;return"number"==typeof t?o=M(e,G(e,t)):i=W(t),null==i?null:(n(o,i)&&e.cm&&vn(e.cm,i,r),o)}function Ri(e,t,r){ye(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Vr(e,r)}function Bi(e,t,r,n){var i=new ps(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),zi(e,t,"widget",function(t){var r=t.widgets||(t.widgets=[]);if(null==i.insertAt?r.push(i):r.splice(Math.min(r.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!ve(e,t)){var n=ye(t)<e.scrollTop;A(t,t.height+It(i)),n&&Vr(o,i.height),o.curOp.forceUpdate=!0}return!0}),St(o,"lineWidgetAdded",o,i,"number"==typeof t?t:W(t)),i}function Gi(e,t,r,n,o){if(n&&n.shared)return Ui(e,t,r,n,o);if(e.cm&&!e.cm.curOp)return hn(e.cm,Gi)(e,t,r,n,o);var l=new vs(e,o),s=F(t,r);if(n&&c(n,l,!1),s>0||0==s&&!1!==l.clearWhenEmpty)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=i("span",[l.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(ce(e,t.line,t,r,l)||t.line!=r.line&&ce(e,r.line,t,r,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");X()}l.addToHistory&&ri(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,u=t.line,f=e.cm;if(e.iter(u,r.line+1,function(e){f&&l.collapsed&&!f.options.lineWrapping&&fe(e)==f.display.maxLine&&(a=!0),l.collapsed&&u!=t.line&&A(e,0),q(e,new Y(l,u==t.line?t.ch:null,u==r.line?r.ch:null)),++u}),l.collapsed&&e.iter(t.line,r.line+1,function(t){ve(e,t)&&A(t,0)}),l.clearOnEnter&&Bl(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(j(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++gs,l.atomic=!0),f){if(a&&(f.curOp.updateMaxLine=!0),l.collapsed)gn(f,t.line,r.line+1);else if(l.className||l.title||l.startStyle||l.endStyle||l.css)for(var h=t.line;h<=r.line;h++)vn(f,h,"text");l.atomic&&xi(f.doc),St(f,"markerAdded",f,l)}return l}function Ui(e,t,r,n,i){n=c(n),n.shared=!1;var o=[Gi(e,t,r,n,i)],l=o[0],s=n.widgetNode;return _n(e,function(e){s&&(n.widgetNode=s.cloneNode(!0)),o.push(Gi(e,U(e,t),U(e,r),n,i));for(var a=0;a<e.linked.length;++a)if(e.linked[a].isParent)return;l=g(o)}),new ms(o,l)}function Vi(e){return e.findMarks(P(e.first,0),e.clipPos(P(e.lastLine())),function(e){return e.parent})}function Ki(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),o=e.clipPos(i.from),l=e.clipPos(i.to);if(F(o,l)){var s=Gi(e,o,l,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}function ji(e){for(var t=0;t<e.length;t++)!function(t){var r=e[t],n=[r.primary.doc];_n(r.primary.doc,function(e){return n.push(e)});for(var i=0;i<r.markers.length;i++){var o=r.markers[i];-1==h(n,o.doc)&&(o.parent=null,r.markers.splice(i--,1))}}(t)}function Xi(e){var t=this;if($i(t),!We(t,e)&&!zt(t.display,e)){Pe(e),nl&&(ws=+new Date);var r=Sr(t,e,!0),n=e.dataTransfer.files;if(r&&!t.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),l=0,s=0;s<i;++s)!function(e,n){if(!t.options.allowDropFileTypes||-1!=h(t.options.allowDropFileTypes,e.type)){var s=new FileReader;s.onload=hn(t,function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[n]=e,++l==i){r=U(t.doc,r);var a={from:r,to:r,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Ni(t.doc,a),mi(t.doc,zn(r,Rn(a)))}}),s.readAsText(e)}}(n[s],s);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var a=e.dataTransfer.getData("Text");if(a){var u;if(t.state.draggingText&&!t.state.draggingText.copy&&(u=t.listSelections()),bi(t.doc,zn(r,r)),u)for(var c=0;c<u.length;++c)Ei(t.doc,"",u[c].anchor,u[c].head,"drag");t.replaceSelection(a,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Yi(e,t){if(nl&&(!e.state.draggingText||+new Date-ws<100))return void ze(t);if(!We(e,t)&&!zt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ul)){var r=n("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",al&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),al&&r.parentNode.removeChild(r)}}function _i(e,t){var i=Sr(e,t);if(i){var o=document.createDocumentFragment();Mr(e,i,o),e.display.dragCursor||(e.display.dragCursor=n("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),r(e.display.dragCursor,o)}}function $i(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function qi(e){if(document.body.getElementsByClassName)for(var t=document.body.getElementsByClassName("CodeMirror"),r=0;r<t.length;r++){var n=t[r].CodeMirror;n&&e(n)}}function Zi(){xs||(Qi(),xs=!0)}function Qi(){var e;Bl(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,qi(Ji)},100))}),Bl(window,"blur",function(){return qi(Hr)})}function Ji(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function eo(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,i,o,l=0;l<t.length-1;l++){var s=t[l];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))r=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);i=!0}}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function to(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==n){delete e[r];continue}for(var i=v(r.split(" "),eo),o=0;o<i.length;o++){var l=void 0,s=void 0;o==i.length-1?(s=i.join(" "),l=n):(s=i.slice(0,o+1).join(" "),l="...");var a=t[s];if(a){if(a!=l)throw new Error("Inconsistent bindings for "+s)}else t[s]=l}delete e[r]}for(var u in t)e[u]=t[u];return e}function ro(e,t,r,n){t=oo(t);var i=t.call?t.call(e,n):t[e];if(!1===i)return"nothing";if("..."===i)return"multi";if(null!=i&&r(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return ro(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var l=ro(e,t.fallthrough[o],r,n);if(l)return l}}}function no(e){var t="string"==typeof e?e:Cs[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function io(e,t){if(al&&34==e.keyCode&&e.char)return!1;var r=Cs[e.keyCode],n=r;return null!=n&&!e.altGraphKey&&(e.altKey&&"Alt"!=r&&(n="Alt-"+n),(wl?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(n="Ctrl-"+n),(wl?e.ctrlKey:e.metaKey)&&"Cmd"!=r&&(n="Cmd-"+n),!t&&e.shiftKey&&"Shift"!=r&&(n="Shift-"+n),n)}function oo(e){return"string"==typeof e?Ts[e]:e}function lo(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=t(r[i]);n.length&&F(o.from,g(n).to)<=0;){var l=n.pop();if(F(l.from,o.from)<0){o.from=l.from;break}}n.push(o)}fn(e,function(){for(var t=n.length-1;t>=0;t--)Ei(e.doc,"",n[t].from,n[t].to,"+delete");Kr(e)})}function so(e,t){var r=M(e.doc,t),n=fe(r);return n!=r&&(t=W(n)),Te(!0,e,n,t,1)}function ao(e,t){var r=M(e.doc,t),n=he(r);return n!=r&&(t=W(n)),Te(!0,e,r,t,-1)}function uo(e,t){var r=so(e,t.line),n=M(e.doc,r.line),i=Se(n,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,n.text.search(/\S/)),l=t.line==r.line&&t.ch<=o&&t.ch;return P(r.line,l?0:o,r.sticky)}return r}function co(e,t,r){if("string"==typeof t&&!(t=Os[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=Nl}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function fo(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=ro(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&ro(t,e.options.extraKeys,r,e)||ro(t,e.options.keyMap,r,e)}function ho(e,t,r,n){var i=e.state.keySeq;if(i){if(no(t))return"handled";As.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),t=i+" "+t}var o=fo(e,t,n);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&St(e,"keyHandled",e,t,r),"handled"!=o&&"multi"!=o||(Pe(r),Or(e)),i&&!o&&/\'$/.test(t)?(Pe(r),!0):!!o}function po(e,t){var r=io(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?ho(e,"Shift-"+r,t,function(t){return co(e,t,!0)})||ho(e,r,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return co(e,t)}):ho(e,r,t,function(t){return co(e,t)}))}function go(e,t,r){return ho(e,"'"+r+"'",t,function(t){return co(e,t,!0)})}function vo(e){var t=this;if(t.curOp.focus=l(),!We(t,e)){nl&&il<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var n=po(t,e);al&&(Ws=n?r:null,!n&&88==r&&!Kl&&(gl?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||mo(t)}}function mo(e){function t(e){18!=e.keyCode&&e.altKey||(Cl(r,"CodeMirror-crosshair"),Oe(document,"keyup",t),Oe(document,"mouseover",t))}var r=e.display.lineDiv;s(r,"CodeMirror-crosshair"),Bl(document,"keyup",t),Bl(document,"mouseover",t)}function yo(e){16==e.keyCode&&(this.doc.sel.shift=!1),We(this,e)}function bo(e){var t=this;if(!(zt(t.display,e)||We(t,e)||e.ctrlKey&&!e.altKey||gl&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(al&&r==Ws)return Ws=null,void Pe(e);if(!al||e.which&&!(e.which<10)||!po(t,e)){var i=String.fromCharCode(null==n?r:n);"\b"!=i&&(go(t,e,i)||t.display.input.onKeyPress(e))}}}function wo(e){var t=this,r=t.display;if(!(We(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,zt(r,e))return void(ol||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100)));if(!ko(t,e)){var n=Sr(t,e);switch(window.focus(),Be(e)){case 1:t.state.selectingText?t.state.selectingText(e):n?xo(t,e,n):Re(e)==r.scroller&&Pe(e);break;case 2:ol&&(t.state.lastMiddleDown=+new Date),n&&hi(t.doc,n),setTimeout(function(){return r.input.focus()},20),Pe(e);break;case 3:xl?To(t,e):Wr(t)}}}}function xo(e,t,r){nl?setTimeout(u(Ar,e),0):e.curOp.focus=l();var n,i=+new Date;Ns&&Ns.time>i-400&&0==F(Ns.pos,r)?n="triple":Ms&&Ms.time>i-400&&0==F(Ms.pos,r)?(n="double",Ns={time:i,pos:r}):(n="single",Ms={time:i,pos:r});var o,s=e.doc.sel,a=gl?t.metaKey:t.ctrlKey;e.options.dragDrop&&Gl&&!e.isReadOnly()&&"single"==n&&(o=s.contains(r))>-1&&(F((o=s.ranges[o]).from(),r)<0||r.xRel>0)&&(F(o.to(),r)>0||r.xRel<0)?Co(e,t,r,a):So(e,t,r,n,a)}function Co(e,t,r,n){var i=e.display,o=!1,l=hn(e,function(t){ol&&(i.scroller.draggable=!1),e.state.draggingText=!1,Oe(document,"mouseup",l),Oe(document,"mousemove",s),Oe(i.scroller,"dragstart",a),Oe(i.scroller,"drop",l),o||(Pe(t),n||hi(e.doc,r),ol||nl&&9==il?setTimeout(function(){document.body.focus(),i.input.focus()},20):i.input.focus())}),s=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},a=function(){return o=!0};ol&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=gl?t.altKey:t.ctrlKey,i.scroller.dragDrop&&i.scroller.dragDrop(),Bl(document,"mouseup",l),Bl(document,"mousemove",s),Bl(i.scroller,"dragstart",a),Bl(i.scroller,"drop",l),Wr(e),setTimeout(function(){return i.input.focus()},20)}function So(e,t,r,n,i){function o(t){if(0!=F(b,t))if(b=t,"rect"==n){for(var i=[],o=e.options.tabSize,l=f(M(c,r.line).text,r.ch,o),s=f(M(c,t.line).text,t.ch,o),a=Math.min(l,s),u=Math.max(l,s),v=Math.min(r.line,t.line),m=Math.min(e.lastLine(),Math.max(r.line,t.line));v<=m;v++){var y=M(c,v).text,w=d(y,a,o);a==u?i.push(new fs(P(v,w),P(v,w))):y.length>w&&i.push(new fs(P(v,w),P(v,d(y,u,o))))}i.length||i.push(new fs(r,r)),yi(c,In(g.ranges.slice(0,p).concat(i),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x=h,C=x.anchor,S=t;if("single"!=n){var L;L="double"==n?e.findWordAt(t):new fs(P(t.line,0),U(c,P(t.line+1,0))),F(L.anchor,C)>0?(S=L.head,C=B(x.from(),L.anchor)):(S=L.anchor,C=R(x.to(),L.head))}var k=g.ranges.slice(0);k[p]=new fs(U(c,C),S),yi(c,In(k,p),Al)}}function s(t){var r=++x,i=Sr(e,t,!0,"rect"==n);if(i)if(0!=F(i,b)){e.curOp.focus=l(),o(i);var a=Fr(u,c);(i.line>=a.to||i.line<a.from)&&setTimeout(hn(e,function(){x==r&&s(t)}),150)}else{var f=t.clientY<w.top?-20:t.clientY>w.bottom?20:0;f&&setTimeout(hn(e,function(){x==r&&(u.scroller.scrollTop+=f,s(t))}),50)}}function a(t){e.state.selectingText=!1,x=1/0,Pe(t),u.input.focus(),Oe(document,"mousemove",C),Oe(document,"mouseup",S),c.history.lastSelOrigin=null}var u=e.display,c=e.doc;Pe(t);var h,p,g=c.sel,v=g.ranges;if(i&&!t.shiftKey?(p=c.sel.contains(r),h=p>-1?v[p]:new fs(r,r)):(h=c.sel.primary(),p=c.sel.primIndex),vl?t.shiftKey&&t.metaKey:t.altKey)n="rect",i||(h=new fs(r,r)),r=Sr(e,t,!0,!0),p=-1;else if("double"==n){var m=e.findWordAt(r);h=e.display.shift||c.extend?fi(c,h,m.anchor,m.head):m}else if("triple"==n){var y=new fs(P(r.line,0),U(c,P(r.line+1,0)));h=e.display.shift||c.extend?fi(c,h,y.anchor,y.head):y}else h=fi(c,h,r);i?-1==p?(p=v.length,yi(c,In(v.concat([h]),p),{scroll:!1,origin:"*mouse"})):v.length>1&&v[p].empty()&&"single"==n&&!t.shiftKey?(yi(c,In(v.slice(0,p).concat(v.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=c.sel):pi(c,p,h,Al):(p=0,yi(c,new cs([h],0),Al),g=c.sel);var b=r,w=u.wrapper.getBoundingClientRect(),x=0,C=hn(e,function(e){Be(e)?s(e):a(e)}),S=hn(e,a);e.state.selectingText=S,Bl(document,"mousemove",C),Bl(document,"mouseup",S)}function Lo(e,t,r,n){var i,o;try{i=t.clientX,o=t.clientY}catch(t){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Pe(t);var l=e.display,s=l.lineDiv.getBoundingClientRect();if(o>s.bottom||!He(e,r))return Ie(t);o-=s.top-l.viewOffset;for(var a=0;a<e.options.gutters.length;++a){var u=l.gutters.childNodes[a];if(u&&u.getBoundingClientRect().right>=i){return Ae(e,r,e,D(e.doc,o),e.options.gutters[a],t),Ie(t)}}}function ko(e,t){return Lo(e,t,"gutterClick",!0)}function To(e,t){zt(e.display,t)||Mo(e,t)||We(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Mo(e,t){return!!He(e,"gutterContextMenu")&&Lo(e,t,"gutterContextMenu",!1)}function No(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ir(e)}function Oo(e){Dn(e),gn(e),Ir(e)}function Ao(e,t,r){if(!t!=!(r&&r!=Ds)){var n=e.display.dragFunctions,i=t?Bl:Oe;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Wo(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Cl(e.display.wrapper,"CodeMirror-wrap"),we(e)),Cr(e),gn(e),ir(e),setTimeout(function(){return Jr(e)},100)}function Do(e,t){var r=this;if(!(this instanceof Do))return new Do(e,t);this.options=t=t?c(t):{},c(Hs,t,!1),Hn(t);var n=t.value;"string"==typeof n&&(n=new bs(n,t.mode,null,t.lineSeparator,t.direction)),this.doc=n;var i=new Do.inputStyles[t.inputStyle](this),o=this.display=new T(e,n,i);o.wrapper.CodeMirror=this,Dn(this),No(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),tn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Ll,keySeq:null,specialChars:null},t.autofocus&&!pl&&o.input.focus(),nl&&il<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Ho(this),Zi(),rn(this),this.curOp.forceUpdate=!0,$n(this,n),t.autofocus&&!pl||this.hasFocus()?setTimeout(u(Dr,this),20):Hr(this);for(var l in Es)Es.hasOwnProperty(l)&&Es[l](r,t[l],Ds);zr(this),t.finishInit&&t.finishInit(this);for(var s=0;s<Ps.length;++s)Ps[s](r);nn(this),ol&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ho(e){function t(){i.activeTouch&&(o=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function r(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function n(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}var i=e.display;Bl(i.scroller,"mousedown",hn(e,wo)),nl&&il<11?Bl(i.scroller,"dblclick",hn(e,function(t){if(!We(e,t)){var r=Sr(e,t);if(r&&!ko(e,t)&&!zt(e.display,t)){Pe(t);var n=e.findWordAt(r);hi(e.doc,n.anchor,n.head)}}})):Bl(i.scroller,"dblclick",function(t){return We(e,t)||Pe(t)}),xl||Bl(i.scroller,"contextmenu",function(t){return To(e,t)});var o,l={end:0};Bl(i.scroller,"touchstart",function(t){if(!We(e,t)&&!r(t)){i.input.ensurePolled(),clearTimeout(o);var n=+new Date;i.activeTouch={start:n,moved:!1,prev:n-l.end<=300?l:null},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),Bl(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Bl(i.scroller,"touchend",function(r){var o=i.activeTouch;if(o&&!zt(i,r)&&null!=o.left&&!o.moved&&new Date-o.start<300){var l,s=e.coordsChar(i.activeTouch,"page");l=!o.prev||n(o,o.prev)?new fs(s,s):!o.prev.prev||n(o,o.prev.prev)?e.findWordAt(s):new fs(P(s.line,0),U(e.doc,P(s.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),Pe(r)}t()}),Bl(i.scroller,"touchcancel",t),Bl(i.scroller,"scroll",function(){i.scroller.clientHeight&&($r(e,i.scroller.scrollTop),Zr(e,i.scroller.scrollLeft,!0),Ae(e,"scroll",e))}),Bl(i.scroller,"mousewheel",function(t){return Fn(e,t)}),Bl(i.scroller,"DOMMouseScroll",function(t){return Fn(e,t)}),Bl(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){We(e,t)||ze(t)},over:function(t){We(e,t)||(_i(e,t),ze(t))},start:function(t){return Yi(e,t)},drop:hn(e,Xi),leave:function(t){We(e,t)||$i(e)}};var s=i.input.getField();Bl(s,"keyup",function(t){return yo.call(e,t)}),Bl(s,"keydown",hn(e,vo)),Bl(s,"keypress",hn(e,bo)),Bl(s,"focus",function(t){return Dr(e,t)}),Bl(s,"blur",function(t){return Hr(e,t)})}function Eo(e,t,r,n){var i,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?i=et(e,t):r="prev");var l=e.options.tabSize,s=M(o,t),a=f(s.text,null,l);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==r&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==Nl||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?f(M(o,t-1).text,null,l):0:"add"==r?u=a+e.options.indentUnit:"subtract"==r?u=a-e.options.indentUnit:"number"==typeof r&&(u=a+r),u=Math.max(0,u);var h="",d=0;if(e.options.indentWithTabs)for(var g=Math.floor(u/l);g;--g)d+=l,h+="\t";if(d<u&&(h+=p(u-d)),h!=c)return Ei(o,h,P(t,0),P(t,c.length),"+input"),s.stateAfter=null,!0;for(var v=0;v<o.sel.ranges.length;v++){var m=o.sel.ranges[v];if(m.head.line==t&&m.head.ch<c.length){var y=P(t,c.length);pi(o,v,new fs(y,y));break}}}function Po(e){Fs=e}function Fo(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var l=e.state.pasteIncoming||"paste"==i,s=Ul(t),a=null;if(l&&n.ranges.length>1)if(Fs&&Fs.text.join("\n")==t){if(n.ranges.length%Fs.text.length==0){a=[];for(var u=0;u<Fs.text.length;u++)a.push(o.splitLines(Fs.text[u]))}}else s.length==n.ranges.length&&(a=v(s,function(e){return[e]}));for(var c,f=n.ranges.length-1;f>=0;f--){var h=n.ranges[f],d=h.from(),p=h.to();h.empty()&&(r&&r>0?d=P(d.line,d.ch-r):e.state.overwrite&&!l?p=P(p.line,Math.min(M(o,p.line).text.length,p.ch+g(s).length)):Fs&&Fs.lineWise&&Fs.text.join("\n")==t&&(d=p=P(d.line,0))),c=e.curOp.updateInput;var m={from:d,to:p,text:a?a[f%a.length]:s,origin:i||(l?"paste":e.state.cutIncoming?"cut":"+input")};Ni(e.doc,m),St(e,"inputRead",e,m)}t&&!l&&zo(e,t),Kr(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Io(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||fn(t,function(){return Fo(t,r,0,null,"paste")}),!0}function zo(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){l=Eo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(M(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Eo(e,i.head.line,"smart"))
|
51
|
-
;l&&St(e,"electricInput",e,i.head.line)}}}function Ro(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,o={anchor:P(i,0),head:P(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function Bo(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Go(){var e=n("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=n("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ol?e.style.width="1000px":e.setAttribute("wrap","off"),hl&&(e.style.border="1px solid black"),Bo(e),t}function Uo(e,t,r,n,i){function o(){var n=t.line+r;return!(n<e.first||n>=e.first+e.size)&&(t=new P(n,t.ch,t.sticky),u=M(e,n))}function l(n){var l;if(null==(l=i?Me(e.cm,u,t,r):ke(u,t,r))){if(n||!o())return!1;t=Te(i,e.cm,u,t.line,r)}else t=l;return!0}var s=t,a=r,u=M(e,t.line);if("char"==n)l();else if("column"==n)l(!0);else if("word"==n||"group"==n)for(var c=null,f="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(r<0)||l(!d);d=!1){var p=u.text.charAt(t.ch)||"\n",g=x(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||g||(g="s"),c&&c!=g){r<0&&(r=1,l(),t.sticky="after");break}if(g&&(c=g),r>0&&!l(!d))break}var v=Li(e,t,s,a,!0);return I(s,v)&&(v.hitSide=!0),v}function Vo(e,t,r,n){var i,o=e.doc,l=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),a=Math.max(s-.5*mr(e.display),3);i=(r>0?t.bottom:t.top)+r*a}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(var u;u=dr(e,l,i),u.outside;){if(r<0?i<=0:i>=o.height){u.hitSide=!0;break}i+=5*r}return u}function Ko(e,t){var r=$t(e,t.line);if(!r||r.hidden)return null;var n=M(e.doc,t.line),i=Xt(r,n,t.line),o=Se(n,e.doc.direction),l="left";if(o){l=Ce(o,t.ch)%2?"right":"left"}var s=Qt(i.map,t.ch,l);return s.offset="right"==s.collapse?s.end:s.start,s}function jo(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Xo(e,t){return t&&(e.bad=!0),e}function Yo(e,t,r,n,i){function o(e){return function(t){return t.id==e}}function l(){c&&(u+=f,c=!1)}function s(e){e&&(l(),u+=e)}function a(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(null!=r)return void s(r||t.textContent.replace(/\u200b/g,""));var u,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(P(n,0),P(i+1,0),o(+h));return void(d.length&&(u=d[0].find())&&s(N(e.doc,u.from,u.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p)$/i.test(t.nodeName);p&&l();for(var g=0;g<t.childNodes.length;g++)a(t.childNodes[g]);p&&(c=!0)}else 3==t.nodeType&&s(t.nodeValue)}for(var u="",c=!1,f=e.doc.lineSeparator();a(t),t!=r;)t=t.nextSibling;return u}function _o(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Xo(e.clipPos(P(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==n)return $o(o,t,r)}}function $o(e,t,r){function n(t,r,n){for(var i=-1;i<(f?f.length:0);i++)for(var o=i<0?c.map:f[i],l=0;l<o.length;l+=3){var s=o[l+2];if(s==t||s==r){var a=W(i<0?e.line:e.rest[i]),u=o[l]+n;return(n<0||s!=t)&&(u=o[l+(n?1:0)]),P(a,u)}}}var i=e.text.firstChild,l=!1;if(!t||!o(i,t))return Xo(P(W(e.line),0),!0);if(t==i&&(l=!0,t=i.childNodes[r],r=0,!t)){var s=e.rest?g(e.rest):e.line;return Xo(P(W(s),s.text.length),l)}var a=3==t.nodeType?t:null,u=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,r&&(r=a.nodeValue.length));u.parentNode!=i;)u=u.parentNode;var c=e.measure,f=c.maps,h=n(a,u,r);if(h)return Xo(h,l);for(var d=u.nextSibling,p=a?a.nodeValue.length-r:0;d;d=d.nextSibling){if(h=n(d,d.firstChild,0))return Xo(P(h.line,h.ch-p),l);p+=d.textContent.length}for(var v=u.previousSibling,m=r;v;v=v.previousSibling){if(h=n(v,v.firstChild,-1))return Xo(P(h.line,h.ch+m),l);m+=v.textContent.length}}function qo(e,t){function r(){e.value=a.getValue()}if(t=t?c(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=l();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}var i;if(e.form&&(Bl(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var s=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=s}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(Oe(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var a=Do(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a}var Zo=navigator.userAgent,Qo=navigator.platform,Jo=/gecko\/\d/i.test(Zo),el=/MSIE \d/.test(Zo),tl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zo),rl=/Edge\/(\d+)/.exec(Zo),nl=el||tl||rl,il=nl&&(el?document.documentMode||6:+(rl||tl)[1]),ol=!rl&&/WebKit\//.test(Zo),ll=ol&&/Qt\/\d+\.\d+/.test(Zo),sl=!rl&&/Chrome\//.test(Zo),al=/Opera\//.test(Zo),ul=/Apple Computer/.test(navigator.vendor),cl=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Zo),fl=/PhantomJS/.test(Zo),hl=!rl&&/AppleWebKit/.test(Zo)&&/Mobile\/\w+/.test(Zo),dl=/Android/.test(Zo),pl=hl||dl||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Zo),gl=hl||/Mac/.test(Qo),vl=/\bCrOS\b/.test(Zo),ml=/win/i.test(Qo),yl=al&&Zo.match(/Version\/(\d*\.\d*)/);yl&&(yl=Number(yl[1])),yl&&yl>=15&&(al=!1,ol=!0);var bl,wl=gl&&(ll||al&&(null==yl||yl<12.11)),xl=Jo||nl&&il>=9,Cl=function(t,r){var n=t.className,i=e(r).exec(n);if(i){var o=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(o?i[1]+o:"")}};bl=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(e){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var Sl=function(e){e.select()};hl?Sl=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:nl&&(Sl=function(e){try{e.select()}catch(e){}});var Ll=function(){this.id=null};Ll.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var kl,Tl,Ml=30,Nl={toString:function(){return"CodeMirror.Pass"}},Ol={scroll:!1},Al={origin:"*mouse"},Wl={origin:"+move"},Dl=[""],Hl=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,El=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Pl=!1,Fl=!1,Il=null,zl=function(){function e(e){return e<=247?r.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?n.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,r){this.level=e,this.from=t,this.to=r}var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,l=/[LRr]/,s=/[Lb1n]/,a=/[1n]/;return function(r,n){var u="ltr"==n?"L":"R";if(0==r.length||"ltr"==n&&!i.test(r))return!1;for(var c=r.length,f=[],h=0;h<c;++h)f.push(e(r.charCodeAt(h)));for(var d=0,p=u;d<c;++d){var v=f[d];"m"==v?f[d]=p:p=v}for(var m=0,y=u;m<c;++m){var b=f[m];"1"==b&&"r"==y?f[m]="n":l.test(b)&&(y=b,"r"==b&&(f[m]="R"))}for(var w=1,x=f[0];w<c-1;++w){var C=f[w];"+"==C&&"1"==x&&"1"==f[w+1]?f[w]="1":","!=C||x!=f[w+1]||"1"!=x&&"n"!=x||(f[w]=x),x=C}for(var S=0;S<c;++S){var L=f[S];if(","==L)f[S]="N";else if("%"==L){var k=void 0;for(k=S+1;k<c&&"%"==f[k];++k);for(var T=S&&"!"==f[S-1]||k<c&&"1"==f[k]?"1":"N",M=S;M<k;++M)f[M]=T;S=k-1}}for(var N=0,O=u;N<c;++N){var A=f[N];"L"==O&&"1"==A?f[N]="L":l.test(A)&&(O=A)}for(var W=0;W<c;++W)if(o.test(f[W])){var D=void 0;for(D=W+1;D<c&&o.test(f[D]);++D);for(var H="L"==(W?f[W-1]:u),E="L"==(D<c?f[D]:u),P=H==E?H?"L":"R":u,F=W;F<D;++F)f[F]=P;W=D-1}for(var I,z=[],R=0;R<c;)if(s.test(f[R])){var B=R;for(++R;R<c&&s.test(f[R]);++R);z.push(new t(0,B,R))}else{var G=R,U=z.length;for(++R;R<c&&"L"!=f[R];++R);for(var V=G;V<R;)if(a.test(f[V])){G<V&&z.splice(U,0,new t(1,G,V));var K=V;for(++V;V<R&&a.test(f[V]);++V);z.splice(U,0,new t(2,K,V)),G=V}else++V;G<R&&z.splice(U,0,new t(1,G,R))}return 1==z[0].level&&(I=r.match(/^\s+/))&&(z[0].from=I[0].length,z.unshift(new t(0,0,I[0].length))),1==g(z).level&&(I=r.match(/\s+$/))&&(g(z).to-=I[0].length,z.push(new t(0,c-I[0].length,c))),"rtl"==n?z.reverse():z}}(),Rl=[],Bl=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||Rl).concat(r)}},Gl=function(){if(nl&&il<9)return!1;var e=n("div");return"draggable"in e||"dragDrop"in e}(),Ul=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);-1==i&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");-1!=l?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Vl=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Kl=function(){var e=n("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),jl=null,Xl={},Yl={},_l={},$l=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};$l.prototype.eol=function(){return this.pos>=this.string.length},$l.prototype.sol=function(){return this.pos==this.lineStart},$l.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$l.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$l.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},$l.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},$l.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},$l.prototype.skipToEnd=function(){this.pos=this.string.length},$l.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$l.prototype.backUp=function(e){this.pos-=e},$l.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=f(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},$l.prototype.indentation=function(){return f(this.string,null,this.tabSize)-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},$l.prototype.match=function(e,t,r){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&!1!==t&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return!1!==t&&(this.pos+=e.length),!0},$l.prototype.current=function(){return this.string.slice(this.start,this.pos)},$l.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};var ql=function(e,t,r){this.text=e,ne(this,t),this.height=r?r(this):1};ql.prototype.lineNo=function(){return W(this)},Ee(ql);var Zl,Ql={},Jl={},es=null,ts=null,rs={left:0,right:0,top:0,bottom:0},ns=function(e,t,r){this.cm=r;var i=this.vert=n("div",[n("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=n("div",[n("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(i),e(o),Bl(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Bl(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,nl&&il<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ns.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},ns.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ns.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ns.prototype.zeroWidthHack=function(){var e=gl&&!cl?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ll,this.disableVert=new Ll},ns.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},ns.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var is=function(){};is.prototype.update=function(){return{bottom:0,right:0}},is.prototype.setScrollLeft=function(){},is.prototype.setScrollTop=function(){},is.prototype.clear=function(){};var os={native:ns,null:is},ls=0,ss=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Fr(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Vt(e),this.force=r,this.dims=br(e),this.events=[]};ss.prototype.signal=function(e,t){He(e,t)&&this.events.push(arguments)},ss.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)Ae.apply(null,e.events[t])};var as=0,us=null;nl?us=-.53:Jo?us=15:sl?us=-.7:ul&&(us=-1/3);var cs=function(e,t){this.ranges=e,this.primIndex=t};cs.prototype.primary=function(){return this.ranges[this.primIndex]},cs.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var n=t.ranges[r],i=e.ranges[r];if(!I(n.anchor,i.anchor)||!I(n.head,i.head))return!1}return!0},cs.prototype.deepCopy=function(){for(var e=this,t=[],r=0;r<this.ranges.length;r++)t[r]=new fs(z(e.ranges[r].anchor),z(e.ranges[r].head));return new cs(t,this.primIndex)},cs.prototype.somethingSelected=function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},cs.prototype.contains=function(e,t){var r=this;t||(t=e);for(var n=0;n<this.ranges.length;n++){var i=r.ranges[n];if(F(t,i.from())>=0&&F(e,i.to())<=0)return n}return-1};var fs=function(e,t){this.anchor=e,this.head=t};fs.prototype.from=function(){return B(this.anchor,this.head)},fs.prototype.to=function(){return R(this.anchor,this.head)},fs.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};var hs=function(e){var t=this;this.lines=e,this.parent=null;for(var r=0,n=0;n<e.length;++n)e[n].parent=t,r+=e[n].height;this.height=r};hs.prototype.chunkSize=function(){return this.lines.length},hs.prototype.removeInner=function(e,t){for(var r=this,n=e,i=e+t;n<i;++n){var o=r.lines[n];r.height-=o.height,ut(o),St(o,"delete")}this.lines.splice(e,t)},hs.prototype.collapse=function(e){e.push.apply(e,this.lines)},hs.prototype.insertInner=function(e,t,r){var n=this;this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=n},hs.prototype.iterN=function(e,t,r){for(var n=this,i=e+t;e<i;++e)if(r(n.lines[e]))return!0};var ds=function(e){var t=this;this.children=e;for(var r=0,n=0,i=0;i<e.length;++i){var o=e[i];r+=o.chunkSize(),n+=o.height,o.parent=t}this.size=r,this.height=n,this.parent=null};ds.prototype.chunkSize=function(){return this.size},ds.prototype.removeInner=function(e,t){var r=this;this.size-=t;for(var n=0;n<this.children.length;++n){var i=r.children[n],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e),s=i.height;if(i.removeInner(e,l),r.height-=s-i.height,o==l&&(r.children.splice(n--,1),i.parent=null),0==(t-=l))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof hs))){var a=[];this.collapse(a),this.children=[new hs(a)],this.children[0].parent=this}},ds.prototype.collapse=function(e){for(var t=this,r=0;r<this.children.length;++r)t.children[r].collapse(e)},ds.prototype.insertInner=function(e,t,r){var n=this;this.size+=t.length,this.height+=r;for(var i=0;i<this.children.length;++i){var o=n.children[i],l=o.chunkSize();if(e<=l){if(o.insertInner(e,t,r),o.lines&&o.lines.length>50){for(var s=o.lines.length%25+25,a=s;a<o.lines.length;){var u=new hs(o.lines.slice(a,a+=25));o.height-=u.height,n.children.splice(++i,0,u),u.parent=n}o.lines=o.lines.slice(0,s),n.maybeSpill()}break}e-=l}},ds.prototype.maybeSpill=function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),r=new ds(t);if(e.parent){e.size-=r.size,e.height-=r.height;var n=h(e.parent.children,e);e.parent.children.splice(n+1,0,r)}else{var i=new ds(e.children);i.parent=e,e.children=[i,r],e=i}r.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},ds.prototype.iterN=function(e,t,r){for(var n=this,i=0;i<this.children.length;++i){var o=n.children[i],l=o.chunkSize();if(e<l){var s=Math.min(t,l-e);if(o.iterN(e,s,r))return!0;if(0==(t-=s))break;e=0}else e-=l}};var ps=function(e,t,r){var n=this;if(r)for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i]);this.doc=e,this.node=t};ps.prototype.clear=function(){var e=this,t=this.doc.cm,r=this.line.widgets,n=this.line,i=W(n);if(null!=i&&r){for(var o=0;o<r.length;++o)r[o]==e&&r.splice(o--,1);r.length||(n.widgets=null);var l=It(this);A(n,Math.max(0,n.height-l)),t&&(fn(t,function(){Ri(t,n,-l),vn(t,i,"widget")}),St(t,"lineWidgetCleared",t,this,i))}},ps.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=It(this)-t;i&&(A(n,n.height+i),r&&fn(r,function(){r.curOp.forceUpdate=!0,Ri(r,n,i),St(r,"lineWidgetChanged",r,e,W(n))}))},Ee(ps);var gs=0,vs=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++gs};vs.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&rn(t),He(this,"clear")){var n=this.find();n&&St(this,"clear",n.from,n.to)}for(var i=null,o=null,l=0;l<this.lines.length;++l){var s=e.lines[l],a=_(s.markedSpans,e);t&&!e.collapsed?vn(t,W(s),"text"):t&&(null!=a.to&&(o=W(s)),null!=a.from&&(i=W(s))),s.markedSpans=$(s.markedSpans,a),null==a.from&&e.collapsed&&!ve(e.doc,s)&&t&&A(s,mr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var c=fe(e.lines[u]),f=be(c);f>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&gn(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&xi(t.doc)),t&&St(t,"markerCleared",t,this,i,o),r&&nn(t),this.parent&&this.parent.clear()}},vs.prototype.find=function(e,t){var r=this;null==e&&"bookmark"==this.type&&(e=1);for(var n,i,o=0;o<this.lines.length;++o){var l=r.lines[o],s=_(l.markedSpans,r);if(null!=s.from&&(n=P(t?l:W(l),s.from),-1==e))return n;if(null!=s.to&&(i=P(t?l:W(l),s.to),1==e))return i}return n&&{from:n,to:i}},vs.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;t&&n&&fn(n,function(){var i=t.line,o=W(t.line),l=$t(n,o);if(l&&(rr(l),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!ve(r.doc,i)&&null!=r.height){var s=r.height;r.height=null;var a=It(r)-s;a&&A(i,i.height+a)}St(n,"markerChanged",n,e)})},vs.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=h(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},vs.prototype.detachLine=function(e){if(this.lines.splice(h(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ee(vs);var ms=function(e,t){var r=this;this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=r};ms.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();St(this,"clear")}},ms.prototype.find=function(e,t){return this.primary.find(e,t)},Ee(ms);var ys=0,bs=function(e,t,r,n,i){if(!(this instanceof bs))return new bs(e,t,r,n,i);null==r&&(r=0),ds.call(this,[new hs([new ql("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=r;var o=P(r,0);this.sel=zn(o),this.history=new Qn(null),this.id=++ys,this.modeOption=t,this.lineSep=n,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Yn(this,{from:o,to:o,text:e}),yi(this,zn(o),Ol)};bs.prototype=b(ds.prototype,{constructor:bs,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=O(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:pn(function(e){var t=P(this.first,0),r=this.first+this.size-1;Ni(this,{from:t,to:P(r,M(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&jr(this.cm,0,0),yi(this,zn(t),Ol)}),replaceRange:function(e,t,r,n){t=U(this,t),r=r?U(this,r):t,Ei(this,e,t,r,n)},getRange:function(e,t,r){var n=N(this,U(this,e),U(this,t));return!1===r?n:n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(H(this,e))return M(this,e)},getLineNumber:function(e){return W(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=M(this,e)),fe(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return U(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:pn(function(e,t,r){gi(this,U(this,"number"==typeof e?P(e,t||0):e),null,r)}),setSelection:pn(function(e,t,r){gi(this,U(this,e),U(this,t||e),r)}),extendSelection:pn(function(e,t,r){hi(this,U(this,e),t&&U(this,t),r)}),extendSelections:pn(function(e,t){di(this,K(this,e),t)}),extendSelectionsBy:pn(function(e,t){di(this,K(this,v(this.sel.ranges,e)),t)}),setSelections:pn(function(e,t,r){var n=this;if(e.length){for(var i=[],o=0;o<e.length;o++)i[o]=new fs(U(n,e[o].anchor),U(n,e[o].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),yi(this,In(i,t),r)}}),addSelection:pn(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new fs(U(this,e),U(this,t||e))),yi(this,In(n,n.length-1),r)}),getSelection:function(e){for(var t,r=this,n=this.sel.ranges,i=0;i<n.length;i++){var o=N(r,n[i].from(),n[i].to());t=t?t.concat(o):o}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,r=[],n=this.sel.ranges,i=0;i<n.length;i++){var o=N(t,n[i].from(),n[i].to());!1!==e&&(o=o.join(e||t.lineSeparator())),r[i]=o}return r},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:pn(function(e,t,r){for(var n=this,i=[],o=this.sel,l=0;l<o.ranges.length;l++){var s=o.ranges[l];i[l]={from:s.from(),to:s.to(),text:n.splitLines(e[l]),origin:r}}for(var a=t&&"end"!=t&&Vn(this,i,t),u=i.length-1;u>=0;u--)Ni(n,i[u]);a?mi(this,a):this.cm&&Kr(this.cm)}),undo:pn(function(){Ai(this,"undo")}),redo:pn(function(){Ai(this,"redo")}),undoSelection:pn(function(){Ai(this,"undo",!0)}),redoSelection:pn(function(){Ai(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){this.history=new Qn(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ci(this.history.done),undone:ci(this.history.undone)}},setHistory:function(e){var t=this.history=new Qn(this.history.maxGeneration);t.done=ci(e.done.slice(0),null,!0),t.undone=ci(e.undone.slice(0),null,!0)},setGutterMarker:pn(function(e,t,r){return zi(this,e,"gutter",function(e){var n=e.gutterMarkers||(e.gutterMarkers={});return n[t]=r,!r&&C(n)&&(e.gutterMarkers=null),!0})}),clearGutter:pn(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&zi(t,r,"gutter",function(){return r.gutterMarkers[e]=null,C(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!H(this,e))return null;if(t=e,!(e=M(this,e)))return null}else if(null==(t=W(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:pn(function(t,r,n){return zi(this,t,"gutter"==r?"gutter":"class",function(t){var i="text"==r?"textClass":"background"==r?"bgClass":"gutter"==r?"gutterClass":"wrapClass";if(t[i]){if(e(n).test(t[i]))return!1;t[i]+=" "+n}else t[i]=n;return!0})}),removeLineClass:pn(function(t,r,n){return zi(this,t,"gutter"==r?"gutter":"class",function(t){var i="text"==r?"textClass":"background"==r?"bgClass":"gutter"==r?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==n)t[i]=null;else{var l=o.match(e(n));if(!l)return!1;var s=l.index+l[0].length;t[i]=o.slice(0,l.index)+(l.index&&s!=o.length?" ":"")+o.slice(s)||null}return!0})}),addLineWidget:pn(function(e,t,r){return Bi(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Gi(this,U(this,e),U(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=U(this,e),Gi(this,e,e,r,"bookmark")},findMarksAt:function(e){e=U(this,e);var t=[],r=M(this,e.line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=U(this,e),t=U(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var s=0;s<l.length;s++){var a=l[s];null!=a.to&&i==e.line&&e.ch>=a.to||null==a.from&&i!=e.line||null!=a.from&&i==t.line&&a.from>=t.ch||r&&!r(a.marker)||n.push(a.marker.parent||a.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)null!=r[n].from&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+n;if(o>e)return t=e,!0;e-=o,++r}),U(this,P(r,t))},indexFromPos:function(e){e=U(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+r}),t},copy:function(e){var t=new bs(O(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var n=new bs(O(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ki(n,Vi(this)),n},unlinkDoc:function(e){var t=this;if(e instanceof Do&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var n=t.linked[r];if(n.doc==e){t.linked.splice(r,1),e.unlinkDoc(t),ji(Vi(t));break}}if(e.history==this.history){var i=[e.id];_n(e,function(e){return i.push(e.id)},!0),e.history=new Qn(null),e.history.done=ci(this.history.done,i),e.history.undone=ci(this.history.undone,i)}},
|
52
|
-
iterLinkedDocs:function(e){_n(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ul(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:pn(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Zn(this.cm))})}),bs.prototype.eachLine=bs.prototype.iter;for(var ws=0,xs=!1,Cs={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ss=0;Ss<10;Ss++)Cs[Ss+48]=Cs[Ss+96]=String(Ss);for(var Ls=65;Ls<=90;Ls++)Cs[Ls]=String.fromCharCode(Ls);for(var ks=1;ks<=12;ks++)Cs[ks+111]=Cs[ks+63235]="F"+ks;var Ts={};Ts.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ts.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ts.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ts.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ts.default=gl?Ts.macDefault:Ts.pcDefault;var Ms,Ns,Os={selectAll:Ti,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ol)},killLine:function(e){return lo(e,function(t){if(t.empty()){var r=M(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:P(t.head.line+1,0)}:{from:t.head,to:P(t.head.line,r)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return lo(e,function(t){return{from:P(t.from().line,0),to:U(e.doc,P(t.to().line+1,0))}})},delLineLeft:function(e){return lo(e,function(e){return{from:P(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return lo(e,function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}})},delWrappedLineRight:function(e){return lo(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(P(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(P(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return so(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return uo(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return ao(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},Wl)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},Wl)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?uo(e,t.head):n},Wl)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),l=f(e.getLine(o.line),o.ch,n);t.push(p(n-l%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return fn(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,o=M(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new P(i.line,i.ch-1)),i.ch>0)i=new P(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),P(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=M(e.doc,i.line-1).text;l&&(i=new P(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),P(i.line-1,l.length-1),i,"+transpose"))}r.push(new fs(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return fn(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Kr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},As=new Ll,Ws=null,Ds={toString:function(){return"CodeMirror.Init"}},Hs={},Es={};Do.defaults=Hs,Do.optionHandlers=Es;var Ps=[];Do.defineInitHook=function(e){return Ps.push(e)};var Fs=null,Is=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ll,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Is.prototype.init=function(e){function t(e){if(!We(i,e)){if(i.somethingSelected())Po({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Ro(i);Po({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Ol),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var r=Fs.text.join("\n");if(e.clipboardData.setData("Text",r),e.clipboardData.getData("Text")==r)return void e.preventDefault()}var l=Go(),s=l.firstChild;i.display.lineSpace.insertBefore(l,i.display.lineSpace.firstChild),s.value=Fs.text.join("\n");var a=document.activeElement;Sl(s),setTimeout(function(){i.display.lineSpace.removeChild(l),a.focus(),a==o&&n.showPrimarySelection()},50)}}var r=this,n=this,i=n.cm,o=n.div=e.lineDiv;Bo(o,i.options.spellcheck),Bl(o,"paste",function(e){We(i,e)||Io(e,i)||il<=11&&setTimeout(hn(i,function(){return r.updateFromDOM()}),20)}),Bl(o,"compositionstart",function(e){r.composing={data:e.data,done:!1}}),Bl(o,"compositionupdate",function(e){r.composing||(r.composing={data:e.data,done:!1})}),Bl(o,"compositionend",function(e){r.composing&&(e.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Bl(o,"touchstart",function(){return n.forceCompositionEnd()}),Bl(o,"input",function(){r.composing||r.readFromDOMSoon()}),Bl(o,"copy",t),Bl(o,"cut",t)},Is.prototype.prepareSelection=function(){var e=Tr(this.cm,!1);return e.focus=this.cm.state.focused,e},Is.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Is.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line<t.display.viewFrom)return void e.removeAllRanges();var o=_o(t,e.anchorNode,e.anchorOffset),l=_o(t,e.focusNode,e.focusOffset);if(!o||o.bad||!l||l.bad||0!=F(B(o,l),n)||0!=F(R(o,l),i)){var s=t.display.view,a=n.line>=t.display.viewFrom&&Ko(t,n)||{node:s[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&Ko(t,i);if(!u){var c=s[s.length-1].measure,f=c.maps?c.maps[c.maps.length-1]:c.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(!a||!u)return void e.removeAllRanges();var h,d=e.rangeCount&&e.getRangeAt(0);try{h=bl(a.node,a.offset,u.offset,u.node)}catch(e){}h&&(!Jo&&t.state.focused?(e.collapse(a.node,a.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),d&&null==e.anchorNode?e.addRange(d):Jo&&this.startGracePeriod()),this.rememberSelection()}},Is.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Is.prototype.showMultipleSelections=function(e){r(this.cm.display.cursorDiv,e.cursors),r(this.cm.display.selectionDiv,e.selection)},Is.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Is.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return o(this.div,t)},Is.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Is.prototype.blur=function(){this.div.blur()},Is.prototype.getField=function(){return this.div},Is.prototype.supportsTouch=function(){return!0},Is.prototype.receivedFocus=function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():fn(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},Is.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Is.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;if(dl&&sl&&this.cm.options.gutters.length&&jo(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=_o(t,e.anchorNode,e.anchorOffset),n=_o(t,e.focusNode,e.focusOffset);r&&n&&fn(t,function(){yi(t.doc,zn(r,n),Ol),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},Is.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,r=e.doc.sel.primary(),n=r.from(),i=r.to();if(0==n.ch&&n.line>e.firstLine()&&(n=P(n.line-1,M(e.doc,n.line-1).length)),i.ch==M(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=P(i.line+1,0)),n.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,l,s;n.line==t.viewFrom||0==(o=Lr(e,n.line))?(l=W(t.view[0].line),s=t.view[0].node):(l=W(t.view[o].line),s=t.view[o-1].node.nextSibling);var a,u,c=Lr(e,i.line);if(c==t.view.length-1?(a=t.viewTo-1,u=t.lineDiv.lastChild):(a=W(t.view[c+1].line)-1,u=t.view[c+1].node.previousSibling),!s)return!1;for(var f=e.doc.splitLines(Yo(e,s,u,l,a)),h=N(e.doc,P(l,0),P(a,M(e.doc,a).text.length));f.length>1&&h.length>1;)if(g(f)==g(h))f.pop(),h.pop(),a--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),l++}for(var d=0,p=0,v=f[0],m=h[0],y=Math.min(v.length,m.length);d<y&&v.charCodeAt(d)==m.charCodeAt(d);)++d;for(var b=g(f),w=g(h),x=Math.min(b.length-(1==f.length?d:0),w.length-(1==h.length?d:0));p<x&&b.charCodeAt(b.length-p-1)==w.charCodeAt(w.length-p-1);)++p;if(1==f.length&&1==h.length&&l==n.line)for(;d&&d>n.ch&&b.charCodeAt(b.length-p-1)==w.charCodeAt(w.length-p-1);)d--,p++;f[f.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var C=P(l,d),S=P(a,h.length?g(h).length-p:0);return f.length>1||f[0]||F(C,S)?(Ei(e.doc,f,C,S,"+input"),!0):void 0},Is.prototype.ensurePolled=function(){this.forceCompositionEnd()},Is.prototype.reset=function(){this.forceCompositionEnd()},Is.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Is.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Is.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||fn(this.cm,function(){return gn(e.cm)})},Is.prototype.setUneditable=function(e){e.contentEditable="false"},Is.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||hn(this.cm,Fo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Is.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Is.prototype.onContextMenu=function(){},Is.prototype.resetPosition=function(){},Is.prototype.needsContentAttribute=!0;var zs=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ll,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};zs.prototype.init=function(e){function t(e){if(!We(i,e)){if(i.somethingSelected())Po({lineWise:!1,text:i.getSelections()}),n.inaccurateSelection&&(n.prevInput="",n.inaccurateSelection=!1,l.value=Fs.text.join("\n"),Sl(l));else{if(!i.options.lineWiseCopyCut)return;var t=Ro(i);Po({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Ol):(n.prevInput="",l.value=t.text.join("\n"),Sl(l))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var r=this,n=this,i=this.cm,o=this.wrapper=Go(),l=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),hl&&(l.style.width="0px"),Bl(l,"input",function(){nl&&il>=9&&r.hasSelection&&(r.hasSelection=null),n.poll()}),Bl(l,"paste",function(e){We(i,e)||Io(e,i)||(i.state.pasteIncoming=!0,n.fastPoll())}),Bl(l,"cut",t),Bl(l,"copy",t),Bl(e.scroller,"paste",function(t){zt(e,t)||We(i,t)||(i.state.pasteIncoming=!0,n.focus())}),Bl(e.lineSpace,"selectstart",function(t){zt(e,t)||Pe(t)}),Bl(l,"compositionstart",function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Bl(l,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},zs.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Tr(e);if(e.options.moveInputWithCursor){var i=cr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},zs.prototype.showSelection=function(e){var t=this.cm,n=t.display;r(n.cursorDiv,e.cursors),r(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},zs.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t,r,n=this.cm,i=n.doc;if(n.somethingSelected()){this.prevInput="";var o=i.sel.primary();t=Kl&&(o.to().line-o.from().line>100||(r=n.getSelection()).length>1e3);var l=t?"-":r||n.getSelection();this.textarea.value=l,n.state.focused&&Sl(this.textarea),nl&&il>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",nl&&il>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},zs.prototype.getField=function(){return this.textarea},zs.prototype.supportsTouch=function(){return!1},zs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!pl||l()!=this.textarea))try{this.textarea.focus()}catch(e){}},zs.prototype.blur=function(){this.textarea.blur()},zs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zs.prototype.receivedFocus=function(){this.slowPoll()},zs.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},zs.prototype.fastPoll=function(){function e(){r.poll()||t?(r.pollingFast=!1,r.slowPoll()):(t=!0,r.polling.set(60,e))}var t=!1,r=this;r.pollingFast=!0,r.polling.set(20,e)},zs.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Vl(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(nl&&il>=9&&this.hasSelection===i||gl&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,s=Math.min(n.length,i.length);l<s&&n.charCodeAt(l)==i.charCodeAt(l);)++l;return fn(t,function(){Fo(t,i.slice(l),n.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zs.prototype.onKeyPress=function(){nl&&il>=9&&(this.hasSelection=null),this.fastPoll()},zs.prototype.onContextMenu=function(e){function t(){if(null!=l.selectionStart){var e=i.somethingSelected(),t=""+(e?l.value:"");l.value="⇚",l.value=t,n.prevInput=e?"":"",l.selectionStart=1,l.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function r(){if(n.contextMenuPending=!1,n.wrapper.style.cssText=c,l.style.cssText=u,nl&&il<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=a),null!=l.selectionStart){(!nl||nl&&il<9)&&t();var e=0,r=function(){o.selForContextMenu==i.doc.sel&&0==l.selectionStart&&l.selectionEnd>0&&""==n.prevInput?hn(i,Ti)(i):e++<10?o.detectingSelectAll=setTimeout(r,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(r,200)}}var n=this,i=n.cm,o=i.display,l=n.textarea,s=Sr(i,e),a=o.scroller.scrollTop;if(s&&!al){i.options.resetSelectionOnContextMenu&&-1==i.doc.sel.contains(s)&&hn(i,yi)(i.doc,zn(s),Ol);var u=l.style.cssText,c=n.wrapper.style.cssText;n.wrapper.style.cssText="position: absolute";var f=n.wrapper.getBoundingClientRect();l.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(nl?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var h;if(ol&&(h=window.scrollY),o.input.focus(),ol&&window.scrollTo(null,h),o.input.reset(),i.somethingSelected()||(l.value=n.prevInput=" "),n.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),nl&&il>=9&&t(),xl){ze(e);var d=function(){Oe(window,"mouseup",d),setTimeout(r,20)};Bl(window,"mouseup",d)}else setTimeout(r,50)}},zs.prototype.readOnlyChanged=function(e){e||this.reset()},zs.prototype.setUneditable=function(){},zs.prototype.needsContentAttribute=!1,function(e){function t(t,n,i,o){e.defaults[t]=n,i&&(r[t]=o?function(e,t,r){r!=Ds&&i(e,t,r)}:i)}var r=e.optionHandlers;e.defineOption=t,e.Init=Ds,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Kn(e)},!0),t("indentUnit",2,Kn,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){jn(e),ir(e),gn(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(-1==o)break;i=o+t.length,r.push(P(n,o))}n++});for(var i=r.length-1;i>=0;i--)Ei(e.doc,t,r[i],P(r[i].line,r[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Ds&&e.refresh()}),t("specialCharPlaceholder",ht,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",pl?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!ml),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){No(e),Oo(e)},!0),t("keyMap","default",function(e,t,r){var n=oo(t),i=r!=Ds&&oo(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)}),t("extraKeys",null),t("lineWrapping",!1,Wo,!0),t("gutters",[],function(e){Hn(e.options),Oo(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?wr(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return Jr(e)},!0),t("scrollbarStyle","native",function(e){tn(e),Jr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Hn(e.options),Oo(e)},!0),t("firstLineNumber",1,Oo,!0),t("lineNumberFormatter",function(e){return e},Oo,!0),t("showCursorWhenSelecting",!1,kr,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("readOnly",!1,function(e,t){"nocursor"==t?(Hr(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Ao),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,kr,!0),t("singleCursorHeightPerLine",!0,kr,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,jn,!0),t("addModeClass",!1,jn,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,jn,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Do),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&hn(this,t[e])(this,r,i),Ae(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](oo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:dn(function(t,r){var n=t.token?t:e.getMode(this.options,t);if(n.startState)throw new Error("Overlays may not be stateful.");m(this.state.overlays,{mode:n,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},function(e){return e.priority}),this.state.modeGen++,gn(this)}),removeOverlay:dn(function(e){for(var t=this,r=this.state.overlays,n=0;n<r.length;++n){var i=r[n].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return r.splice(n,1),t.state.modeGen++,void gn(t)}}),indentLine:dn(function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),H(this.doc,e)&&Eo(this,e,t,r)}),indentSelection:dn(function(e){for(var t=this,r=this.doc.sel.ranges,n=-1,i=0;i<r.length;i++){var o=r[i];if(o.empty())o.head.line>n&&(Eo(t,o.head.line,e,!0),n=o.head.line,i==t.doc.sel.primIndex&&Kr(t));else{var l=o.from(),s=o.to(),a=Math.max(n,l.line);n=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var u=a;u<n;++u)Eo(t,u,e);var c=t.doc.sel.ranges;0==l.ch&&r.length==c.length&&c[i].from().ch>0&&pi(t.doc,i,new fs(l,c[i].to()),Ol)}}}),getTokenAt:function(e,t){return it(this,e,t)},getLineTokens:function(e,t){return it(this,P(e),t,!0)},getTokenTypeAt:function(e){e=U(this.doc,e);var t,r=Je(this,M(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]<o)){t=r[2*l+2];break}n=l+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=this,i=[];if(!r.hasOwnProperty(t))return i;var o=r[t],l=this.getModeAt(e);if("string"==typeof l[t])o[l[t]]&&i.push(o[l[t]]);else if(l[t])for(var s=0;s<l[t].length;s++){var a=o[l[t][s]];a&&i.push(a)}else l.helperType&&o[l.helperType]?i.push(o[l.helperType]):o[l.name]&&i.push(o[l.name]);for(var u=0;u<o._global.length;u++){var c=o._global[u];c.pred(l,n)&&-1==h(i,c.val)&&i.push(c.val)}return i},getStateAfter:function(e,t){var r=this.doc;return e=G(r,null==e?r.first+r.size-1:e),et(this,e+1,t)},cursorCoords:function(e,t){var r,n=this.doc.sel.primary();return r=null==e?n.head:"object"==typeof e?U(this.doc,e):e?n.from():n.to(),cr(this,r,t||"page")},charCoords:function(e,t){return ur(this,U(this.doc,e),t||"page")},coordsChar:function(e,t){return e=ar(this,e,t||"page"),dr(this,e.left,e.top)},lineAtHeight:function(e,t){return e=ar(this,{top:e,left:0},t||"page").top,D(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var n,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),n=M(this.doc,e)}else n=e;return sr(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-ye(n):0)},defaultTextHeight:function(){return mr(this.display)},defaultCharWidth:function(){return yr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o=this.display;e=cr(this,U(this.doc,e));var l=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==n)l=e.top;else if("above"==n||"near"==n){var a=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>a)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=a&&(l=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),r&&Gr(this,{left:s,top:l,right:s+t.offsetWidth,bottom:l+t.offsetHeight})},triggerOnKeyDown:dn(vo),triggerOnKeyPress:dn(bo),triggerOnKeyUp:yo,execCommand:function(e){if(Os.hasOwnProperty(e))return Os[e].call(null,this)},triggerElectric:dn(function(e){zo(this,e)}),findPosH:function(e,t,r,n){var i=this,o=1;t<0&&(o=-1,t=-t);for(var l=U(this.doc,e),s=0;s<t&&(l=Uo(i.doc,l,o,r,n),!l.hitSide);++s);return l},moveH:dn(function(e,t){var r=this;this.extendSelectionsBy(function(n){return r.display.shift||r.doc.extend||n.empty()?Uo(r.doc,n.head,e,t,r.options.rtlMoveVisually):e<0?n.from():n.to()},Wl)}),deleteH:dn(function(e,t){var r=this.doc.sel,n=this.doc;r.somethingSelected()?n.replaceSelection("",null,"+delete"):lo(this,function(r){var i=Uo(n,r.head,e,t,!1);return e<0?{from:i,to:r.head}:{from:r.head,to:i}})}),findPosV:function(e,t,r,n){var i=this,o=1,l=n;t<0&&(o=-1,t=-t);for(var s=U(this.doc,e),a=0;a<t;++a){var u=cr(i,s,"div");if(null==l?l=u.left:u.left=l,s=Vo(i,u,o,r),s.hitSide)break}return s},moveV:dn(function(e,t){var r=this,n=this.doc,i=[],o=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy(function(l){if(o)return e<0?l.from():l.to();var s=cr(r,l.head,"div");null!=l.goalColumn&&(s.left=l.goalColumn),i.push(s.left);var a=Vo(r,s,e,t);return"page"==t&&l==n.sel.primary()&&Vr(r,ur(r,a,"div").top-s.top),a},Wl),i.length)for(var l=0;l<n.sel.ranges.length;l++)n.sel.ranges[l].goalColumn=i[l]}),findWordAt:function(e){var t=this.doc,r=M(t,e.line).text,n=e.ch,i=e.ch;if(r){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=r.length||!n?++i:--n;for(var l=r.charAt(n),s=x(l,o)?function(e){return x(e,o)}:/\s/.test(l)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!x(e)};n>0&&s(r.charAt(n-1));)--n;for(;i<r.length&&s(r.charAt(i));)++i}return new fs(P(e.line,n),P(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?s(this.display.cursorDiv,"CodeMirror-overwrite"):Cl(this.display.cursorDiv,"CodeMirror-overwrite"),Ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==l()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:dn(function(e,t){jr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Ut(this)-this.display.barHeight,width:e.scrollWidth-Ut(this)-this.display.barWidth,clientHeight:Kt(this),clientWidth:Vt(this)}},scrollIntoView:dn(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:P(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?Xr(this,e):_r(this,e.from,e.to,e.margin)}),
|
48
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.CodeMirror=t()}(this,function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function r(e,r){return t(e).appendChild(r)}function n(e,t,r,n){var i=document.createElement(e);if(r&&(i.className=r),n&&(i.style.cssText=n),"string"==typeof t)i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o<t.length;++o)i.appendChild(t[o]);return i}function i(e,t,r,i){var o=n(e,t,r,i);return o.setAttribute("role","presentation"),o}function o(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function l(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function s(t,r){var n=t.className;e(r).test(n)||(t.className+=(n?" ":"")+r)}function a(t,r){for(var n=t.split(" "),i=0;i<n.length;i++)n[i]&&!e(n[i]).test(r)&&(r+=" "+n[i]);return r}function u(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function c(e,t,r){t||(t={});for(var n in e)!e.hasOwnProperty(n)||r===!1&&t.hasOwnProperty(n)||(t[n]=e[n]);return t}function f(e,t,r,n,i){null==t&&(t=e.search(/[^\s\u00a0]/))==-1&&(t=e.length);for(var o=n||0,l=i||0;;){var s=e.indexOf("\t",o);if(s<0||s>=t)return l+(t-o);l+=s-o,l+=r-l%r,o=s+1}}function h(e,t){for(var r=0;r<e.length;++r)if(e[r]==t)return r;return-1}function d(e,t,r){for(var n=0,i=0;;){var o=e.indexOf("\t",n);o==-1&&(o=e.length);var l=o-n;if(o==e.length||i+l>=t)return n+Math.min(l,t-i);if(i+=o-n,i+=r-i%r,n=o+1,i>=t)return n}}function p(e){for(;Dl.length<=e;)Dl.push(g(Dl)+" ");return Dl[e]}function g(e){return e[e.length-1]}function v(e,t){for(var r=[],n=0;n<e.length;n++)r[n]=t(e[n],n);return r}function m(e,t,r){for(var n=0,i=r(t);n<e.length&&r(e[n])<=i;)n++;e.splice(n,0,t)}function y(){}function b(e,t){var r;return Object.create?r=Object.create(e):(y.prototype=e,r=new y),t&&c(t,r),r}function w(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||Hl.test(e))}function x(e,t){return t?!!(t.source.indexOf("\\w")>-1&&w(e))||t.test(e):w(e)}function C(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function S(e){return e.charCodeAt(0)>=768&&El.test(e)}function L(e,t,r){for(;(r<0?t>0:t<e.length)&&S(e.charAt(t));)t+=r;return t}function k(e,t,r){for(;;){if(Math.abs(t-r)<=1)return e(t)?t:r;var n=Math.floor((t+r)/2);e(n)?r=n:t=n}}function T(e,t,r){var o=this;this.input=r,o.scrollbarFiller=n("div",null,"CodeMirror-scrollbar-filler"),o.scrollbarFiller.setAttribute("cm-not-content","true"),o.gutterFiller=n("div",null,"CodeMirror-gutter-filler"),o.gutterFiller.setAttribute("cm-not-content","true"),o.lineDiv=i("div",null,"CodeMirror-code"),o.selectionDiv=n("div",null,null,"position: relative; z-index: 1"),o.cursorDiv=n("div",null,"CodeMirror-cursors"),o.measure=n("div",null,"CodeMirror-measure"),o.lineMeasure=n("div",null,"CodeMirror-measure"),o.lineSpace=i("div",[o.measure,o.lineMeasure,o.selectionDiv,o.cursorDiv,o.lineDiv],null,"position: relative; outline: none");var l=i("div",[o.lineSpace],"CodeMirror-lines");o.mover=n("div",[l],null,"position: relative"),o.sizer=n("div",[o.mover],"CodeMirror-sizer"),o.sizerWidth=null,o.heightForcer=n("div",null,null,"position: absolute; height: "+Ml+"px; width: 1px;"),o.gutters=n("div",null,"CodeMirror-gutters"),o.lineGutter=null,o.scroller=n("div",[o.sizer,o.heightForcer,o.gutters],"CodeMirror-scroll"),o.scroller.setAttribute("tabIndex","-1"),o.wrapper=n("div",[o.scrollbarFiller,o.gutterFiller,o.scroller],"CodeMirror"),nl&&il<8&&(o.gutters.style.zIndex=-1,o.scroller.style.paddingRight=0),ol||Jo&&pl||(o.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(o.wrapper):e(o.wrapper)),o.viewFrom=o.viewTo=t.first,o.reportedViewFrom=o.reportedViewTo=t.first,o.view=[],o.renderedView=null,o.externalMeasured=null,o.viewOffset=0,o.lastWrapHeight=o.lastWrapWidth=0,o.updateLineNumbers=null,o.nativeBarWidth=o.barHeight=o.barWidth=0,o.scrollbarsClipped=!1,o.lineNumWidth=o.lineNumInnerWidth=o.lineNumChars=null,o.alignWidgets=!1,o.cachedCharWidth=o.cachedTextHeight=o.cachedPaddingH=null,o.maxLine=null,o.maxLineLength=0,o.maxLineChanged=!1,o.wheelDX=o.wheelDY=o.wheelStartX=o.wheelStartY=null,o.shift=!1,o.selForContextMenu=null,o.activeTouch=null,r.init(o)}function M(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var r=e;!r.lines;)for(var n=0;;++n){var i=r.children[n],o=i.chunkSize();if(t<o){r=i;break}t-=o}return r.lines[t]}function N(e,t,r){var n=[],i=t.line;return e.iter(t.line,r.line+1,function(e){var o=e.text;i==r.line&&(o=o.slice(0,r.ch)),i==t.line&&(o=o.slice(t.ch)),n.push(o),++i}),n}function O(e,t,r){var n=[];return e.iter(t,r,function(e){n.push(e.text)}),n}function A(e,t){var r=t-e.height;if(r)for(var n=e;n;n=n.parent)n.height+=r}function W(e){if(null==e.parent)return null;for(var t=e.parent,r=h(t.lines,e),n=t.parent;n;t=n,n=n.parent)for(var i=0;n.children[i]!=t;++i)r+=n.children[i].chunkSize();return r+t.first}function D(e,t){var r=e.first;e:do{for(var n=0;n<e.children.length;++n){var i=e.children[n],o=i.height;if(t<o){e=i;continue e}t-=o,r+=i.chunkSize()}return r}while(!e.lines);for(var l=0;l<e.lines.length;++l){var s=e.lines[l],a=s.height;if(t<a)break;t-=a}return r+l}function H(e,t){return t>=e.first&&t<e.first+e.size}function E(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function P(e,t,r){if(void 0===r&&(r=null),!(this instanceof P))return new P(e,t,r);this.line=e,this.ch=t,this.sticky=r}function F(e,t){return e.line-t.line||e.ch-t.ch}function I(e,t){return e.sticky==t.sticky&&0==F(e,t)}function z(e){return P(e.line,e.ch)}function R(e,t){return F(e,t)<0?t:e}function B(e,t){return F(e,t)<0?e:t}function G(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function U(e,t){if(t.line<e.first)return P(e.first,0);var r=e.first+e.size-1;return t.line>r?P(r,M(e,r).text.length):V(t,M(e,t.line).text.length)}function V(e,t){var r=e.ch;return null==r||r>t?P(e.line,t):r<0?P(e.line,0):e}function K(e,t){for(var r=[],n=0;n<t.length;n++)r[n]=U(e,t[n]);return r}function j(){Pl=!0}function X(){Fl=!0}function Y(e,t,r){this.marker=e,this.from=t,this.to=r}function _(e,t){if(e)for(var r=0;r<e.length;++r){var n=e[r];if(n.marker==t)return n}}function $(e,t){for(var r,n=0;n<e.length;++n)e[n]!=t&&(r||(r=[])).push(e[n]);return r}function q(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}function Z(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,s=null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t);if(s||o.from==t&&"bookmark"==l.type&&(!r||!o.marker.insertLeft)){var a=null==o.to||(l.inclusiveRight?o.to>=t:o.to>t);(n||(n=[])).push(new Y(l,o.from,a?null:o.to))}}return n}function Q(e,t,r){var n;if(e)for(var i=0;i<e.length;++i){var o=e[i],l=o.marker,s=null==o.to||(l.inclusiveRight?o.to>=t:o.to>t);if(s||o.from==t&&"bookmark"==l.type&&(!r||o.marker.insertLeft)){var a=null==o.from||(l.inclusiveLeft?o.from<=t:o.from<t);(n||(n=[])).push(new Y(l,a?null:o.from-t,null==o.to?null:o.to-t))}}return n}function J(e,t){if(t.full)return null;var r=H(e,t.from.line)&&M(e,t.from.line).markedSpans,n=H(e,t.to.line)&&M(e,t.to.line).markedSpans;if(!r&&!n)return null;var i=t.from.ch,o=t.to.ch,l=0==F(t.from,t.to),s=Z(r,i,l),a=Q(n,o,l),u=1==t.text.length,c=g(t.text).length+(u?i:0);if(s)for(var f=0;f<s.length;++f){var h=s[f];if(null==h.to){var d=_(a,h.marker);d?u&&(h.to=null==d.to?null:d.to+c):h.to=i}}if(a)for(var p=0;p<a.length;++p){var v=a[p];if(null!=v.to&&(v.to+=c),null==v.from){var m=_(s,v.marker);m||(v.from=c,u&&(s||(s=[])).push(v))}else v.from+=c,u&&(s||(s=[])).push(v)}s&&(s=ee(s)),a&&a!=s&&(a=ee(a));var y=[s];if(!u){var b,w=t.text.length-2;if(w>0&&s)for(var x=0;x<s.length;++x)null==s[x].to&&(b||(b=[])).push(new Y(s[x].marker,null,null));for(var C=0;C<w;++C)y.push(b);y.push(a)}return y}function ee(e){for(var t=0;t<e.length;++t){var r=e[t];null!=r.from&&r.from==r.to&&r.marker.clearWhenEmpty!==!1&&e.splice(t--,1)}return e.length?e:null}function te(e,t,r){var n=null;if(e.iter(t.line,r.line+1,function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var r=e.markedSpans[t].marker;!r.readOnly||n&&h(n,r)!=-1||(n||(n=[])).push(r)}}),!n)return null;for(var i=[{from:t,to:r}],o=0;o<n.length;++o)for(var l=n[o],s=l.find(0),a=0;a<i.length;++a){var u=i[a];if(!(F(u.to,s.from)<0||F(u.from,s.to)>0)){var c=[a,1],f=F(u.from,s.from),d=F(u.to,s.to);(f<0||!l.inclusiveLeft&&!f)&&c.push({from:u.from,to:s.from}),(d>0||!l.inclusiveRight&&!d)&&c.push({from:s.to,to:u.to}),i.splice.apply(i,c),a+=c.length-3}}return i}function re(e){var t=e.markedSpans;if(t){for(var r=0;r<t.length;++r)t[r].marker.detachLine(e);e.markedSpans=null}}function ne(e,t){if(t){for(var r=0;r<t.length;++r)t[r].marker.attachLine(e);e.markedSpans=t}}function ie(e){return e.inclusiveLeft?-1:0}function oe(e){return e.inclusiveRight?1:0}function le(e,t){var r=e.lines.length-t.lines.length;if(0!=r)return r;var n=e.find(),i=t.find(),o=F(n.from,i.from)||ie(e)-ie(t);if(o)return-o;var l=F(n.to,i.to)||oe(e)-oe(t);return l?l:t.id-e.id}function se(e,t){var r,n=Fl&&e.markedSpans;if(n)for(var i=void 0,o=0;o<n.length;++o)i=n[o],i.marker.collapsed&&null==(t?i.from:i.to)&&(!r||le(r,i.marker)<0)&&(r=i.marker);return r}function ae(e){return se(e,!0)}function ue(e){return se(e,!1)}function ce(e,t,r,n,i){var o=M(e,t),l=Fl&&o.markedSpans;if(l)for(var s=0;s<l.length;++s){var a=l[s];if(a.marker.collapsed){var u=a.marker.find(0),c=F(u.from,r)||ie(a.marker)-ie(i),f=F(u.to,n)||oe(a.marker)-oe(i);if(!(c>=0&&f<=0||c<=0&&f>=0)&&(c<=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?F(u.to,r)>=0:F(u.to,r)>0)||c>=0&&(a.marker.inclusiveRight&&i.inclusiveLeft?F(u.from,n)<=0:F(u.from,n)<0)))return!0}}}function fe(e){for(var t;t=ae(e);)e=t.find(-1,!0).line;return e}function he(e){for(var t;t=ue(e);)e=t.find(1,!0).line;return e}function de(e){for(var t,r;t=ue(e);)e=t.find(1,!0).line,(r||(r=[])).push(e);return r}function pe(e,t){var r=M(e,t),n=fe(r);return r==n?t:W(n)}function ge(e,t){if(t>e.lastLine())return t;var r,n=M(e,t);if(!ve(e,n))return t;for(;r=ue(n);)n=r.find(1,!0).line;return W(n)+1}function ve(e,t){var r=Fl&&t.markedSpans;if(r)for(var n=void 0,i=0;i<r.length;++i)if(n=r[i],n.marker.collapsed){if(null==n.from)return!0;if(!n.marker.widgetNode&&0==n.from&&n.marker.inclusiveLeft&&me(e,t,n))return!0}}function me(e,t,r){if(null==r.to){var n=r.marker.find(1,!0);return me(e,n.line,_(n.line.markedSpans,r.marker))}if(r.marker.inclusiveRight&&r.to==t.text.length)return!0;for(var i=void 0,o=0;o<t.markedSpans.length;++o)if(i=t.markedSpans[o],i.marker.collapsed&&!i.marker.widgetNode&&i.from==r.to&&(null==i.to||i.to!=r.from)&&(i.marker.inclusiveLeft||r.marker.inclusiveRight)&&me(e,t,i))return!0}function ye(e){e=fe(e);for(var t=0,r=e.parent,n=0;n<r.lines.length;++n){var i=r.lines[n];if(i==e)break;t+=i.height}for(var o=r.parent;o;r=o,o=r.parent)for(var l=0;l<o.children.length;++l){var s=o.children[l];if(s==r)break;t+=s.height}return t}function be(e){if(0==e.height)return 0;for(var t,r=e.text.length,n=e;t=ae(n);){var i=t.find(0,!0);n=i.from.line,r+=i.from.ch-i.to.ch}for(n=e;t=ue(n);){var o=t.find(0,!0);r-=n.text.length-o.from.ch,n=o.to.line,r+=n.text.length-o.to.ch}return r}function we(e){var t=e.display,r=e.doc;t.maxLine=M(r,r.first),t.maxLineLength=be(t.maxLine),t.maxLineChanged=!0,r.iter(function(e){var r=be(e);r>t.maxLineLength&&(t.maxLineLength=r,t.maxLine=e)})}function xe(e,t,r,n){if(!e)return n(t,r,"ltr");for(var i=!1,o=0;o<e.length;++o){var l=e[o];(l.from<r&&l.to>t||t==r&&l.to==t)&&(n(Math.max(l.from,t),Math.min(l.to,r),1==l.level?"rtl":"ltr"),i=!0)}i||n(t,r,"ltr")}function Ce(e,t,r){var n;Il=null;for(var i=0;i<e.length;++i){var o=e[i];if(o.from<t&&o.to>t)return i;o.to==t&&(o.from!=o.to&&"before"==r?n=i:Il=i),o.from==t&&(o.from!=o.to&&"before"!=r?n=i:Il=i)}return null!=n?n:Il}function Se(e,t){var r=e.order;return null==r&&(r=e.order=zl(e.text,t)),r}function Le(e,t,r){var n=L(e.text,t+r,r);return n<0||n>e.text.length?null:n}function ke(e,t,r){var n=Le(e,t.ch,r);return null==n?null:new P(t.line,n,r<0?"after":"before")}function Te(e,t,r,n,i){if(e){var o=Se(r,t.doc.direction);if(o){var l,s=i<0?g(o):o[0],a=i<0==(1==s.level),u=a?"after":"before";if(s.level>0){var c=qt(t,r);l=i<0?r.text.length-1:0;var f=Zt(t,c,l).top;l=k(function(e){return Zt(t,c,e).top==f},i<0==(1==s.level)?s.from:s.to-1,l),"before"==u&&(l=Le(r,l,1))}else l=i<0?s.to:s.from;return new P(n,l,u)}}return new P(n,i<0?r.text.length:0,i<0?"before":"after")}function Me(e,t,r,n){var i=Se(t,e.doc.direction);if(!i)return ke(t,r,n);r.ch>=t.text.length?(r.ch=t.text.length,r.sticky="before"):r.ch<=0&&(r.ch=0,r.sticky="after");var o=Ce(i,r.ch,r.sticky),l=i[o];if("ltr"==e.doc.direction&&l.level%2==0&&(n>0?l.to>r.ch:l.from<r.ch))return ke(t,r,n);var s,a=function(e,r){return Le(t,e instanceof P?e.ch:e,r)},u=function(r){return e.options.lineWrapping?(s=s||qt(e,t),gr(e,t,s,r)):{begin:0,end:t.text.length}},c=u("before"==r.sticky?a(r,-1):r.ch);if("rtl"==e.doc.direction||1==l.level){var f=1==l.level==n<0,h=a(r,f?1:-1);if(null!=h&&(f?h<=l.to&&h<=c.end:h>=l.from&&h>=c.begin)){var d=f?"before":"after";return new P(r.line,h,d)}}var p=function(e,t,n){for(var o=function(e,t){return t?new P(r.line,a(e,1),"before"):new P(r.line,e,"after")};e>=0&&e<i.length;e+=t){var l=i[e],s=t>0==(1!=l.level),u=s?n.begin:a(n.end,-1);if(l.from<=u&&u<l.to)return o(u,s);if(u=s?l.from:a(l.to,-1),n.begin<=u&&u<n.end)return o(u,s)}},g=p(o+n,n,c);if(g)return g;var v=n>0?c.end:a(c.begin,-1);return null==v||n>0&&v==t.text.length||!(g=p(n>0?0:i.length-1,n,u(v)))?null:g}function Ne(e,t){return e._handlers&&e._handlers[t]||Rl}function Oe(e,t,r){if(e.removeEventListener)e.removeEventListener(t,r,!1);else if(e.detachEvent)e.detachEvent("on"+t,r);else{var n=e._handlers,i=n&&n[t];if(i){var o=h(i,r);o>-1&&(n[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function Ae(e,t){var r=Ne(e,t);if(r.length)for(var n=Array.prototype.slice.call(arguments,2),i=0;i<r.length;++i)r[i].apply(null,n)}function We(e,t,r){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),Ae(e,r||t.type,e,t),Ie(t)||t.codemirrorIgnore}function De(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var r=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),n=0;n<t.length;++n)h(r,t[n])==-1&&r.push(t[n])}function He(e,t){return Ne(e,t).length>0}function Ee(e){e.prototype.on=function(e,t){Bl(this,e,t)},e.prototype.off=function(e,t){Oe(this,e,t)}}function Pe(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function Fe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ie(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function ze(e){Pe(e),Fe(e)}function Re(e){return e.target||e.srcElement}function Be(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),gl&&e.ctrlKey&&1==t&&(t=3),t}function Ge(e){if(null==kl){var t=n("span","");r(e,n("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(kl=t.offsetWidth<=1&&t.offsetHeight>2&&!(nl&&il<8))}var i=kl?n("span",""):n("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return i.setAttribute("cm-text",""),i}function Ue(e){if(null!=Tl)return Tl;var n=r(e,document.createTextNode("AخA")),i=bl(n,0,1).getBoundingClientRect(),o=bl(n,1,2).getBoundingClientRect();return t(e),!(!i||i.left==i.right)&&(Tl=o.right-i.right<3)}function Ve(e){if(null!=jl)return jl;var t=r(e,n("span","x")),i=t.getBoundingClientRect(),o=bl(t,0,1).getBoundingClientRect();return jl=Math.abs(i.left-o.left)>1}function Ke(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Xl[e]=t}function je(e,t){Yl[e]=t}function Xe(e){if("string"==typeof e&&Yl.hasOwnProperty(e))e=Yl[e];else if(e&&"string"==typeof e.name&&Yl.hasOwnProperty(e.name)){var t=Yl[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Xe("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Xe("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ye(e,t){t=Xe(t);var r=Xl[t.name];if(!r)return Ye(e,"text/plain");var n=r(e,t);if(_l.hasOwnProperty(t.name)){var i=_l[t.name];for(var o in i)i.hasOwnProperty(o)&&(n.hasOwnProperty(o)&&(n["_"+o]=n[o]),n[o]=i[o])}if(n.name=t.name,t.helperType&&(n.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)n[l]=t.modeProps[l];return n}function _e(e,t){c(t,_l.hasOwnProperty(e)?_l[e]:_l[e]={})}function $e(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var r={};for(var n in t){var i=t[n];i instanceof Array&&(i=i.concat([])),r[n]=i}return r}function qe(e,t){for(var r;e.innerMode&&(r=e.innerMode(t))&&r.mode!=e;)t=r.state,e=r.mode;return r||{mode:e,state:t}}function Ze(e,t,r){return!e.startState||e.startState(t,r)}function Qe(e,t,r,n){var i=[e.state.modeGen],o={};lt(e,t.text,e.doc.mode,r,function(e,t){return i.push(e,t)},o,n);for(var l=0;l<e.state.overlays.length;++l)!function(r){var n=e.state.overlays[r],l=1,s=0;lt(e,t.text,n.mode,!0,function(e,t){for(var r=l;s<e;){var o=i[l];o>e&&i.splice(l,1,e,i[l+1],o),l+=2,s=Math.min(e,o)}if(t)if(n.opaque)i.splice(r,l-r,e,"overlay "+t),l=r+2;else for(;r<l;r+=2){var a=i[r+1];i[r+1]=(a?a+" ":"")+"overlay "+t}},o)}(l);return{styles:i,classes:o.bgClass||o.textClass?o:null}}function Je(e,t,r){if(!t.styles||t.styles[0]!=e.state.modeGen){var n=et(e,W(t)),i=Qe(e,t,t.text.length>e.options.maxHighlightLength?$e(e.doc.mode,n):n);t.stateAfter=n,t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),r===e.doc.frontier&&e.doc.frontier++}return t.styles}function et(e,t,r){var n=e.doc,i=e.display;if(!n.mode.startState)return!0;var o=st(e,t,r),l=o>n.first&&M(n,o-1).stateAfter;return l=l?$e(n.mode,l):Ze(n.mode),n.iter(o,t,function(r){tt(e,r.text,l);var s=o==t-1||o%5==0||o>=i.viewFrom&&o<i.viewTo;r.stateAfter=s?$e(n.mode,l):null,++o}),r&&(n.frontier=o),l}function tt(e,t,r,n){var i=e.doc.mode,o=new $l(t,e.options.tabSize);for(o.start=o.pos=n||0,""==t&&rt(i,r);!o.eol();)nt(i,o,r),o.start=o.pos}function rt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var r=qe(e,t);return r.mode.blankLine?r.mode.blankLine(r.state):void 0}}function nt(e,t,r,n){for(var i=0;i<10;i++){n&&(n[0]=qe(e,r).mode);var o=e.token(t,r);if(t.pos>t.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}function it(e,t,r,n){var i,o=function(e){return{start:f.start,end:f.pos,string:f.current(),type:i||null,state:e?$e(l.mode,c):c}},l=e.doc,s=l.mode;t=U(l,t);var a,u=M(l,t.line),c=et(e,t.line,r),f=new $l(u.text,e.options.tabSize);for(n&&(a=[]);(n||f.pos<t.ch)&&!f.eol();)f.start=f.pos,i=nt(s,f,c),n&&a.push(o(!0));return n?a:o()}function ot(e,t){if(e)for(;;){var r=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!r)break;e=e.slice(0,r.index)+e.slice(r.index+r[0].length);var n=r[1]?"bgClass":"textClass";null==t[n]?t[n]=r[2]:new RegExp("(?:^|s)"+r[2]+"(?:$|s)").test(t[n])||(t[n]+=" "+r[2])}return e}function lt(e,t,r,n,i,o,l){var s=r.flattenSpans;null==s&&(s=e.options.flattenSpans);var a,u=0,c=null,f=new $l(t,e.options.tabSize),h=e.options.addModeClass&&[null];for(""==t&&ot(rt(r,n),o);!f.eol();){if(f.pos>e.options.maxHighlightLength?(s=!1,l&&tt(e,t,n,f.pos),f.pos=t.length,a=null):a=ot(nt(r,f,n,h),o),h){var d=h[0].name;d&&(a="m-"+(a?d+" "+a:d))}if(!s||c!=a){for(;u<f.start;)u=Math.min(f.start,u+5e3),i(u,c);c=a}f.start=f.pos}for(;u<f.pos;){var p=Math.min(f.pos,u+5e3);i(p,c),u=p}}function st(e,t,r){for(var n,i,o=e.doc,l=r?-1:t-(e.doc.mode.innerMode?1e3:100),s=t;s>l;--s){if(s<=o.first)return o.first;var a=M(o,s-1);if(a.stateAfter&&(!r||s<=o.frontier))return s;var u=f(a.text,null,e.options.tabSize);(null==i||n>u)&&(i=s-1,n=u)}return i}function at(e,t,r,n){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),re(e),ne(e,r);var i=n?n(e):1;i!=e.height&&A(e,i)}function ut(e){e.parent=null,re(e)}function ct(e,t){if(!e||/^\s*$/.test(e))return null;var r=t.addModeClass?Jl:Ql;return r[e]||(r[e]=e.replace(/\S+/g,"cm-$&"))}function ft(e,t){var r=i("span",null,null,ol?"padding-right: .1px":null),n={pre:i("pre",[r],"CodeMirror-line"),content:r,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:(nl||ol)&&e.getOption("lineWrapping")};t.measure={};for(var o=0;o<=(t.rest?t.rest.length:0);o++){var l=o?t.rest[o-1]:t.line,s=void 0;n.pos=0,n.addToken=dt,Ue(e.display.measure)&&(s=Se(l,e.doc.direction))&&(n.addToken=gt(n.addToken,s)),n.map=[];mt(l,n,Je(e,l,t!=e.display.externalMeasured&&W(l))),l.styleClasses&&(l.styleClasses.bgClass&&(n.bgClass=a(l.styleClasses.bgClass,n.bgClass||"")),l.styleClasses.textClass&&(n.textClass=a(l.styleClasses.textClass,n.textClass||""))),0==n.map.length&&n.map.push(0,0,n.content.appendChild(Ge(e.display.measure))),0==o?(t.measure.map=n.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(n.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(ol){var u=n.content.lastChild;(/\bcm-tab\b/.test(u.className)||u.querySelector&&u.querySelector(".cm-tab"))&&(n.content.className="cm-tab-wrap-hack")}return Ae(e,"renderLine",e,t.line,n.pre),n.pre.className&&(n.textClass=a(n.pre.className,n.textClass||"")),n}function ht(e){var t=n("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function dt(e,t,r,i,o,l,s){if(t){var a,u=e.splitSpaces?pt(t,e.trailingSpace):t,c=e.cm.state.specialChars,f=!1;if(c.test(t)){a=document.createDocumentFragment();for(var h=0;;){c.lastIndex=h;var d=c.exec(t),g=d?d.index-h:t.length-h;if(g){var v=document.createTextNode(u.slice(h,h+g));nl&&il<9?a.appendChild(n("span",[v])):a.appendChild(v),e.map.push(e.pos,e.pos+g,v),e.col+=g,e.pos+=g}if(!d)break;h+=g+1;var m=void 0;if("\t"==d[0]){var y=e.cm.options.tabSize,b=y-e.col%y;m=a.appendChild(n("span",p(b),"cm-tab")),m.setAttribute("role","presentation"),m.setAttribute("cm-text","\t"),e.col+=b}else"\r"==d[0]||"\n"==d[0]?(m=a.appendChild(n("span","\r"==d[0]?"␍":"","cm-invalidchar")),m.setAttribute("cm-text",d[0]),e.col+=1):(m=e.cm.options.specialCharPlaceholder(d[0]),m.setAttribute("cm-text",d[0]),nl&&il<9?a.appendChild(n("span",[m])):a.appendChild(m),e.col+=1);e.map.push(e.pos,e.pos+1,m),e.pos++}}else e.col+=t.length,a=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,a),nl&&il<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),r||i||o||f||s){var w=r||"";i&&(w+=i),o&&(w+=o);var x=n("span",[a],w,s);return l&&(x.title=l),e.content.appendChild(x)}e.content.appendChild(a)}}function pt(e,t){if(e.length>1&&!/ /.test(e))return e;for(var r=t,n="",i=0;i<e.length;i++){var o=e.charAt(i);" "!=o||!r||i!=e.length-1&&32!=e.charCodeAt(i+1)||(o=" "),n+=o,r=" "==o}return n}function gt(e,t){return function(r,n,i,o,l,s,a){i=i?i+" cm-force-border":"cm-force-border";for(var u=r.pos,c=u+n.length;;){for(var f=void 0,h=0;h<t.length&&(f=t[h],!(f.to>u&&f.from<=u));h++);if(f.to>=c)return e(r,n,i,o,l,s,a);e(r,n.slice(0,f.to-u),i,o,null,s,a),o=null,n=n.slice(f.to-u),u=f.to}}}function vt(e,t,r,n){var i=!n&&r.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!n&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",r.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function mt(e,t,r){var n=e.markedSpans,i=e.text,o=0;if(n)for(var l,s,a,u,c,f,h,d=i.length,p=0,g=1,v="",m=0;;){if(m==p){a=u=c=f=s="",h=null,m=1/0;for(var y=[],b=void 0,w=0;w<n.length;++w){var x=n[w],C=x.marker;"bookmark"==C.type&&x.from==p&&C.widgetNode?y.push(C):x.from<=p&&(null==x.to||x.to>p||C.collapsed&&x.to==p&&x.from==p)?(null!=x.to&&x.to!=p&&m>x.to&&(m=x.to,u=""),C.className&&(a+=" "+C.className),C.css&&(s=(s?s+";":"")+C.css),C.startStyle&&x.from==p&&(c+=" "+C.startStyle),C.endStyle&&x.to==m&&(b||(b=[])).push(C.endStyle,x.to),C.title&&!f&&(f=C.title),C.collapsed&&(!h||le(h.marker,C)<0)&&(h=x)):x.from>p&&m>x.from&&(m=x.from)}if(b)for(var S=0;S<b.length;S+=2)b[S+1]==m&&(u+=" "+b[S]);if(!h||h.from==p)for(var L=0;L<y.length;++L)vt(t,0,y[L]);if(h&&(h.from||0)==p){if(vt(t,(null==h.to?d+1:h.to)-p,h.marker,null==h.from),null==h.to)return;h.to==p&&(h=!1)}}if(p>=d)break;for(var k=Math.min(d,m);;){if(v){var T=p+v.length;if(!h){var M=T>k?v.slice(0,k-p):v;t.addToken(t,M,l?l+a:a,c,p+M.length==m?u:"",f,s)}if(T>=k){v=v.slice(k-p),p=k;break}p=T,c=""}v=i.slice(o,o=r[g++]),l=ct(r[g++],t.cm.options)}}else for(var N=1;N<r.length;N+=2)t.addToken(t,i.slice(o,o=r[N]),ct(r[N+1],t.cm.options))}function yt(e,t,r){this.line=t,this.rest=de(t),this.size=this.rest?W(g(this.rest))-r+1:1,this.node=this.text=null,this.hidden=ve(e,t)}function bt(e,t,r){for(var n,i=[],o=t;o<r;o=n){var l=new yt(e.doc,M(e.doc,o),o);n=o+l.size,i.push(l)}return i}function wt(e){es?es.ops.push(e):e.ownsGroup=es={ops:[e],delayedCallbacks:[]}}function xt(e){var t=e.delayedCallbacks,r=0;do{for(;r<t.length;r++)t[r].call(null);for(var n=0;n<e.ops.length;n++){var i=e.ops[n];if(i.cursorActivityHandlers)for(;i.cursorActivityCalled<i.cursorActivityHandlers.length;)i.cursorActivityHandlers[i.cursorActivityCalled++].call(null,i.cm)}}while(r<t.length)}function Ct(e,t){var r=e.ownsGroup;if(r)try{xt(r)}finally{es=null,t(r)}}function St(e,t){var r=Ne(e,t);if(r.length){var n,i=Array.prototype.slice.call(arguments,2);es?n=es.delayedCallbacks:ts?n=ts:(n=ts=[],setTimeout(Lt,0));for(var o=0;o<r.length;++o)!function(e){n.push(function(){return r[e].apply(null,i)})}(o)}}function Lt(){var e=ts;ts=null;for(var t=0;t<e.length;++t)e[t]()}function kt(e,t,r,n){for(var i=0;i<t.changes.length;i++){var o=t.changes[i];"text"==o?Ot(e,t):"gutter"==o?Wt(e,t,r,n):"class"==o?At(e,t):"widget"==o&&Dt(e,t,n)}t.changes=null}function Tt(e){return e.node==e.text&&(e.node=n("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),nl&&il<8&&(e.node.style.zIndex=2)),e.node}function Mt(e,t){var r=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(r&&(r+=" CodeMirror-linebackground"),t.background)r?t.background.className=r:(t.background.parentNode.removeChild(t.background),t.background=null);else if(r){var i=Tt(t);t.background=i.insertBefore(n("div",null,r),i.firstChild),e.display.input.setUneditable(t.background)}}function Nt(e,t){var r=e.display.externalMeasured;return r&&r.line==t.line?(e.display.externalMeasured=null,t.measure=r.measure,r.built):ft(e,t)}function Ot(e,t){var r=t.text.className,n=Nt(e,t);t.text==t.node&&(t.node=n.pre),t.text.parentNode.replaceChild(n.pre,t.text),t.text=n.pre,n.bgClass!=t.bgClass||n.textClass!=t.textClass?(t.bgClass=n.bgClass,t.textClass=n.textClass,At(e,t)):r&&(t.text.className=r)}function At(e,t){Mt(e,t),t.line.wrapClass?Tt(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var r=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=r||""}function Wt(e,t,r,i){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var o=Tt(t);t.gutterBackground=n("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px; width: "+i.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),o.insertBefore(t.gutterBackground,t.text)}var l=t.line.gutterMarkers;if(e.options.lineNumbers||l){var s=Tt(t),a=t.gutter=n("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?i.fixedPos:-i.gutterTotalWidth)+"px");if(e.display.input.setUneditable(a),s.insertBefore(a,t.text),t.line.gutterClass&&(a.className+=" "+t.line.gutterClass),!e.options.lineNumbers||l&&l["CodeMirror-linenumbers"]||(t.lineNumber=a.appendChild(n("div",E(e.options,r),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+i.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),l)for(var u=0;u<e.options.gutters.length;++u){var c=e.options.gutters[u],f=l.hasOwnProperty(c)&&l[c];f&&a.appendChild(n("div",[f],"CodeMirror-gutter-elt","left: "+i.gutterLeft[c]+"px; width: "+i.gutterWidth[c]+"px"))}}}function Dt(e,t,r){t.alignable&&(t.alignable=null);for(var n=t.node.firstChild,i=void 0;n;n=i)i=n.nextSibling,"CodeMirror-linewidget"==n.className&&t.node.removeChild(n);Et(e,t,r)}function Ht(e,t,r,n){var i=Nt(e,t);return t.text=t.node=i.pre,i.bgClass&&(t.bgClass=i.bgClass),i.textClass&&(t.textClass=i.textClass),At(e,t),Wt(e,t,r,n),Et(e,t,n),t.node}function Et(e,t,r){if(Pt(e,t.line,t,r,!0),t.rest)for(var n=0;n<t.rest.length;n++)Pt(e,t.rest[n],t,r,!1)}function Pt(e,t,r,i,o){if(t.widgets)for(var l=Tt(r),s=0,a=t.widgets;s<a.length;++s){var u=a[s],c=n("div",[u.node],"CodeMirror-linewidget");u.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),Ft(u,c,r,i),e.display.input.setUneditable(c),o&&u.above?l.insertBefore(c,r.gutter||r.text):l.appendChild(c),St(u,"redraw")}}function Ft(e,t,r,n){if(e.noHScroll){(r.alignable||(r.alignable=[])).push(t);var i=n.wrapperWidth;t.style.left=n.fixedPos+"px",e.coverGutter||(i-=n.gutterTotalWidth,t.style.paddingLeft=n.gutterTotalWidth+"px"),t.style.width=i+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-n.gutterTotalWidth+"px"))}function It(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!o(document.body,e.node)){var i="position: relative;";e.coverGutter&&(i+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(i+="width: "+t.display.wrapper.clientWidth+"px;"),r(t.display.measure,n("div",[e.node],null,i))}return e.height=e.node.parentNode.offsetHeight}function zt(e,t){for(var r=Re(t);r!=e.wrapper;r=r.parentNode)if(!r||1==r.nodeType&&"true"==r.getAttribute("cm-ignore-events")||r.parentNode==e.sizer&&r!=e.mover)return!0}function Rt(e){return e.lineSpace.offsetTop}function Bt(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function Gt(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=r(e.measure,n("pre","x")),i=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,o={left:parseInt(i.paddingLeft),right:parseInt(i.paddingRight)};return isNaN(o.left)||isNaN(o.right)||(e.cachedPaddingH=o),o}function Ut(e){return Ml-e.display.nativeBarWidth}function Vt(e){return e.display.scroller.clientWidth-Ut(e)-e.display.barWidth}function Kt(e){return e.display.scroller.clientHeight-Ut(e)-e.display.barHeight}function jt(e,t,r){var n=e.options.lineWrapping,i=n&&Vt(e);if(!t.measure.heights||n&&t.measure.width!=i){var o=t.measure.heights=[];if(n){t.measure.width=i;for(var l=t.text.firstChild.getClientRects(),s=0;s<l.length-1;s++){var a=l[s],u=l[s+1];Math.abs(a.bottom-u.bottom)>2&&o.push((a.bottom+u.top)/2-r.top)}}o.push(r.bottom-r.top)}}function Xt(e,t,r){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var n=0;n<e.rest.length;n++)if(e.rest[n]==t)return{map:e.measure.maps[n],cache:e.measure.caches[n]};for(var i=0;i<e.rest.length;i++)if(W(e.rest[i])>r)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}function Yt(e,t){t=fe(t);var n=W(t),i=e.display.externalMeasured=new yt(e.doc,t,n);i.lineN=n;var o=i.built=ft(e,i);return i.text=o.pre,r(e.display.lineMeasure,o.pre),i}function _t(e,t,r,n){return Zt(e,qt(e,t),r,n)}function $t(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[Lr(e,t)];var r=e.display.externalMeasured;return r&&t>=r.lineN&&t<r.lineN+r.size?r:void 0}function qt(e,t){var r=W(t),n=$t(e,r);n&&!n.text?n=null:n&&n.changes&&(kt(e,n,r,br(e)),e.curOp.forceUpdate=!0),n||(n=Yt(e,t));var i=Xt(n,t,r);return{line:t,view:n,rect:null,map:i.map,cache:i.cache,
|
49
|
+
before:i.before,hasHeights:!1}}function Zt(e,t,r,n,i){t.before&&(r=-1);var o,l=r+(n||"");return t.cache.hasOwnProperty(l)?o=t.cache[l]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(jt(e,t.view,t.rect),t.hasHeights=!0),o=er(e,t,r,n),o.bogus||(t.cache[l]=o)),{left:o.left,right:o.right,top:i?o.rtop:o.top,bottom:i?o.rbottom:o.bottom}}function Qt(e,t,r){for(var n,i,o,l,s,a,u=0;u<e.length;u+=3)if(s=e[u],a=e[u+1],t<s?(i=0,o=1,l="left"):t<a?(i=t-s,o=i+1):(u==e.length-3||t==a&&e[u+3]>t)&&(o=a-s,i=o-1,t>=a&&(l="right")),null!=i){if(n=e[u+2],s==a&&r==(n.insertLeft?"left":"right")&&(l=r),"left"==r&&0==i)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)n=e[2+(u-=3)],l="left";if("right"==r&&i==a-s)for(;u<e.length-3&&e[u+3]==e[u+4]&&!e[u+5].insertLeft;)n=e[2+(u+=3)],l="right";break}return{node:n,start:i,end:o,collapse:l,coverStart:s,coverEnd:a}}function Jt(e,t){var r=rs;if("left"==t)for(var n=0;n<e.length&&(r=e[n]).left==r.right;n++);else for(var i=e.length-1;i>=0&&(r=e[i]).left==r.right;i--);return r}function er(e,t,r,n){var i,o=Qt(t.map,r,n),l=o.node,s=o.start,a=o.end,u=o.collapse;if(3==l.nodeType){for(var c=0;c<4;c++){for(;s&&S(t.line.text.charAt(o.coverStart+s));)--s;for(;o.coverStart+a<o.coverEnd&&S(t.line.text.charAt(o.coverStart+a));)++a;if(i=nl&&il<9&&0==s&&a==o.coverEnd-o.coverStart?l.parentNode.getBoundingClientRect():Jt(bl(l,s,a).getClientRects(),n),i.left||i.right||0==s)break;a=s,s-=1,u="right"}nl&&il<11&&(i=tr(e.display.measure,i))}else{s>0&&(u=n="right");var f;i=e.options.lineWrapping&&(f=l.getClientRects()).length>1?f["right"==n?f.length-1:0]:l.getBoundingClientRect()}if(nl&&il<9&&!s&&(!i||!i.left&&!i.right)){var h=l.parentNode.getClientRects()[0];i=h?{left:h.left,right:h.left+yr(e.display),top:h.top,bottom:h.bottom}:rs}for(var d=i.top-t.rect.top,p=i.bottom-t.rect.top,g=(d+p)/2,v=t.view.measure.heights,m=0;m<v.length-1&&!(g<v[m]);m++);var y=m?v[m-1]:0,b=v[m],w={left:("right"==u?i.right:i.left)-t.rect.left,right:("left"==u?i.left:i.right)-t.rect.left,top:y,bottom:b};return i.left||i.right||(w.bogus=!0),e.options.singleCursorHeightPerLine||(w.rtop=d,w.rbottom=p),w}function tr(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!Ve(e))return t;var r=screen.logicalXDPI/screen.deviceXDPI,n=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*r,right:t.right*r,top:t.top*n,bottom:t.bottom*n}}function rr(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function nr(e){e.display.externalMeasure=null,t(e.display.lineMeasure);for(var r=0;r<e.display.view.length;r++)rr(e.display.view[r])}function ir(e){nr(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function or(){return sl&&dl?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function lr(){return sl&&dl?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function sr(e,t,r,n,i){if(!i&&t.widgets)for(var o=0;o<t.widgets.length;++o)if(t.widgets[o].above){var l=It(t.widgets[o]);r.top+=l,r.bottom+=l}if("line"==n)return r;n||(n="local");var s=ye(t);if("local"==n?s+=Rt(e.display):s-=e.display.viewOffset,"page"==n||"window"==n){var a=e.display.lineSpace.getBoundingClientRect();s+=a.top+("window"==n?0:lr());var u=a.left+("window"==n?0:or());r.left+=u,r.right+=u}return r.top+=s,r.bottom+=s,r}function ar(e,t,r){if("div"==r)return t;var n=t.left,i=t.top;if("page"==r)n-=or(),i-=lr();else if("local"==r||!r){var o=e.display.sizer.getBoundingClientRect();n+=o.left,i+=o.top}var l=e.display.lineSpace.getBoundingClientRect();return{left:n-l.left,top:i-l.top}}function ur(e,t,r,n,i){return n||(n=M(e.doc,t.line)),sr(e,n,_t(e,n,t.ch,i),r)}function cr(e,t,r,n,i,o){function l(t,l){var s=Zt(e,i,t,l?"right":"left",o);return l?s.left=s.right:s.right=s.left,sr(e,n,s,r)}function s(e,t,r){var n=a[t],i=n.level%2!=0;return l(r?e-1:e,i!=r)}n=n||M(e.doc,t.line),i||(i=qt(e,n));var a=Se(n,e.doc.direction),u=t.ch,c=t.sticky;if(u>=n.text.length?(u=n.text.length,c="before"):u<=0&&(u=0,c="after"),!a)return l("before"==c?u-1:u,"before"==c);var f=Ce(a,u,c),h=Il,d=s(u,f,"before"==c);return null!=h&&(d.other=s(u,h,"before"!=c)),d}function fr(e,t){var r=0;t=U(e.doc,t),e.options.lineWrapping||(r=yr(e.display)*t.ch);var n=M(e.doc,t.line),i=ye(n)+Rt(e.display);return{left:r,right:r,top:i,bottom:i+n.height}}function hr(e,t,r,n,i){var o=P(e,t,r);return o.xRel=i,n&&(o.outside=!0),o}function dr(e,t,r){var n=e.doc;if((r+=e.display.viewOffset)<0)return hr(n.first,0,null,!0,-1);var i=D(n,r),o=n.first+n.size-1;if(i>o)return hr(n.first+n.size-1,M(n,o).text.length,null,!0,1);t<0&&(t=0);for(var l=M(n,i);;){var s=vr(e,l,i,t,r),a=ue(l),u=a&&a.find(0,!0);if(!a||!(s.ch>u.from.ch||s.ch==u.from.ch&&s.xRel>0))return s;i=W(l=u.to.line)}}function pr(e,t,r,n){var i=function(n){return sr(e,t,Zt(e,r,n),"line")},o=t.text.length,l=k(function(e){return i(e-1).bottom<=n},o,0);return o=k(function(e){return i(e).top>n},l,o),{begin:l,end:o}}function gr(e,t,r,n){return pr(e,t,r,sr(e,t,Zt(e,r,n),"line").top)}function vr(e,t,r,n,i){i-=ye(t);var o,l=0,s=t.text.length,a=qt(e,t);if(Se(t,e.doc.direction)){if(e.options.lineWrapping){var u;u=pr(e,t,a,i),l=u.begin,s=u.end}o=new P(r,l);var c,f,h=cr(e,o,"line",t,a).left,d=h<n?1:-1,p=h-n;do{if(c=p,f=o,null==(o=Me(e,t,o,d))||o.ch<l||s<=("before"==o.sticky?o.ch-1:o.ch)){o=f;break}p=cr(e,o,"line",t,a).left-n}while(d<0!=p<0&&Math.abs(p)<=Math.abs(c));if(Math.abs(p)>Math.abs(c)){if(p<0==c<0)throw new Error("Broke out of infinite loop in coordsCharInner");o=f}}else{var g=k(function(r){var o=sr(e,t,Zt(e,a,r),"line");return o.top>i?(s=Math.min(r,s),!0):!(o.bottom<=i)&&(o.left>n||!(o.right<n)&&n-o.left<o.right-n)},l,s);g=L(t.text,g,1),o=new P(r,g,g==s?"before":"after")}var v=cr(e,o,"line",t,a);return(i<v.top||v.bottom<i)&&(o.outside=!0),o.xRel=n<v.left?-1:n>v.right?1:0,o}function mr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Zl){Zl=n("pre");for(var i=0;i<49;++i)Zl.appendChild(document.createTextNode("x")),Zl.appendChild(n("br"));Zl.appendChild(document.createTextNode("x"))}r(e.measure,Zl);var o=Zl.offsetHeight/50;return o>3&&(e.cachedTextHeight=o),t(e.measure),o||1}function yr(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=n("span","xxxxxxxxxx"),i=n("pre",[t]);r(e.measure,i);var o=t.getBoundingClientRect(),l=(o.right-o.left)/10;return l>2&&(e.cachedCharWidth=l),l||10}function br(e){for(var t=e.display,r={},n={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l)r[e.options.gutters[l]]=o.offsetLeft+o.clientLeft+i,n[e.options.gutters[l]]=o.clientWidth;return{fixedPos:wr(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:r,gutterWidth:n,wrapperWidth:t.wrapper.clientWidth}}function wr(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function xr(e){var t=mr(e.display),r=e.options.lineWrapping,n=r&&Math.max(5,e.display.scroller.clientWidth/yr(e.display)-3);return function(i){if(ve(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l<i.widgets.length;l++)i.widgets[l].height&&(o+=i.widgets[l].height);return r?o+(Math.ceil(i.text.length/n)||1)*t:o+t}}function Cr(e){var t=e.doc,r=xr(e);t.iter(function(e){var t=r(e);t!=e.height&&A(e,t)})}function Sr(e,t,r,n){var i=e.display;if(!r&&"true"==Re(t).getAttribute("cm-not-content"))return null;var o,l,s=i.lineSpace.getBoundingClientRect();try{o=t.clientX-s.left,l=t.clientY-s.top}catch(e){return null}var a,u=dr(e,o,l);if(n&&1==u.xRel&&(a=M(e.doc,u.line).text).length==u.ch){var c=f(a,a.length,e.options.tabSize)-a.length;u=P(u.line,Math.max(0,Math.round((o-Gt(e.display).left)/yr(e.display))-c))}return u}function Lr(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var r=e.display.view,n=0;n<r.length;n++)if((t-=r[n].size)<0)return n}function kr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function Tr(e,t){for(var r=e.doc,n={},i=n.cursors=document.createDocumentFragment(),o=n.selection=document.createDocumentFragment(),l=0;l<r.sel.ranges.length;l++)if(t!==!1||l!=r.sel.primIndex){var s=r.sel.ranges[l];if(!(s.from().line>=e.display.viewTo||s.to().line<e.display.viewFrom)){var a=s.empty();(a||e.options.showCursorWhenSelecting)&&Mr(e,s.head,i),a||Nr(e,s,o)}}return n}function Mr(e,t,r){var i=cr(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),o=r.appendChild(n("div"," ","CodeMirror-cursor"));if(o.style.left=i.left+"px",o.style.top=i.top+"px",o.style.height=Math.max(0,i.bottom-i.top)*e.options.cursorHeight+"px",i.other){var l=r.appendChild(n("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));l.style.display="",l.style.left=i.other.left+"px",l.style.top=i.other.top+"px",l.style.height=.85*(i.other.bottom-i.other.top)+"px"}}function Nr(e,t,r){function i(e,t,r,i){t<0&&(t=0),t=Math.round(t),i=Math.round(i),a.appendChild(n("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==r?f-e:r)+"px;\n height: "+(i-t)+"px"))}function o(t,r,n){function o(r,n){return ur(e,P(t,r),"div",u,n)}var l,a,u=M(s,t),h=u.text.length;return xe(Se(u,s.direction),r||0,null==n?h:n,function(e,t,s){var u,d,p,g=o(e,"left");if(e==t)u=g,d=p=g.left;else{if(u=o(t-1,"right"),"rtl"==s){var v=g;g=u,u=v}d=g.left,p=u.right}null==r&&0==e&&(d=c),u.top-g.top>3&&(i(d,g.top,null,g.bottom),d=c,g.bottom<u.top&&i(d,g.bottom,null,u.top)),null==n&&t==h&&(p=f),(!l||g.top<l.top||g.top==l.top&&g.left<l.left)&&(l=g),(!a||u.bottom>a.bottom||u.bottom==a.bottom&&u.right>a.right)&&(a=u),d<c+1&&(d=c),i(d,u.top,p-d,u.bottom)}),{start:l,end:a}}var l=e.display,s=e.doc,a=document.createDocumentFragment(),u=Gt(e.display),c=u.left,f=Math.max(l.sizerWidth,Vt(e)-l.sizer.offsetLeft)-u.right,h=t.from(),d=t.to();if(h.line==d.line)o(h.line,h.ch,d.ch);else{var p=M(s,h.line),g=M(s,d.line),v=fe(p)==fe(g),m=o(h.line,h.ch,v?p.text.length+1:null).end,y=o(d.line,v?0:null,d.ch).start;v&&(m.top<y.top-2?(i(m.right,m.top,null,m.bottom),i(c,y.top,y.left,y.bottom)):i(m.right,m.top,y.left-m.right,m.bottom)),m.bottom<y.top&&i(c,m.bottom,null,y.top)}r.appendChild(a)}function Or(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var r=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(r=!r)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Ar(e){e.state.focused||(e.display.input.focus(),Dr(e))}function Wr(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,Hr(e))},100)}function Dr(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Ae(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),ol&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Or(e))}function Hr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Ae(e,"blur",e,t),e.state.focused=!1,Cl(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Er(e){for(var t=e.display,r=t.lineDiv.offsetTop,n=0;n<t.view.length;n++){var i=t.view[n],o=void 0;if(!i.hidden){if(nl&&il<8){var l=i.node.offsetTop+i.node.offsetHeight;o=l-r,r=l}else{var s=i.node.getBoundingClientRect();o=s.bottom-s.top}var a=i.line.height-o;if(o<2&&(o=mr(t)),(a>.001||a<-.001)&&(A(i.line,o),Pr(i.line),i.rest))for(var u=0;u<i.rest.length;u++)Pr(i.rest[u])}}}function Pr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t)e.widgets[t].height=e.widgets[t].node.parentNode.offsetHeight}function Fr(e,t,r){var n=r&&null!=r.top?Math.max(0,r.top):e.scroller.scrollTop;n=Math.floor(n-Rt(e));var i=r&&null!=r.bottom?r.bottom:n+e.wrapper.clientHeight,o=D(t,n),l=D(t,i);if(r&&r.ensure){var s=r.ensure.from.line,a=r.ensure.to.line;s<o?(o=s,l=D(t,ye(M(t,s))+e.wrapper.clientHeight)):Math.min(a,t.lastLine())>=l&&(o=D(t,ye(M(t,a))-e.wrapper.clientHeight),l=a)}return{from:o,to:Math.max(l,o+1)}}function Ir(e){var t=e.display,r=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var n=wr(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=n+"px",l=0;l<r.length;l++)if(!r[l].hidden){e.options.fixedGutter&&(r[l].gutter&&(r[l].gutter.style.left=o),r[l].gutterBackground&&(r[l].gutterBackground.style.left=o));var s=r[l].alignable;if(s)for(var a=0;a<s.length;a++)s[a].style.left=o}e.options.fixedGutter&&(t.gutters.style.left=n+i+"px")}}function zr(e){if(!e.options.lineNumbers)return!1;var t=e.doc,r=E(e.options,t.first+t.size-1),i=e.display;if(r.length!=i.lineNumChars){var o=i.measure.appendChild(n("div",[n("div",r)],"CodeMirror-linenumber CodeMirror-gutter-elt")),l=o.firstChild.offsetWidth,s=o.offsetWidth-l;return i.lineGutter.style.width="",i.lineNumInnerWidth=Math.max(l,i.lineGutter.offsetWidth-s)+1,i.lineNumWidth=i.lineNumInnerWidth+s,i.lineNumChars=i.lineNumInnerWidth?r.length:-1,i.lineGutter.style.width=i.lineNumWidth+"px",An(e),!0}return!1}function Rr(e,t){if(!We(e,"scrollCursorIntoView")){var r=e.display,i=r.sizer.getBoundingClientRect(),o=null;if(t.top+i.top<0?o=!0:t.bottom+i.top>(window.innerHeight||document.documentElement.clientHeight)&&(o=!1),null!=o&&!fl){var l=n("div","",null,"position: absolute;\n top: "+(t.top-r.viewOffset-Rt(e.display))+"px;\n height: "+(t.bottom-t.top+Ut(e)+r.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(o),e.display.lineSpace.removeChild(l)}}}function Br(e,t,r,n){null==n&&(n=0);for(var i,o=0;o<5;o++){var l=!1,s=cr(e,t),a=r&&r!=t?cr(e,r):s;i={left:Math.min(s.left,a.left),top:Math.min(s.top,a.top)-n,right:Math.max(s.left,a.left),bottom:Math.max(s.bottom,a.bottom)+n};var u=Ur(e,i),c=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=u.scrollTop&&($r(e,u.scrollTop),Math.abs(e.doc.scrollTop-c)>1&&(l=!0)),null!=u.scrollLeft&&(Zr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(l=!0)),!l)break}return i}function Gr(e,t){var r=Ur(e,t);null!=r.scrollTop&&$r(e,r.scrollTop),null!=r.scrollLeft&&Zr(e,r.scrollLeft)}function Ur(e,t){var r=e.display,n=mr(e.display);t.top<0&&(t.top=0);var i=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:r.scroller.scrollTop,o=Kt(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var s=e.doc.height+Bt(r),a=t.top<n,u=t.bottom>s-n;if(t.top<i)l.scrollTop=a?0:t.top;else if(t.bottom>i+o){var c=Math.min(t.top,(u?s:t.bottom)-o);c!=i&&(l.scrollTop=c)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:r.scroller.scrollLeft,h=Vt(e)-(e.options.fixedGutter?r.gutters.offsetWidth:0),d=t.right-t.left>h;return d&&(t.right=t.left+h),t.left<10?l.scrollLeft=0:t.left<f?l.scrollLeft=Math.max(0,t.left-(d?0:10)):t.right>h+f-3&&(l.scrollLeft=t.right+(d?0:10)-h),l}function Vr(e,t){null!=t&&(Yr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Kr(e){Yr(e);var t=e.getCursor(),r=t,n=t;e.options.lineWrapping||(r=t.ch?P(t.line,t.ch-1):t,n=P(t.line,t.ch+1)),e.curOp.scrollToPos={from:r,to:n,margin:e.options.cursorScrollMargin}}function jr(e,t,r){null==t&&null==r||Yr(e),null!=t&&(e.curOp.scrollLeft=t),null!=r&&(e.curOp.scrollTop=r)}function Xr(e,t){Yr(e),e.curOp.scrollToPos=t}function Yr(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;_r(e,fr(e,t.from),fr(e,t.to),t.margin)}}function _r(e,t,r,n){var i=Ur(e,{left:Math.min(t.left,r.left),top:Math.min(t.top,r.top)-n,right:Math.max(t.right,r.right),bottom:Math.max(t.bottom,r.bottom)+n});jr(e,i.scrollLeft,i.scrollTop)}function $r(e,t){Math.abs(e.doc.scrollTop-t)<2||(Jo||Nn(e,{top:t}),qr(e,t,!0),Jo&&Nn(e),xn(e,100))}function qr(e,t,r){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||r)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Zr(e,t,r,n){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(r?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!n||(e.doc.scrollLeft=t,Ir(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Qr(e){var t=e.display,r=t.gutters.offsetWidth,n=Math.round(e.doc.height+Bt(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?r:0,docHeight:n,scrollHeight:n+Ut(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:r}}function Jr(e,t){t||(t=Qr(e));var r=e.display.barWidth,n=e.display.barHeight;en(e,t);for(var i=0;i<4&&r!=e.display.barWidth||n!=e.display.barHeight;i++)r!=e.display.barWidth&&e.options.lineWrapping&&Er(e),en(e,Qr(e)),r=e.display.barWidth,n=e.display.barHeight}function en(e,t){var r=e.display,n=r.scrollbars.update(t);r.sizer.style.paddingRight=(r.barWidth=n.right)+"px",r.sizer.style.paddingBottom=(r.barHeight=n.bottom)+"px",r.heightForcer.style.borderBottom=n.bottom+"px solid transparent",n.right&&n.bottom?(r.scrollbarFiller.style.display="block",r.scrollbarFiller.style.height=n.bottom+"px",r.scrollbarFiller.style.width=n.right+"px"):r.scrollbarFiller.style.display="",n.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(r.gutterFiller.style.display="block",r.gutterFiller.style.height=n.bottom+"px",r.gutterFiller.style.width=t.gutterWidth+"px"):r.gutterFiller.style.display=""}function tn(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Cl(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new os[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Bl(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,r){"horizontal"==r?Zr(e,t):$r(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function rn(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ls},wt(e.curOp)}function nn(e){Ct(e.curOp,function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;on(e)})}function on(e){for(var t=e.ops,r=0;r<t.length;r++)ln(t[r]);for(var n=0;n<t.length;n++)sn(t[n]);for(var i=0;i<t.length;i++)an(t[i]);for(var o=0;o<t.length;o++)un(t[o]);for(var l=0;l<t.length;l++)cn(t[l])}function ln(e){var t=e.cm,r=t.display;Sn(t),e.updateMaxLine&&we(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<r.viewFrom||e.scrollToPos.to.line>=r.viewTo)||r.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ss(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function sn(e){e.updatedDisplay=e.mustUpdate&&Tn(e.cm,e.update)}function an(e){var t=e.cm,r=t.display;e.updatedDisplay&&Er(t),e.barMeasure=Qr(t),r.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=_t(t,r.maxLine,r.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(r.scroller.clientWidth,r.sizer.offsetLeft+e.adjustWidthTo+Ut(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,r.sizer.offsetLeft+e.adjustWidthTo-Vt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=r.input.prepareSelection(e.focus))}function un(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Zr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var r=e.focus&&e.focus==l()&&(!document.hasFocus||document.hasFocus());e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,r),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Jr(t,e.barMeasure),e.updatedDisplay&&Wn(t,e.barMeasure),e.selectionChanged&&Or(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),r&&Ar(e.cm)}function cn(e){var t=e.cm,r=t.display,n=t.doc;if(e.updatedDisplay&&Mn(t,e.update),null==r.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(r.wheelStartX=r.wheelStartY=null),null!=e.scrollTop&&qr(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Zr(t,e.scrollLeft,!0,!0),e.scrollToPos){Rr(t,Br(t,U(n,e.scrollToPos.from),U(n,e.scrollToPos.to),e.scrollToPos.margin))}var i=e.maybeHiddenMarkers,o=e.maybeUnhiddenMarkers;if(i)for(var l=0;l<i.length;++l)i[l].lines.length||Ae(i[l],"hide");if(o)for(var s=0;s<o.length;++s)o[s].lines.length&&Ae(o[s],"unhide");r.wrapper.offsetHeight&&(n.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&Ae(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function fn(e,t){if(e.curOp)return t();rn(e);try{return t()}finally{nn(e)}}function hn(e,t){return function(){if(e.curOp)return t.apply(e,arguments);rn(e);try{return t.apply(e,arguments)}finally{nn(e)}}}function dn(e){return function(){if(this.curOp)return e.apply(this,arguments);rn(this);try{return e.apply(this,arguments)}finally{nn(this)}}}function pn(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);rn(t);try{return e.apply(this,arguments)}finally{nn(t)}}}function gn(e,t,r,n){null==t&&(t=e.doc.first),null==r&&(r=e.doc.first+e.doc.size),n||(n=0);var i=e.display;if(n&&r<i.viewTo&&(null==i.updateLineNumbers||i.updateLineNumbers>t)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)Fl&&pe(e.doc,t)<i.viewTo&&mn(e);else if(r<=i.viewFrom)Fl&&ge(e.doc,r+n)>i.viewFrom?mn(e):(i.viewFrom+=n,i.viewTo+=n);else if(t<=i.viewFrom&&r>=i.viewTo)mn(e);else if(t<=i.viewFrom){var o=yn(e,r,r+n,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=n):mn(e)}else if(r>=i.viewTo){var l=yn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):mn(e)}else{var s=yn(e,t,t,-1),a=yn(e,r,r+n,1);s&&a?(i.view=i.view.slice(0,s.index).concat(bt(e,s.lineN,a.lineN)).concat(i.view.slice(a.index)),i.viewTo+=n):mn(e)}var u=i.externalMeasured;u&&(r<u.lineN?u.lineN+=n:t<u.lineN+u.size&&(i.externalMeasured=null))}function vn(e,t,r){e.curOp.viewChanged=!0;var n=e.display,i=e.display.externalMeasured;if(i&&t>=i.lineN&&t<i.lineN+i.size&&(n.externalMeasured=null),!(t<n.viewFrom||t>=n.viewTo)){var o=n.view[Lr(e,t)];if(null!=o.node){var l=o.changes||(o.changes=[]);h(l,r)==-1&&l.push(r)}}}function mn(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function yn(e,t,r,n){var i,o=Lr(e,t),l=e.display.view;if(!Fl||r==e.doc.first+e.doc.size)return{index:o,lineN:r};for(var s=e.display.viewFrom,a=0;a<o;a++)s+=l[a].size;if(s!=t){if(n>0){if(o==l.length-1)return null;i=s+l[o].size-t,o++}else i=s-t;t+=i,r+=i}for(;pe(e.doc,r)!=r;){if(o==(n<0?0:l.length-1))return null;r+=n*l[o-(n<0?1:0)].size,o+=n}return{index:o,lineN:r}}function bn(e,t,r){var n=e.display;0==n.view.length||t>=n.viewTo||r<=n.viewFrom?(n.view=bt(e,t,r),n.viewFrom=t):(n.viewFrom>t?n.view=bt(e,t,n.viewFrom).concat(n.view):n.viewFrom<t&&(n.view=n.view.slice(Lr(e,t))),n.viewFrom=t,n.viewTo<r?n.view=n.view.concat(bt(e,n.viewTo,r)):n.viewTo>r&&(n.view=n.view.slice(0,Lr(e,r)))),n.viewTo=r}function wn(e){for(var t=e.display.view,r=0,n=0;n<t.length;n++){var i=t[n];i.hidden||i.node&&!i.changes||++r}return r}function xn(e,t){e.doc.mode.startState&&e.doc.frontier<e.display.viewTo&&e.state.highlight.set(t,u(Cn,e))}function Cn(e){var t=e.doc;if(t.frontier<t.first&&(t.frontier=t.first),!(t.frontier>=e.display.viewTo)){var r=+new Date+e.options.workTime,n=$e(t.mode,et(e,t.frontier)),i=[];t.iter(t.frontier,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(t.frontier>=e.display.viewFrom){var l=o.styles,s=o.text.length>e.options.maxHighlightLength,a=Qe(e,o,s?$e(t.mode,n):n,!0);o.styles=a.styles;var u=o.styleClasses,c=a.classes;c?o.styleClasses=c:u&&(o.styleClasses=null);for(var f=!l||l.length!=o.styles.length||u!=c&&(!u||!c||u.bgClass!=c.bgClass||u.textClass!=c.textClass),h=0;!f&&h<l.length;++h)f=l[h]!=o.styles[h];f&&i.push(t.frontier),o.stateAfter=s?n:$e(t.mode,n)}else o.text.length<=e.options.maxHighlightLength&&tt(e,o.text,n),o.stateAfter=t.frontier%5==0?$e(t.mode,n):null;if(++t.frontier,+new Date>r)return xn(e,e.options.workDelay),!0}),i.length&&fn(e,function(){for(var t=0;t<i.length;t++)vn(e,i[t],"text")})}}function Sn(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=Ut(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=Ut(e)+"px",t.scrollbarsClipped=!0)}function Ln(e){if(e.hasFocus())return null;var t=l();if(!t||!o(e.display.lineDiv,t))return null;var r={activeElt:t};if(window.getSelection){var n=window.getSelection();n.anchorNode&&n.extend&&o(e.display.lineDiv,n.anchorNode)&&(r.anchorNode=n.anchorNode,r.anchorOffset=n.anchorOffset,r.focusNode=n.focusNode,r.focusOffset=n.focusOffset)}return r}function kn(e){if(e&&e.activeElt&&e.activeElt!=l()&&(e.activeElt.focus(),e.anchorNode&&o(document.body,e.anchorNode)&&o(document.body,e.focusNode))){var t=window.getSelection(),r=document.createRange();r.setEnd(e.anchorNode,e.anchorOffset),r.collapse(!1),t.removeAllRanges(),t.addRange(r),t.extend(e.focusNode,e.focusOffset)}}function Tn(e,r){var n=e.display,i=e.doc;if(r.editorIsHidden)return mn(e),!1;if(!r.force&&r.visible.from>=n.viewFrom&&r.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==wn(e))return!1;zr(e)&&(mn(e),r.dims=br(e));var o=i.first+i.size,l=Math.max(r.visible.from-e.options.viewportMargin,i.first),s=Math.min(o,r.visible.to+e.options.viewportMargin);n.viewFrom<l&&l-n.viewFrom<20&&(l=Math.max(i.first,n.viewFrom)),n.viewTo>s&&n.viewTo-s<20&&(s=Math.min(o,n.viewTo)),Fl&&(l=pe(e.doc,l),s=ge(e.doc,s));var a=l!=n.viewFrom||s!=n.viewTo||n.lastWrapHeight!=r.wrapperHeight||n.lastWrapWidth!=r.wrapperWidth;bn(e,l,s),n.viewOffset=ye(M(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var u=wn(e);if(!a&&0==u&&!r.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var c=Ln(e);return u>4&&(n.lineDiv.style.display="none"),On(e,n.updateLineNumbers,r.dims),u>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,kn(c),t(n.cursorDiv),t(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=r.wrapperHeight,n.lastWrapWidth=r.wrapperWidth,xn(e,400)),n.updateLineNumbers=null,!0}function Mn(e,t){for(var r=t.viewport,n=!0;(n&&e.options.lineWrapping&&t.oldDisplayWidth!=Vt(e)||(r&&null!=r.top&&(r={top:Math.min(e.doc.height+Bt(e.display)-Kt(e),r.top)}),t.visible=Fr(e.display,e.doc,r),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Tn(e,t);n=!1){Er(e);var i=Qr(e);kr(e),Jr(e,i),Wn(e,i)}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Nn(e,t){var r=new ss(e,t);if(Tn(e,r)){Er(e),Mn(e,r);var n=Qr(e);kr(e),Jr(e,n),Wn(e,n),r.finish()}}function On(e,r,n){function i(t){var r=t.nextSibling;return ol&&gl&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),r}for(var o=e.display,l=e.options.lineNumbers,s=o.lineDiv,a=s.firstChild,u=o.view,c=o.viewFrom,f=0;f<u.length;f++){var d=u[f];if(d.hidden);else if(d.node&&d.node.parentNode==s){for(;a!=d.node;)a=i(a);var p=l&&null!=r&&r<=c&&d.lineNumber;d.changes&&(h(d.changes,"gutter")>-1&&(p=!1),kt(e,d,c,n)),p&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(E(e.options,c)))),a=d.node.nextSibling}else{var g=Ht(e,d,c,n);s.insertBefore(g,a)}c+=d.size}for(;a;)a=i(a)}function An(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Wn(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+Ut(e)+"px"}function Dn(e){var r=e.display.gutters,i=e.options.gutters;t(r);for(var o=0;o<i.length;++o){var l=i[o],s=r.appendChild(n("div",null,"CodeMirror-gutter "+l));"CodeMirror-linenumbers"==l&&(e.display.lineGutter=s,s.style.width=(e.display.lineNumWidth||1)+"px")}r.style.display=o?"":"none",An(e)}function Hn(e){var t=h(e.gutters,"CodeMirror-linenumbers");t==-1&&e.lineNumbers?e.gutters=e.gutters.concat(["CodeMirror-linenumbers"]):t>-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function En(e){var t=e.wheelDeltaX,r=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==r&&e.detail&&e.axis==e.VERTICAL_AXIS?r=e.detail:null==r&&(r=e.wheelDelta),{x:t,y:r}}function Pn(e){var t=En(e);return t.x*=us,t.y*=us,t}function Fn(e,t){var r=En(t),n=r.x,i=r.y,o=e.display,l=o.scroller,s=l.scrollWidth>l.clientWidth,a=l.scrollHeight>l.clientHeight;if(n&&s||i&&a){if(i&&gl&&ol)e:for(var u=t.target,c=o.view;u!=l;u=u.parentNode)for(var f=0;f<c.length;f++)if(c[f].node==u){e.display.currentWheelTarget=u;break e}if(n&&!Jo&&!al&&null!=us)return i&&a&&$r(e,Math.max(0,l.scrollTop+i*us)),Zr(e,Math.max(0,l.scrollLeft+n*us)),(!i||i&&a)&&Pe(t),void(o.wheelStartX=null);if(i&&null!=us){var h=i*us,d=e.doc.scrollTop,p=d+o.wrapper.clientHeight;h<0?d=Math.max(0,d+h-50):p=Math.min(e.doc.height,p+h+50),Nn(e,{top:d,bottom:p})}as<20&&(null==o.wheelStartX?(o.wheelStartX=l.scrollLeft,o.wheelStartY=l.scrollTop,o.wheelDX=n,o.wheelDY=i,setTimeout(function(){if(null!=o.wheelStartX){var e=l.scrollLeft-o.wheelStartX,t=l.scrollTop-o.wheelStartY,r=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,r&&(us=(us*as+r)/(as+1),++as)}},200)):(o.wheelDX+=n,o.wheelDY+=i))}}function In(e,t){var r=e[t];e.sort(function(e,t){return F(e.from(),t.from())}),t=h(e,r);for(var n=1;n<e.length;n++){var i=e[n],o=e[n-1];if(F(o.to(),i.from())>=0){var l=B(o.from(),i.from()),s=R(o.to(),i.to()),a=o.empty()?i.from()==i.head:o.from()==o.head;n<=t&&--t,e.splice(--n,2,new fs(a?s:l,a?l:s))}}return new cs(e,t)}function zn(e,t){return new cs([new fs(e,t||e)],0)}function Rn(e){return e.text?P(e.from.line+e.text.length-1,g(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Bn(e,t){if(F(e,t.from)<0)return e;if(F(e,t.to)<=0)return Rn(t);var r=e.line+t.text.length-(t.to.line-t.from.line)-1,n=e.ch;return e.line==t.to.line&&(n+=Rn(t).ch-t.to.ch),P(r,n)}function Gn(e,t){for(var r=[],n=0;n<e.sel.ranges.length;n++){var i=e.sel.ranges[n];r.push(new fs(Bn(i.anchor,t),Bn(i.head,t)))}return In(r,e.sel.primIndex)}function Un(e,t,r){return e.line==t.line?P(r.line,e.ch-t.ch+r.ch):P(r.line+(e.line-t.line),e.ch)}function Vn(e,t,r){for(var n=[],i=P(e.first,0),o=i,l=0;l<t.length;l++){var s=t[l],a=Un(s.from,i,o),u=Un(Rn(s),i,o);if(i=s.to,o=u,"around"==r){var c=e.sel.ranges[l],f=F(c.head,c.anchor)<0;n[l]=new fs(f?u:a,f?a:u)}else n[l]=new fs(a,a)}return new cs(n,e.sel.primIndex)}function Kn(e){e.doc.mode=Ye(e.options,e.doc.modeOption),jn(e)}function jn(e){e.doc.iter(function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)}),e.doc.frontier=e.doc.first,xn(e,100),e.state.modeGen++,e.curOp&&gn(e)}function Xn(e,t){
|
50
|
+
return 0==t.from.ch&&0==t.to.ch&&""==g(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Yn(e,t,r,n){function i(e){return r?r[e]:null}function o(e,r,i){at(e,r,i,n),St(e,"change",e,t)}function l(e,t){for(var r=[],o=e;o<t;++o)r.push(new ql(u[o],i(o),n));return r}var s=t.from,a=t.to,u=t.text,c=M(e,s.line),f=M(e,a.line),h=g(u),d=i(u.length-1),p=a.line-s.line;if(t.full)e.insert(0,l(0,u.length)),e.remove(u.length,e.size-u.length);else if(Xn(e,t)){var v=l(0,u.length-1);o(f,f.text,d),p&&e.remove(s.line,p),v.length&&e.insert(s.line,v)}else if(c==f)if(1==u.length)o(c,c.text.slice(0,s.ch)+h+c.text.slice(a.ch),d);else{var m=l(1,u.length-1);m.push(new ql(h+c.text.slice(a.ch),d,n)),o(c,c.text.slice(0,s.ch)+u[0],i(0)),e.insert(s.line+1,m)}else if(1==u.length)o(c,c.text.slice(0,s.ch)+u[0]+f.text.slice(a.ch),i(0)),e.remove(s.line+1,p);else{o(c,c.text.slice(0,s.ch)+u[0],i(0)),o(f,h+f.text.slice(a.ch),d);var y=l(1,u.length-1);p>1&&e.remove(s.line+1,p-1),e.insert(s.line+1,y)}St(e,"change",e,t)}function _n(e,t,r){function n(e,i,o){if(e.linked)for(var l=0;l<e.linked.length;++l){var s=e.linked[l];if(s.doc!=i){var a=o&&s.sharedHist;r&&!a||(t(s.doc,a),n(s.doc,e,a))}}}n(e,null,!0)}function $n(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,Cr(e),Kn(e),qn(e),e.options.lineWrapping||we(e),e.options.mode=t.modeOption,gn(e)}function qn(e){("rtl"==e.doc.direction?s:Cl)(e.display.lineDiv,"CodeMirror-rtl")}function Zn(e){fn(e,function(){qn(e),gn(e)})}function Qn(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Jn(e,t){var r={from:z(t.from),to:Rn(t),text:N(e,t.from,t.to)};return li(e,r,t.from.line,t.to.line+1),_n(e,function(e){return li(e,r,t.from.line,t.to.line+1)},!0),r}function ei(e){for(;e.length;){if(!g(e).ranges)break;e.pop()}}function ti(e,t){return t?(ei(e.done),g(e.done)):e.done.length&&!g(e.done).ranges?g(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),g(e.done)):void 0}function ri(e,t,r,n){var i=e.history;i.undone.length=0;var o,l,s=+new Date;if((i.lastOp==n||i.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&i.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(o=ti(i,i.lastOp==n)))l=g(o.changes),0==F(t.from,t.to)&&0==F(t.from,l.to)?l.to=Rn(t):o.changes.push(Jn(e,t));else{var a=g(i.done);for(a&&a.ranges||oi(e.sel,i.done),o={changes:[Jn(e,t)],generation:i.generation},i.done.push(o);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(r),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=s,i.lastOp=i.lastSelOp=n,i.lastOrigin=i.lastSelOrigin=t.origin,l||Ae(e,"historyAdded")}function ni(e,t,r,n){var i=t.charAt(0);return"*"==i||"+"==i&&r.ranges.length==n.ranges.length&&r.somethingSelected()==n.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function ii(e,t,r,n){var i=e.history,o=n&&n.origin;r==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||ni(e,o,g(i.done),t))?i.done[i.done.length-1]=t:oi(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=r,n&&n.clearRedo!==!1&&ei(i.undone)}function oi(e,t){var r=g(t);r&&r.ranges&&r.equals(e)||t.push(e)}function li(e,t,r,n){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,r),Math.min(e.first+e.size,n),function(r){r.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=r.markedSpans),++o})}function si(e){if(!e)return null;for(var t,r=0;r<e.length;++r)e[r].marker.explicitlyCleared?t||(t=e.slice(0,r)):t&&t.push(e[r]);return t?t.length?t:null:e}function ai(e,t){var r=t["spans_"+e.id];if(!r)return null;for(var n=[],i=0;i<t.text.length;++i)n.push(si(r[i]));return n}function ui(e,t){var r=ai(e,t),n=J(e,t);if(!r)return n;if(!n)return r;for(var i=0;i<r.length;++i){var o=r[i],l=n[i];if(o&&l)e:for(var s=0;s<l.length;++s){for(var a=l[s],u=0;u<o.length;++u)if(o[u].marker==a.marker)continue e;o.push(a)}else l&&(r[i]=l)}return r}function ci(e,t,r){for(var n=[],i=0;i<e.length;++i){var o=e[i];if(o.ranges)n.push(r?cs.prototype.deepCopy.call(o):o);else{var l=o.changes,s=[];n.push({changes:s});for(var a=0;a<l.length;++a){var u=l[a],c=void 0;if(s.push({from:u.from,to:u.to,text:u.text}),t)for(var f in u)(c=f.match(/^spans_(\d+)$/))&&h(t,Number(c[1]))>-1&&(g(s)[f]=u[f],delete u[f])}}}return n}function fi(e,t,r,n){if(e.cm&&e.cm.display.shift||e.extend){var i=t.anchor;if(n){var o=F(r,i)<0;o!=F(n,i)<0?(i=r,r=n):o!=F(r,n)<0&&(r=n)}return new fs(i,r)}return new fs(n||r,r)}function hi(e,t,r,n){yi(e,new cs([fi(e,e.sel.primary(),t,r)],0),n)}function di(e,t,r){for(var n=[],i=0;i<e.sel.ranges.length;i++)n[i]=fi(e,e.sel.ranges[i],t[i],null);yi(e,In(n,e.sel.primIndex),r)}function pi(e,t,r,n){var i=e.sel.ranges.slice(0);i[t]=r,yi(e,In(i,e.sel.primIndex),n)}function gi(e,t,r,n){yi(e,zn(t,r),n)}function vi(e,t,r){var n={ranges:t.ranges,update:function(t){var r=this;this.ranges=[];for(var n=0;n<t.length;n++)r.ranges[n]=new fs(U(e,t[n].anchor),U(e,t[n].head))},origin:r&&r.origin};return Ae(e,"beforeSelectionChange",e,n),e.cm&&Ae(e.cm,"beforeSelectionChange",e.cm,n),n.ranges!=t.ranges?In(n.ranges,n.ranges.length-1):t}function mi(e,t,r){var n=e.history.done,i=g(n);i&&i.ranges?(n[n.length-1]=t,bi(e,t,r)):yi(e,t,r)}function yi(e,t,r){bi(e,t,r),ii(e,e.sel,e.cm?e.cm.curOp.id:NaN,r)}function bi(e,t,r){(He(e,"beforeSelectionChange")||e.cm&&He(e.cm,"beforeSelectionChange"))&&(t=vi(e,t,r)),wi(e,Ci(e,t,r&&r.bias||(F(t.primary().head,e.sel.primary().head)<0?-1:1),!0)),r&&r.scroll===!1||!e.cm||Kr(e.cm)}function wi(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=e.cm.curOp.selectionChanged=!0,De(e.cm)),St(e,"cursorActivity",e))}function xi(e){wi(e,Ci(e,e.sel,null,!1))}function Ci(e,t,r,n){for(var i,o=0;o<t.ranges.length;o++){var l=t.ranges[o],s=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[o],a=Li(e,l.anchor,s&&s.anchor,r,n),u=Li(e,l.head,s&&s.head,r,n);(i||a!=l.anchor||u!=l.head)&&(i||(i=t.ranges.slice(0,o)),i[o]=new fs(a,u))}return i?In(i,t.primIndex):t}function Si(e,t,r,n,i){var o=M(e,t.line);if(o.markedSpans)for(var l=0;l<o.markedSpans.length;++l){var s=o.markedSpans[l],a=s.marker;if((null==s.from||(a.inclusiveLeft?s.from<=t.ch:s.from<t.ch))&&(null==s.to||(a.inclusiveRight?s.to>=t.ch:s.to>t.ch))){if(i&&(Ae(a,"beforeCursorEnter"),a.explicitlyCleared)){if(o.markedSpans){--l;continue}break}if(!a.atomic)continue;if(r){var u=a.find(n<0?1:-1),c=void 0;if((n<0?a.inclusiveRight:a.inclusiveLeft)&&(u=ki(e,u,-n,u&&u.line==t.line?o:null)),u&&u.line==t.line&&(c=F(u,r))&&(n<0?c<0:c>0))return Si(e,u,t,n,i)}var f=a.find(n<0?-1:1);return(n<0?a.inclusiveLeft:a.inclusiveRight)&&(f=ki(e,f,n,f.line==t.line?o:null)),f?Si(e,f,t,n,i):null}}return t}function Li(e,t,r,n,i){var o=n||1,l=Si(e,t,r,o,i)||!i&&Si(e,t,r,o,!0)||Si(e,t,r,-o,i)||!i&&Si(e,t,r,-o,!0);return l?l:(e.cantEdit=!0,P(e.first,0))}function ki(e,t,r,n){return r<0&&0==t.ch?t.line>e.first?U(e,P(t.line-1)):null:r>0&&t.ch==(n||M(e,t.line)).text.length?t.line<e.first+e.size-1?P(t.line+1,0):null:new P(t.line,t.ch+r)}function Ti(e){e.setSelection(P(e.firstLine(),0),P(e.lastLine()),Ol)}function Mi(e,t,r){var n={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return n.canceled=!0}};return r&&(n.update=function(t,r,i,o){t&&(n.from=U(e,t)),r&&(n.to=U(e,r)),i&&(n.text=i),void 0!==o&&(n.origin=o)}),Ae(e,"beforeChange",e,n),e.cm&&Ae(e.cm,"beforeChange",e.cm,n),n.canceled?null:{from:n.from,to:n.to,text:n.text,origin:n.origin}}function Ni(e,t,r){if(e.cm){if(!e.cm.curOp)return hn(e.cm,Ni)(e,t,r);if(e.cm.state.suppressEdits)return}if(!(He(e,"beforeChange")||e.cm&&He(e.cm,"beforeChange"))||(t=Mi(e,t,!0))){var n=Pl&&!r&&te(e,t.from,t.to);if(n)for(var i=n.length-1;i>=0;--i)Oi(e,{from:n[i].from,to:n[i].to,text:i?[""]:t.text});else Oi(e,t)}}function Oi(e,t){if(1!=t.text.length||""!=t.text[0]||0!=F(t.from,t.to)){var r=Gn(e,t);ri(e,t,r,e.cm?e.cm.curOp.id:NaN),Di(e,t,r,J(e,t));var n=[];_n(e,function(e,r){r||h(n,e.history)!=-1||(Ii(e.history,t),n.push(e.history)),Di(e,t,null,J(e,t))})}}function Ai(e,t,r){if(!e.cm||!e.cm.state.suppressEdits||r){for(var n,i=e.history,o=e.sel,l="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,a=0;a<l.length&&(n=l[a],r?!n.ranges||n.equals(e.sel):n.ranges);a++);if(a!=l.length){for(i.lastOrigin=i.lastSelOrigin=null;n=l.pop(),n.ranges;){if(oi(n,s),r&&!n.equals(e.sel))return void yi(e,n,{clearRedo:!1});o=n}var u=[];oi(o,s),s.push({changes:u,generation:i.generation}),i.generation=n.generation||++i.maxGeneration;for(var c=He(e,"beforeChange")||e.cm&&He(e.cm,"beforeChange"),f=n.changes.length-1;f>=0;--f){var d=function(r){var i=n.changes[r];if(i.origin=t,c&&!Mi(e,i,!1))return l.length=0,{};u.push(Jn(e,i)),Di(e,i,r?Gn(e,i):g(l),ui(e,i)),!r&&e.cm&&e.cm.scrollIntoView({from:i.from,to:Rn(i)});var o=[];_n(e,function(e,t){t||h(o,e.history)!=-1||(Ii(e.history,i),o.push(e.history)),Di(e,i,null,ui(e,i))})}(f);if(d)return d.v}}}}function Wi(e,t){if(0!=t&&(e.first+=t,e.sel=new cs(v(e.sel.ranges,function(e){return new fs(P(e.anchor.line+t,e.anchor.ch),P(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){gn(e.cm,e.first,e.first-t,t);for(var r=e.cm.display,n=r.viewFrom;n<r.viewTo;n++)vn(e.cm,n,"gutter")}}function Di(e,t,r,n){if(e.cm&&!e.cm.curOp)return hn(e.cm,Di)(e,t,r,n);if(t.to.line<e.first)return void Wi(e,t.text.length-1-(t.to.line-t.from.line));if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var i=t.text.length-1-(e.first-t.from.line);Wi(e,i),t={from:P(e.first,0),to:P(t.to.line+i,t.to.ch),text:[g(t.text)],origin:t.origin}}var o=e.lastLine();t.to.line>o&&(t={from:t.from,to:P(o,M(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=N(e,t.from,t.to),r||(r=Gn(e,t)),e.cm?Hi(e.cm,t,n):Yn(e,t,n),bi(e,r,Ol)}}function Hi(e,t,r){var n=e.doc,i=e.display,o=t.from,l=t.to,s=!1,a=o.line;e.options.lineWrapping||(a=W(fe(M(n,o.line))),n.iter(a,l.line+1,function(e){if(e==i.maxLine)return s=!0,!0})),n.sel.contains(t.from,t.to)>-1&&De(e),Yn(n,t,r,xr(e)),e.options.lineWrapping||(n.iter(a,o.line+t.text.length,function(e){var t=be(e);t>i.maxLineLength&&(i.maxLine=e,i.maxLineLength=t,i.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),n.frontier=Math.min(n.frontier,o.line),xn(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?gn(e):o.line!=l.line||1!=t.text.length||Xn(e.doc,t)?gn(e,o.line,l.line+1,u):vn(e,o.line,"text");var c=He(e,"changes"),f=He(e,"change");if(f||c){var h={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};f&&St(e,"change",e,h),c&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(h)}e.display.selForContextMenu=null}function Ei(e,t,r,n,i){if(n||(n=r),F(n,r)<0){var o=n;n=r,r=o}"string"==typeof t&&(t=e.splitLines(t)),Ni(e,{from:r,to:n,text:t,origin:i})}function Pi(e,t,r,n){r<e.line?e.line+=n:t<e.line&&(e.line=t,e.ch=0)}function Fi(e,t,r,n){for(var i=0;i<e.length;++i){var o=e[i],l=!0;if(o.ranges){o.copied||(o=e[i]=o.deepCopy(),o.copied=!0);for(var s=0;s<o.ranges.length;s++)Pi(o.ranges[s].anchor,t,r,n),Pi(o.ranges[s].head,t,r,n)}else{for(var a=0;a<o.changes.length;++a){var u=o.changes[a];if(r<u.from.line)u.from=P(u.from.line+n,u.from.ch),u.to=P(u.to.line+n,u.to.ch);else if(t<=u.to.line){l=!1;break}}l||(e.splice(0,i+1),i=0)}}}function Ii(e,t){var r=t.from.line,n=t.to.line,i=t.text.length-(n-r)-1;Fi(e.done,r,n,i),Fi(e.undone,r,n,i)}function zi(e,t,r,n){var i=t,o=t;return"number"==typeof t?o=M(e,G(e,t)):i=W(t),null==i?null:(n(o,i)&&e.cm&&vn(e.cm,i,r),o)}function Ri(e,t,r){ye(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Vr(e,r)}function Bi(e,t,r,n){var i=new ps(e,r,n),o=e.cm;return o&&i.noHScroll&&(o.display.alignWidgets=!0),zi(e,t,"widget",function(t){var r=t.widgets||(t.widgets=[]);if(null==i.insertAt?r.push(i):r.splice(Math.min(r.length-1,Math.max(0,i.insertAt)),0,i),i.line=t,o&&!ve(e,t)){var n=ye(t)<e.scrollTop;A(t,t.height+It(i)),n&&Vr(o,i.height),o.curOp.forceUpdate=!0}return!0}),St(o,"lineWidgetAdded",o,i,"number"==typeof t?t:W(t)),i}function Gi(e,t,r,n,o){if(n&&n.shared)return Ui(e,t,r,n,o);if(e.cm&&!e.cm.curOp)return hn(e.cm,Gi)(e,t,r,n,o);var l=new vs(e,o),s=F(t,r);if(n&&c(n,l,!1),s>0||0==s&&l.clearWhenEmpty!==!1)return l;if(l.replacedWith&&(l.collapsed=!0,l.widgetNode=i("span",[l.replacedWith],"CodeMirror-widget"),n.handleMouseEvents||l.widgetNode.setAttribute("cm-ignore-events","true"),n.insertLeft&&(l.widgetNode.insertLeft=!0)),l.collapsed){if(ce(e,t.line,t,r,l)||t.line!=r.line&&ce(e,r.line,t,r,l))throw new Error("Inserting collapsed marker partially overlapping an existing one");X()}l.addToHistory&&ri(e,{from:t,to:r,origin:"markText"},e.sel,NaN);var a,u=t.line,f=e.cm;if(e.iter(u,r.line+1,function(e){f&&l.collapsed&&!f.options.lineWrapping&&fe(e)==f.display.maxLine&&(a=!0),l.collapsed&&u!=t.line&&A(e,0),q(e,new Y(l,u==t.line?t.ch:null,u==r.line?r.ch:null)),++u}),l.collapsed&&e.iter(t.line,r.line+1,function(t){ve(e,t)&&A(t,0)}),l.clearOnEnter&&Bl(l,"beforeCursorEnter",function(){return l.clear()}),l.readOnly&&(j(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),l.collapsed&&(l.id=++gs,l.atomic=!0),f){if(a&&(f.curOp.updateMaxLine=!0),l.collapsed)gn(f,t.line,r.line+1);else if(l.className||l.title||l.startStyle||l.endStyle||l.css)for(var h=t.line;h<=r.line;h++)vn(f,h,"text");l.atomic&&xi(f.doc),St(f,"markerAdded",f,l)}return l}function Ui(e,t,r,n,i){n=c(n),n.shared=!1;var o=[Gi(e,t,r,n,i)],l=o[0],s=n.widgetNode;return _n(e,function(e){s&&(n.widgetNode=s.cloneNode(!0)),o.push(Gi(e,U(e,t),U(e,r),n,i));for(var a=0;a<e.linked.length;++a)if(e.linked[a].isParent)return;l=g(o)}),new ms(o,l)}function Vi(e){return e.findMarks(P(e.first,0),e.clipPos(P(e.lastLine())),function(e){return e.parent})}function Ki(e,t){for(var r=0;r<t.length;r++){var n=t[r],i=n.find(),o=e.clipPos(i.from),l=e.clipPos(i.to);if(F(o,l)){var s=Gi(e,o,l,n.primary,n.primary.type);n.markers.push(s),s.parent=n}}}function ji(e){for(var t=0;t<e.length;t++)!function(t){var r=e[t],n=[r.primary.doc];_n(r.primary.doc,function(e){return n.push(e)});for(var i=0;i<r.markers.length;i++){var o=r.markers[i];h(n,o.doc)==-1&&(o.parent=null,r.markers.splice(i--,1))}}(t)}function Xi(e){var t=this;if($i(t),!We(t,e)&&!zt(t.display,e)){Pe(e),nl&&(ws=+new Date);var r=Sr(t,e,!0),n=e.dataTransfer.files;if(r&&!t.isReadOnly())if(n&&n.length&&window.FileReader&&window.File)for(var i=n.length,o=Array(i),l=0,s=0;s<i;++s)!function(e,n){if(!t.options.allowDropFileTypes||h(t.options.allowDropFileTypes,e.type)!=-1){var s=new FileReader;s.onload=hn(t,function(){var e=s.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(e)&&(e=""),o[n]=e,++l==i){r=U(t.doc,r);var a={from:r,to:r,text:t.doc.splitLines(o.join(t.doc.lineSeparator())),origin:"paste"};Ni(t.doc,a),mi(t.doc,zn(r,Rn(a)))}}),s.readAsText(e)}}(n[s],s);else{if(t.state.draggingText&&t.doc.sel.contains(r)>-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var a=e.dataTransfer.getData("Text");if(a){var u;if(t.state.draggingText&&!t.state.draggingText.copy&&(u=t.listSelections()),bi(t.doc,zn(r,r)),u)for(var c=0;c<u.length;++c)Ei(t.doc,"",u[c].anchor,u[c].head,"drag");t.replaceSelection(a,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Yi(e,t){if(nl&&(!e.state.draggingText||+new Date-ws<100))return void ze(t);if(!We(e,t)&&!zt(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!ul)){var r=n("img",null,null,"position: fixed; left: 0; top: 0;");r.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",al&&(r.width=r.height=1,e.display.wrapper.appendChild(r),r._top=r.offsetTop),t.dataTransfer.setDragImage(r,0,0),al&&r.parentNode.removeChild(r)}}function _i(e,t){var i=Sr(e,t);if(i){var o=document.createDocumentFragment();Mr(e,i,o),e.display.dragCursor||(e.display.dragCursor=n("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),r(e.display.dragCursor,o)}}function $i(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function qi(e){if(document.body.getElementsByClassName)for(var t=document.body.getElementsByClassName("CodeMirror"),r=0;r<t.length;r++){var n=t[r].CodeMirror;n&&e(n)}}function Zi(){xs||(Qi(),xs=!0)}function Qi(){var e;Bl(window,"resize",function(){null==e&&(e=setTimeout(function(){e=null,qi(Ji)},100))}),Bl(window,"blur",function(){return qi(Hr)})}function Ji(e){var t=e.display;t.lastWrapHeight==t.wrapper.clientHeight&&t.lastWrapWidth==t.wrapper.clientWidth||(t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize())}function eo(e){var t=e.split(/-(?!$)/);e=t[t.length-1];for(var r,n,i,o,l=0;l<t.length-1;l++){var s=t[l];if(/^(cmd|meta|m)$/i.test(s))o=!0;else if(/^a(lt)?$/i.test(s))r=!0;else if(/^(c|ctrl|control)$/i.test(s))n=!0;else{if(!/^s(hift)?$/i.test(s))throw new Error("Unrecognized modifier name: "+s);i=!0}}return r&&(e="Alt-"+e),n&&(e="Ctrl-"+e),o&&(e="Cmd-"+e),i&&(e="Shift-"+e),e}function to(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(/^(name|fallthrough|(de|at)tach)$/.test(r))continue;if("..."==n){delete e[r];continue}for(var i=v(r.split(" "),eo),o=0;o<i.length;o++){var l=void 0,s=void 0;o==i.length-1?(s=i.join(" "),l=n):(s=i.slice(0,o+1).join(" "),l="...");var a=t[s];if(a){if(a!=l)throw new Error("Inconsistent bindings for "+s)}else t[s]=l}delete e[r]}for(var u in t)e[u]=t[u];return e}function ro(e,t,r,n){t=oo(t);var i=t.call?t.call(e,n):t[e];if(i===!1)return"nothing";if("..."===i)return"multi";if(null!=i&&r(i))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return ro(e,t.fallthrough,r,n);for(var o=0;o<t.fallthrough.length;o++){var l=ro(e,t.fallthrough[o],r,n);if(l)return l}}}function no(e){var t="string"==typeof e?e:Cs[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function io(e,t){if(al&&34==e.keyCode&&e.char)return!1;var r=Cs[e.keyCode],n=r;return null!=n&&!e.altGraphKey&&(e.altKey&&"Alt"!=r&&(n="Alt-"+n),(wl?e.metaKey:e.ctrlKey)&&"Ctrl"!=r&&(n="Ctrl-"+n),(wl?e.ctrlKey:e.metaKey)&&"Cmd"!=r&&(n="Cmd-"+n),!t&&e.shiftKey&&"Shift"!=r&&(n="Shift-"+n),n)}function oo(e){return"string"==typeof e?Ts[e]:e}function lo(e,t){for(var r=e.doc.sel.ranges,n=[],i=0;i<r.length;i++){for(var o=t(r[i]);n.length&&F(o.from,g(n).to)<=0;){var l=n.pop();if(F(l.from,o.from)<0){o.from=l.from;break}}n.push(o)}fn(e,function(){for(var t=n.length-1;t>=0;t--)Ei(e.doc,"",n[t].from,n[t].to,"+delete");Kr(e)})}function so(e,t){var r=M(e.doc,t),n=fe(r);return n!=r&&(t=W(n)),Te(!0,e,n,t,1)}function ao(e,t){var r=M(e.doc,t),n=he(r);return n!=r&&(t=W(n)),Te(!0,e,r,t,-1)}function uo(e,t){var r=so(e,t.line),n=M(e.doc,r.line),i=Se(n,e.doc.direction);if(!i||0==i[0].level){var o=Math.max(0,n.text.search(/\S/)),l=t.line==r.line&&t.ch<=o&&t.ch;return P(r.line,l?0:o,r.sticky)}return r}function co(e,t,r){if("string"==typeof t&&!(t=Os[t]))return!1;e.display.input.ensurePolled();var n=e.display.shift,i=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r&&(e.display.shift=!1),i=t(e)!=Nl}finally{e.display.shift=n,e.state.suppressEdits=!1}return i}function fo(e,t,r){for(var n=0;n<e.state.keyMaps.length;n++){var i=ro(t,e.state.keyMaps[n],r,e);if(i)return i}return e.options.extraKeys&&ro(t,e.options.extraKeys,r,e)||ro(t,e.options.keyMap,r,e)}function ho(e,t,r,n){var i=e.state.keySeq;if(i){if(no(t))return"handled";As.set(50,function(){e.state.keySeq==i&&(e.state.keySeq=null,e.display.input.reset())}),t=i+" "+t}var o=fo(e,t,n);return"multi"==o&&(e.state.keySeq=t),"handled"==o&&St(e,"keyHandled",e,t,r),"handled"!=o&&"multi"!=o||(Pe(r),Or(e)),i&&!o&&/\'$/.test(t)?(Pe(r),!0):!!o}function po(e,t){var r=io(t,!0);return!!r&&(t.shiftKey&&!e.state.keySeq?ho(e,"Shift-"+r,t,function(t){return co(e,t,!0)})||ho(e,r,t,function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return co(e,t)}):ho(e,r,t,function(t){return co(e,t)}))}function go(e,t,r){return ho(e,"'"+r+"'",t,function(t){return co(e,t,!0)})}function vo(e){var t=this;if(t.curOp.focus=l(),!We(t,e)){nl&&il<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var n=po(t,e);al&&(Ws=n?r:null,!n&&88==r&&!Kl&&(gl?e.metaKey:e.ctrlKey)&&t.replaceSelection("",null,"cut")),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||mo(t)}}function mo(e){function t(e){18!=e.keyCode&&e.altKey||(Cl(r,"CodeMirror-crosshair"),Oe(document,"keyup",t),Oe(document,"mouseover",t))}var r=e.display.lineDiv;s(r,"CodeMirror-crosshair"),Bl(document,"keyup",t),Bl(document,"mouseover",t)}function yo(e){16==e.keyCode&&(this.doc.sel.shift=!1),We(this,e)}function bo(e){var t=this;if(!(zt(t.display,e)||We(t,e)||e.ctrlKey&&!e.altKey||gl&&e.metaKey)){var r=e.keyCode,n=e.charCode;if(al&&r==Ws)return Ws=null,void Pe(e);if(!al||e.which&&!(e.which<10)||!po(t,e)){var i=String.fromCharCode(null==n?r:n);"\b"!=i&&(go(t,e,i)||t.display.input.onKeyPress(e))}}}function wo(e){var t=this,r=t.display;if(!(We(t,e)||r.activeTouch&&r.input.supportsTouch())){if(r.input.ensurePolled(),r.shift=e.shiftKey,zt(r,e))return void(ol||(r.scroller.draggable=!1,setTimeout(function(){return r.scroller.draggable=!0},100)));if(!ko(t,e)){var n=Sr(t,e);switch(window.focus(),Be(e)){case 1:t.state.selectingText?t.state.selectingText(e):n?xo(t,e,n):Re(e)==r.scroller&&Pe(e);break;case 2:ol&&(t.state.lastMiddleDown=+new Date),n&&hi(t.doc,n),setTimeout(function(){return r.input.focus()},20),Pe(e);break;case 3:xl?To(t,e):Wr(t)}}}}function xo(e,t,r){nl?setTimeout(u(Ar,e),0):e.curOp.focus=l();var n,i=+new Date;Ns&&Ns.time>i-400&&0==F(Ns.pos,r)?n="triple":Ms&&Ms.time>i-400&&0==F(Ms.pos,r)?(n="double",Ns={time:i,pos:r}):(n="single",Ms={time:i,pos:r});var o,s=e.doc.sel,a=gl?t.metaKey:t.ctrlKey;e.options.dragDrop&&Gl&&!e.isReadOnly()&&"single"==n&&(o=s.contains(r))>-1&&(F((o=s.ranges[o]).from(),r)<0||r.xRel>0)&&(F(o.to(),r)>0||r.xRel<0)?Co(e,t,r,a):So(e,t,r,n,a)}function Co(e,t,r,n){var i=e.display,o=!1,l=hn(e,function(t){ol&&(i.scroller.draggable=!1),e.state.draggingText=!1,Oe(document,"mouseup",l),Oe(document,"mousemove",s),Oe(i.scroller,"dragstart",a),Oe(i.scroller,"drop",l),o||(Pe(t),n||hi(e.doc,r),ol||nl&&9==il?setTimeout(function(){document.body.focus(),i.input.focus()},20):i.input.focus())}),s=function(e){o=o||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},a=function(){return o=!0};ol&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=gl?t.altKey:t.ctrlKey,i.scroller.dragDrop&&i.scroller.dragDrop(),Bl(document,"mouseup",l),Bl(document,"mousemove",s),Bl(i.scroller,"dragstart",a),Bl(i.scroller,"drop",l),Wr(e),setTimeout(function(){return i.input.focus()},20)}function So(e,t,r,n,i){function o(t){if(0!=F(b,t))if(b=t,"rect"==n){for(var i=[],o=e.options.tabSize,l=f(M(c,r.line).text,r.ch,o),s=f(M(c,t.line).text,t.ch,o),a=Math.min(l,s),u=Math.max(l,s),v=Math.min(r.line,t.line),m=Math.min(e.lastLine(),Math.max(r.line,t.line));v<=m;v++){var y=M(c,v).text,w=d(y,a,o);a==u?i.push(new fs(P(v,w),P(v,w))):y.length>w&&i.push(new fs(P(v,w),P(v,d(y,u,o))))}i.length||i.push(new fs(r,r)),yi(c,In(g.ranges.slice(0,p).concat(i),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var x=h,C=x.anchor,S=t;if("single"!=n){var L;L="double"==n?e.findWordAt(t):new fs(P(t.line,0),U(c,P(t.line+1,0))),F(L.anchor,C)>0?(S=L.head,C=B(x.from(),L.anchor)):(S=L.anchor,C=R(x.to(),L.head))}var k=g.ranges.slice(0);k[p]=new fs(U(c,C),S),yi(c,In(k,p),Al)}}function s(t){var r=++x,i=Sr(e,t,!0,"rect"==n);if(i)if(0!=F(i,b)){e.curOp.focus=l(),o(i);var a=Fr(u,c);(i.line>=a.to||i.line<a.from)&&setTimeout(hn(e,function(){x==r&&s(t)}),150)}else{var f=t.clientY<w.top?-20:t.clientY>w.bottom?20:0;f&&setTimeout(hn(e,function(){x==r&&(u.scroller.scrollTop+=f,s(t))}),50)}}function a(t){e.state.selectingText=!1,x=1/0,Pe(t),u.input.focus(),Oe(document,"mousemove",C),Oe(document,"mouseup",S),c.history.lastSelOrigin=null}var u=e.display,c=e.doc;Pe(t);var h,p,g=c.sel,v=g.ranges;if(i&&!t.shiftKey?(p=c.sel.contains(r),h=p>-1?v[p]:new fs(r,r)):(h=c.sel.primary(),p=c.sel.primIndex),vl?t.shiftKey&&t.metaKey:t.altKey)n="rect",i||(h=new fs(r,r)),r=Sr(e,t,!0,!0),p=-1;else if("double"==n){var m=e.findWordAt(r);h=e.display.shift||c.extend?fi(c,h,m.anchor,m.head):m}else if("triple"==n){var y=new fs(P(r.line,0),U(c,P(r.line+1,0)));h=e.display.shift||c.extend?fi(c,h,y.anchor,y.head):y}else h=fi(c,h,r);i?p==-1?(p=v.length,yi(c,In(v.concat([h]),p),{scroll:!1,origin:"*mouse"})):v.length>1&&v[p].empty()&&"single"==n&&!t.shiftKey?(yi(c,In(v.slice(0,p).concat(v.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),g=c.sel):pi(c,p,h,Al):(p=0,yi(c,new cs([h],0),Al),g=c.sel);var b=r,w=u.wrapper.getBoundingClientRect(),x=0,C=hn(e,function(e){Be(e)?s(e):a(e)}),S=hn(e,a);e.state.selectingText=S,Bl(document,"mousemove",C),Bl(document,"mouseup",S)}function Lo(e,t,r,n){var i,o;try{i=t.clientX,o=t.clientY}catch(e){return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;n&&Pe(t);var l=e.display,s=l.lineDiv.getBoundingClientRect();if(o>s.bottom||!He(e,r))return Ie(t);o-=s.top-l.viewOffset;for(var a=0;a<e.options.gutters.length;++a){var u=l.gutters.childNodes[a];if(u&&u.getBoundingClientRect().right>=i){return Ae(e,r,e,D(e.doc,o),e.options.gutters[a],t),Ie(t)}}}function ko(e,t){return Lo(e,t,"gutterClick",!0)}function To(e,t){zt(e.display,t)||Mo(e,t)||We(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Mo(e,t){return!!He(e,"gutterContextMenu")&&Lo(e,t,"gutterContextMenu",!1)}function No(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),ir(e)}function Oo(e){Dn(e),gn(e),Ir(e)}function Ao(e,t,r){if(!t!=!(r&&r!=Ds)){var n=e.display.dragFunctions,i=t?Bl:Oe;i(e.display.scroller,"dragstart",n.start),i(e.display.scroller,"dragenter",n.enter),i(e.display.scroller,"dragover",n.over),i(e.display.scroller,"dragleave",n.leave),i(e.display.scroller,"drop",n.drop)}}function Wo(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Cl(e.display.wrapper,"CodeMirror-wrap"),we(e)),Cr(e),gn(e),ir(e),setTimeout(function(){return Jr(e)},100)}function Do(e,t){var r=this;if(!(this instanceof Do))return new Do(e,t);this.options=t=t?c(t):{},c(Hs,t,!1),Hn(t);var n=t.value;"string"==typeof n&&(n=new bs(n,t.mode,null,t.lineSeparator,t.direction)),this.doc=n;var i=new Do.inputStyles[t.inputStyle](this),o=this.display=new T(e,n,i);o.wrapper.CodeMirror=this,Dn(this),No(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),tn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Ll,keySeq:null,specialChars:null},t.autofocus&&!pl&&o.input.focus(),nl&&il<11&&setTimeout(function(){return r.display.input.reset(!0)},20),Ho(this),Zi(),rn(this),this.curOp.forceUpdate=!0,$n(this,n),t.autofocus&&!pl||this.hasFocus()?setTimeout(u(Dr,this),20):Hr(this);for(var l in Es)Es.hasOwnProperty(l)&&Es[l](r,t[l],Ds);zr(this),t.finishInit&&t.finishInit(this);for(var s=0;s<Ps.length;++s)Ps[s](r);nn(this),ol&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(o.lineDiv).textRendering&&(o.lineDiv.style.textRendering="auto")}function Ho(e){function t(){i.activeTouch&&(o=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function r(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}function n(e,t){if(null==t.left)return!0;var r=t.left-e.left,n=t.top-e.top;return r*r+n*n>400}var i=e.display;Bl(i.scroller,"mousedown",hn(e,wo)),nl&&il<11?Bl(i.scroller,"dblclick",hn(e,function(t){if(!We(e,t)){var r=Sr(e,t);if(r&&!ko(e,t)&&!zt(e.display,t)){Pe(t);var n=e.findWordAt(r);hi(e.doc,n.anchor,n.head)}}})):Bl(i.scroller,"dblclick",function(t){return We(e,t)||Pe(t)}),xl||Bl(i.scroller,"contextmenu",function(t){return To(e,t)});var o,l={end:0};Bl(i.scroller,"touchstart",function(t){if(!We(e,t)&&!r(t)){i.input.ensurePolled(),clearTimeout(o);var n=+new Date;i.activeTouch={start:n,moved:!1,prev:n-l.end<=300?l:null},1==t.touches.length&&(i.activeTouch.left=t.touches[0].pageX,i.activeTouch.top=t.touches[0].pageY)}}),Bl(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Bl(i.scroller,"touchend",function(r){var o=i.activeTouch;if(o&&!zt(i,r)&&null!=o.left&&!o.moved&&new Date-o.start<300){var l,s=e.coordsChar(i.activeTouch,"page");l=!o.prev||n(o,o.prev)?new fs(s,s):!o.prev.prev||n(o,o.prev.prev)?e.findWordAt(s):new fs(P(s.line,0),U(e.doc,P(s.line+1,0))),e.setSelection(l.anchor,l.head),e.focus(),Pe(r)}t()}),Bl(i.scroller,"touchcancel",t),Bl(i.scroller,"scroll",function(){i.scroller.clientHeight&&($r(e,i.scroller.scrollTop),Zr(e,i.scroller.scrollLeft,!0),Ae(e,"scroll",e))}),Bl(i.scroller,"mousewheel",function(t){return Fn(e,t)}),Bl(i.scroller,"DOMMouseScroll",function(t){return Fn(e,t)}),Bl(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(t){We(e,t)||ze(t)},over:function(t){We(e,t)||(_i(e,t),ze(t))},start:function(t){return Yi(e,t)},drop:hn(e,Xi),leave:function(t){We(e,t)||$i(e)}};var s=i.input.getField();Bl(s,"keyup",function(t){return yo.call(e,t)}),Bl(s,"keydown",hn(e,vo)),Bl(s,"keypress",hn(e,bo)),Bl(s,"focus",function(t){return Dr(e,t)}),Bl(s,"blur",function(t){return Hr(e,t)})}function Eo(e,t,r,n){var i,o=e.doc;null==r&&(r="add"),"smart"==r&&(o.mode.indent?i=et(e,t):r="prev");var l=e.options.tabSize,s=M(o,t),a=f(s.text,null,l);s.stateAfter&&(s.stateAfter=null);var u,c=s.text.match(/^\s*/)[0];if(n||/\S/.test(s.text)){if("smart"==r&&((u=o.mode.indent(i,s.text.slice(c.length),s.text))==Nl||u>150)){if(!n)return;r="prev"}}else u=0,r="not";"prev"==r?u=t>o.first?f(M(o,t-1).text,null,l):0:"add"==r?u=a+e.options.indentUnit:"subtract"==r?u=a-e.options.indentUnit:"number"==typeof r&&(u=a+r),u=Math.max(0,u);var h="",d=0;if(e.options.indentWithTabs)for(var g=Math.floor(u/l);g;--g)d+=l,h+="\t";if(d<u&&(h+=p(u-d)),h!=c)return Ei(o,h,P(t,0),P(t,c.length),"+input"),s.stateAfter=null,!0;for(var v=0;v<o.sel.ranges.length;v++){var m=o.sel.ranges[v];if(m.head.line==t&&m.head.ch<c.length){var y=P(t,c.length);pi(o,v,new fs(y,y));break}}}function Po(e){Fs=e}function Fo(e,t,r,n,i){var o=e.doc;e.display.shift=!1,n||(n=o.sel);var l=e.state.pasteIncoming||"paste"==i,s=Ul(t),a=null;if(l&&n.ranges.length>1)if(Fs&&Fs.text.join("\n")==t){if(n.ranges.length%Fs.text.length==0){a=[];for(var u=0;u<Fs.text.length;u++)a.push(o.splitLines(Fs.text[u]))}}else s.length==n.ranges.length&&(a=v(s,function(e){return[e]}));for(var c,f=n.ranges.length-1;f>=0;f--){var h=n.ranges[f],d=h.from(),p=h.to();h.empty()&&(r&&r>0?d=P(d.line,d.ch-r):e.state.overwrite&&!l?p=P(p.line,Math.min(M(o,p.line).text.length,p.ch+g(s).length)):Fs&&Fs.lineWise&&Fs.text.join("\n")==t&&(d=p=P(d.line,0))),c=e.curOp.updateInput;var m={from:d,to:p,text:a?a[f%a.length]:s,origin:i||(l?"paste":e.state.cutIncoming?"cut":"+input")};Ni(e.doc,m),St(e,"inputRead",e,m)}t&&!l&&zo(e,t),Kr(e),e.curOp.updateInput=c,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function Io(e,t){var r=e.clipboardData&&e.clipboardData.getData("Text");if(r)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||fn(t,function(){return Fo(t,r,0,null,"paste")}),!0}function zo(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var r=e.doc.sel,n=r.ranges.length-1;n>=0;n--){var i=r.ranges[n];if(!(i.head.ch>100||n&&r.ranges[n-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var s=0;s<o.electricChars.length;s++)if(t.indexOf(o.electricChars.charAt(s))>-1){l=Eo(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(M(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=Eo(e,i.head.line,"smart"))
|
51
|
+
;l&&St(e,"electricInput",e,i.head.line)}}}function Ro(e){for(var t=[],r=[],n=0;n<e.doc.sel.ranges.length;n++){var i=e.doc.sel.ranges[n].head.line,o={anchor:P(i,0),head:P(i+1,0)};r.push(o),t.push(e.getRange(o.anchor,o.head))}return{text:t,ranges:r}}function Bo(e,t){e.setAttribute("autocorrect","off"),e.setAttribute("autocapitalize","off"),e.setAttribute("spellcheck",!!t)}function Go(){var e=n("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=n("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ol?e.style.width="1000px":e.setAttribute("wrap","off"),hl&&(e.style.border="1px solid black"),Bo(e),t}function Uo(e,t,r,n,i){function o(){var n=t.line+r;return!(n<e.first||n>=e.first+e.size)&&(t=new P(n,t.ch,t.sticky),u=M(e,n))}function l(n){var l;if(null==(l=i?Me(e.cm,u,t,r):ke(u,t,r))){if(n||!o())return!1;t=Te(i,e.cm,u,t.line,r)}else t=l;return!0}var s=t,a=r,u=M(e,t.line);if("char"==n)l();else if("column"==n)l(!0);else if("word"==n||"group"==n)for(var c=null,f="group"==n,h=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(r<0)||l(!d);d=!1){var p=u.text.charAt(t.ch)||"\n",g=x(p,h)?"w":f&&"\n"==p?"n":!f||/\s/.test(p)?null:"p";if(!f||d||g||(g="s"),c&&c!=g){r<0&&(r=1,l(),t.sticky="after");break}if(g&&(c=g),r>0&&!l(!d))break}var v=Li(e,t,s,a,!0);return I(s,v)&&(v.hitSide=!0),v}function Vo(e,t,r,n){var i,o=e.doc,l=t.left;if("page"==n){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),a=Math.max(s-.5*mr(e.display),3);i=(r>0?t.bottom:t.top)+r*a}else"line"==n&&(i=r>0?t.bottom+3:t.top-3);for(var u;u=dr(e,l,i),u.outside;){if(r<0?i<=0:i>=o.height){u.hitSide=!0;break}i+=5*r}return u}function Ko(e,t){var r=$t(e,t.line);if(!r||r.hidden)return null;var n=M(e.doc,t.line),i=Xt(r,n,t.line),o=Se(n,e.doc.direction),l="left";if(o){l=Ce(o,t.ch)%2?"right":"left"}var s=Qt(i.map,t.ch,l);return s.offset="right"==s.collapse?s.end:s.start,s}function jo(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Xo(e,t){return t&&(e.bad=!0),e}function Yo(e,t,r,n,i){function o(e){return function(t){return t.id==e}}function l(){c&&(u+=f,c=!1)}function s(e){e&&(l(),u+=e)}function a(t){if(1==t.nodeType){var r=t.getAttribute("cm-text");if(null!=r)return void s(r||t.textContent.replace(/\u200b/g,""));var u,h=t.getAttribute("cm-marker");if(h){var d=e.findMarks(P(n,0),P(i+1,0),o(+h));return void(d.length&&(u=d[0].find())&&s(N(e.doc,u.from,u.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var p=/^(pre|div|p)$/i.test(t.nodeName);p&&l();for(var g=0;g<t.childNodes.length;g++)a(t.childNodes[g]);p&&(c=!0)}else 3==t.nodeType&&s(t.nodeValue)}for(var u="",c=!1,f=e.doc.lineSeparator();a(t),t!=r;)t=t.nextSibling;return u}function _o(e,t,r){var n;if(t==e.display.lineDiv){if(!(n=e.display.lineDiv.childNodes[r]))return Xo(e.clipPos(P(e.display.viewTo-1)),!0);t=null,r=0}else for(n=t;;n=n.parentNode){if(!n||n==e.display.lineDiv)return null;if(n.parentNode&&n.parentNode==e.display.lineDiv)break}for(var i=0;i<e.display.view.length;i++){var o=e.display.view[i];if(o.node==n)return $o(o,t,r)}}function $o(e,t,r){function n(t,r,n){for(var i=-1;i<(f?f.length:0);i++)for(var o=i<0?c.map:f[i],l=0;l<o.length;l+=3){var s=o[l+2];if(s==t||s==r){var a=W(i<0?e.line:e.rest[i]),u=o[l]+n;return(n<0||s!=t)&&(u=o[l+(n?1:0)]),P(a,u)}}}var i=e.text.firstChild,l=!1;if(!t||!o(i,t))return Xo(P(W(e.line),0),!0);if(t==i&&(l=!0,t=i.childNodes[r],r=0,!t)){var s=e.rest?g(e.rest):e.line;return Xo(P(W(s),s.text.length),l)}var a=3==t.nodeType?t:null,u=t;for(a||1!=t.childNodes.length||3!=t.firstChild.nodeType||(a=t.firstChild,r&&(r=a.nodeValue.length));u.parentNode!=i;)u=u.parentNode;var c=e.measure,f=c.maps,h=n(a,u,r);if(h)return Xo(h,l);for(var d=u.nextSibling,p=a?a.nodeValue.length-r:0;d;d=d.nextSibling){if(h=n(d,d.firstChild,0))return Xo(P(h.line,h.ch-p),l);p+=d.textContent.length}for(var v=u.previousSibling,m=r;v;v=v.previousSibling){if(h=n(v,v.firstChild,-1))return Xo(P(h.line,h.ch+m),l);m+=v.textContent.length}}function qo(e,t){function r(){e.value=a.getValue()}if(t=t?c(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=l();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}var i;if(e.form&&(Bl(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var s=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=s}}catch(e){}}t.finishInit=function(t){t.save=r,t.getTextArea=function(){return e},t.toTextArea=function(){t.toTextArea=isNaN,r(),e.parentNode.removeChild(t.getWrapperElement()),e.style.display="",e.form&&(Oe(e.form,"submit",r),"function"==typeof e.form.submit&&(e.form.submit=i))}},e.style.display="none";var a=Do(function(t){return e.parentNode.insertBefore(t,e.nextSibling)},t);return a}var Zo=navigator.userAgent,Qo=navigator.platform,Jo=/gecko\/\d/i.test(Zo),el=/MSIE \d/.test(Zo),tl=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Zo),rl=/Edge\/(\d+)/.exec(Zo),nl=el||tl||rl,il=nl&&(el?document.documentMode||6:+(rl||tl)[1]),ol=!rl&&/WebKit\//.test(Zo),ll=ol&&/Qt\/\d+\.\d+/.test(Zo),sl=!rl&&/Chrome\//.test(Zo),al=/Opera\//.test(Zo),ul=/Apple Computer/.test(navigator.vendor),cl=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Zo),fl=/PhantomJS/.test(Zo),hl=!rl&&/AppleWebKit/.test(Zo)&&/Mobile\/\w+/.test(Zo),dl=/Android/.test(Zo),pl=hl||dl||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Zo),gl=hl||/Mac/.test(Qo),vl=/\bCrOS\b/.test(Zo),ml=/win/i.test(Qo),yl=al&&Zo.match(/Version\/(\d*\.\d*)/);yl&&(yl=Number(yl[1])),yl&&yl>=15&&(al=!1,ol=!0);var bl,wl=gl&&(ll||al&&(null==yl||yl<12.11)),xl=Jo||nl&&il>=9,Cl=function(t,r){var n=t.className,i=e(r).exec(n);if(i){var o=n.slice(i.index+i[0].length);t.className=n.slice(0,i.index)+(o?i[1]+o:"")}};bl=document.createRange?function(e,t,r,n){var i=document.createRange();return i.setEnd(n||e,r),i.setStart(e,t),i}:function(e,t,r){var n=document.body.createTextRange();try{n.moveToElementText(e.parentNode)}catch(e){return n}return n.collapse(!0),n.moveEnd("character",r),n.moveStart("character",t),n};var Sl=function(e){e.select()};hl?Sl=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:nl&&(Sl=function(e){try{e.select()}catch(e){}});var Ll=function(){this.id=null};Ll.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var kl,Tl,Ml=30,Nl={toString:function(){return"CodeMirror.Pass"}},Ol={scroll:!1},Al={origin:"*mouse"},Wl={origin:"+move"},Dl=[""],Hl=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,El=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,Pl=!1,Fl=!1,Il=null,zl=function(){function e(e){return e<=247?r.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?n.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,r){this.level=e,this.from=t,this.to=r}var r="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",n="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",i=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,o=/[stwN]/,l=/[LRr]/,s=/[Lb1n]/,a=/[1n]/;return function(r,n){var u="ltr"==n?"L":"R";if(0==r.length||"ltr"==n&&!i.test(r))return!1;for(var c=r.length,f=[],h=0;h<c;++h)f.push(e(r.charCodeAt(h)));for(var d=0,p=u;d<c;++d){var v=f[d];"m"==v?f[d]=p:p=v}for(var m=0,y=u;m<c;++m){var b=f[m];"1"==b&&"r"==y?f[m]="n":l.test(b)&&(y=b,"r"==b&&(f[m]="R"))}for(var w=1,x=f[0];w<c-1;++w){var C=f[w];"+"==C&&"1"==x&&"1"==f[w+1]?f[w]="1":","!=C||x!=f[w+1]||"1"!=x&&"n"!=x||(f[w]=x),x=C}for(var S=0;S<c;++S){var L=f[S];if(","==L)f[S]="N";else if("%"==L){var k=void 0;for(k=S+1;k<c&&"%"==f[k];++k);for(var T=S&&"!"==f[S-1]||k<c&&"1"==f[k]?"1":"N",M=S;M<k;++M)f[M]=T;S=k-1}}for(var N=0,O=u;N<c;++N){var A=f[N];"L"==O&&"1"==A?f[N]="L":l.test(A)&&(O=A)}for(var W=0;W<c;++W)if(o.test(f[W])){var D=void 0;for(D=W+1;D<c&&o.test(f[D]);++D);for(var H="L"==(W?f[W-1]:u),E="L"==(D<c?f[D]:u),P=H==E?H?"L":"R":u,F=W;F<D;++F)f[F]=P;W=D-1}for(var I,z=[],R=0;R<c;)if(s.test(f[R])){var B=R;for(++R;R<c&&s.test(f[R]);++R);z.push(new t(0,B,R))}else{var G=R,U=z.length;for(++R;R<c&&"L"!=f[R];++R);for(var V=G;V<R;)if(a.test(f[V])){G<V&&z.splice(U,0,new t(1,G,V));var K=V;for(++V;V<R&&a.test(f[V]);++V);z.splice(U,0,new t(2,K,V)),G=V}else++V;G<R&&z.splice(U,0,new t(1,G,R))}return 1==z[0].level&&(I=r.match(/^\s+/))&&(z[0].from=I[0].length,z.unshift(new t(0,0,I[0].length))),1==g(z).level&&(I=r.match(/\s+$/))&&(g(z).to-=I[0].length,z.push(new t(0,c-I[0].length,c))),"rtl"==n?z.reverse():z}}(),Rl=[],Bl=function(e,t,r){if(e.addEventListener)e.addEventListener(t,r,!1);else if(e.attachEvent)e.attachEvent("on"+t,r);else{var n=e._handlers||(e._handlers={});n[t]=(n[t]||Rl).concat(r)}},Gl=function(){if(nl&&il<9)return!1;var e=n("div");return"draggable"in e||"dragDrop"in e}(),Ul=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,r=[],n=e.length;t<=n;){var i=e.indexOf("\n",t);i==-1&&(i=e.length);var o=e.slice(t,"\r"==e.charAt(i-1)?i-1:i),l=o.indexOf("\r");l!=-1?(r.push(o.slice(0,l)),t+=l+1):(r.push(o),t=i+1)}return r}:function(e){return e.split(/\r\n?|\n/)},Vl=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},Kl=function(){var e=n("div");return"oncopy"in e||(e.setAttribute("oncopy","return;"),"function"==typeof e.oncopy)}(),jl=null,Xl={},Yl={},_l={},$l=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};$l.prototype.eol=function(){return this.pos>=this.string.length},$l.prototype.sol=function(){return this.pos==this.lineStart},$l.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$l.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$l.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},$l.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},$l.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},$l.prototype.skipToEnd=function(){this.pos=this.string.length},$l.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},$l.prototype.backUp=function(e){this.pos-=e},$l.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=f(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},$l.prototype.indentation=function(){return f(this.string,null,this.tabSize)-(this.lineStart?f(this.string,this.lineStart,this.tabSize):0)},$l.prototype.match=function(e,t,r){if("string"!=typeof e){var n=this.string.slice(this.pos).match(e);return n&&n.index>0?null:(n&&t!==!1&&(this.pos+=n[0].length),n)}var i=function(e){return r?e.toLowerCase():e};if(i(this.string.substr(this.pos,e.length))==i(e))return t!==!1&&(this.pos+=e.length),!0},$l.prototype.current=function(){return this.string.slice(this.start,this.pos)},$l.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}};var ql=function(e,t,r){this.text=e,ne(this,t),this.height=r?r(this):1};ql.prototype.lineNo=function(){return W(this)},Ee(ql);var Zl,Ql={},Jl={},es=null,ts=null,rs={left:0,right:0,top:0,bottom:0},ns=function(e,t,r){this.cm=r;var i=this.vert=n("div",[n("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),o=this.horiz=n("div",[n("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(i),e(o),Bl(i,"scroll",function(){i.clientHeight&&t(i.scrollTop,"vertical")}),Bl(o,"scroll",function(){o.clientWidth&&t(o.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,nl&&il<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ns.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,r=e.scrollHeight>e.clientHeight+1,n=e.nativeBarWidth;if(r){this.vert.style.display="block",this.vert.style.bottom=t?n+"px":"0";var i=e.viewHeight-(t?n:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=r?n+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(r?n:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==n&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:r?n:0,bottom:t?n:0}},ns.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ns.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ns.prototype.zeroWidthHack=function(){var e=gl&&!cl?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Ll,this.disableVert=new Ll},ns.prototype.enableZeroWidthBar=function(e,t,r){function n(){var i=e.getBoundingClientRect();("vert"==r?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,n)}e.style.pointerEvents="auto",t.set(1e3,n)},ns.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var is=function(){};is.prototype.update=function(){return{bottom:0,right:0}},is.prototype.setScrollLeft=function(){},is.prototype.setScrollTop=function(){},is.prototype.clear=function(){};var os={native:ns,null:is},ls=0,ss=function(e,t,r){var n=e.display;this.viewport=t,this.visible=Fr(n,e.doc,t),this.editorIsHidden=!n.wrapper.offsetWidth,this.wrapperHeight=n.wrapper.clientHeight,this.wrapperWidth=n.wrapper.clientWidth,this.oldDisplayWidth=Vt(e),this.force=r,this.dims=br(e),this.events=[]};ss.prototype.signal=function(e,t){He(e,t)&&this.events.push(arguments)},ss.prototype.finish=function(){for(var e=this,t=0;t<this.events.length;t++)Ae.apply(null,e.events[t])};var as=0,us=null;nl?us=-.53:Jo?us=15:sl?us=-.7:ul&&(us=-1/3);var cs=function(e,t){this.ranges=e,this.primIndex=t};cs.prototype.primary=function(){return this.ranges[this.primIndex]},cs.prototype.equals=function(e){var t=this;if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var r=0;r<this.ranges.length;r++){var n=t.ranges[r],i=e.ranges[r];if(!I(n.anchor,i.anchor)||!I(n.head,i.head))return!1}return!0},cs.prototype.deepCopy=function(){for(var e=this,t=[],r=0;r<this.ranges.length;r++)t[r]=new fs(z(e.ranges[r].anchor),z(e.ranges[r].head));return new cs(t,this.primIndex)},cs.prototype.somethingSelected=function(){for(var e=this,t=0;t<this.ranges.length;t++)if(!e.ranges[t].empty())return!0;return!1},cs.prototype.contains=function(e,t){var r=this;t||(t=e);for(var n=0;n<this.ranges.length;n++){var i=r.ranges[n];if(F(t,i.from())>=0&&F(e,i.to())<=0)return n}return-1};var fs=function(e,t){this.anchor=e,this.head=t};fs.prototype.from=function(){return B(this.anchor,this.head)},fs.prototype.to=function(){return R(this.anchor,this.head)},fs.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};var hs=function(e){var t=this;this.lines=e,this.parent=null;for(var r=0,n=0;n<e.length;++n)e[n].parent=t,r+=e[n].height;this.height=r};hs.prototype.chunkSize=function(){return this.lines.length},hs.prototype.removeInner=function(e,t){for(var r=this,n=e,i=e+t;n<i;++n){var o=r.lines[n];r.height-=o.height,ut(o),St(o,"delete")}this.lines.splice(e,t)},hs.prototype.collapse=function(e){e.push.apply(e,this.lines)},hs.prototype.insertInner=function(e,t,r){var n=this;this.height+=r,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var i=0;i<t.length;++i)t[i].parent=n},hs.prototype.iterN=function(e,t,r){for(var n=this,i=e+t;e<i;++e)if(r(n.lines[e]))return!0};var ds=function(e){var t=this;this.children=e;for(var r=0,n=0,i=0;i<e.length;++i){var o=e[i];r+=o.chunkSize(),n+=o.height,o.parent=t}this.size=r,this.height=n,this.parent=null};ds.prototype.chunkSize=function(){return this.size},ds.prototype.removeInner=function(e,t){var r=this;this.size-=t;for(var n=0;n<this.children.length;++n){var i=r.children[n],o=i.chunkSize();if(e<o){var l=Math.min(t,o-e),s=i.height;if(i.removeInner(e,l),r.height-=s-i.height,o==l&&(r.children.splice(n--,1),i.parent=null),0==(t-=l))break;e=0}else e-=o}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof hs))){var a=[];this.collapse(a),this.children=[new hs(a)],this.children[0].parent=this}},ds.prototype.collapse=function(e){for(var t=this,r=0;r<this.children.length;++r)t.children[r].collapse(e)},ds.prototype.insertInner=function(e,t,r){var n=this;this.size+=t.length,this.height+=r;for(var i=0;i<this.children.length;++i){var o=n.children[i],l=o.chunkSize();if(e<=l){if(o.insertInner(e,t,r),o.lines&&o.lines.length>50){for(var s=o.lines.length%25+25,a=s;a<o.lines.length;){var u=new hs(o.lines.slice(a,a+=25));o.height-=u.height,n.children.splice(++i,0,u),u.parent=n}o.lines=o.lines.slice(0,s),n.maybeSpill()}break}e-=l}},ds.prototype.maybeSpill=function(){if(!(this.children.length<=10)){var e=this;do{var t=e.children.splice(e.children.length-5,5),r=new ds(t);if(e.parent){e.size-=r.size,e.height-=r.height;var n=h(e.parent.children,e);e.parent.children.splice(n+1,0,r)}else{var i=new ds(e.children);i.parent=e,e.children=[i,r],e=i}r.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},ds.prototype.iterN=function(e,t,r){for(var n=this,i=0;i<this.children.length;++i){var o=n.children[i],l=o.chunkSize();if(e<l){var s=Math.min(t,l-e);if(o.iterN(e,s,r))return!0;if(0==(t-=s))break;e=0}else e-=l}};var ps=function(e,t,r){var n=this;if(r)for(var i in r)r.hasOwnProperty(i)&&(n[i]=r[i]);this.doc=e,this.node=t};ps.prototype.clear=function(){var e=this,t=this.doc.cm,r=this.line.widgets,n=this.line,i=W(n);if(null!=i&&r){for(var o=0;o<r.length;++o)r[o]==e&&r.splice(o--,1);r.length||(n.widgets=null);var l=It(this);A(n,Math.max(0,n.height-l)),t&&(fn(t,function(){Ri(t,n,-l),vn(t,i,"widget")}),St(t,"lineWidgetCleared",t,this,i))}},ps.prototype.changed=function(){var e=this,t=this.height,r=this.doc.cm,n=this.line;this.height=null;var i=It(this)-t;i&&(A(n,n.height+i),r&&fn(r,function(){r.curOp.forceUpdate=!0,Ri(r,n,i),St(r,"lineWidgetChanged",r,e,W(n))}))},Ee(ps);var gs=0,vs=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++gs};vs.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){var t=this.doc.cm,r=t&&!t.curOp;if(r&&rn(t),He(this,"clear")){var n=this.find();n&&St(this,"clear",n.from,n.to)}for(var i=null,o=null,l=0;l<this.lines.length;++l){var s=e.lines[l],a=_(s.markedSpans,e);t&&!e.collapsed?vn(t,W(s),"text"):t&&(null!=a.to&&(o=W(s)),null!=a.from&&(i=W(s))),s.markedSpans=$(s.markedSpans,a),null==a.from&&e.collapsed&&!ve(e.doc,s)&&t&&A(s,mr(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var u=0;u<this.lines.length;++u){var c=fe(e.lines[u]),f=be(c);f>t.display.maxLineLength&&(t.display.maxLine=c,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=i&&t&&this.collapsed&&gn(t,i,o+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&xi(t.doc)),t&&St(t,"markerCleared",t,this,i,o),r&&nn(t),this.parent&&this.parent.clear()}},vs.prototype.find=function(e,t){var r=this;null==e&&"bookmark"==this.type&&(e=1);for(var n,i,o=0;o<this.lines.length;++o){var l=r.lines[o],s=_(l.markedSpans,r);if(null!=s.from&&(n=P(t?l:W(l),s.from),e==-1))return n;if(null!=s.to&&(i=P(t?l:W(l),s.to),1==e))return i}return n&&{from:n,to:i}},vs.prototype.changed=function(){var e=this,t=this.find(-1,!0),r=this,n=this.doc.cm;t&&n&&fn(n,function(){var i=t.line,o=W(t.line),l=$t(n,o);if(l&&(rr(l),n.curOp.selectionChanged=n.curOp.forceUpdate=!0),n.curOp.updateMaxLine=!0,!ve(r.doc,i)&&null!=r.height){var s=r.height;r.height=null;var a=It(r)-s;a&&A(i,i.height+a)}St(n,"markerChanged",n,e)})},vs.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&h(t.maybeHiddenMarkers,this)!=-1||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},vs.prototype.detachLine=function(e){if(this.lines.splice(h(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},Ee(vs);var ms=function(e,t){var r=this;this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=r};ms.prototype.clear=function(){var e=this;if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)e.markers[t].clear();St(this,"clear")}},ms.prototype.find=function(e,t){return this.primary.find(e,t)},Ee(ms);var ys=0,bs=function(e,t,r,n,i){if(!(this instanceof bs))return new bs(e,t,r,n,i);null==r&&(r=0),ds.call(this,[new hs([new ql("",null)])]),this.first=r,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.frontier=r;var o=P(r,0);this.sel=zn(o),this.history=new Qn(null),this.id=++ys,this.modeOption=t,this.lineSep=n,this.direction="rtl"==i?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Yn(this,{from:o,to:o,text:e}),yi(this,zn(o),Ol)};bs.prototype=b(ds.prototype,{constructor:bs,iter:function(e,t,r){r?this.iterN(e-this.first,t-e,r):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var r=0,n=0;n<t.length;++n)r+=t[n].height;this.insertInner(e-this.first,t,r)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=O(this,this.first,this.first+this.size);return e===!1?t:t.join(e||this.lineSeparator())},setValue:pn(function(e){var t=P(this.first,0),r=this.first+this.size-1;Ni(this,{from:t,to:P(r,M(this,r).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&jr(this.cm,0,0),yi(this,zn(t),Ol)}),replaceRange:function(e,t,r,n){t=U(this,t),r=r?U(this,r):t,Ei(this,e,t,r,n)},getRange:function(e,t,r){var n=N(this,U(this,e),U(this,t));return r===!1?n:n.join(r||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(H(this,e))return M(this,e)},getLineNumber:function(e){return W(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=M(this,e)),fe(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return U(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||e===!1?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:pn(function(e,t,r){gi(this,U(this,"number"==typeof e?P(e,t||0):e),null,r)}),setSelection:pn(function(e,t,r){gi(this,U(this,e),U(this,t||e),r)}),extendSelection:pn(function(e,t,r){hi(this,U(this,e),t&&U(this,t),r)}),extendSelections:pn(function(e,t){di(this,K(this,e),t)}),extendSelectionsBy:pn(function(e,t){di(this,K(this,v(this.sel.ranges,e)),t)}),setSelections:pn(function(e,t,r){var n=this;if(e.length){for(var i=[],o=0;o<e.length;o++)i[o]=new fs(U(n,e[o].anchor),U(n,e[o].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),yi(this,In(i,t),r)}}),addSelection:pn(function(e,t,r){var n=this.sel.ranges.slice(0);n.push(new fs(U(this,e),U(this,t||e))),yi(this,In(n,n.length-1),r)}),getSelection:function(e){for(var t,r=this,n=this.sel.ranges,i=0;i<n.length;i++){var o=N(r,n[i].from(),n[i].to());t=t?t.concat(o):o}return e===!1?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=this,r=[],n=this.sel.ranges,i=0;i<n.length;i++){var o=N(t,n[i].from(),n[i].to());e!==!1&&(o=o.join(e||t.lineSeparator())),r[i]=o}return r},replaceSelection:function(e,t,r){for(var n=[],i=0;i<this.sel.ranges.length;i++)n[i]=e;this.replaceSelections(n,t,r||"+input")},replaceSelections:pn(function(e,t,r){for(var n=this,i=[],o=this.sel,l=0;l<o.ranges.length;l++){var s=o.ranges[l];i[l]={from:s.from(),to:s.to(),text:n.splitLines(e[l]),origin:r}}for(var a=t&&"end"!=t&&Vn(this,i,t),u=i.length-1;u>=0;u--)Ni(n,i[u]);a?mi(this,a):this.cm&&Kr(this.cm)}),undo:pn(function(){Ai(this,"undo")}),redo:pn(function(){Ai(this,"redo")}),undoSelection:pn(function(){Ai(this,"undo",!0)}),redoSelection:pn(function(){Ai(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,r=0,n=0;n<e.done.length;n++)e.done[n].ranges||++t;for(var i=0;i<e.undone.length;i++)e.undone[i].ranges||++r;return{undo:t,redo:r}},clearHistory:function(){this.history=new Qn(this.history.maxGeneration)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:ci(this.history.done),undone:ci(this.history.undone)}},setHistory:function(e){var t=this.history=new Qn(this.history.maxGeneration);t.done=ci(e.done.slice(0),null,!0),t.undone=ci(e.undone.slice(0),null,!0)},setGutterMarker:pn(function(e,t,r){return zi(this,e,"gutter",function(e){var n=e.gutterMarkers||(e.gutterMarkers={});return n[t]=r,!r&&C(n)&&(e.gutterMarkers=null),!0})}),clearGutter:pn(function(e){var t=this;this.iter(function(r){r.gutterMarkers&&r.gutterMarkers[e]&&zi(t,r,"gutter",function(){return r.gutterMarkers[e]=null,C(r.gutterMarkers)&&(r.gutterMarkers=null),!0})})}),lineInfo:function(e){var t;if("number"==typeof e){if(!H(this,e))return null;if(t=e,!(e=M(this,e)))return null}else if(null==(t=W(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:pn(function(t,r,n){return zi(this,t,"gutter"==r?"gutter":"class",function(t){var i="text"==r?"textClass":"background"==r?"bgClass":"gutter"==r?"gutterClass":"wrapClass";if(t[i]){if(e(n).test(t[i]))return!1;t[i]+=" "+n}else t[i]=n;return!0})}),removeLineClass:pn(function(t,r,n){return zi(this,t,"gutter"==r?"gutter":"class",function(t){var i="text"==r?"textClass":"background"==r?"bgClass":"gutter"==r?"gutterClass":"wrapClass",o=t[i];if(!o)return!1;if(null==n)t[i]=null;else{var l=o.match(e(n));if(!l)return!1;var s=l.index+l[0].length;t[i]=o.slice(0,l.index)+(l.index&&s!=o.length?" ":"")+o.slice(s)||null}return!0})}),addLineWidget:pn(function(e,t,r){return Bi(this,e,t,r)}),removeLineWidget:function(e){e.clear()},markText:function(e,t,r){return Gi(this,U(this,e),U(this,t),r,r&&r.type||"range")},setBookmark:function(e,t){var r={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return e=U(this,e),Gi(this,e,e,r,"bookmark")},findMarksAt:function(e){e=U(this,e);var t=[],r=M(this,e.line).markedSpans;if(r)for(var n=0;n<r.length;++n){var i=r[n];(null==i.from||i.from<=e.ch)&&(null==i.to||i.to>=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,r){e=U(this,e),t=U(this,t);var n=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var s=0;s<l.length;s++){var a=l[s];null!=a.to&&i==e.line&&e.ch>=a.to||null==a.from&&i!=e.line||null!=a.from&&i==t.line&&a.from>=t.ch||r&&!r(a.marker)||n.push(a.marker.parent||a.marker)}++i}),n},getAllMarks:function(){var e=[];return this.iter(function(t){var r=t.markedSpans;if(r)for(var n=0;n<r.length;++n)null!=r[n].from&&e.push(r[n].marker)}),e},posFromIndex:function(e){var t,r=this.first,n=this.lineSeparator().length;return this.iter(function(i){var o=i.text.length+n;if(o>e)return t=e,!0;e-=o,++r}),U(this,P(r,t))},indexFromPos:function(e){e=U(this,e);var t=e.ch;if(e.line<this.first||e.ch<0)return 0;var r=this.lineSeparator().length;return this.iter(this.first,e.line,function(e){t+=e.text.length+r}),t},copy:function(e){var t=new bs(O(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,r=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<r&&(r=e.to);var n=new bs(O(this,t,r),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(n.history=this.history),(this.linked||(this.linked=[])).push({doc:n,sharedHist:e.sharedHist}),n.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],Ki(n,Vi(this)),n},unlinkDoc:function(e){var t=this;if(e instanceof Do&&(e=e.doc),this.linked)for(var r=0;r<this.linked.length;++r){var n=t.linked[r];if(n.doc==e){t.linked.splice(r,1),e.unlinkDoc(t),ji(Vi(t));break}}if(e.history==this.history){var i=[e.id];_n(e,function(e){return i.push(e.id)},!0),e.history=new Qn(null),e.history.done=ci(this.history.done,i),e.history.undone=ci(this.history.undone,i)}},
|
52
|
+
iterLinkedDocs:function(e){_n(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Ul(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:pn(function(e){"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter(function(e){return e.order=null}),this.cm&&Zn(this.cm))})}),bs.prototype.eachLine=bs.prototype.iter;for(var ws=0,xs=!1,Cs={3:"Enter",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",127:"Delete",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ss=0;Ss<10;Ss++)Cs[Ss+48]=Cs[Ss+96]=String(Ss);for(var Ls=65;Ls<=90;Ls++)Cs[Ls]=String.fromCharCode(Ls);for(var ks=1;ks<=12;ks++)Cs[ks+111]=Cs[ks+63235]="F"+ks;var Ts={};Ts.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ts.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ts.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ts.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ts.default=gl?Ts.macDefault:Ts.pcDefault;var Ms,Ns,Os={selectAll:Ti,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ol)},killLine:function(e){return lo(e,function(t){if(t.empty()){var r=M(e.doc,t.head.line).text.length;return t.head.ch==r&&t.head.line<e.lastLine()?{from:t.head,to:P(t.head.line+1,0)}:{from:t.head,to:P(t.head.line,r)}}return{from:t.from(),to:t.to()}})},deleteLine:function(e){return lo(e,function(t){return{from:P(t.from().line,0),to:U(e.doc,P(t.to().line+1,0))}})},delLineLeft:function(e){return lo(e,function(e){return{from:P(e.from().line,0),to:e.from()}})},delWrappedLineLeft:function(e){return lo(e,function(t){var r=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:r},"div"),to:t.from()}})},delWrappedLineRight:function(e){return lo(e,function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div");return{from:t.from(),to:n}})},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(P(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(P(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy(function(t){return so(e,t.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy(function(t){return uo(e,t.head)},{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy(function(t){return ao(e,t.head.line)},{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy(function(t){var r=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:r},"div")},Wl)},goLineLeft:function(e){return e.extendSelectionsBy(function(t){var r=e.charCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:r},"div")},Wl)},goLineLeftSmart:function(e){return e.extendSelectionsBy(function(t){var r=e.charCoords(t.head,"div").top+5,n=e.coordsChar({left:0,top:r},"div");return n.ch<e.getLine(n.line).search(/\S/)?uo(e,t.head):n},Wl)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"char")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],r=e.listSelections(),n=e.options.tabSize,i=0;i<r.length;i++){var o=r[i].from(),l=f(e.getLine(o.line),o.ch,n);t.push(p(n-l%n))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return fn(e,function(){for(var t=e.listSelections(),r=[],n=0;n<t.length;n++)if(t[n].empty()){var i=t[n].head,o=M(e.doc,i.line).text;if(o)if(i.ch==o.length&&(i=new P(i.line,i.ch-1)),i.ch>0)i=new P(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),P(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=M(e.doc,i.line-1).text;l&&(i=new P(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),P(i.line-1,l.length-1),i,"+transpose"))}r.push(new fs(i,i))}e.setSelections(r)})},newlineAndIndent:function(e){return fn(e,function(){for(var t=e.listSelections(),r=t.length-1;r>=0;r--)e.replaceRange(e.doc.lineSeparator(),t[r].anchor,t[r].head,"+input");t=e.listSelections();for(var n=0;n<t.length;n++)e.indentLine(t[n].from().line,null,!0);Kr(e)})},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}},As=new Ll,Ws=null,Ds={toString:function(){return"CodeMirror.Init"}},Hs={},Es={};Do.defaults=Hs,Do.optionHandlers=Es;var Ps=[];Do.defineInitHook=function(e){return Ps.push(e)};var Fs=null,Is=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ll,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Is.prototype.init=function(e){function t(e){if(!We(i,e)){if(i.somethingSelected())Po({lineWise:!1,text:i.getSelections()}),"cut"==e.type&&i.replaceSelection("",null,"cut");else{if(!i.options.lineWiseCopyCut)return;var t=Ro(i);Po({lineWise:!0,text:t.text}),"cut"==e.type&&i.operation(function(){i.setSelections(t.ranges,0,Ol),i.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var r=Fs.text.join("\n");if(e.clipboardData.setData("Text",r),e.clipboardData.getData("Text")==r)return void e.preventDefault()}var l=Go(),s=l.firstChild;i.display.lineSpace.insertBefore(l,i.display.lineSpace.firstChild),s.value=Fs.text.join("\n");var a=document.activeElement;Sl(s),setTimeout(function(){i.display.lineSpace.removeChild(l),a.focus(),a==o&&n.showPrimarySelection()},50)}}var r=this,n=this,i=n.cm,o=n.div=e.lineDiv;Bo(o,i.options.spellcheck),Bl(o,"paste",function(e){We(i,e)||Io(e,i)||il<=11&&setTimeout(hn(i,function(){return r.updateFromDOM()}),20)}),Bl(o,"compositionstart",function(e){r.composing={data:e.data,done:!1}}),Bl(o,"compositionupdate",function(e){r.composing||(r.composing={data:e.data,done:!1})}),Bl(o,"compositionend",function(e){r.composing&&(e.data!=r.composing.data&&r.readFromDOMSoon(),r.composing.done=!0)}),Bl(o,"touchstart",function(){return n.forceCompositionEnd()}),Bl(o,"input",function(){r.composing||r.readFromDOMSoon()}),Bl(o,"copy",t),Bl(o,"cut",t)},Is.prototype.prepareSelection=function(){var e=Tr(this.cm,!1);return e.focus=this.cm.state.focused,e},Is.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Is.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,r=t.doc.sel.primary(),n=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||n.line>=t.display.viewTo||i.line<t.display.viewFrom)return void e.removeAllRanges();var o=_o(t,e.anchorNode,e.anchorOffset),l=_o(t,e.focusNode,e.focusOffset);if(!o||o.bad||!l||l.bad||0!=F(B(o,l),n)||0!=F(R(o,l),i)){var s=t.display.view,a=n.line>=t.display.viewFrom&&Ko(t,n)||{node:s[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&Ko(t,i);if(!u){var c=s[s.length-1].measure,f=c.maps?c.maps[c.maps.length-1]:c.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(!a||!u)return void e.removeAllRanges();var h,d=e.rangeCount&&e.getRangeAt(0);try{h=bl(a.node,a.offset,u.offset,u.node)}catch(e){}h&&(!Jo&&t.state.focused?(e.collapse(a.node,a.offset),h.collapsed||(e.removeAllRanges(),e.addRange(h))):(e.removeAllRanges(),e.addRange(h)),d&&null==e.anchorNode?e.addRange(d):Jo&&this.startGracePeriod()),this.rememberSelection()}},Is.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation(function(){return e.cm.curOp.selectionChanged=!0})},20)},Is.prototype.showMultipleSelections=function(e){r(this.cm.display.cursorDiv,e.cursors),r(this.cm.display.selectionDiv,e.selection)},Is.prototype.rememberSelection=function(){var e=window.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},Is.prototype.selectionInEditor=function(){var e=window.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return o(this.div,t)},Is.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()||this.showSelection(this.prepareSelection(),!0),this.div.focus())},Is.prototype.blur=function(){this.div.blur()},Is.prototype.getField=function(){return this.div},Is.prototype.supportsTouch=function(){return!0},Is.prototype.receivedFocus=function(){function e(){t.cm.state.focused&&(t.pollSelection(),t.polling.set(t.cm.options.pollInterval,e))}var t=this;this.selectionInEditor()?this.pollSelection():fn(this.cm,function(){return t.cm.curOp.selectionChanged=!0}),this.polling.set(this.cm.options.pollInterval,e)},Is.prototype.selectionChanged=function(){var e=window.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},Is.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=window.getSelection(),t=this.cm;if(dl&&sl&&this.cm.options.gutters.length&&jo(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var r=_o(t,e.anchorNode,e.anchorOffset),n=_o(t,e.focusNode,e.focusOffset);r&&n&&fn(t,function(){yi(t.doc,zn(r,n),Ol),(r.bad||n.bad)&&(t.curOp.selectionChanged=!0)})}}},Is.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e=this.cm,t=e.display,r=e.doc.sel.primary(),n=r.from(),i=r.to();if(0==n.ch&&n.line>e.firstLine()&&(n=P(n.line-1,M(e.doc,n.line-1).length)),i.ch==M(e.doc,i.line).text.length&&i.line<e.lastLine()&&(i=P(i.line+1,0)),n.line<t.viewFrom||i.line>t.viewTo-1)return!1;var o,l,s;n.line==t.viewFrom||0==(o=Lr(e,n.line))?(l=W(t.view[0].line),s=t.view[0].node):(l=W(t.view[o].line),s=t.view[o-1].node.nextSibling);var a,u,c=Lr(e,i.line);if(c==t.view.length-1?(a=t.viewTo-1,u=t.lineDiv.lastChild):(a=W(t.view[c+1].line)-1,u=t.view[c+1].node.previousSibling),!s)return!1;for(var f=e.doc.splitLines(Yo(e,s,u,l,a)),h=N(e.doc,P(l,0),P(a,M(e.doc,a).text.length));f.length>1&&h.length>1;)if(g(f)==g(h))f.pop(),h.pop(),a--;else{if(f[0]!=h[0])break;f.shift(),h.shift(),l++}for(var d=0,p=0,v=f[0],m=h[0],y=Math.min(v.length,m.length);d<y&&v.charCodeAt(d)==m.charCodeAt(d);)++d;for(var b=g(f),w=g(h),x=Math.min(b.length-(1==f.length?d:0),w.length-(1==h.length?d:0));p<x&&b.charCodeAt(b.length-p-1)==w.charCodeAt(w.length-p-1);)++p;if(1==f.length&&1==h.length&&l==n.line)for(;d&&d>n.ch&&b.charCodeAt(b.length-p-1)==w.charCodeAt(w.length-p-1);)d--,p++;f[f.length-1]=b.slice(0,b.length-p).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var C=P(l,d),S=P(a,h.length?g(h).length-p:0);return f.length>1||f[0]||F(C,S)?(Ei(e.doc,f,C,S,"+input"),!0):void 0},Is.prototype.ensurePolled=function(){this.forceCompositionEnd()},Is.prototype.reset=function(){this.forceCompositionEnd()},Is.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Is.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Is.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||fn(this.cm,function(){return gn(e.cm)})},Is.prototype.setUneditable=function(e){e.contentEditable="false"},Is.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||hn(this.cm,Fo)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Is.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Is.prototype.onContextMenu=function(){},Is.prototype.resetPosition=function(){},Is.prototype.needsContentAttribute=!0;var zs=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Ll,this.inaccurateSelection=!1,this.hasSelection=!1,this.composing=null};zs.prototype.init=function(e){function t(e){if(!We(i,e)){if(i.somethingSelected())Po({lineWise:!1,text:i.getSelections()}),n.inaccurateSelection&&(n.prevInput="",n.inaccurateSelection=!1,l.value=Fs.text.join("\n"),Sl(l));else{if(!i.options.lineWiseCopyCut)return;var t=Ro(i);Po({lineWise:!0,text:t.text}),"cut"==e.type?i.setSelections(t.ranges,null,Ol):(n.prevInput="",l.value=t.text.join("\n"),Sl(l))}"cut"==e.type&&(i.state.cutIncoming=!0)}}var r=this,n=this,i=this.cm,o=this.wrapper=Go(),l=this.textarea=o.firstChild;e.wrapper.insertBefore(o,e.wrapper.firstChild),hl&&(l.style.width="0px"),Bl(l,"input",function(){nl&&il>=9&&r.hasSelection&&(r.hasSelection=null),n.poll()}),Bl(l,"paste",function(e){We(i,e)||Io(e,i)||(i.state.pasteIncoming=!0,n.fastPoll())}),Bl(l,"cut",t),Bl(l,"copy",t),Bl(e.scroller,"paste",function(t){zt(e,t)||We(i,t)||(i.state.pasteIncoming=!0,n.focus())}),Bl(e.lineSpace,"selectstart",function(t){zt(e,t)||Pe(t)}),Bl(l,"compositionstart",function(){var e=i.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:i.markText(e,i.getCursor("to"),{className:"CodeMirror-composing"})}}),Bl(l,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},zs.prototype.prepareSelection=function(){var e=this.cm,t=e.display,r=e.doc,n=Tr(e);if(e.options.moveInputWithCursor){var i=cr(e,r.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();n.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),n.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return n},zs.prototype.showSelection=function(e){var t=this.cm,n=t.display;r(n.cursorDiv,e.cursors),r(n.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},zs.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t,r,n=this.cm,i=n.doc;if(n.somethingSelected()){this.prevInput="";var o=i.sel.primary();t=Kl&&(o.to().line-o.from().line>100||(r=n.getSelection()).length>1e3);var l=t?"-":r||n.getSelection();this.textarea.value=l,n.state.focused&&Sl(this.textarea),nl&&il>=9&&(this.hasSelection=l)}else e||(this.prevInput=this.textarea.value="",nl&&il>=9&&(this.hasSelection=null));this.inaccurateSelection=t}},zs.prototype.getField=function(){return this.textarea},zs.prototype.supportsTouch=function(){return!1},zs.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!pl||l()!=this.textarea))try{this.textarea.focus()}catch(e){}},zs.prototype.blur=function(){this.textarea.blur()},zs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},zs.prototype.receivedFocus=function(){this.slowPoll()},zs.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},zs.prototype.fastPoll=function(){function e(){r.poll()||t?(r.pollingFast=!1,r.slowPoll()):(t=!0,r.polling.set(60,e))}var t=!1,r=this;r.pollingFast=!0,r.polling.set(20,e)},zs.prototype.poll=function(){var e=this,t=this.cm,r=this.textarea,n=this.prevInput;if(this.contextMenuPending||!t.state.focused||Vl(r)&&!n&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=r.value;if(i==n&&!t.somethingSelected())return!1;if(nl&&il>=9&&this.hasSelection===i||gl&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(8203!=o||n||(n=""),8666==o)return this.reset(),this.cm.execCommand("undo")}for(var l=0,s=Math.min(n.length,i.length);l<s&&n.charCodeAt(l)==i.charCodeAt(l);)++l;return fn(t,function(){Fo(t,i.slice(l),n.length-l,null,e.composing?"*compose":null),i.length>1e3||i.indexOf("\n")>-1?r.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},zs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},zs.prototype.onKeyPress=function(){nl&&il>=9&&(this.hasSelection=null),this.fastPoll()},zs.prototype.onContextMenu=function(e){function t(){if(null!=l.selectionStart){var e=i.somethingSelected(),t=""+(e?l.value:"");l.value="⇚",l.value=t,n.prevInput=e?"":"",l.selectionStart=1,l.selectionEnd=t.length,o.selForContextMenu=i.doc.sel}}function r(){if(n.contextMenuPending=!1,n.wrapper.style.cssText=c,l.style.cssText=u,nl&&il<9&&o.scrollbars.setScrollTop(o.scroller.scrollTop=a),null!=l.selectionStart){(!nl||nl&&il<9)&&t();var e=0,r=function(){o.selForContextMenu==i.doc.sel&&0==l.selectionStart&&l.selectionEnd>0&&""==n.prevInput?hn(i,Ti)(i):e++<10?o.detectingSelectAll=setTimeout(r,500):(o.selForContextMenu=null,o.input.reset())};o.detectingSelectAll=setTimeout(r,200)}}var n=this,i=n.cm,o=i.display,l=n.textarea,s=Sr(i,e),a=o.scroller.scrollTop;if(s&&!al){i.options.resetSelectionOnContextMenu&&i.doc.sel.contains(s)==-1&&hn(i,yi)(i.doc,zn(s),Ol);var u=l.style.cssText,c=n.wrapper.style.cssText;n.wrapper.style.cssText="position: absolute";var f=n.wrapper.getBoundingClientRect();l.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(nl?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var h;if(ol&&(h=window.scrollY),o.input.focus(),ol&&window.scrollTo(null,h),o.input.reset(),i.somethingSelected()||(l.value=n.prevInput=" "),n.contextMenuPending=!0,o.selForContextMenu=i.doc.sel,clearTimeout(o.detectingSelectAll),nl&&il>=9&&t(),xl){ze(e);var d=function(){Oe(window,"mouseup",d),setTimeout(r,20)};Bl(window,"mouseup",d)}else setTimeout(r,50)}},zs.prototype.readOnlyChanged=function(e){e||this.reset()},zs.prototype.setUneditable=function(){},zs.prototype.needsContentAttribute=!1,function(e){function t(t,n,i,o){e.defaults[t]=n,i&&(r[t]=o?function(e,t,r){r!=Ds&&i(e,t,r)}:i)}var r=e.optionHandlers;e.defineOption=t,e.Init=Ds,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,Kn(e)},!0),t("indentUnit",2,Kn,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){jn(e),ir(e),gn(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var r=[],n=e.doc.first;e.doc.iter(function(e){for(var i=0;;){var o=e.text.indexOf(t,i);if(o==-1)break;i=o+t.length,r.push(P(n,o))}n++});for(var i=r.length-1;i>=0;i--)Ei(e.doc,t,r[i],P(r[i].line,r[i].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,r){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),r!=Ds&&e.refresh()}),t("specialCharPlaceholder",ht,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",pl?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!ml),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){No(e),Oo(e)},!0),t("keyMap","default",function(e,t,r){var n=oo(t),i=r!=Ds&&oo(r);i&&i.detach&&i.detach(e,n),n.attach&&n.attach(e,i||null)}),t("extraKeys",null),t("lineWrapping",!1,Wo,!0),t("gutters",[],function(e){Hn(e.options),Oo(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?wr(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return Jr(e)},!0),t("scrollbarStyle","native",function(e){tn(e),Jr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Hn(e.options),Oo(e)},!0),t("firstLineNumber",1,Oo,!0),t("lineNumberFormatter",function(e){return e},Oo,!0),t("showCursorWhenSelecting",!1,kr,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("readOnly",!1,function(e,t){"nocursor"==t?(Hr(e),e.display.input.blur(),e.display.disabled=!0):e.display.disabled=!1,e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Ao),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,kr,!0),t("singleCursorHeightPerLine",!0,kr,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,jn,!0),t("addModeClass",!1,jn,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,jn,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Do),function(e){var t=e.optionHandlers,r=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,r){var n=this.options,i=n[e];n[e]==r&&"mode"!=e||(n[e]=r,t.hasOwnProperty(e)&&hn(this,t[e])(this,r,i),Ae(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](oo(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,r=0;r<t.length;++r)if(t[r]==e||t[r].name==e)return t.splice(r,1),!0},addOverlay:dn(function(t,r){var n=t.token?t:e.getMode(this.options,t);if(n.startState)throw new Error("Overlays may not be stateful.");m(this.state.overlays,{mode:n,modeSpec:t,opaque:r&&r.opaque,priority:r&&r.priority||0},function(e){return e.priority}),this.state.modeGen++,gn(this)}),removeOverlay:dn(function(e){for(var t=this,r=this.state.overlays,n=0;n<r.length;++n){var i=r[n].modeSpec;if(i==e||"string"==typeof e&&i.name==e)return r.splice(n,1),t.state.modeGen++,void gn(t)}}),indentLine:dn(function(e,t,r){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),H(this.doc,e)&&Eo(this,e,t,r)}),indentSelection:dn(function(e){for(var t=this,r=this.doc.sel.ranges,n=-1,i=0;i<r.length;i++){var o=r[i];if(o.empty())o.head.line>n&&(Eo(t,o.head.line,e,!0),n=o.head.line,i==t.doc.sel.primIndex&&Kr(t));else{var l=o.from(),s=o.to(),a=Math.max(n,l.line);n=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var u=a;u<n;++u)Eo(t,u,e);var c=t.doc.sel.ranges;0==l.ch&&r.length==c.length&&c[i].from().ch>0&&pi(t.doc,i,new fs(l,c[i].to()),Ol)}}}),getTokenAt:function(e,t){return it(this,e,t)},getLineTokens:function(e,t){return it(this,P(e),t,!0)},getTokenTypeAt:function(e){e=U(this.doc,e);var t,r=Je(this,M(this.doc,e.line)),n=0,i=(r.length-1)/2,o=e.ch;if(0==o)t=r[2];else for(;;){var l=n+i>>1;if((l?r[2*l-1]:0)>=o)i=l;else{if(!(r[2*l+1]<o)){t=r[2*l+2];break}n=l+1}}var s=t?t.indexOf("overlay "):-1;return s<0?t:0==s?null:t.slice(0,s-1)},getModeAt:function(t){var r=this.doc.mode;return r.innerMode?e.innerMode(r,this.getTokenAt(t).state).mode:r},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var n=this,i=[];if(!r.hasOwnProperty(t))return i;var o=r[t],l=this.getModeAt(e);if("string"==typeof l[t])o[l[t]]&&i.push(o[l[t]]);else if(l[t])for(var s=0;s<l[t].length;s++){var a=o[l[t][s]];a&&i.push(a)}else l.helperType&&o[l.helperType]?i.push(o[l.helperType]):o[l.name]&&i.push(o[l.name]);for(var u=0;u<o._global.length;u++){var c=o._global[u];c.pred(l,n)&&h(i,c.val)==-1&&i.push(c.val)}return i},getStateAfter:function(e,t){var r=this.doc;return e=G(r,null==e?r.first+r.size-1:e),et(this,e+1,t)},cursorCoords:function(e,t){var r,n=this.doc.sel.primary();return r=null==e?n.head:"object"==typeof e?U(this.doc,e):e?n.from():n.to(),cr(this,r,t||"page")},charCoords:function(e,t){return ur(this,U(this.doc,e),t||"page")},coordsChar:function(e,t){return e=ar(this,e,t||"page"),dr(this,e.left,e.top)},lineAtHeight:function(e,t){return e=ar(this,{top:e,left:0},t||"page").top,D(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,r){var n,i=!1;if("number"==typeof e){var o=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>o&&(e=o,i=!0),n=M(this.doc,e)}else n=e;return sr(this,n,{top:0,left:0},t||"page",r||i).top+(i?this.doc.height-ye(n):0)},defaultTextHeight:function(){return mr(this.display)},defaultCharWidth:function(){return yr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,r,n,i){var o=this.display;e=cr(this,U(this.doc,e));var l=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),o.sizer.appendChild(t),"over"==n)l=e.top;else if("above"==n||"near"==n){var a=Math.max(o.wrapper.clientHeight,this.doc.height),u=Math.max(o.sizer.clientWidth,o.lineSpace.clientWidth);("above"==n||e.bottom+t.offsetHeight>a)&&e.top>t.offsetHeight?l=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=a&&(l=e.bottom),s+t.offsetWidth>u&&(s=u-t.offsetWidth)}t.style.top=l+"px",t.style.left=t.style.right="","right"==i?(s=o.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==i?s=0:"middle"==i&&(s=(o.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),r&&Gr(this,{left:s,top:l,right:s+t.offsetWidth,bottom:l+t.offsetHeight})},triggerOnKeyDown:dn(vo),triggerOnKeyPress:dn(bo),triggerOnKeyUp:yo,execCommand:function(e){if(Os.hasOwnProperty(e))return Os[e].call(null,this)},triggerElectric:dn(function(e){zo(this,e)}),findPosH:function(e,t,r,n){var i=this,o=1;t<0&&(o=-1,t=-t);for(var l=U(this.doc,e),s=0;s<t&&(l=Uo(i.doc,l,o,r,n),!l.hitSide);++s);return l},moveH:dn(function(e,t){var r=this;this.extendSelectionsBy(function(n){return r.display.shift||r.doc.extend||n.empty()?Uo(r.doc,n.head,e,t,r.options.rtlMoveVisually):e<0?n.from():n.to()},Wl)}),deleteH:dn(function(e,t){var r=this.doc.sel,n=this.doc;r.somethingSelected()?n.replaceSelection("",null,"+delete"):lo(this,function(r){var i=Uo(n,r.head,e,t,!1);return e<0?{from:i,to:r.head}:{from:r.head,to:i}})}),findPosV:function(e,t,r,n){var i=this,o=1,l=n;t<0&&(o=-1,t=-t);for(var s=U(this.doc,e),a=0;a<t;++a){var u=cr(i,s,"div");if(null==l?l=u.left:u.left=l,s=Vo(i,u,o,r),s.hitSide)break}return s},moveV:dn(function(e,t){var r=this,n=this.doc,i=[],o=!this.display.shift&&!n.extend&&n.sel.somethingSelected();if(n.extendSelectionsBy(function(l){if(o)return e<0?l.from():l.to();var s=cr(r,l.head,"div");null!=l.goalColumn&&(s.left=l.goalColumn),i.push(s.left);var a=Vo(r,s,e,t);return"page"==t&&l==n.sel.primary()&&Vr(r,ur(r,a,"div").top-s.top),a},Wl),i.length)for(var l=0;l<n.sel.ranges.length;l++)n.sel.ranges[l].goalColumn=i[l]}),findWordAt:function(e){var t=this.doc,r=M(t,e.line).text,n=e.ch,i=e.ch;if(r){var o=this.getHelper(e,"wordChars");"before"!=e.sticky&&i!=r.length||!n?++i:--n;for(var l=r.charAt(n),s=x(l,o)?function(e){return x(e,o)}:/\s/.test(l)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!x(e)};n>0&&s(r.charAt(n-1));)--n;for(;i<r.length&&s(r.charAt(i));)++i}return new fs(P(e.line,n),P(e.line,i))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?s(this.display.cursorDiv,"CodeMirror-overwrite"):Cl(this.display.cursorDiv,"CodeMirror-overwrite"),Ae(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==l()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:dn(function(e,t){jr(this,e,t)}),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-Ut(this)-this.display.barHeight,width:e.scrollWidth-Ut(this)-this.display.barWidth,clientHeight:Kt(this),clientWidth:Vt(this)}},scrollIntoView:dn(function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:P(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?Xr(this,e):_r(this,e.from,e.to,e.margin)}),
|
53
53
|
setSize:dn(function(e,t){var r=this,n=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=n(e)),null!=t&&(this.display.wrapper.style.height=n(t)),this.options.lineWrapping&&nr(this);var i=this.display.viewFrom;this.doc.iter(i,this.display.viewTo,function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){vn(r,i,"widget");break}++i}),this.curOp.forceUpdate=!0,Ae(this,"refresh",this)}),operation:function(e){return fn(this,e)},refresh:dn(function(){var e=this.display.cachedTextHeight;gn(this),this.curOp.forceUpdate=!0,ir(this),jr(this,this.doc.scrollLeft,this.doc.scrollTop),An(this),(null==e||Math.abs(e-mr(this.display))>.5)&&Cr(this),Ae(this,"refresh",this)}),swapDoc:dn(function(e){var t=this.doc;return t.cm=null,$n(this,e),ir(this),this.display.input.reset(),jr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,St(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Ee(e),e.registerHelper=function(t,n,i){r.hasOwnProperty(t)||(r[t]=e[t]={_global:[]}),r[t][n]=i},e.registerGlobalHelper=function(t,n,i,o){e.registerHelper(t,n,o),r[t]._global.push({pred:i,val:o})}}(Do);var Rs="iter insert remove copy getEditor constructor".split(" ");for(var Bs in bs.prototype)bs.prototype.hasOwnProperty(Bs)&&h(Rs,Bs)<0&&(Do.prototype[Bs]=function(e){return function(){return e.apply(this.doc,arguments)}}(bs.prototype[Bs]));return Ee(bs),Do.inputStyles={textarea:zs,contenteditable:Is},Do.defineMode=function(e){Do.defaults.mode||"null"==e||(Do.defaults.mode=e),Ke.apply(this,arguments)},Do.defineMIME=je,Do.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Do.defineMIME("text/plain","null"),Do.defineExtension=function(e,t){Do.prototype[e]=t},Do.defineDocExtension=function(e,t){bs.prototype[e]=t},Do.fromTextArea=qo,function(e){e.off=Oe,e.on=Bl,e.wheelEventPixels=Pn,e.Doc=bs,e.splitLines=Ul,e.countColumn=f,e.findColumn=d,e.isWordChar=w,e.Pass=Nl,e.signal=Ae,e.Line=ql,e.changeEnd=Rn,e.scrollbarModel=os,e.Pos=P,e.cmpPos=F,e.modes=Xl,e.mimeModes=Yl,e.resolveMode=Xe,e.getMode=Ye,e.modeExtensions=_l,e.extendMode=_e,e.copyState=$e,e.startState=Ze,e.innerMode=qe,e.commands=Os,e.keyMap=Ts,e.keyName=io,e.isModifierKey=no,e.lookupKey=ro,e.normalizeKeyMap=to,e.StringStream=$l,e.SharedTextMarker=ms,e.TextMarker=vs,e.LineWidget=ps,e.e_preventDefault=Pe,e.e_stopPropagation=Fe,e.e_stop=ze,e.addClass=s,e.contains=o,e.rmClass=Cl,e.keyNames=Cs}(Do),Do.version="5.26.0",Do});
|
54
54
|
},{}],23:[function(require,module,exports){
|
55
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n,r,a,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=a,this.prev=o}function n(e,n,r,a){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,a,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function a(e,t,n){return"variable"==t.prevToken||"variable-3"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function i(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function l(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}function s(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=s;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function c(e,t){return"variable-3"==t.prevToken&&"variable-3"}function u(e){return e.eatWhile(/[\w\.']/),"number"}function d(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=m,m(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function f(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function p(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function m(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function h(t,n){function r(e){if(e)for(var t in e)e.hasOwnProperty(t)&&a.push(t)}"string"==typeof t&&(t=[t]);var a=[];r(n.keywords),r(n.types),r(n.builtin),r(n.atoms),a.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],a));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function g(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function y(e){return function(t,n){for(var r,a=!1,o=!1;!t.eol();){if(!e&&!a&&t.match('"')){o=!0;break}if(e&&t.match('"""')){o=!0;break}r=t.next(),!a&&"$"==r&&t.match("{")&&t.skipTo("}"),a=!a&&"\\"==r&&!e}return!o&&e||(n.tokenize=null),"string"}}function x(e){return function(t,n){for(var r,a=!1,o=!1;!t.eol();){if(!a&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!a&&t.match("``")){w=x(e),o=!0;break}r=t.next(),a="single"==e&&!a&&"\\"==r}return o&&(n.tokenize=null),"string"}}e.defineMode("clike",function(i,s){function c(e,t){var n=e.next();if(S[n]){var r=S[n](e,t);if(!1!==r)return r}if('"'==n||"'"==n)return t.tokenize=u(n),t.tokenize(e,t);if(D.test(n))return p=n,null;if(L.test(n)){if(e.backUp(1),e.match(I))return"number";e.next()}if("/"==n){if(e.eat("*"))return t.tokenize=d,d(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(F.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(F););return"operator"}if(e.eatWhile(z),P)for(;e.match(P);)e.eatWhile(z);var a=e.current();return l(x,a)?(l(w,a)&&(p="newstatement"),l(v,a)&&(m=!0),"keyword"):l(b,a)?"variable-3":l(k,a)?(l(w,a)&&(p="newstatement"),"builtin"):l(_,a)?"atom":"variable"}function u(e){return function(t,n){for(var r,a=!1,o=!1;null!=(r=t.next());){if(r==e&&!a){o=!0;break}a=!a&&"\\"==r}return(o||!a&&!C)&&(n.tokenize=null),"string"}}function d(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function f(e,t){s.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=a(e,t,e.pos))}var p,m,h=i.indentUnit,g=s.statementIndentUnit||h,y=s.dontAlignCalls,x=s.keywords||{},b=s.types||{},k=s.builtin||{},w=s.blockKeywords||{},v=s.defKeywords||{},_=s.atoms||{},S=s.hooks||{},C=s.multiLineStrings,T=!1!==s.indentStatements,M=!1!==s.indentSwitch,P=s.namespaceSeparator,D=s.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,L=s.numberStart||/[\d\.]/,I=s.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,F=s.isOperatorChar||/[+\-*&%=<>!?|\/]/,z=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/;return{startState:function(e){return{tokenize:null,context:new t((e||0)-h,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var i=t.context;if(e.sol()&&(null==i.align&&(i.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return f(e,t),null;p=m=null;var l=(t.tokenize||c)(e,t);if("comment"==l||"meta"==l)return l;if(null==i.align&&(i.align=!0),";"==p||":"==p||","==p&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==p)n(t,e.column(),"}");else if("["==p)n(t,e.column(),"]");else if("("==p)n(t,e.column(),")");else if("}"==p){for(;"statement"==i.type;)i=r(t);for("}"==i.type&&(i=r(t));"statement"==i.type;)i=r(t)}else p==i.type?r(t):T&&(("}"==i.type||"top"==i.type)&&";"!=p||"statement"==i.type&&"newstatement"==p)&&n(t,e.column(),"statement",e.current());if("variable"==l&&("def"==t.prevToken||s.typeFirstDefinitions&&a(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(l="def"),S.token){var u=S.token(e,t,l);void 0!==u&&(l=u)}return"def"==l&&!1===s.styleDefs&&(l="variable"),t.startOfLine=!1,t.prevToken=m?"def":l||p,f(e,t),l},indent:function(t,n){if(t.tokenize!=c&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var r=t.context,a=n&&n.charAt(0);if("statement"==r.type&&"}"==a&&(r=r.prev),s.dontIndentStatements)for(;"statement"==r.type&&s.dontIndentStatements.test(r.info);)r=r.prev;if(S.indent){var o=S.indent(t,r,n);if("number"==typeof o)return o}var i=a==r.type,l=r.prev&&"switch"==r.prev.info;if(s.allmanIndentation&&/[{(]/.test(a)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==a?0:g):!r.align||y&&")"==r.type?")"!=r.type||i?r.indented+(i?0:h)+(i||!l||/^(?:case|default)\b/.test(n)?0:h):r.indented+g:r.column+(i?0:1)},electricInput:M?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});var b="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",k="int long char short double float unsigned signed void size_t ptrdiff_t";h(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:i(b),types:i(k+" bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),blockKeywords:i("case do else for if switch while struct"),defKeywords:i("struct"),typeFirstDefinitions:!0,atoms:i("null true false"),hooks:{"#":s,"*":c},modeProps:{fold:["brace","include"]}}),h(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:i(b+" asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),types:i(k+" bool wchar_t"),blockKeywords:i("catch class do else finally for if struct switch try while"),defKeywords:i("class namespace struct enum union"),typeFirstDefinitions:!0,atoms:i("true false null"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,hooks:{"#":s,"*":c,u:d,U:d,L:d,R:d,0:u,1:u,2:u,3:u,4:u,5:u,6:u,7:u,8:u,9:u,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&f(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),h("text/x-java",{name:"clike",keywords:i("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:i("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:i("catch class do else finally for if switch try while"),defKeywords:i("class interface package enum @interface"),typeFirstDefinitions:!0,atoms:i("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),h("text/x-csharp",{name:"clike",keywords:i("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:i("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:i("catch class do else finally for foreach if struct switch try while"),defKeywords:i("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=p,p(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),h("text/x-scala",{name:"clike",keywords:i("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:i("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:i("catch class do else finally for forSome if match switch try while"),defKeywords:i("class def object package trait type val var"),atoms:i("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=g,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")}},modeProps:{closeBrackets:{triples:'"'}}}),h("text/x-kotlin",{name:"clike",keywords:i("package as typealias class interface this super val var fun for is in This throw return break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend"),types:i("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:i("catch class do else finally for if where try while enum"),defKeywords:i("class val var object package interface fun"),atoms:i("true false null this"),hooks:{'"':function(e,t){return t.tokenize=y(e.match('""')),t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}}),h(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:i("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:i("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:i("for while do if else struct"),builtin:i("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:i("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":s},modeProps:{fold:["brace","include"]}}),h("text/x-nesc",{name:"clike",keywords:i(b+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i(k),blockKeywords:i("case do else for if switch while struct"),atoms:i("null true false"),hooks:{"#":s},modeProps:{fold:["brace","include"]}}),h("text/x-objectivec",{name:"clike",keywords:i(b+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:i(k),atoms:i("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(e){return e.eatWhile(/[\w\$]/),"keyword"},"#":s,indent:function(e,t,n){if("statement"==t.type&&/^@\w/.test(n))return t.indented}},modeProps:{fold:"brace"}}),h("text/x-squirrel",{name:"clike",keywords:i("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:i(k),blockKeywords:i("case catch class else for foreach if switch try while"),defKeywords:i("function local class"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"#":s},modeProps:{fold:["brace","include"]}});var w=null;h("text/x-ceylon",{name:"clike",keywords:i("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:i("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:i("class dynamic function interface module object package value"),builtin:i("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:i("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=x(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!w||!e.match("`"))&&(t.tokenize=w,w=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"variable-3"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})});
|
55
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,n,r,a,o){this.indented=e,this.column=t,this.type=n,this.info=r,this.align=a,this.prev=o}function n(e,n,r,a){var o=e.indented;return e.context&&"statement"==e.context.type&&"statement"!=r&&(o=e.context.indented),e.context=new t(o,n,r,a,null,e.context)}function r(e){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}function a(e,t,n){return"variable"==t.prevToken||"variable-3"==t.prevToken||(!!/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n))||(!(!t.typeAtEndOfLine||e.column()!=e.indentation())||void 0))}function o(e){for(;;){if(!e||"top"==e.type)return!0;if("}"==e.type&&"namespace"!=e.prev.info)return!1;e=e.prev}}function i(e){for(var t={},n=e.split(" "),r=0;r<n.length;++r)t[n[r]]=!0;return t}function l(e,t){return"function"==typeof e?e(t):e.propertyIsEnumerable(t)}function s(e,t){if(!t.startOfLine)return!1;for(var n,r=null;n=e.peek();){if("\\"==n&&e.match(/^.$/)){r=s;break}if("/"==n&&e.match(/^\/[\/\*]/,!1))break;e.next()}return t.tokenize=r,"meta"}function c(e,t){return"variable-3"==t.prevToken&&"variable-3"}function u(e){return e.eatWhile(/[\w\.']/),"number"}function d(e,t){if(e.backUp(1),e.match(/(R|u8R|uR|UR|LR)/)){var n=e.match(/"([^\s\\()]{0,16})\(/);return!!n&&(t.cpp11RawStringDelim=n[1],t.tokenize=m,m(e,t))}return e.match(/(u8|u|U|L)/)?!!e.match(/["']/,!1)&&"string":(e.next(),!1)}function f(e){var t=/(\w+)::~?(\w+)$/.exec(e);return t&&t[1]==t[2]}function p(e,t){for(var n;null!=(n=e.next());)if('"'==n&&!e.eat('"')){t.tokenize=null;break}return"string"}function m(e,t){var n=t.cpp11RawStringDelim.replace(/[^\w\s]/g,"\\$&");return e.match(new RegExp(".*?\\)"+n+'"'))?t.tokenize=null:e.skipToEnd(),"string"}function h(t,n){function r(e){if(e)for(var t in e)e.hasOwnProperty(t)&&a.push(t)}"string"==typeof t&&(t=[t]);var a=[];r(n.keywords),r(n.types),r(n.builtin),r(n.atoms),a.length&&(n.helperType=t[0],e.registerHelper("hintWords",t[0],a));for(var o=0;o<t.length;++o)e.defineMIME(t[o],n)}function g(e,t){for(var n=!1;!e.eol();){if(!n&&e.match('"""')){t.tokenize=null;break}n="\\"==e.next()&&!n}return"string"}function y(e){return function(t,n){for(var r,a=!1,o=!1;!t.eol();){if(!e&&!a&&t.match('"')){o=!0;break}if(e&&t.match('"""')){o=!0;break}r=t.next(),!a&&"$"==r&&t.match("{")&&t.skipTo("}"),a=!a&&"\\"==r&&!e}return!o&&e||(n.tokenize=null),"string"}}function x(e){return function(t,n){for(var r,a=!1,o=!1;!t.eol();){if(!a&&t.match('"')&&("single"==e||t.match('""'))){o=!0;break}if(!a&&t.match("``")){w=x(e),o=!0;break}r=t.next(),a="single"==e&&!a&&"\\"==r}return o&&(n.tokenize=null),"string"}}e.defineMode("clike",function(i,s){function c(e,t){var n=e.next();if(S[n]){var r=S[n](e,t);if(r!==!1)return r}if('"'==n||"'"==n)return t.tokenize=u(n),t.tokenize(e,t);if(D.test(n))return p=n,null;if(L.test(n)){if(e.backUp(1),e.match(I))return"number";e.next()}if("/"==n){if(e.eat("*"))return t.tokenize=d,d(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(F.test(n)){for(;!e.match(/^\/[\/*]/,!1)&&e.eat(F););return"operator"}if(e.eatWhile(z),P)for(;e.match(P);)e.eatWhile(z);var a=e.current();return l(x,a)?(l(w,a)&&(p="newstatement"),l(v,a)&&(m=!0),"keyword"):l(b,a)?"variable-3":l(k,a)?(l(w,a)&&(p="newstatement"),"builtin"):l(_,a)?"atom":"variable"}function u(e){return function(t,n){for(var r,a=!1,o=!1;null!=(r=t.next());){if(r==e&&!a){o=!0;break}a=!a&&"\\"==r}return(o||!a&&!C)&&(n.tokenize=null),"string"}}function d(e,t){for(var n,r=!1;n=e.next();){if("/"==n&&r){t.tokenize=null;break}r="*"==n}return"comment"}function f(e,t){s.typeFirstDefinitions&&e.eol()&&o(t.context)&&(t.typeAtEndOfLine=a(e,t,e.pos))}var p,m,h=i.indentUnit,g=s.statementIndentUnit||h,y=s.dontAlignCalls,x=s.keywords||{},b=s.types||{},k=s.builtin||{},w=s.blockKeywords||{},v=s.defKeywords||{},_=s.atoms||{},S=s.hooks||{},C=s.multiLineStrings,T=s.indentStatements!==!1,M=s.indentSwitch!==!1,P=s.namespaceSeparator,D=s.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,L=s.numberStart||/[\d\.]/,I=s.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,F=s.isOperatorChar||/[+\-*&%=<>!?|\/]/,z=s.isIdentifierChar||/[\w\$_\xa1-\uffff]/;return{startState:function(e){return{tokenize:null,context:new t((e||0)-h,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(e,t){var i=t.context;if(e.sol()&&(null==i.align&&(i.align=!1),t.indented=e.indentation(),t.startOfLine=!0),e.eatSpace())return f(e,t),null;p=m=null;var l=(t.tokenize||c)(e,t);if("comment"==l||"meta"==l)return l;if(null==i.align&&(i.align=!0),";"==p||":"==p||","==p&&e.match(/^\s*(?:\/\/.*)?$/,!1))for(;"statement"==t.context.type;)r(t);else if("{"==p)n(t,e.column(),"}");else if("["==p)n(t,e.column(),"]");else if("("==p)n(t,e.column(),")");else if("}"==p){for(;"statement"==i.type;)i=r(t);for("}"==i.type&&(i=r(t));"statement"==i.type;)i=r(t)}else p==i.type?r(t):T&&(("}"==i.type||"top"==i.type)&&";"!=p||"statement"==i.type&&"newstatement"==p)&&n(t,e.column(),"statement",e.current());if("variable"==l&&("def"==t.prevToken||s.typeFirstDefinitions&&a(e,t,e.start)&&o(t.context)&&e.match(/^\s*\(/,!1))&&(l="def"),S.token){var u=S.token(e,t,l);void 0!==u&&(l=u)}return"def"==l&&s.styleDefs===!1&&(l="variable"),t.startOfLine=!1,t.prevToken=m?"def":l||p,f(e,t),l},indent:function(t,n){if(t.tokenize!=c&&null!=t.tokenize||t.typeAtEndOfLine)return e.Pass;var r=t.context,a=n&&n.charAt(0);if("statement"==r.type&&"}"==a&&(r=r.prev),s.dontIndentStatements)for(;"statement"==r.type&&s.dontIndentStatements.test(r.info);)r=r.prev;if(S.indent){var o=S.indent(t,r,n);if("number"==typeof o)return o}var i=a==r.type,l=r.prev&&"switch"==r.prev.info;if(s.allmanIndentation&&/[{(]/.test(a)){for(;"top"!=r.type&&"}"!=r.type;)r=r.prev;return r.indented}return"statement"==r.type?r.indented+("{"==a?0:g):!r.align||y&&")"==r.type?")"!=r.type||i?r.indented+(i?0:h)+(i||!l||/^(?:case|default)\b/.test(n)?0:h):r.indented+g:r.column+(i?0:1)},electricInput:M?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",fold:"brace"}});var b="auto if break case register continue return default do sizeof static else struct switch extern typedef union for goto while enum const volatile",k="int long char short double float unsigned signed void size_t ptrdiff_t";h(["text/x-csrc","text/x-c","text/x-chdr"],{name:"clike",keywords:i(b),types:i(k+" bool _Complex _Bool float_t double_t intptr_t intmax_t int8_t int16_t int32_t int64_t uintptr_t uintmax_t uint8_t uint16_t uint32_t uint64_t"),blockKeywords:i("case do else for if switch while struct"),defKeywords:i("struct"),typeFirstDefinitions:!0,atoms:i("null true false"),hooks:{"#":s,"*":c},modeProps:{fold:["brace","include"]}}),h(["text/x-c++src","text/x-c++hdr"],{name:"clike",keywords:i(b+" asm dynamic_cast namespace reinterpret_cast try explicit new static_cast typeid catch operator template typename class friend private this using const_cast inline public throw virtual delete mutable protected alignas alignof constexpr decltype nullptr noexcept thread_local final static_assert override"),types:i(k+" bool wchar_t"),blockKeywords:i("catch class do else finally for if struct switch try while"),defKeywords:i("class namespace struct enum union"),typeFirstDefinitions:!0,atoms:i("true false null"),dontIndentStatements:/^template$/,isIdentifierChar:/[\w\$_~\xa1-\uffff]/,hooks:{"#":s,"*":c,u:d,U:d,L:d,R:d,0:u,1:u,2:u,3:u,4:u,5:u,6:u,7:u,8:u,9:u,token:function(e,t,n){if("variable"==n&&"("==e.peek()&&(";"==t.prevToken||null==t.prevToken||"}"==t.prevToken)&&f(e.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),h("text/x-java",{name:"clike",keywords:i("abstract assert break case catch class const continue default do else enum extends final finally float for goto if implements import instanceof interface native new package private protected public return static strictfp super switch synchronized this throw throws transient try volatile while @interface"),types:i("byte short int long float double boolean char void Boolean Byte Character Double Float Integer Long Number Object Short String StringBuffer StringBuilder Void"),blockKeywords:i("catch class do else finally for if switch try while"),defKeywords:i("class interface package enum @interface"),typeFirstDefinitions:!0,atoms:i("true false null"),number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,hooks:{"@":function(e){return!e.match("interface",!1)&&(e.eatWhile(/[\w\$_]/),"meta")}},modeProps:{fold:["brace","import"]}}),h("text/x-csharp",{name:"clike",keywords:i("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using virtual void volatile while add alias ascending descending dynamic from get global group into join let orderby partial remove select set value var yield"),types:i("Action Boolean Byte Char DateTime DateTimeOffset Decimal Double Func Guid Int16 Int32 Int64 Object SByte Single String Task TimeSpan UInt16 UInt32 UInt64 bool byte char decimal double short int long object sbyte float string ushort uint ulong"),blockKeywords:i("catch class do else finally for foreach if struct switch try while"),defKeywords:i("class interface namespace struct var"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"@":function(e,t){return e.eat('"')?(t.tokenize=p,p(e,t)):(e.eatWhile(/[\w\$_]/),"meta")}}}),h("text/x-scala",{name:"clike",keywords:i("abstract case catch class def do else extends final finally for forSome if implicit import lazy match new null object override package private protected return sealed super this throw trait try type val var while with yield _ assert assume require print println printf readLine readBoolean readByte readShort readChar readInt readLong readFloat readDouble"),types:i("AnyVal App Application Array BufferedIterator BigDecimal BigInt Char Console Either Enumeration Equiv Error Exception Fractional Function IndexedSeq Int Integral Iterable Iterator List Map Numeric Nil NotNull Option Ordered Ordering PartialFunction PartialOrdering Product Proxy Range Responder Seq Serializable Set Specializable Stream StringBuilder StringContext Symbol Throwable Traversable TraversableOnce Tuple Unit Vector Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),multiLineStrings:!0,blockKeywords:i("catch class do else finally for forSome if match switch try while"),defKeywords:i("class def object package trait type val var"),atoms:i("true false null"),indentStatements:!1,indentSwitch:!1,isOperatorChar:/[+\-*&%=<>!?|\/#:@]/,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return!!e.match('""')&&(t.tokenize=g,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(e,n){var r=n.context;return!("}"!=r.type||!r.align||!e.eat(">"))&&(n.context=new t(r.indented,r.column,r.type,r.info,null,r.prev),"operator")}},modeProps:{closeBrackets:{triples:'"'}}}),h("text/x-kotlin",{name:"clike",keywords:i("package as typealias class interface this super val var fun for is in This throw return break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend"),types:i("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+\.?\d*|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:i("catch class do else finally for if where try while enum"),defKeywords:i("class val var object package interface fun"),atoms:i("true false null this"),hooks:{'"':function(e,t){return t.tokenize=y(e.match('""')),t.tokenize(e,t)}},modeProps:{closeBrackets:{triples:'"'}}}),h(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:i("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:i("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:i("for while do if else struct"),builtin:i("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:i("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TexureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":s},modeProps:{fold:["brace","include"]}}),h("text/x-nesc",{name:"clike",keywords:i(b+"as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:i(k),blockKeywords:i("case do else for if switch while struct"),atoms:i("null true false"),hooks:{"#":s},modeProps:{fold:["brace","include"]}}),h("text/x-objectivec",{name:"clike",keywords:i(b+"inline restrict _Bool _Complex _Imaginary BOOL Class bycopy byref id IMP in inout nil oneway out Protocol SEL self super atomic nonatomic retain copy readwrite readonly"),types:i(k),atoms:i("YES NO NULL NILL ON OFF true false"),hooks:{"@":function(e){return e.eatWhile(/[\w\$]/),"keyword"},"#":s,indent:function(e,t,n){if("statement"==t.type&&/^@\w/.test(n))return t.indented}},modeProps:{fold:"brace"}}),h("text/x-squirrel",{name:"clike",keywords:i("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:i(k),blockKeywords:i("case catch class else for foreach if switch try while"),defKeywords:i("function local class"),typeFirstDefinitions:!0,atoms:i("true false null"),hooks:{"#":s},modeProps:{fold:["brace","include"]}});var w=null;h("text/x-ceylon",{name:"clike",keywords:i("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:i("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:i("class dynamic function interface module object package value"),builtin:i("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:i("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(e){return e.eatWhile(/[\w\$_]/),"meta"},'"':function(e,t){return t.tokenize=x(e.match('""')?"triple":"single"),t.tokenize(e,t)},"`":function(e,t){return!(!w||!e.match("`"))&&(t.tokenize=w,w=null,t.tokenize(e,t))},"'":function(e){return e.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(e,t,n){if(("variable"==n||"variable-3"==n)&&"."==t.prevToken)return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})});
|
56
56
|
},{"../../lib/codemirror":22}],24:[function(require,module,exports){
|
57
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;r<e.length;++r)t[e[r].toLowerCase()]=!0;return t}function r(e,t){for(var r,o=!1;null!=(r=e.next());){if(o&&"/"==r){t.tokenize=null;break}o="*"==r}return["comment","comment"]}e.defineMode("css",function(t,r){function o(e,t){return h=t,e}function a(e,t){var r=e.next();if(f[r]){var a=f[r](e,t);if(!1!==a)return a}return"@"==r?(e.eatWhile(/[\w\\\-]/),o("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?o(null,"compare"):'"'==r||"'"==r?(t.tokenize=i(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),o("atom","hash")):"!"==r?(e.match(/^\s*\w*/),o("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),o("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?o(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?o("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?o(null,r):"u"==r&&e.match(/rl(-prefix)?\(/)||"d"==r&&e.match("omain(")||"r"==r&&e.match("egexp(")?(e.backUp(1),t.tokenize=n,o("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),o("property","word")):o(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),o("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?o("variable-2","variable-definition"):o("variable-2","variable")):e.match(/^\w+-/)?o("meta","meta"):void 0}function i(e){return function(t,r){for(var a,i=!1;null!=(a=t.next());){if(a==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==a}return(a==e||!i&&")"!=e)&&(r.tokenize=null),o("string","string")}}function n(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=i(")"),o(null,"(")}function l(e,t,r){this.type=e,this.indent=t,this.prev=r}function s(e,t,r,o){return e.context=new l(r,t.indentation()+(!1===o?0:b),e.context),r}function c(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function d(e,t,r){return _[r.context.type](e,t,r)}function p(e,t,r,o){for(var a=o||1;a>0;a--)r.context=r.context.prev;return d(e,t,r)}function u(e){var t=e.current().toLowerCase();g=K.hasOwnProperty(t)?"atom":P.hasOwnProperty(t)?"keyword":"variable"}var m=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var h,g,b=t.indentUnit,f=r.tokenHooks,y=r.documentTypes||{},w=r.mediaTypes||{},k=r.mediaFeatures||{},v=r.mediaValueKeywords||{},x=r.propertyKeywords||{},z=r.nonStandardPropertyKeywords||{},j=r.fontProperties||{},q=r.counterDescriptors||{},P=r.colorKeywords||{},K=r.valueKeywords||{},B=r.allowNested,C=r.lineComment,T=!0===r.supportsAtComponent,_={};return _.top=function(e,t,r){if("{"==e)return s(r,t,"block");if("}"==e&&r.context.prev)return c(r);if(T&&/@component/.test(e))return s(r,t,"atComponentBlock");if(/^@(-moz-)?document$/.test(e))return s(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/.test(e))return s(r,t,"atBlock");if(/^@(font-face|counter-style)/.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return s(r,t,"at");if("hash"==e)g="builtin";else if("word"==e)g="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return s(r,t,"interpolation");if(":"==e)return"pseudo";if(B&&"("==e)return s(r,t,"parens")}return r.context.type},_.block=function(e,t,r){if("word"==e){var o=t.current().toLowerCase();return x.hasOwnProperty(o)?(g="property","maybeprop"):z.hasOwnProperty(o)?(g="string-2","maybeprop"):B?(g=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(g+=" error","maybeprop")}return"meta"==e?"block":B||"hash"!=e&&"qualifier"!=e?_.top(e,t,r):(g="error","block")},_.maybeprop=function(e,t,r){return":"==e?s(r,t,"prop"):d(e,t,r)},_.prop=function(e,t,r){if(";"==e)return c(r);if("{"==e&&B)return s(r,t,"propBlock");if("}"==e||"{"==e)return p(e,t,r);if("("==e)return s(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)u(t);else if("interpolation"==e)return s(r,t,"interpolation")}else g+=" error";return"prop"},_.propBlock=function(e,t,r){return"}"==e?c(r):"word"==e?(g="property","maybeprop"):r.context.type},_.parens=function(e,t,r){return"{"==e||"}"==e?p(e,t,r):")"==e?c(r):"("==e?s(r,t,"parens"):"interpolation"==e?s(r,t,"interpolation"):("word"==e&&u(t),"parens")},_.pseudo=function(e,t,r){return"meta"==e?"pseudo":"word"==e?(g="variable-3",r.context.type):d(e,t,r)},_.documentTypes=function(e,t,r){return"word"==e&&y.hasOwnProperty(t.current())?(g="tag",r.context.type):_.atBlock(e,t,r)},_.atBlock=function(e,t,r){if("("==e)return s(r,t,"atBlock_parens");if("}"==e||";"==e)return p(e,t,r);if("{"==e)return c(r)&&s(r,t,B?"block":"top");if("interpolation"==e)return s(r,t,"interpolation");if("word"==e){var o=t.current().toLowerCase();g="only"==o||"not"==o||"and"==o||"or"==o?"keyword":w.hasOwnProperty(o)?"attribute":k.hasOwnProperty(o)?"property":v.hasOwnProperty(o)?"keyword":x.hasOwnProperty(o)?"property":z.hasOwnProperty(o)?"string-2":K.hasOwnProperty(o)?"atom":P.hasOwnProperty(o)?"keyword":"error"}return r.context.type},_.atComponentBlock=function(e,t,r){return"}"==e?p(e,t,r):"{"==e?c(r)&&s(r,t,B?"block":"top",!1):("word"==e&&(g="error"),r.context.type)},_.atBlock_parens=function(e,t,r){return")"==e?c(r):"{"==e||"}"==e?p(e,t,r,2):_.atBlock(e,t,r)},_.restricted_atBlock_before=function(e,t,r){return"{"==e?s(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(g="variable","restricted_atBlock_before"):d(e,t,r)},_.restricted_atBlock=function(e,t,r){return"}"==e?(r.stateArg=null,c(r)):"word"==e?(g="@font-face"==r.stateArg&&!j.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!q.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},_.keyframes=function(e,t,r){return"word"==e?(g="variable","keyframes"):"{"==e?s(r,t,"top"):d(e,t,r)},_.at=function(e,t,r){return";"==e?c(r):"{"==e||"}"==e?p(e,t,r):("word"==e?g="tag":"hash"==e&&(g="builtin"),"at")},_.interpolation=function(e,t,r){return"}"==e?c(r):"{"==e||";"==e?p(e,t,r):("word"==e?g="variable":"variable"!=e&&"("!=e&&")"!=e&&(g="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:m?"block":"top",stateArg:null,context:new l(m?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||a)(e,t);return r&&"object"==typeof r&&(h=r[1],r=r[0]),g=r,t.state=_[t.state](h,e,t),g},indent:function(e,t){var r=e.context,o=t&&t.charAt(0),a=r.indent;return"prop"!=r.type||"}"!=o&&")"!=o||(r=r.prev),r.prev&&("}"!=o||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=o||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=o||"at"!=r.type&&"atBlock"!=r.type)||(a=Math.max(0,r.indent-b)):(r=r.prev,a=r.indent)),a},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:C,fold:"brace"}});var o=["domain","regexp","url","url-prefix"],a=t(o),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],n=t(i),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],d=t(c),p=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],u=t(p),m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],h=t(m),g=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],b=t(g),f=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(f),w=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],k=t(w),v=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=t(v),z=o.concat(i).concat(l).concat(c).concat(p).concat(m).concat(w).concat(v);e.registerHelper("hintWords","css",z),e.defineMIME("text/css",{documentTypes:a,mediaTypes:n,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:u,nonStandardPropertyKeywords:h,fontProperties:b,counterDescriptors:y,colorKeywords:k,valueKeywords:x,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:n,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:u,nonStandardPropertyKeywords:h,colorKeywords:k,valueKeywords:x,fontProperties:b,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:n,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:u,nonStandardPropertyKeywords:h,colorKeywords:k,valueKeywords:x,fontProperties:b,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:n,mediaFeatures:s,propertyKeywords:u,nonStandardPropertyKeywords:h,fontProperties:b,counterDescriptors:y,colorKeywords:k,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css",helperType:"gss"})});
|
57
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},r=0;r<e.length;++r)t[e[r].toLowerCase()]=!0;return t}function r(e,t){for(var r,o=!1;null!=(r=e.next());){if(o&&"/"==r){t.tokenize=null;break}o="*"==r}return["comment","comment"]}e.defineMode("css",function(t,r){function o(e,t){return h=t,e}function a(e,t){var r=e.next();if(f[r]){var a=f[r](e,t);if(a!==!1)return a}return"@"==r?(e.eatWhile(/[\w\\\-]/),o("def",e.current())):"="==r||("~"==r||"|"==r)&&e.eat("=")?o(null,"compare"):'"'==r||"'"==r?(t.tokenize=i(r),t.tokenize(e,t)):"#"==r?(e.eatWhile(/[\w\\\-]/),o("atom","hash")):"!"==r?(e.match(/^\s*\w*/),o("keyword","important")):/\d/.test(r)||"."==r&&e.eat(/\d/)?(e.eatWhile(/[\w.%]/),o("number","unit")):"-"!==r?/[,+>*\/]/.test(r)?o(null,"select-op"):"."==r&&e.match(/^-?[_a-z][_a-z0-9-]*/i)?o("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(r)?o(null,r):"u"==r&&e.match(/rl(-prefix)?\(/)||"d"==r&&e.match("omain(")||"r"==r&&e.match("egexp(")?(e.backUp(1),t.tokenize=n,o("property","word")):/[\w\\\-]/.test(r)?(e.eatWhile(/[\w\\\-]/),o("property","word")):o(null,null):/[\d.]/.test(e.peek())?(e.eatWhile(/[\w.%]/),o("number","unit")):e.match(/^-[\w\\\-]+/)?(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?o("variable-2","variable-definition"):o("variable-2","variable")):e.match(/^\w+-/)?o("meta","meta"):void 0}function i(e){return function(t,r){for(var a,i=!1;null!=(a=t.next());){if(a==e&&!i){")"==e&&t.backUp(1);break}i=!i&&"\\"==a}return(a==e||!i&&")"!=e)&&(r.tokenize=null),o("string","string")}}function n(e,t){return e.next(),e.match(/\s*[\"\')]/,!1)?t.tokenize=null:t.tokenize=i(")"),o(null,"(")}function l(e,t,r){this.type=e,this.indent=t,this.prev=r}function s(e,t,r,o){return e.context=new l(r,t.indentation()+(o===!1?0:b),e.context),r}function c(e){return e.context.prev&&(e.context=e.context.prev),e.context.type}function d(e,t,r){return _[r.context.type](e,t,r)}function p(e,t,r,o){for(var a=o||1;a>0;a--)r.context=r.context.prev;return d(e,t,r)}function u(e){var t=e.current().toLowerCase();g=K.hasOwnProperty(t)?"atom":P.hasOwnProperty(t)?"keyword":"variable"}var m=r.inline;r.propertyKeywords||(r=e.resolveMode("text/css"));var h,g,b=t.indentUnit,f=r.tokenHooks,y=r.documentTypes||{},w=r.mediaTypes||{},k=r.mediaFeatures||{},v=r.mediaValueKeywords||{},x=r.propertyKeywords||{},z=r.nonStandardPropertyKeywords||{},j=r.fontProperties||{},q=r.counterDescriptors||{},P=r.colorKeywords||{},K=r.valueKeywords||{},B=r.allowNested,C=r.lineComment,T=r.supportsAtComponent===!0,_={};return _.top=function(e,t,r){if("{"==e)return s(r,t,"block");if("}"==e&&r.context.prev)return c(r);if(T&&/@component/.test(e))return s(r,t,"atComponentBlock");if(/^@(-moz-)?document$/.test(e))return s(r,t,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/.test(e))return s(r,t,"atBlock");if(/^@(font-face|counter-style)/.test(e))return r.stateArg=e,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/.test(e))return"keyframes";if(e&&"@"==e.charAt(0))return s(r,t,"at");if("hash"==e)g="builtin";else if("word"==e)g="tag";else{if("variable-definition"==e)return"maybeprop";if("interpolation"==e)return s(r,t,"interpolation");if(":"==e)return"pseudo";if(B&&"("==e)return s(r,t,"parens")}return r.context.type},_.block=function(e,t,r){if("word"==e){var o=t.current().toLowerCase();return x.hasOwnProperty(o)?(g="property","maybeprop"):z.hasOwnProperty(o)?(g="string-2","maybeprop"):B?(g=t.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(g+=" error","maybeprop")}return"meta"==e?"block":B||"hash"!=e&&"qualifier"!=e?_.top(e,t,r):(g="error","block")},_.maybeprop=function(e,t,r){return":"==e?s(r,t,"prop"):d(e,t,r)},_.prop=function(e,t,r){if(";"==e)return c(r);if("{"==e&&B)return s(r,t,"propBlock");if("}"==e||"{"==e)return p(e,t,r);if("("==e)return s(r,t,"parens");if("hash"!=e||/^#([0-9a-fA-f]{3,4}|[0-9a-fA-f]{6}|[0-9a-fA-f]{8})$/.test(t.current())){if("word"==e)u(t);else if("interpolation"==e)return s(r,t,"interpolation")}else g+=" error";return"prop"},_.propBlock=function(e,t,r){return"}"==e?c(r):"word"==e?(g="property","maybeprop"):r.context.type},_.parens=function(e,t,r){return"{"==e||"}"==e?p(e,t,r):")"==e?c(r):"("==e?s(r,t,"parens"):"interpolation"==e?s(r,t,"interpolation"):("word"==e&&u(t),"parens")},_.pseudo=function(e,t,r){return"meta"==e?"pseudo":"word"==e?(g="variable-3",r.context.type):d(e,t,r)},_.documentTypes=function(e,t,r){return"word"==e&&y.hasOwnProperty(t.current())?(g="tag",r.context.type):_.atBlock(e,t,r)},_.atBlock=function(e,t,r){if("("==e)return s(r,t,"atBlock_parens");if("}"==e||";"==e)return p(e,t,r);if("{"==e)return c(r)&&s(r,t,B?"block":"top");if("interpolation"==e)return s(r,t,"interpolation");if("word"==e){var o=t.current().toLowerCase();g="only"==o||"not"==o||"and"==o||"or"==o?"keyword":w.hasOwnProperty(o)?"attribute":k.hasOwnProperty(o)?"property":v.hasOwnProperty(o)?"keyword":x.hasOwnProperty(o)?"property":z.hasOwnProperty(o)?"string-2":K.hasOwnProperty(o)?"atom":P.hasOwnProperty(o)?"keyword":"error"}return r.context.type},_.atComponentBlock=function(e,t,r){return"}"==e?p(e,t,r):"{"==e?c(r)&&s(r,t,B?"block":"top",!1):("word"==e&&(g="error"),r.context.type)},_.atBlock_parens=function(e,t,r){return")"==e?c(r):"{"==e||"}"==e?p(e,t,r,2):_.atBlock(e,t,r)},_.restricted_atBlock_before=function(e,t,r){return"{"==e?s(r,t,"restricted_atBlock"):"word"==e&&"@counter-style"==r.stateArg?(g="variable","restricted_atBlock_before"):d(e,t,r)},_.restricted_atBlock=function(e,t,r){return"}"==e?(r.stateArg=null,c(r)):"word"==e?(g="@font-face"==r.stateArg&&!j.hasOwnProperty(t.current().toLowerCase())||"@counter-style"==r.stateArg&&!q.hasOwnProperty(t.current().toLowerCase())?"error":"property","maybeprop"):"restricted_atBlock"},_.keyframes=function(e,t,r){return"word"==e?(g="variable","keyframes"):"{"==e?s(r,t,"top"):d(e,t,r)},_.at=function(e,t,r){return";"==e?c(r):"{"==e||"}"==e?p(e,t,r):("word"==e?g="tag":"hash"==e&&(g="builtin"),"at")},_.interpolation=function(e,t,r){return"}"==e?c(r):"{"==e||";"==e?p(e,t,r):("word"==e?g="variable":"variable"!=e&&"("!=e&&")"!=e&&(g="error"),"interpolation")},{startState:function(e){return{tokenize:null,state:m?"block":"top",stateArg:null,context:new l(m?"block":"top",e||0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;var r=(t.tokenize||a)(e,t);return r&&"object"==typeof r&&(h=r[1],r=r[0]),g=r,t.state=_[t.state](h,e,t),g},indent:function(e,t){var r=e.context,o=t&&t.charAt(0),a=r.indent;return"prop"!=r.type||"}"!=o&&")"!=o||(r=r.prev),r.prev&&("}"!=o||"block"!=r.type&&"top"!=r.type&&"interpolation"!=r.type&&"restricted_atBlock"!=r.type?(")"!=o||"parens"!=r.type&&"atBlock_parens"!=r.type)&&("{"!=o||"at"!=r.type&&"atBlock"!=r.type)||(a=Math.max(0,r.indent-b)):(r=r.prev,a=r.indent)),a},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:C,fold:"brace"}});var o=["domain","regexp","url","url-prefix"],a=t(o),i=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],n=t(i),l=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover"],s=t(l),c=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive"],d=t(c),p=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],u=t(p),m=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"],h=t(m),g=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],b=t(g),f=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],y=t(f),w=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],k=t(w),v=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","match","matrix","matrix3d","media-controls-background","media-current-time-display","media-fullscreen-button","media-mute-button","media-play-button","media-return-to-realtime-button","media-rewind-button","media-seek-back-button","media-seek-forward-button","media-slider","media-sliderthumb","media-time-remaining-display","media-volume-slider","media-volume-slider-container","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menulist-text","menulist-textfield","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],x=t(v),z=o.concat(i).concat(l).concat(c).concat(p).concat(m).concat(w).concat(v);e.registerHelper("hintWords","css",z),e.defineMIME("text/css",{documentTypes:a,mediaTypes:n,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:u,nonStandardPropertyKeywords:h,fontProperties:b,counterDescriptors:y,colorKeywords:k,valueKeywords:x,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css"}),e.defineMIME("text/x-scss",{mediaTypes:n,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:u,nonStandardPropertyKeywords:h,colorKeywords:k,valueKeywords:x,fontProperties:b,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},":":function(e){return!!e.match(/\s*\{/,!1)&&[null,null]},$:function(e){return e.match(/^[\w-]+/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(e){return!!e.eat("{")&&[null,"interpolation"]}},name:"css",helperType:"scss"}),e.defineMIME("text/x-less",{mediaTypes:n,mediaFeatures:s,mediaValueKeywords:d,propertyKeywords:u,nonStandardPropertyKeywords:h,colorKeywords:k,valueKeywords:x,fontProperties:b,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(e,t){return e.eat("/")?(e.skipToEnd(),["comment","comment"]):e.eat("*")?(t.tokenize=r,r(e,t)):["operator","operator"]},"@":function(e){return e.eat("{")?[null,"interpolation"]:!e.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/,!1)&&(e.eatWhile(/[\w\\\-]/),e.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),e.defineMIME("text/x-gss",{documentTypes:a,mediaTypes:n,mediaFeatures:s,propertyKeywords:u,nonStandardPropertyKeywords:h,fontProperties:b,counterDescriptors:y,colorKeywords:k,valueKeywords:x,supportsAtComponent:!0,tokenHooks:{"/":function(e,t){return!!e.eat("*")&&(t.tokenize=r,r(e,t))}},name:"css",helperType:"gss"})});
|
58
58
|
},{"../../lib/codemirror":22}],25:[function(require,module,exports){
|
59
59
|
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("go",function(t){function n(e,t){var n=e.next();if('"'==n||"'"==n||"`"==n)return t.tokenize=r(n),t.tokenize(e,t);if(/[\d\.]/.test(n))return"."==n?e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/):"0"==n?e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/):e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/),"number";if(/[\[\]{}\(\),;\:\.]/.test(n))return u=n,null;if("/"==n){if(e.eat("*"))return t.tokenize=i,i(e,t);if(e.eat("/"))return e.skipToEnd(),"comment"}if(d.test(n))return e.eatWhile(d),"operator";e.eatWhile(/[\w\$_\xa1-\uffff]/);var o=e.current();return f.propertyIsEnumerable(o)?("case"!=o&&"default"!=o||(u="case"),"keyword"):s.propertyIsEnumerable(o)?"atom":"variable"}function r(e){return function(t,r){for(var i,o=!1,a=!1;null!=(i=t.next());){if(i==e&&!o){a=!0;break}o=!o&&"`"!=e&&"\\"==i}return(a||!o&&"`"!=e)&&(r.tokenize=n),"string"}}function i(e,t){for(var r,i=!1;r=e.next();){if("/"==r&&i){t.tokenize=n;break}i="*"==r}return"comment"}function o(e,t,n,r,i){this.indented=e,this.column=t,this.type=n,this.align=r,this.prev=i}function a(e,t,n){return e.context=new o(e.indented,t,n,null,e.context)}function c(e){if(e.context.prev){var t=e.context.type;return")"!=t&&"]"!=t&&"}"!=t||(e.indented=e.context.indented),e.context=e.context.prev}}var u,l=t.indentUnit,f={break:!0,case:!0,chan:!0,const:!0,continue:!0,default:!0,defer:!0,else:!0,fallthrough:!0,for:!0,func:!0,go:!0,goto:!0,if:!0,import:!0,interface:!0,map:!0,package:!0,range:!0,return:!0,select:!0,struct:!0,switch:!0,type:!0,var:!0,bool:!0,byte:!0,complex64:!0,complex128:!0,float32:!0,float64:!0,int8:!0,int16:!0,int32:!0,int64:!0,string:!0,uint8:!0,uint16:!0,uint32:!0,uint64:!0,int:!0,uint:!0,uintptr:!0,error:!0,rune:!0},s={true:!0,false:!0,iota:!0,nil:!0,append:!0,cap:!0,close:!0,complex:!0,copy:!0,delete:!0,imag:!0,len:!0,make:!0,new:!0,panic:!0,print:!0,println:!0,real:!0,recover:!0},d=/[+\-*&^%:=<>!|\/]/;return{startState:function(e){return{tokenize:null,context:new o((e||0)-l,0,"top",!1),indented:0,startOfLine:!0}},token:function(e,t){var r=t.context;if(e.sol()&&(null==r.align&&(r.align=!1),t.indented=e.indentation(),t.startOfLine=!0,"case"==r.type&&(r.type="}")),e.eatSpace())return null;u=null;var i=(t.tokenize||n)(e,t);return"comment"==i?i:(null==r.align&&(r.align=!0),"{"==u?a(t,e.column(),"}"):"["==u?a(t,e.column(),"]"):"("==u?a(t,e.column(),")"):"case"==u?r.type="case":"}"==u&&"}"==r.type?c(t):u==r.type&&c(t),t.startOfLine=!1,i)},indent:function(t,r){if(t.tokenize!=n&&null!=t.tokenize)return e.Pass;var i=t.context,o=r&&r.charAt(0);if("case"==i.type&&/^(?:case|default)\b/.test(r))return t.context.type="}",i.indented;var a=o==i.type;return i.align?i.column+(a?0:1):i.indented+(a?0:l)},electricChars:"{}):",closeBrackets:"()[]{}''\"\"``",fold:"brace",blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//"}}),e.defineMIME("text/x-go","go")});
|
60
60
|
},{"../../lib/codemirror":22}],26:[function(require,module,exports){
|
61
|
-
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],t):t(CodeMirror)}(function(t){"use strict";function e(t,e,a){var n=t.current(),l=n.search(e);return l>-1?t.backUp(n.length-l):n.match(/<\/?$/)&&(t.backUp(n.length),t.match(e,!1)||t.match(n)),a}function a(t){var e=i[t];return e
|
61
|
+
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],t):t(CodeMirror)}(function(t){"use strict";function e(t,e,a){var n=t.current(),l=n.search(e);return l>-1?t.backUp(n.length-l):n.match(/<\/?$/)&&(t.backUp(n.length),t.match(e,!1)||t.match(n)),a}function a(t){var e=i[t];return e?e:i[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*")}function n(t,e){var n=t.match(a(e));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function l(t,e){return new RegExp((e?"^":"")+"</s*"+t+"s*>","i")}function r(t,e){for(var a in t)for(var n=e[a]||(e[a]=[]),l=t[a],r=l.length-1;r>=0;r--)n.unshift(l[r])}function o(t,e){for(var a=0;a<t.length;a++){var l=t[a];if(!l[0]||l[1].test(n(e,l[0])))return l[2]}}var c={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]},i={};t.defineMode("htmlmixed",function(a,n){function i(n,r){var c,m=s.token(n,r.htmlState),d=/\btag\b/.test(m);if(d&&!/[<>\s\/]/.test(n.current())&&(c=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&u.hasOwnProperty(c))r.inTag=c+" ";else if(r.inTag&&d&&/>$/.test(n.current())){var f=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var p=">"==n.current()&&o(u[f[1]],f[2]),g=t.getMode(a,p),h=l(f[1],!0),S=l(f[1],!1);r.token=function(t,a){return t.match(h,!1)?(a.token=i,a.localState=a.localMode=null,null):e(t,S,a.localMode.token(t,a.localState))},r.localMode=g,r.localState=t.startState(g,s.indent(r.htmlState,""))}else r.inTag&&(r.inTag+=n.current(),n.eol()&&(r.inTag+=" "));return m}var s=t.getMode(a,{name:"xml",htmlMode:!0,multilineTagIndentFactor:n.multilineTagIndentFactor,multilineTagIndentPastTag:n.multilineTagIndentPastTag}),u={},m=n&&n.tags,d=n&&n.scriptTypes;if(r(c,u),m&&r(m,u),d)for(var f=d.length-1;f>=0;f--)u.script.unshift(["type",d[f].matches,d[f].mode]);return{startState:function(){return{token:i,inTag:null,localMode:null,localState:null,htmlState:t.startState(s)}},copyState:function(e){var a;return e.localState&&(a=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:a,htmlState:t.copyState(s,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,a,n){return!e.localMode||/^\s*<\//.test(a)?s.indent(e.htmlState,a):e.localMode.indent?e.localMode.indent(e.localState,a,n):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||s}}}},"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")});
|
62
62
|
},{"../../lib/codemirror":22,"../css/css":24,"../javascript/javascript":27,"../xml/xml":34}],27:[function(require,module,exports){
|
63
63
|
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e,t,r){return/^(?:operator|sof|keyword c|case|new|export|default|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}e.defineMode("javascript",function(r,n){function a(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}function i(e,t,r){return Ve=e,Ee=r,t}function o(e,r){var n=e.next();if('"'==n||"'"==n)return r.tokenize=c(n),r.tokenize(e,r);if("."==n&&e.match(/^\d+(?:[eE][+\-]?\d+)?/))return i("number","number");if("."==n&&e.match(".."))return i("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return i(n);if("="==n&&e.eat(">"))return i("=>","operator");if("0"==n&&e.eat(/x/i))return e.eatWhile(/[\da-f]/i),i("number","number");if("0"==n&&e.eat(/o/i))return e.eatWhile(/[0-7]/i),i("number","number");if("0"==n&&e.eat(/b/i))return e.eatWhile(/[01]/i),i("number","number");if(/\d/.test(n))return e.match(/^\d*(?:\.\d*)?(?:[eE][+\-]?\d+)?/),i("number","number");if("/"==n)return e.eat("*")?(r.tokenize=u,u(e,r)):e.eat("/")?(e.skipToEnd(),i("comment","comment")):t(e,r,1)?(a(e),e.match(/^\b(([gimyu])(?![gimyu]*\2))+\b/),i("regexp","string-2")):(e.eatWhile(Oe),i("operator","operator",e.current()));if("`"==n)return r.tokenize=l,l(e,r);if("#"==n)return e.skipToEnd(),i("error","error");if(Oe.test(n))return">"==n&&r.lexical&&">"==r.lexical.type||e.eatWhile(Oe),i("operator","operator",e.current());if(qe.test(n)){e.eatWhile(qe);var o=e.current(),s=Ce.propertyIsEnumerable(o)&&Ce[o];return s&&"."!=r.lastType?i(s.type,s.style,o):i("variable","variable",o)}}function c(e){return function(t,r){var n,a=!1;if(Ae&&"@"==t.peek()&&t.match(We))return r.tokenize=o,i("jsonld-keyword","meta");for(;null!=(n=t.next())&&(n!=e||a);)a=!a&&"\\"==n;return a||(r.tokenize=o),i("string","string")}}function u(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=o;break}n="*"==r}return i("comment","comment")}function l(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=o;break}n=!n&&"\\"==r}return i("quasi","string-2",e.current())}function s(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if($e){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var c=e.string.charAt(o),u=Pe.indexOf(c);if(u>=0&&u<3){if(!a){++o;break}if(0==--a){"("==c&&(i=!0);break}}else if(u>=3&&u<6)++a;else if(qe.test(c))i=!0;else{if(/["'\/]/.test(c))return;if(i&&!a){++o;break}}}i&&!a&&(t.fatArrowAt=o)}}function f(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function d(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(var r=n.vars;r;r=r.next)if(r.name==t)return!0}function p(e,t,r,n,a){var i=e.cc;for(Ne.state=e,Ne.stream=a,Ne.marked=null,Ne.cc=i,Ne.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((i.length?i.pop():Te?j:g)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return Ne.marked?Ne.marked:"variable"==r&&d(e,n)?"variable-2":t}}}function m(){for(var e=arguments.length-1;e>=0;e--)Ne.cc.push(arguments[e])}function v(){return m.apply(null,arguments),!0}function y(e){function t(t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}var r=Ne.state;if(Ne.marked="def",r.context){if(t(r.localVars))return;r.localVars={name:e,next:r.localVars}}else{if(t(r.globalVars))return;n.globalVars&&(r.globalVars={name:e,next:r.globalVars})}}function k(){Ne.state.context={prev:Ne.state.context,vars:Ne.state.localVars},Ne.state.localVars=Be}function b(){Ne.state.localVars=Ne.state.context.vars,Ne.state.context=Ne.state.context.prev}function x(e,t){var r=function(){var r=Ne.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new f(n,Ne.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function h(){var e=Ne.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function w(e){function t(r){return r==e?v():";"==e?m():v(t)}return t}function g(e,t){return"var"==e?v(x("vardef",t.length),Z,w(";"),h):"keyword a"==e?v(x("form"),V,g,h):"keyword b"==e?v(x("form"),g,h):"{"==e?v(x("}"),J,h):";"==e?v():"if"==e?("else"==Ne.state.lexical.info&&Ne.state.cc[Ne.state.cc.length-1]==h&&Ne.state.cc.pop()(),v(x("form"),V,g,h,ne)):"function"==e?v(le):"for"==e?v(x("form"),ae,g,h):"variable"==e?$e&&"type"==t?(Ne.marked="keyword",v(L,w("operator"),L,w(";"))):v(x("stat"),N):"switch"==e?v(x("form"),V,w("{"),x("}","switch"),J,h,h):"case"==e?v(j,w(":")):"default"==e?v(w(":")):"catch"==e?v(x("form"),k,w("("),se,w(")"),g,h,b):"class"==e?v(x("form"),de,h):"export"==e?v(x("stat"),ye,h):"import"==e?v(x("stat"),be,h):"module"==e?v(x("form"),_,w("{"),x("}"),J,h,h):"async"==e?v(g):"@"==t?v(j,g):m(x("stat"),j,w(";"),h)}function j(e){return E(e,!1)}function M(e){return E(e,!0)}function V(e){return"("!=e?m():v(x(")"),j,w(")"),h)}function E(e,t){if(Ne.state.fatArrowAt==Ne.stream.start){var r=t?O:C;if("("==e)return v(k,x(")"),F(_,")"),h,w("=>"),r,b);if("variable"==e)return m(k,_,w("=>"),r,b)}var n=t?T:A;return Se.hasOwnProperty(e)?v(n):"function"==e?v(le,n):"class"==e?v(x("form"),fe,h):"keyword c"==e||"async"==e?v(t?z:I):"("==e?v(x(")"),I,w(")"),h,n):"operator"==e||"spread"==e?v(t?M:j):"["==e?v(x("]"),je,h,n):"{"==e?G(H,"}",null,n):"quasi"==e?m($,n):"new"==e?v(W(t)):v()}function I(e){return e.match(/[;\}\)\],]/)?m():m(j)}function z(e){return e.match(/[;\}\)\],]/)?m():m(M)}function A(e,t){return","==e?v(j):T(e,t,!1)}function T(e,t,r){var n=0==r?A:T,a=0==r?j:M;return"=>"==e?v(k,r?O:C,b):"operator"==e?/\+\+|--/.test(t)?v(n):"?"==t?v(j,w(":"),a):v(a):"quasi"==e?m($,n):";"!=e?"("==e?G(M,")","call",n):"."==e?v(B,n):"["==e?v(x("]"),I,w("]"),h,n):void 0:void 0}function $(e,t){return"quasi"!=e?m():"${"!=t.slice(t.length-2)?v($):v(j,q)}function q(e){if("}"==e)return Ne.marked="string-2",Ne.state.tokenize=l,v($)}function C(e){return s(Ne.stream,Ne.state),m("{"==e?g:j)}function O(e){return s(Ne.stream,Ne.state),m("{"==e?g:M)}function W(e){return function(t){return"."==t?v(e?S:P):m(e?M:j)}}function P(e,t){if("target"==t)return Ne.marked="keyword",v(A)}function S(e,t){if("target"==t)return Ne.marked="keyword",v(T)}function N(e){return":"==e?v(h,g):m(A,w(";"),h)}function B(e){if("variable"==e)return Ne.marked="property",v()}function H(e,t){return"async"==e?(Ne.marked="property",v(H)):"variable"==e||"keyword"==Ne.style?(Ne.marked="property",v("get"==t||"set"==t?U:D)):"number"==e||"string"==e?(Ne.marked=Ae?"property":Ne.style+" property",v(D)):"jsonld-keyword"==e?v(D):"modifier"==e?v(H):"["==e?v(j,w("]"),D):"spread"==e?v(j):":"==e?m(D):void 0}function U(e){return"variable"!=e?m(D):(Ne.marked="property",v(le))}function D(e){return":"==e?v(M):"("==e?m(le):void 0}function F(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=Ne.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),v(function(r,n){return r==t||n==t?m():m(e)},n)}return a==t||i==t?v():v(w(t))}return function(r,a){return r==t||a==t?v():m(e,n)}}function G(e,t,r){for(var n=3;n<arguments.length;n++)Ne.cc.push(arguments[n]);return v(x(t,r),F(e,t),h)}function J(e){return"}"==e?v():m(g,J)}function K(e,t){if($e){if(":"==e)return v(L);if("?"==t)return v(K)}}function L(e){return"variable"==e?(Ne.marked="variable-3",v(Y)):"string"==e||"number"==e||"atom"==e?v(Y):"{"==e?v(x("}"),F(R,"}",",;"),h,Y):"("==e?v(F(X,")"),Q):void 0}function Q(e){if("=>"==e)return v(L)}function R(e,t){return"variable"==e||"keyword"==Ne.style?(Ne.marked="property",v(R)):"?"==t?v(R):":"==e?v(L):"["==e?v(j,K,w("]"),R):void 0}function X(e){return"variable"==e?v(X):":"==e?v(L):void 0}function Y(e,t){return"<"==t?v(x(">"),F(L,">"),h,Y):"|"==t||"."==e?v(L):"["==e?v(w("]"),Y):"extends"==t?v(L):void 0}function Z(){return m(_,K,te,re)}function _(e,t){return"modifier"==e?v(_):"variable"==e?(y(t),v()):"spread"==e?v(_):"["==e?G(_,"]"):"{"==e?G(ee,"}"):void 0}function ee(e,t){return"variable"!=e||Ne.stream.match(/^\s*:/,!1)?("variable"==e&&(Ne.marked="property"),"spread"==e?v(_):"}"==e?m():v(w(":"),_,te)):(y(t),v(te))}function te(e,t){if("="==t)return v(M)}function re(e){if(","==e)return v(Z)}function ne(e,t){if("keyword b"==e&&"else"==t)return v(x("form","else"),g,h)}function ae(e){if("("==e)return v(x(")"),ie,w(")"),h)}function ie(e){return"var"==e?v(Z,w(";"),ce):";"==e?v(ce):"variable"==e?v(oe):m(j,w(";"),ce)}function oe(e,t){return"in"==t||"of"==t?(Ne.marked="keyword",v(j)):v(A,ce)}function ce(e,t){return";"==e?v(ue):"in"==t||"of"==t?(Ne.marked="keyword",v(j)):m(j,w(";"),ue)}function ue(e){")"!=e&&v(j)}function le(e,t){return"*"==t?(Ne.marked="keyword",v(le)):"variable"==e?(y(t),v(le)):"("==e?v(k,x(")"),F(se,")"),h,K,g,b):$e&&"<"==t?v(x(">"),F(L,">"),h,le):void 0}function se(e){return"spread"==e?v(se):m(_,K,te)}function fe(e,t){return"variable"==e?de(e,t):pe(e,t)}function de(e,t){if("variable"==e)return y(t),v(pe)}function pe(e,t){return"<"==t?v(x(">"),F(L,">"),h,pe):"extends"==t||"implements"==t||$e&&","==e?v($e?L:j,pe):"{"==e?v(x("}"),me,h):void 0}function me(e,t){return"variable"==e||"keyword"==Ne.style?("async"==t||"static"==t||"get"==t||"set"==t||$e&&("public"==t||"private"==t||"protected"==t||"readonly"==t||"abstract"==t))&&Ne.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(Ne.marked="keyword",v(me)):(Ne.marked="property",v($e?ve:le,me)):"["==e?v(j,w("]"),$e?ve:le,me):"*"==t?(Ne.marked="keyword",v(me)):";"==e?v(me):"}"==e?v():"@"==t?v(j,me):void 0}function ve(e,t){return"?"==t?v(ve):":"==e?v(L,te):"="==t?v(M):m(le)}function ye(e,t){return"*"==t?(Ne.marked="keyword",v(ge,w(";"))):"default"==t?(Ne.marked="keyword",v(j,w(";"))):"{"==e?v(F(ke,"}"),ge,w(";")):m(g)}function ke(e,t){return"as"==t?(Ne.marked="keyword",v(w("variable"))):"variable"==e?m(M,ke):void 0}function be(e){return"string"==e?v():m(xe,he,ge)}function xe(e,t){return"{"==e?G(xe,"}"):("variable"==e&&y(t),"*"==t&&(Ne.marked="keyword"),v(we))}function he(e){if(","==e)return v(xe,he)}function we(e,t){if("as"==t)return Ne.marked="keyword",v(xe)}function ge(e,t){if("from"==t)return Ne.marked="keyword",v(j)}function je(e){return"]"==e?v():m(F(M,"]"))}function Me(e,t){return"operator"==e.lastType||","==e.lastType||Oe.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}var Ve,Ee,Ie=r.indentUnit,ze=n.statementIndent,Ae=n.jsonld,Te=n.json||Ae,$e=n.typescript,qe=n.wordCharacters||/[\w$\xa1-\uffff]/,Ce=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("operator"),i={type:"atom",style:"atom"},o={if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:n,break:n,continue:n,new:e("new"),delete:n,throw:n,debugger:n,var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:i,false:i,null:i,undefined:i,NaN:i,Infinity:i,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n,async:e("async")};if($e){var c={type:"variable",style:"variable-3"},u={interface:e("class"),implements:n,namespace:n,module:e("module"),enum:e("module"),public:e("modifier"),private:e("modifier"),protected:e("modifier"),abstract:e("modifier"),as:a,string:c,number:c,boolean:c,any:c};for(var l in u)o[l]=u[l]}return o}(),Oe=/[+\-*&%=<>!?|~^@]/,We=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/,Pe="([{}])",Se={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,"jsonld-keyword":!0},Ne={state:null,column:null,marked:null,cc:null},Be={name:"this",next:{name:"arguments"}};return h.lex=!0,{startState:function(e){var t={tokenize:o,lastType:"sof",cc:[],lexical:new f((e||0)-Ie,0,"block",!1),localVars:n.localVars,context:n.localVars&&{vars:n.localVars},indented:e||0};return n.globalVars&&"object"==typeof n.globalVars&&(t.globalVars=n.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),s(e,t)),t.tokenize!=u&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==Ve?r:(t.lastType="operator"!=Ve||"++"!=Ee&&"--"!=Ee?Ve:"incdec",p(t,r,Ve,Ee,e))},indent:function(t,r){if(t.tokenize==u)return e.Pass;if(t.tokenize!=o)return 0;var a,i=r&&r.charAt(0),c=t.lexical;if(!/^\s*else\b/.test(r))for(var l=t.cc.length-1;l>=0;--l){var s=t.cc[l];if(s==h)c=c.prev;else if(s!=ne)break}for(;("stat"==c.type||"form"==c.type)&&("}"==i||(a=t.cc[t.cc.length-1])&&(a==A||a==T)&&!/^[,\.=+\-*:?[\(]/.test(r));)c=c.prev;ze&&")"==c.type&&"stat"==c.prev.type&&(c=c.prev);var f=c.type,d=i==f;return"vardef"==f?c.indented+("operator"==t.lastType||","==t.lastType?c.info+1:0):"form"==f&&"{"==i?c.indented:"form"==f?c.indented+Ie:"stat"==f?c.indented+(Me(t,r)?ze||Ie:0):"switch"!=c.info||d||0==n.doubleIndentSwitch?c.align?c.column+(d?0:1):c.indented+(d?0:Ie):c.indented+(/^(?:case|default)\b/.test(r)?Ie:2*Ie)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:Te?null:"/*",blockCommentEnd:Te?null:"*/",lineComment:Te?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:Te?"json":"javascript",jsonldMode:Ae,jsonMode:Te,expressionAllowed:t,skipExpression:function(e){var t=e.cc[e.cc.length-1];t!=j&&t!=M||e.cc.pop()}}}),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})});
|
64
64
|
},{"../../lib/codemirror":22}],28:[function(require,module,exports){
|
65
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},_=e.split(" "),r=0;r<_.length;++r)t[_[r]]=!0;return t}function _(e,t,s){return 0==e.length?r(t):function(i,l){for(var n=e[0],a=0;a<n.length;a++)if(i.match(n[a][0]))return l.tokenize=_(e.slice(1),t),n[a][1];return l.tokenize=r(t,s),"string"}}function r(e,t){return function(_,r){return s(_,r,e,t)}}function s(e,t,r,s){if(!1!==s&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(!1!==s&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=_([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r,s)),e.match(/\-\>\w/,!1)&&(t.tokenize=_([[["->",null]],[[/[\w]+/,"variable"]]],r,s)),"variable-2";for(var i=!1;!e.eol()&&(i||!1===s||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!i&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}i="\\"==e.next()&&!i}return"string"}var i="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",l="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",n="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[i,l,n].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var a={name:"clike",helperType:"php",keywords:t(i),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(l),builtin:t(n),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var _;if(_=e.match(/<<\s*/)){var s=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var i=e.current().slice(_[0].length+(s?2:1));if(s&&e.eat(s),i)return(t.tokStack||(t.tokStack=[])).push(i,0),t.tokenize=r(i,"'"!=s),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",function(t,_){function r(t,_){var r=_.curMode==i;if(t.sol()&&_.pending&&'"'!=_.pending&&"'"!=_.pending&&(_.pending=null),r)return r&&null==_.php.tokenize&&t.match("?>")?(_.curMode=s,_.curState=_.html,_.php.context.prev||(_.php=null),"meta"):i.token(t,_.curState);if(t.match(/^<\?\w*/))return _.curMode=i,_.php||(_.php=e.startState(i,s.indent(_.html,""))),_.curState=_.php,"meta";if('"'==_.pending||"'"==_.pending){for(;!t.eol()&&t.next()!=_.pending;);var l="string"}else if(_.pending&&t.pos<_.pending.end){t.pos=_.pending.end;var l=_.pending.style}else var l=s.token(t,_.curState);_.pending&&(_.pending=null);var n,a=t.current(),o=a.search(/<\?/);return-1!=o&&("string"==l&&(n=a.match(/[\'\"]$/))&&!/\?>/.test(a)?_.pending=n[0]:_.pending={end:t.pos,style:l},t.backUp(a.length-o)),l}var s=e.getMode(t,"text/html"),i=e.getMode(t,a);return{startState:function(){var t=e.startState(s),r=_.startOpen?e.startState(i):null;return{html:t,php:r,curMode:_.startOpen?i:s,curState:_.startOpen?r:t,pending:null}},copyState:function(t){var _,r=t.html,l=e.copyState(s,r),n=t.php,a=n&&e.copyState(i,n);return _=t.curMode==s?l:a,{html:l,php:a,curMode:t.curMode,curState:_,pending:t.pending}},token:r,indent:function(e,t){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?s.indent(e.html,t):e.curMode.indent(e.curState,t)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",a)});
|
65
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../clike/clike")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../clike/clike"],e):e(CodeMirror)}(function(e){"use strict";function t(e){for(var t={},_=e.split(" "),r=0;r<_.length;++r)t[_[r]]=!0;return t}function _(e,t,s){return 0==e.length?r(t):function(i,l){for(var n=e[0],a=0;a<n.length;a++)if(i.match(n[a][0]))return l.tokenize=_(e.slice(1),t),n[a][1];return l.tokenize=r(t,s),"string"}}function r(e,t){return function(_,r){return s(_,r,e,t)}}function s(e,t,r,s){if(s!==!1&&e.match("${",!1)||e.match("{$",!1))return t.tokenize=null,"string";if(s!==!1&&e.match(/^\$[a-zA-Z_][a-zA-Z0-9_]*/))return e.match("[",!1)&&(t.tokenize=_([[["[",null]],[[/\d[\w\.]*/,"number"],[/\$[a-zA-Z_][a-zA-Z0-9_]*/,"variable-2"],[/[\w\$]+/,"variable"]],[["]",null]]],r,s)),e.match(/\-\>\w/,!1)&&(t.tokenize=_([[["->",null]],[[/[\w]+/,"variable"]]],r,s)),"variable-2";for(var i=!1;!e.eol()&&(i||s===!1||!e.match("{$",!1)&&!e.match(/^(\$[a-zA-Z_][a-zA-Z0-9_]*|\$\{)/,!1));){if(!i&&e.match(r)){t.tokenize=null,t.tokStack.pop(),t.tokStack.pop();break}i="\\"==e.next()&&!i}return"string"}var i="abstract and array as break case catch class clone const continue declare default do else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach function global goto if implements interface instanceof namespace new or private protected public static switch throw trait try use var while xor die echo empty exit eval include include_once isset list require require_once return print unset __halt_compiler self static parent yield insteadof finally",l="true false null TRUE FALSE NULL __CLASS__ __DIR__ __FILE__ __LINE__ __METHOD__ __FUNCTION__ __NAMESPACE__ __TRAIT__",n="func_num_args func_get_arg func_get_args strlen strcmp strncmp strcasecmp strncasecmp each error_reporting define defined trigger_error user_error set_error_handler restore_error_handler get_declared_classes get_loaded_extensions extension_loaded get_extension_funcs debug_backtrace constant bin2hex hex2bin sleep usleep time mktime gmmktime strftime gmstrftime strtotime date gmdate getdate localtime checkdate flush wordwrap htmlspecialchars htmlentities html_entity_decode md5 md5_file crc32 getimagesize image_type_to_mime_type phpinfo phpversion phpcredits strnatcmp strnatcasecmp substr_count strspn strcspn strtok strtoupper strtolower strpos strrpos strrev hebrev hebrevc nl2br basename dirname pathinfo stripslashes stripcslashes strstr stristr strrchr str_shuffle str_word_count strcoll substr substr_replace quotemeta ucfirst ucwords strtr addslashes addcslashes rtrim str_replace str_repeat count_chars chunk_split trim ltrim strip_tags similar_text explode implode setlocale localeconv parse_str str_pad chop strchr sprintf printf vprintf vsprintf sscanf fscanf parse_url urlencode urldecode rawurlencode rawurldecode readlink linkinfo link unlink exec system escapeshellcmd escapeshellarg passthru shell_exec proc_open proc_close rand srand getrandmax mt_rand mt_srand mt_getrandmax base64_decode base64_encode abs ceil floor round is_finite is_nan is_infinite bindec hexdec octdec decbin decoct dechex base_convert number_format fmod ip2long long2ip getenv putenv getopt microtime gettimeofday getrusage uniqid quoted_printable_decode set_time_limit get_cfg_var magic_quotes_runtime set_magic_quotes_runtime get_magic_quotes_gpc get_magic_quotes_runtime import_request_variables error_log serialize unserialize memory_get_usage var_dump var_export debug_zval_dump print_r highlight_file show_source highlight_string ini_get ini_get_all ini_set ini_alter ini_restore get_include_path set_include_path restore_include_path setcookie header headers_sent connection_aborted connection_status ignore_user_abort parse_ini_file is_uploaded_file move_uploaded_file intval floatval doubleval strval gettype settype is_null is_resource is_bool is_long is_float is_int is_integer is_double is_real is_numeric is_string is_array is_object is_scalar ereg ereg_replace eregi eregi_replace split spliti join sql_regcase dl pclose popen readfile rewind rmdir umask fclose feof fgetc fgets fgetss fread fopen fpassthru ftruncate fstat fseek ftell fflush fwrite fputs mkdir rename copy tempnam tmpfile file file_get_contents file_put_contents stream_select stream_context_create stream_context_set_params stream_context_set_option stream_context_get_options stream_filter_prepend stream_filter_append fgetcsv flock get_meta_tags stream_set_write_buffer set_file_buffer set_socket_blocking stream_set_blocking socket_set_blocking stream_get_meta_data stream_register_wrapper stream_wrapper_register stream_set_timeout socket_set_timeout socket_get_status realpath fnmatch fsockopen pfsockopen pack unpack get_browser crypt opendir closedir chdir getcwd rewinddir readdir dir glob fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype file_exists is_writable is_writeable is_readable is_executable is_file is_dir is_link stat lstat chown touch clearstatcache mail ob_start ob_flush ob_clean ob_end_flush ob_end_clean ob_get_flush ob_get_clean ob_get_length ob_get_level ob_get_status ob_get_contents ob_implicit_flush ob_list_handlers ksort krsort natsort natcasesort asort arsort sort rsort usort uasort uksort shuffle array_walk count end prev next reset current key min max in_array array_search extract compact array_fill range array_multisort array_push array_pop array_shift array_unshift array_splice array_slice array_merge array_merge_recursive array_keys array_values array_count_values array_reverse array_reduce array_pad array_flip array_change_key_case array_rand array_unique array_intersect array_intersect_assoc array_diff array_diff_assoc array_sum array_filter array_map array_chunk array_key_exists array_intersect_key array_combine array_column pos sizeof key_exists assert assert_options version_compare ftok str_rot13 aggregate session_name session_module_name session_save_path session_id session_regenerate_id session_decode session_register session_unregister session_is_registered session_encode session_start session_destroy session_unset session_set_save_handler session_cache_limiter session_cache_expire session_set_cookie_params session_get_cookie_params session_write_close preg_match preg_match_all preg_replace preg_replace_callback preg_split preg_quote preg_grep overload ctype_alnum ctype_alpha ctype_cntrl ctype_digit ctype_lower ctype_graph ctype_print ctype_punct ctype_space ctype_upper ctype_xdigit virtual apache_request_headers apache_note apache_lookup_uri apache_child_terminate apache_setenv apache_response_headers apache_get_version getallheaders mysql_connect mysql_pconnect mysql_close mysql_select_db mysql_create_db mysql_drop_db mysql_query mysql_unbuffered_query mysql_db_query mysql_list_dbs mysql_list_tables mysql_list_fields mysql_list_processes mysql_error mysql_errno mysql_affected_rows mysql_insert_id mysql_result mysql_num_rows mysql_num_fields mysql_fetch_row mysql_fetch_array mysql_fetch_assoc mysql_fetch_object mysql_data_seek mysql_fetch_lengths mysql_fetch_field mysql_field_seek mysql_free_result mysql_field_name mysql_field_table mysql_field_len mysql_field_type mysql_field_flags mysql_escape_string mysql_real_escape_string mysql_stat mysql_thread_id mysql_client_encoding mysql_get_client_info mysql_get_host_info mysql_get_proto_info mysql_get_server_info mysql_info mysql mysql_fieldname mysql_fieldtable mysql_fieldlen mysql_fieldtype mysql_fieldflags mysql_selectdb mysql_createdb mysql_dropdb mysql_freeresult mysql_numfields mysql_numrows mysql_listdbs mysql_listtables mysql_listfields mysql_db_name mysql_dbname mysql_tablename mysql_table_name pg_connect pg_pconnect pg_close pg_connection_status pg_connection_busy pg_connection_reset pg_host pg_dbname pg_port pg_tty pg_options pg_ping pg_query pg_send_query pg_cancel_query pg_fetch_result pg_fetch_row pg_fetch_assoc pg_fetch_array pg_fetch_object pg_fetch_all pg_affected_rows pg_get_result pg_result_seek pg_result_status pg_free_result pg_last_oid pg_num_rows pg_num_fields pg_field_name pg_field_num pg_field_size pg_field_type pg_field_prtlen pg_field_is_null pg_get_notify pg_get_pid pg_result_error pg_last_error pg_last_notice pg_put_line pg_end_copy pg_copy_to pg_copy_from pg_trace pg_untrace pg_lo_create pg_lo_unlink pg_lo_open pg_lo_close pg_lo_read pg_lo_write pg_lo_read_all pg_lo_import pg_lo_export pg_lo_seek pg_lo_tell pg_escape_string pg_escape_bytea pg_unescape_bytea pg_client_encoding pg_set_client_encoding pg_meta_data pg_convert pg_insert pg_update pg_delete pg_select pg_exec pg_getlastoid pg_cmdtuples pg_errormessage pg_numrows pg_numfields pg_fieldname pg_fieldsize pg_fieldtype pg_fieldnum pg_fieldprtlen pg_fieldisnull pg_freeresult pg_result pg_loreadall pg_locreate pg_lounlink pg_loopen pg_loclose pg_loread pg_lowrite pg_loimport pg_loexport http_response_code get_declared_traits getimagesizefromstring socket_import_stream stream_set_chunk_size trait_exists header_register_callback class_uses session_status session_register_shutdown echo print global static exit array empty eval isset unset die include require include_once require_once json_decode json_encode json_last_error json_last_error_msg curl_close curl_copy_handle curl_errno curl_error curl_escape curl_exec curl_file_create curl_getinfo curl_init curl_multi_add_handle curl_multi_close curl_multi_exec curl_multi_getcontent curl_multi_info_read curl_multi_init curl_multi_remove_handle curl_multi_select curl_multi_setopt curl_multi_strerror curl_pause curl_reset curl_setopt_array curl_setopt curl_share_close curl_share_init curl_share_setopt curl_strerror curl_unescape curl_version mysqli_affected_rows mysqli_autocommit mysqli_change_user mysqli_character_set_name mysqli_close mysqli_commit mysqli_connect_errno mysqli_connect_error mysqli_connect mysqli_data_seek mysqli_debug mysqli_dump_debug_info mysqli_errno mysqli_error_list mysqli_error mysqli_fetch_all mysqli_fetch_array mysqli_fetch_assoc mysqli_fetch_field_direct mysqli_fetch_field mysqli_fetch_fields mysqli_fetch_lengths mysqli_fetch_object mysqli_fetch_row mysqli_field_count mysqli_field_seek mysqli_field_tell mysqli_free_result mysqli_get_charset mysqli_get_client_info mysqli_get_client_stats mysqli_get_client_version mysqli_get_connection_stats mysqli_get_host_info mysqli_get_proto_info mysqli_get_server_info mysqli_get_server_version mysqli_info mysqli_init mysqli_insert_id mysqli_kill mysqli_more_results mysqli_multi_query mysqli_next_result mysqli_num_fields mysqli_num_rows mysqli_options mysqli_ping mysqli_prepare mysqli_query mysqli_real_connect mysqli_real_escape_string mysqli_real_query mysqli_reap_async_query mysqli_refresh mysqli_rollback mysqli_select_db mysqli_set_charset mysqli_set_local_infile_default mysqli_set_local_infile_handler mysqli_sqlstate mysqli_ssl_set mysqli_stat mysqli_stmt_init mysqli_store_result mysqli_thread_id mysqli_thread_safe mysqli_use_result mysqli_warning_count";e.registerHelper("hintWords","php",[i,l,n].join(" ").split(" ")),e.registerHelper("wordChars","php",/[\w$]/);var a={name:"clike",helperType:"php",keywords:t(i),blockKeywords:t("catch do else elseif for foreach if switch try while finally"),defKeywords:t("class function interface namespace trait"),atoms:t(l),builtin:t(n),multiLineStrings:!0,hooks:{$:function(e){return e.eatWhile(/[\w\$_]/),"variable-2"},"<":function(e,t){var _;if(_=e.match(/<<\s*/)){var s=e.eat(/['"]/);e.eatWhile(/[\w\.]/);var i=e.current().slice(_[0].length+(s?2:1));if(s&&e.eat(s),i)return(t.tokStack||(t.tokStack=[])).push(i,0),t.tokenize=r(i,"'"!=s),"string"}return!1},"#":function(e){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"},"/":function(e){if(e.eat("/")){for(;!e.eol()&&!e.match("?>",!1);)e.next();return"comment"}return!1},'"':function(e,t){return(t.tokStack||(t.tokStack=[])).push('"',0),t.tokenize=r('"'),"string"},"{":function(e,t){return t.tokStack&&t.tokStack.length&&t.tokStack[t.tokStack.length-1]++,!1},"}":function(e,t){return t.tokStack&&t.tokStack.length>0&&!--t.tokStack[t.tokStack.length-1]&&(t.tokenize=r(t.tokStack[t.tokStack.length-2])),!1}}};e.defineMode("php",function(t,_){function r(t,_){var r=_.curMode==i;if(t.sol()&&_.pending&&'"'!=_.pending&&"'"!=_.pending&&(_.pending=null),r)return r&&null==_.php.tokenize&&t.match("?>")?(_.curMode=s,_.curState=_.html,_.php.context.prev||(_.php=null),"meta"):i.token(t,_.curState);if(t.match(/^<\?\w*/))return _.curMode=i,_.php||(_.php=e.startState(i,s.indent(_.html,""))),_.curState=_.php,"meta";if('"'==_.pending||"'"==_.pending){for(;!t.eol()&&t.next()!=_.pending;);var l="string"}else if(_.pending&&t.pos<_.pending.end){t.pos=_.pending.end;var l=_.pending.style}else var l=s.token(t,_.curState);_.pending&&(_.pending=null);var n,a=t.current(),o=a.search(/<\?/);return o!=-1&&("string"==l&&(n=a.match(/[\'\"]$/))&&!/\?>/.test(a)?_.pending=n[0]:_.pending={end:t.pos,style:l},t.backUp(a.length-o)),l}var s=e.getMode(t,"text/html"),i=e.getMode(t,a);return{startState:function(){var t=e.startState(s),r=_.startOpen?e.startState(i):null;return{html:t,php:r,curMode:_.startOpen?i:s,curState:_.startOpen?r:t,pending:null}},copyState:function(t){var _,r=t.html,l=e.copyState(s,r),n=t.php,a=n&&e.copyState(i,n);return _=t.curMode==s?l:a,{html:l,php:a,curMode:t.curMode,curState:_,pending:t.pending}},token:r,indent:function(e,t){return e.curMode!=i&&/^\s*<\//.test(t)||e.curMode==i&&/^\?>/.test(t)?s.indent(e.html,t):e.curMode.indent(e.curState,t)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:"//",innerMode:function(e){return{state:e.curState,mode:e.curMode}}}},"htmlmixed","clike"),e.defineMIME("application/x-httpd-php","php"),e.defineMIME("application/x-httpd-php-open",{name:"php",startOpen:!0}),e.defineMIME("text/x-php",a)});
|
66
66
|
},{"../../lib/codemirror":22,"../clike/clike":23,"../htmlmixed/htmlmixed":26}],29:[function(require,module,exports){
|
67
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}function n(e){return e.scopes[e.scopes.length-1]}var r=t(["and","or","not","is"]),i=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];e.registerHelper("hintWords","python",i.concat(o)),e.defineMode("python",function(a,s){function l(e,t){if(e.sol()&&(t.indent=e.indentation()),e.sol()&&"py"==n(t).type){var r=n(t).offset;if(e.eatSpace()){var i=e.indentation();return i>r?p(t):i<r&&d(e,t)&&"#"!=e.peek()&&(t.errorToken=!0),null}var o=c(e,t);return r>0&&d(e,t)&&(o+=" "+h),o}return c(e,t)}function c(e,t){if(e.eatSpace())return null;if("#"==e.peek())return e.skipToEnd(),"comment";if(e.match(/^[0-9\.]/,!1)){var n=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(n=!0),e.match(/^[\d_]+\.\d*/)&&(n=!0),e.match(/^\.\d+/)&&(n=!0),n)return e.eat(/J/i),"number";var i=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(i=!0),e.match(/^0b[01_]+/i)&&(i=!0),e.match(/^0o[0-7_]+/i)&&(i=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),i=!0),e.match(/^0(?![\dx])/i)&&(i=!0),i)return e.eat(/L/i),"number"}return e.match(E)?(t.tokenize=u(e.current()),t.tokenize(e,t)):e.match(v)||e.match(g)?"punctuation":e.match(y)||e.match(z)?"operator":e.match(b)?"punctuation":"."==t.lastToken&&e.match(F)?"property":e.match(T)||e.match(r)?"keyword":e.match(O)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(F)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),h)}function u(e){function t(t,i){for(;!t.eol();)if(t.eatWhile(/[^'"\\]/),t.eat("\\")){if(t.next(),n&&t.eol())return r}else{if(t.match(e))return i.tokenize=l,r;t.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return h;i.tokenize=l}return r}for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";return t.isString=!0,t}function p(e){for(;"py"!=n(e).type;)e.scopes.pop();e.scopes.push({offset:n(e).offset+a.indentUnit,type:"py",align:null})}function f(e,t,n){var r=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+x,type:n,align:r})}function d(e,t){for(var r=e.indentation();t.scopes.length>1&&n(t).offset>r;){if("py"!=n(t).type)return!0;t.scopes.pop()}return n(t).offset!=r}function m(e,t){e.sol()&&(t.beginningOfLine=!0);var r=t.tokenize(e,t),i=e.current();if(t.beginningOfLine&&"@"==i)return e.match(F,!1)?"meta":w?"operator":h;/\S/.test(i)&&(t.beginningOfLine=!1),"variable"!=r&&"builtin"!=r||"meta"!=t.lastToken||(r="meta"),"pass"!=i&&"return"!=i||(t.dedent+=1),"lambda"==i&&(t.lambda=!0),":"!=i||t.lambda||"py"!=n(t).type||p(t);var o=1==i.length?"[({".indexOf(i):-1;if(
|
67
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";function t(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}function n(e){return e.scopes[e.scopes.length-1]}var r=t(["and","or","not","is"]),i=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];e.registerHelper("hintWords","python",i.concat(o)),e.defineMode("python",function(a,s){function l(e,t){if(e.sol()&&(t.indent=e.indentation()),e.sol()&&"py"==n(t).type){var r=n(t).offset;if(e.eatSpace()){var i=e.indentation();return i>r?p(t):i<r&&d(e,t)&&"#"!=e.peek()&&(t.errorToken=!0),null}var o=c(e,t);return r>0&&d(e,t)&&(o+=" "+h),o}return c(e,t)}function c(e,t){if(e.eatSpace())return null;if("#"==e.peek())return e.skipToEnd(),"comment";if(e.match(/^[0-9\.]/,!1)){var n=!1;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(n=!0),e.match(/^[\d_]+\.\d*/)&&(n=!0),e.match(/^\.\d+/)&&(n=!0),n)return e.eat(/J/i),"number";var i=!1;if(e.match(/^0x[0-9a-f_]+/i)&&(i=!0),e.match(/^0b[01_]+/i)&&(i=!0),e.match(/^0o[0-7_]+/i)&&(i=!0),e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(e.eat(/J/i),i=!0),e.match(/^0(?![\dx])/i)&&(i=!0),i)return e.eat(/L/i),"number"}return e.match(E)?(t.tokenize=u(e.current()),t.tokenize(e,t)):e.match(v)||e.match(g)?"punctuation":e.match(y)||e.match(z)?"operator":e.match(b)?"punctuation":"."==t.lastToken&&e.match(F)?"property":e.match(T)||e.match(r)?"keyword":e.match(O)?"builtin":e.match(/^(self|cls)\b/)?"variable-2":e.match(F)?"def"==t.lastToken||"class"==t.lastToken?"def":"variable":(e.next(),h)}function u(e){function t(t,i){for(;!t.eol();)if(t.eatWhile(/[^'"\\]/),t.eat("\\")){if(t.next(),n&&t.eol())return r}else{if(t.match(e))return i.tokenize=l,r;t.eat(/['"]/)}if(n){if(s.singleLineStringErrors)return h;i.tokenize=l}return r}for(;"rubf".indexOf(e.charAt(0).toLowerCase())>=0;)e=e.substr(1);var n=1==e.length,r="string";return t.isString=!0,t}function p(e){for(;"py"!=n(e).type;)e.scopes.pop();e.scopes.push({offset:n(e).offset+a.indentUnit,type:"py",align:null})}function f(e,t,n){var r=e.match(/^([\s\[\{\(]|#.*)*$/,!1)?null:e.column()+1;t.scopes.push({offset:t.indent+x,type:n,align:r})}function d(e,t){for(var r=e.indentation();t.scopes.length>1&&n(t).offset>r;){if("py"!=n(t).type)return!0;t.scopes.pop()}return n(t).offset!=r}function m(e,t){e.sol()&&(t.beginningOfLine=!0);var r=t.tokenize(e,t),i=e.current();if(t.beginningOfLine&&"@"==i)return e.match(F,!1)?"meta":w?"operator":h;/\S/.test(i)&&(t.beginningOfLine=!1),"variable"!=r&&"builtin"!=r||"meta"!=t.lastToken||(r="meta"),"pass"!=i&&"return"!=i||(t.dedent+=1),"lambda"==i&&(t.lambda=!0),":"!=i||t.lambda||"py"!=n(t).type||p(t);var o=1==i.length?"[({".indexOf(i):-1;if(o!=-1&&f(e,t,"])}".slice(o,o+1)),(o="])}".indexOf(i))!=-1){if(n(t).type!=i)return h;t.indent=t.scopes.pop().offset-x}return t.dedent>0&&e.eol()&&"py"==n(t).type&&(t.scopes.length>1&&t.scopes.pop(),t.dedent-=1),r}var h="error",b=s.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.]/,y=s.doubleOperators||/^([!<>]==|<>|<<|>>|\/\/|\*\*)/,g=s.doubleDelimiters||/^(\+=|\-=|\*=|%=|\/=|&=|\|=|\^=)/,v=s.tripleDelimiters||/^(\/\/=|>>=|<<=|\*\*=)/,x=s.hangingIndent||a.indentUnit,k=i,_=o;void 0!=s.extra_keywords&&(k=k.concat(s.extra_keywords)),void 0!=s.extra_builtins&&(_=_.concat(s.extra_builtins));var w=!(s.version&&Number(s.version)<3);if(w){var z=s.singleOperators||/^[\+\-\*\/%&|\^~<>!@]/,F=s.identifiers||/^[_A-Za-z\u00A1-\uFFFF][_A-Za-z0-9\u00A1-\uFFFF]*/;k=k.concat(["nonlocal","False","True","None","async","await"]),_=_.concat(["ascii","bytes","exec","print"]);var E=new RegExp("^(([rbuf]|(br))?('{3}|\"{3}|['\"]))","i")}else{var z=s.singleOperators||/^[\+\-\*\/%&|\^~<>!]/,F=s.identifiers||/^[_A-Za-z][_A-Za-z0-9]*/;k=k.concat(["exec","print"]),_=_.concat(["apply","basestring","buffer","cmp","coerce","execfile","file","intern","long","raw_input","reduce","reload","unichr","unicode","xrange","False","True","None"]);var E=new RegExp("^(([rubf]|(ur)|(br))?('{3}|\"{3}|['\"]))","i")}var T=t(k),O=t(_);return{startState:function(e){return{tokenize:l,scopes:[{offset:e||0,type:"py",align:null}],indent:e||0,lastToken:null,lambda:!1,dedent:0}},token:function(e,t){var n=t.errorToken;n&&(t.errorToken=!1);var r=m(e,t);return r&&"comment"!=r&&(t.lastToken="keyword"==r||"punctuation"==r?e.current():r),"punctuation"==r&&(r=null),e.eol()&&t.lambda&&(t.lambda=!1),n?r+" "+h:r},indent:function(t,r){if(t.tokenize!=l)return t.tokenize.isString?e.Pass:0;var i=n(t),o=i.type==r.charAt(0);return null!=i.align?i.align-(o?1:0):i.offset-(o?x:0)},electricInput:/^\s*[\}\]\)]$/,closeBrackets:{triples:"'\""},lineComment:"#",fold:"indent"}}),e.defineMIME("text/x-python","python");e.defineMIME("text/x-cython",{name:"python",extra_keywords:function(e){return e.split(" ")}("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})});
|
68
68
|
},{"../../lib/codemirror":22}],30:[function(require,module,exports){
|
69
69
|
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("ruby",function(e){function t(e){for(var t={},n=0,r=e.length;n<r;++n)t[e[n]]=!0;return t}function n(e,t,n){return n.tokenize.push(e),e(t,n)}function r(e,t){if(e.sol()&&e.match("=begin")&&e.eol())return t.tokenize.push(l),"comment";if(e.eatSpace())return null;var r,o=e.next();if("`"==o||"'"==o||'"'==o)return n(u(o,"string",'"'==o||"`"==o),e,t);if("/"==o)return i(e)?n(u(o,"string-2",!0),e,t):"operator";if("%"==o){var a="string",s=!0;e.eat("s")?a="atom":e.eat(/[WQ]/)?a="string":e.eat(/[r]/)?a="string-2":e.eat(/[wxq]/)&&(a="string",s=!1);var c=e.eat(/[^\w\s=]/);return c?(k.propertyIsEnumerable(c)&&(c=k[c]),n(u(c,a,s,!0),e,t)):"operator"}if("#"==o)return e.skipToEnd(),"comment";if("<"==o&&(r=e.match(/^<-?[\`\"\']?([a-zA-Z_?]\w*)[\`\"\']?(?:;|$)/)))return n(f(r[1]),e,t);if("0"==o)return e.eat("x")?e.eatWhile(/[\da-fA-F]/):e.eat("b")?e.eatWhile(/[01]/):e.eatWhile(/[0-7]/),"number";if(/\d/.test(o))return e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+\-]?[\d_]+)?/),"number";if("?"==o){for(;e.match(/^\\[CM]-/););return e.eat("\\")?e.eatWhile(/\w/):e.next(),"string"}if(":"==o)return e.eat("'")?n(u("'","atom",!1),e,t):e.eat('"')?n(u('"',"atom",!0),e,t):e.eat(/[\<\>]/)?(e.eat(/[\<\>]/),"atom"):e.eat(/[\+\-\*\/\&\|\:\!]/)?"atom":e.eat(/[a-zA-Z$@_\xa1-\uffff]/)?(e.eatWhile(/[\w$\xa1-\uffff]/),e.eat(/[\?\!\=]/),"atom"):"operator";if("@"==o&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/))return e.eat("@"),e.eatWhile(/[\w\xa1-\uffff]/),"variable-2";if("$"==o)return e.eat(/[a-zA-Z_]/)?e.eatWhile(/[\w]/):e.eat(/\d/)?e.eat(/\d/):e.next(),"variable-3";if(/[a-zA-Z_\xa1-\uffff]/.test(o))return e.eatWhile(/[\w\xa1-\uffff]/),e.eat(/[\?\!]/),e.eat(":")?"atom":"ident";if("|"!=o||!t.varList&&"{"!=t.lastTok&&"do"!=t.lastTok){if(/[\(\)\[\]{}\\;]/.test(o))return d=o,null;if("-"==o&&e.eat(">"))return"arrow";if(/[=+\-\/*:\.^%<>~|]/.test(o)){var p=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);return"."!=o||p||(d="."),"operator"}return null}return d="|",null}function i(e){for(var t,n=e.pos,r=0,i=!1,o=!1;null!=(t=e.next());)if(o)o=!1;else{if("[{(".indexOf(t)>-1)r++;else if("]})".indexOf(t)>-1){if(--r<0)break}else if("/"==t&&0==r){i=!0;break}o="\\"==t}return e.backUp(e.pos-n),i}function o(e){return e||(e=1),function(t,n){if("}"==t.peek()){if(1==e)return n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n);n.tokenize[n.tokenize.length-1]=o(e-1)}else"{"==t.peek()&&(n.tokenize[n.tokenize.length-1]=o(e+1));return r(t,n)}}function a(){var e=!1;return function(t,n){return e?(n.tokenize.pop(),n.tokenize[n.tokenize.length-1](t,n)):(e=!0,r(t,n))}}function u(e,t,n,r){return function(i,u){var f,l=!1;for("read-quoted-paused"===u.context.type&&(u.context=u.context.prev,i.eat("}"));null!=(f=i.next());){if(f==e&&(r||!l)){u.tokenize.pop();break}if(n&&"#"==f&&!l){if(i.eat("{")){"}"==e&&(u.context={prev:u.context,type:"read-quoted-paused"}),u.tokenize.push(o());break}if(/[@\$]/.test(i.peek())){u.tokenize.push(a());break}}l=!l&&"\\"==f}return t}}function f(e){return function(t,n){return t.match(e)?n.tokenize.pop():t.skipToEnd(),"string"}}function l(e,t){return e.sol()&&e.match("=end")&&e.eol()&&t.tokenize.pop(),e.skipToEnd(),"comment"}var d,s=t(["alias","and","BEGIN","begin","break","case","class","def","defined?","do","else","elsif","END","end","ensure","false","for","if","in","module","next","not","or","redo","rescue","retry","return","self","super","then","true","undef","unless","until","when","while","yield","nil","raise","throw","catch","fail","loop","callcc","caller","lambda","proc","public","protected","private","require","load","require_relative","extend","autoload","__END__","__FILE__","__LINE__","__dir__"]),c=t(["def","class","case","for","while","until","module","then","catch","loop","proc","begin"]),p=t(["end","until"]),k={"[":"]","{":"}","(":")"};return{startState:function(){return{tokenize:[r],indented:0,context:{type:"top",indented:-e.indentUnit},continuedLine:!1,lastTok:null,varList:!1}},token:function(e,t){d=null,e.sol()&&(t.indented=e.indentation());var n,r=t.tokenize[t.tokenize.length-1](e,t),i=d;if("ident"==r){var o=e.current();r="."==t.lastTok?"property":s.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(o)?"tag":"def"==t.lastTok||"class"==t.lastTok||t.varList?"def":"variable","keyword"==r&&(i=o,c.propertyIsEnumerable(o)?n="indent":p.propertyIsEnumerable(o)?n="dedent":"if"!=o&&"unless"!=o||e.column()!=e.indentation()?"do"==o&&t.context.indented<t.indented&&(n="indent"):n="indent")}return(d||r&&"comment"!=r)&&(t.lastTok=i),"|"==d&&(t.varList=!t.varList),"indent"==n||/[\(\[\{]/.test(d)?t.context={prev:t.context,type:d||r,indented:t.indented}:("dedent"==n||/[\)\]\}]/.test(d))&&t.context.prev&&(t.context=t.context.prev),e.eol()&&(t.continuedLine="\\"==d||"operator"==r),r},indent:function(t,n){if(t.tokenize[t.tokenize.length-1]!=r)return 0;var i=n&&n.charAt(0),o=t.context,a=o.type==k[i]||"keyword"==o.type&&/^(?:end|until|else|elsif|when|rescue)\b/.test(n);return o.indented+(a?0:e.indentUnit)+(t.continuedLine?e.indentUnit:0)},electricInput:/^\s*(?:end|rescue|elsif|else|\})$/,lineComment:"#"}}),e.defineMIME("text/x-ruby","ruby")});
|
70
70
|
},{"../../lib/codemirror":22}],31:[function(require,module,exports){
|
@@ -72,153 +72,83 @@ setSize:dn(function(e,t){var r=this,n=function(e){return"number"==typeof e||/^\d
|
|
72
72
|
},{"../../lib/codemirror":22}],32:[function(require,module,exports){
|
73
73
|
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror"),require("../htmlmixed/htmlmixed"),require("../ruby/ruby")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../htmlmixed/htmlmixed","../ruby/ruby"],t):t(CodeMirror)}(function(t){"use strict";t.defineMode("slim",function(e){function n(t,e,n){var i=function(i,r){return r.tokenize=e,i.pos<t?(i.pos=t,n):r.tokenize(i,r)};return function(t,n){return n.tokenize=i,e(t,n)}}function i(t,e,i,r,o){var u=t.current(),a=u.search(i);return a>-1&&(e.tokenize=n(t.pos,e.tokenize,o),t.backUp(u.length-a-r)),o}function r(t,e){t.stack={parent:t.stack,style:"continuation",indented:e,tokenize:t.line},t.line=t.tokenize}function o(t){t.line==t.tokenize&&(t.line=t.stack.tokenize,t.stack=t.stack.parent)}function u(t,e){return function(n,i){if(o(i),n.match(/^\\$/))return r(i,t),"lineContinuation";var u=e(n,i);return n.eol()&&n.current().match(/(?:^|[^\\])(?:\\\\)*\\$/)&&n.backUp(1),u}}function a(t,e){return function(n,i){o(i);var u=e(n,i);return n.eol()&&n.current().match(/,$/)&&r(i,t),u}}function c(t,e){return function(n,i){return n.peek()==t&&1==i.rubyState.tokenize.length?(n.next(),i.tokenize=e,"closeAttributeTag"):s(n,i)}}function l(e){var n,i=function(t,i){if(1==i.rubyState.tokenize.length&&!i.rubyState.context.prev){if(t.backUp(1),t.eatSpace())return i.rubyState=n,i.tokenize=e,e(t,i);t.next()}return s(t,i)};return function(e,r){return n=r.rubyState,r.rubyState=t.startState(Z),r.tokenize=i,s(e,r)}}function s(t,e){return Z.token(t,e.rubyState)}function k(t,e){return t.match(/^\\$/)?"lineContinuation":d(t,e)}function d(t,e){return t.match(/^#\{/)?(e.tokenize=c("}",e.tokenize),null):i(t,e,/[^\\]#\{/,1,P.token(t,e.htmlState))}function m(t){return function(e,n){var i=k(e,n);return e.eol()&&(n.tokenize=t),i}}function f(t,e,n){return e.stack={parent:e.stack,style:"html",indented:t.column()+n,tokenize:e.line},e.line=e.tokenize=d,null}function b(t,e){return t.skipToEnd(),e.stack.style}function z(t,e){return e.stack={parent:e.stack,style:"comment",indented:e.indented+1,tokenize:e.line},e.line=b,b(t,e)}function p(t,e){return t.eat(e.stack.endQuote)?(e.line=e.stack.line,e.tokenize=e.stack.tokenize,e.stack=e.stack.parent,null):t.match(K)?(e.tokenize=x,"slimAttribute"):(t.next(),null)}function x(t,e){return t.match(/^==?/)?(e.tokenize=h,null):p(t,e)}function h(t,e){var n=t.peek();return'"'==n||"'"==n?(e.tokenize=q(n,"string",!0,!1,p),t.next(),e.tokenize(t,e)):"["==n?l(p)(t,e):t.match(/^(true|false|nil)\b/)?(e.tokenize=p,"keyword"):l(p)(t,e)}function y(t,e,n){return t.stack={parent:t.stack,style:"wrapper",indented:t.indented+1,tokenize:n,line:t.line,endQuote:e},t.line=t.tokenize=p,null}function S(e,n){if(e.match(/^#\{/))return n.tokenize=c("}",n.tokenize),null;var i=new t.StringStream(e.string.slice(n.stack.indented),e.tabSize);i.pos=e.pos-n.stack.indented,i.start=e.start-n.stack.indented,i.lastColumnPos=e.lastColumnPos-n.stack.indented,i.lastColumnValue=e.lastColumnValue-n.stack.indented;var r=n.subMode.token(i,n.subState);return e.pos=i.pos+n.stack.indented,r}function w(t,e){return e.stack.indented=t.column(),e.line=e.tokenize=S,e.tokenize(t,e)}function g(n){var i=D[n],r=t.mimeModes[i];if(r)return t.getMode(e,r);var o=t.modes[i];return o?o(e,{name:i}):t.getMode(e,"null")}function M(t){return _.hasOwnProperty(t)?_[t]:_[t]=g(t)}function v(e,n){var i=M(e),r=t.startState(i);return n.subMode=i,n.subState=r,n.stack={parent:n.stack,style:"sub",indented:n.indented+1,tokenize:n.line},n.line=n.tokenize=w,"slimSubmode"}function C(t,e){return t.skipToEnd(),"slimDoctype"}function E(t,e){if("<"==t.peek())return(e.tokenize=m(e.tokenize))(t,e);if(t.match(/^[|']/))return f(t,e,1);if(t.match(/^\/(!|\[\w+])?/))return z(t,e);if(t.match(/^(-|==?[<>]?)/))return e.tokenize=u(t.column(),a(t.column(),s)),"slimSwitch";if(t.match(/^doctype\b/))return e.tokenize=C,"keyword";var n=t.match(Q);return n?v(n[1],e):L(t,e)}function A(t,e){return e.startOfLine?E(t,e):L(t,e)}function L(t,e){return t.eat("*")?(e.tokenize=l($),null):t.match(H)?(e.tokenize=$,"slimTag"):T(t,e)}function $(t,e){return t.match(/^(<>?|><?)/)?(e.tokenize=T,null):T(t,e)}function T(t,e){return t.match(W)?(e.tokenize=T,"slimId"):t.match(N)?(e.tokenize=T,"slimClass"):U(t,e)}function U(t,e){return t.match(/^([\[\{\(])/)?y(e,B[RegExp.$1],U):t.match(J)?(e.tokenize=j,"slimAttribute"):"*"==t.peek()?(t.next(),e.tokenize=l(I),null):I(t,e)}function j(t,e){return t.match(/^==?/)?(e.tokenize=O,null):U(t,e)}function O(t,e){var n=t.peek();return'"'==n||"'"==n?(e.tokenize=q(n,"string",!0,!1,U),t.next(),e.tokenize(t,e)):"["==n?l(U)(t,e):":"==n?l(R)(t,e):t.match(/^(true|false|nil)\b/)?(e.tokenize=U,"keyword"):l(U)(t,e)}function R(t,e){return t.backUp(1),t.match(/^[^\s],(?=:)/)?(e.tokenize=l(R),null):(t.next(),U(t,e))}function q(t,e,n,i,u){return function(a,l){o(l);var s=0==a.current().length;if(a.match(/^\\$/,s))return s?(r(l,l.indented),"lineContinuation"):e;if(a.match(/^#\{/,s))return s?(l.tokenize=c("}",l.tokenize),null):e;for(var k,d=!1;null!=(k=a.next());){if(k==t&&(i||!d)){l.tokenize=u;break}if(n&&"#"==k&&!d&&a.eat("{")){a.backUp(2);break}d=!d&&"\\"==k}return a.eol()&&d&&a.backUp(1),e}}function I(t,e){return t.match(/^==?/)?(e.tokenize=s,"slimSwitch"):t.match(/^\/$/)?(e.tokenize=A,null):t.match(/^:/)?(e.tokenize=L,"slimSwitch"):(f(t,e,0),e.tokenize(t,e))}var P=t.getMode(e,{name:"htmlmixed"}),Z=t.getMode(e,"ruby"),_={html:P,ruby:Z},D={ruby:"ruby",javascript:"javascript",css:"text/css",sass:"text/x-sass",scss:"text/x-scss",less:"text/x-less",styl:"text/x-styl",coffee:"coffeescript",asciidoc:"text/x-asciidoc",markdown:"text/x-markdown",textile:"text/x-textile",creole:"text/x-creole",wiki:"text/x-wiki",mediawiki:"text/x-mediawiki",rdoc:"text/x-rdoc",builder:"text/x-builder",nokogiri:"text/x-nokogiri",erb:"application/x-erb"},Q=function(t){var e=[];for(var n in t)e.push(n);return new RegExp("^("+e.join("|")+"):")}(D),V={commentLine:"comment",slimSwitch:"operator special",slimTag:"tag",slimId:"attribute def",slimClass:"attribute qualifier",slimAttribute:"attribute",slimSubmode:"keyword special",closeAttributeTag:null,slimDoctype:null,lineContinuation:null},B={"{":"}","[":"]","(":")"},F="_a-zA-ZÀ-ÖØ-öø-˿Ͱ-ͽͿ--⁰-Ⰰ-、-豈-﷏ﷰ-�",G=F+"\\-0-9·̀-ͯ‿-⁀",H=new RegExp("^[:"+F+"](?::["+G+"]|["+G+"]*)"),J=new RegExp("^[:"+F+"][:\\."+G+"]*(?=\\s*=)"),K=new RegExp("^[:"+F+"][:\\."+G+"]*"),N=/^\.-?[_a-zA-Z]+[\w\-]*/,W=/^#[_a-zA-Z]+[\w\-]*/,X={startState:function(){return{htmlState:t.startState(P),rubyState:t.startState(Z),stack:null,last:null,tokenize:A,line:A,indented:0}},copyState:function(e){return{htmlState:t.copyState(P,e.htmlState),rubyState:t.copyState(Z,e.rubyState),subMode:e.subMode,subState:e.subMode&&t.copyState(e.subMode,e.subState),stack:e.stack,last:e.last,tokenize:e.tokenize,line:e.line}},token:function(t,e){if(t.sol())for(e.indented=t.indentation(),e.startOfLine=!0,e.tokenize=e.line;e.stack&&e.stack.indented>e.indented&&"slimSubmode"!=e.last;)e.line=e.tokenize=e.stack.tokenize,e.stack=e.stack.parent,e.subMode=null,e.subState=null;if(t.eatSpace())return null;var n=e.tokenize(t,e);return e.startOfLine=!1,n&&(e.last=n),V.hasOwnProperty(n)?V[n]:n},blankLine:function(t){if(t.subMode&&t.subMode.blankLine)return t.subMode.blankLine(t.subState)},innerMode:function(t){return t.subMode?{state:t.subState,mode:t.subMode}:{state:t,mode:X}}};return X},"htmlmixed","ruby"),t.defineMIME("text/x-slim","slim"),t.defineMIME("application/x-slim","slim")});
|
74
74
|
},{"../../lib/codemirror":22,"../htmlmixed/htmlmixed":26,"../ruby/ruby":30}],33:[function(require,module,exports){
|
75
|
-
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("sql",function(t,r){function a(e,t){var r=e.next();if(g[r]){var a=g[r](e,t);if(!1!==a)return a}if(p.hexNumber&&("0"==r&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==r||"X"==r)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(p.binaryNumber&&(("b"==r||"B"==r)&&e.match(/^'[01]+'/)||"0"==r&&e.match(/^b[01]+/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return e.match(/^[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?/),p.decimallessFloat&&e.eat("."),"number";if("?"==r&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==r||'"'==r&&p.doubleQuote)return t.tokenize=n(r),t.tokenize(e,t);if((p.nCharCast&&("n"==r||"N"==r)||p.charsetCast&&"_"==r&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(/^[\(\),\;\[\]]/.test(r))return null;if(p.commentSlashSlash&&"/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(p.commentHash&&"#"==r||"-"==r&&e.eat("-")&&(!p.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==r&&e.eat("*"))return t.tokenize=i,t.tokenize(e,t);if("."!=r){if(d.test(r))return e.eatWhile(d),null;if("{"==r&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var o=e.current().toLowerCase();return b.hasOwnProperty(o)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":c.hasOwnProperty(o)?"atom":u.hasOwnProperty(o)?"builtin":m.hasOwnProperty(o)?"keyword":l.hasOwnProperty(o)?"string-2":null}return p.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":p.ODBCdotTable&&e.match(/^[a-zA-Z_]+/)?"variable-2":void 0}function n(e){return function(t,r){for(var n,i=!1;null!=(n=t.next());){if(n==e&&!i){r.tokenize=a;break}i=!i&&"\\"==n}return"string"}}function i(e,t){for(;;){if(!e.skipTo("*")){e.skipToEnd();break}if(e.next(),e.eat("/")){t.tokenize=a;break}}return"comment"}function o(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}function s(e){e.indent=e.context.indent,e.context=e.context.prev}var l=r.client||{},c=r.atoms||{false:!0,true:!0,null:!0},u=r.builtin||{},m=r.keywords||{},d=r.operatorChars||/^[*+\-%<>!=&|~^]/,p=r.support||{},g=r.hooks||{},b=r.dateSQL||{date:!0,time:!0,timestamp:!0};return{startState:function(){return{tokenize:a,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),e.eatSpace())return null;var r=t.tokenize(e,t);if("comment"==r)return r;t.context&&null==t.context.align&&(t.context.align=!0);var a=e.current();return"("==a?o(e,t,")"):"["==a?o(e,t,"]"):t.context&&t.context.type==a&&s(t),r},indent:function(r,a){var n=r.context;if(!n)return e.Pass;var i=a.charAt(0)==n.type;return n.align?n.col+(i?0:1):n.indent+(i?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:p.commentSlashSlash?"//":p.commentHash?"#":null}}),function(){function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function r(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function a(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function n(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}function i(e){for(var t={},r=e.split(" "),a=0;a<r.length;++a)t[r[a]]=!0;return t}var o="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";e.defineMIME("text/x-sql",{name:"sql",keywords:i(o+"begin"),builtin:i("bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec"),builtin:i("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":a}}),e.defineMIME("text/x-mysql",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":a,"`":t,"\\":n}}),e.defineMIME("text/x-mariadb",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":a,"`":t,"\\":n}}),e.defineMIME("text/x-sqlite",{name:"sql",client:i("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:i(o+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:i("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|\/~]/,dateSQL:i("date time timestamp datetime"),support:i("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":a,":":a,"?":a,$:a,'"':r,"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:i("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:i("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:i("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:i("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:i("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:i("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:i("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*+\-%<>!=~]/,dateSQL:i("date time timestamp"),support:i("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:i("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external false fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger true unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with"),builtin:i("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:i("source"),keywords:i(o+"a abort abs absent absolute access according action ada add admin after aggregate all allocate also always analyse analyze any are array array_agg array_max_cardinality asensitive assertion assignment asymmetric at atomic attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli binary bit_length blob blocked bom both breadth c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain characteristics characters character_length character_set_catalog character_set_name character_set_schema char_length check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column columns column_name command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constraint constraints constraint_catalog constraint_name constraint_schema constructor contains content continue control conversion convert copy corr corresponding cost covar_pop covar_samp cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datetime_interval_code datetime_interval_precision day db deallocate dec declare default defaults deferrable deferred defined definer degree delimiter delimiters dense_rank depth deref derived describe descriptor deterministic diagnostics dictionary disable discard disconnect dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain dynamic dynamic_function dynamic_function_code each element else empty enable encoding encrypted end end-exec end_frame end_partition enforced enum equals escape event every except exception exclude excluding exclusive exec execute exists exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreign fortran forward found frame_row free freeze fs full function functions fusion g general generated get global go goto grant granted greatest grouping groups handler header hex hierarchy hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import including increment indent index indexes indicator inherit inherits initially inline inner inout input insensitive instance instantiable instead integrity intersect intersection invoker isnull isolation k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like_regex link listen ln load local localtime localtimestamp location locator lock locked logged lower m map mapping match matched materialized max maxvalue max_cardinality member merge message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized nothing notify notnull nowait nth_value ntile null nullable nullif nulls number object occurrences_regex octets octet_length of off offset oids old only open operator option options ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password percent percentile_cont percentile_disc percent_rank period permission placing plans pli policy portion position position_regex power precedes preceding prepare prepared preserve primary prior privileges procedural procedure program public quote range rank read reads reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns revoke right role rollback rollup routine routine_catalog routine_name routine_schema row rows row_count row_number rule savepoint scale schema schema_name scope scope_catalog scope_name scope_schema scroll search second section security selective self sensitive sequence sequences serializable server server_name session session_user setof sets share show similar simple size skip snapshot some source space specific specifictype specific_name sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset substring substring_regex succeeds sum symmetric sysid system system_time system_user t tables tablesample tablespace table_name temp template temporary then ties timezone_hour timezone_minute to token top_level_count trailing transaction transactions_committed transactions_rolled_back transaction_active transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted unique unknown unlink unlisten unlogged unnamed unnest until untyped upper uri usage user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of varbinary variadic var_pop var_samp verbose version versioning view views volatile when whenever whitespace width_bucket window within work wrapper write xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes loop repeat"),builtin:i("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-gql",{name:"sql",keywords:i("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:i("false true"),builtin:i("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/})}()});
|
75
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("sql",function(t,r){function a(e,t){var r=e.next();if(g[r]){var a=g[r](e,t);if(a!==!1)return a}if(p.hexNumber&&("0"==r&&e.match(/^[xX][0-9a-fA-F]+/)||("x"==r||"X"==r)&&e.match(/^'[0-9a-fA-F]+'/)))return"number";if(p.binaryNumber&&(("b"==r||"B"==r)&&e.match(/^'[01]+'/)||"0"==r&&e.match(/^b[01]+/)))return"number";if(r.charCodeAt(0)>47&&r.charCodeAt(0)<58)return e.match(/^[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?/),p.decimallessFloat&&e.eat("."),"number";if("?"==r&&(e.eatSpace()||e.eol()||e.eat(";")))return"variable-3";if("'"==r||'"'==r&&p.doubleQuote)return t.tokenize=n(r),t.tokenize(e,t);if((p.nCharCast&&("n"==r||"N"==r)||p.charsetCast&&"_"==r&&e.match(/[a-z][a-z0-9]*/i))&&("'"==e.peek()||'"'==e.peek()))return"keyword";if(/^[\(\),\;\[\]]/.test(r))return null;if(p.commentSlashSlash&&"/"==r&&e.eat("/"))return e.skipToEnd(),"comment";if(p.commentHash&&"#"==r||"-"==r&&e.eat("-")&&(!p.commentSpaceRequired||e.eat(" ")))return e.skipToEnd(),"comment";if("/"==r&&e.eat("*"))return t.tokenize=i,t.tokenize(e,t);if("."!=r){if(d.test(r))return e.eatWhile(d),null;if("{"==r&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/)))return"number";e.eatWhile(/^[_\w\d]/);var o=e.current().toLowerCase();return b.hasOwnProperty(o)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/))?"number":c.hasOwnProperty(o)?"atom":u.hasOwnProperty(o)?"builtin":m.hasOwnProperty(o)?"keyword":l.hasOwnProperty(o)?"string-2":null}return p.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i)?"number":p.ODBCdotTable&&e.match(/^[a-zA-Z_]+/)?"variable-2":void 0}function n(e){return function(t,r){for(var n,i=!1;null!=(n=t.next());){if(n==e&&!i){r.tokenize=a;break}i=!i&&"\\"==n}return"string"}}function i(e,t){for(;;){if(!e.skipTo("*")){e.skipToEnd();break}if(e.next(),e.eat("/")){t.tokenize=a;break}}return"comment"}function o(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}function s(e){e.indent=e.context.indent,e.context=e.context.prev}var l=r.client||{},c=r.atoms||{false:!0,true:!0,null:!0},u=r.builtin||{},m=r.keywords||{},d=r.operatorChars||/^[*+\-%<>!=&|~^]/,p=r.support||{},g=r.hooks||{},b=r.dateSQL||{date:!0,time:!0,timestamp:!0};return{startState:function(){return{tokenize:a,context:null}},token:function(e,t){if(e.sol()&&t.context&&null==t.context.align&&(t.context.align=!1),e.eatSpace())return null;var r=t.tokenize(e,t);if("comment"==r)return r;t.context&&null==t.context.align&&(t.context.align=!0);var a=e.current();return"("==a?o(e,t,")"):"["==a?o(e,t,"]"):t.context&&t.context.type==a&&s(t),r},indent:function(r,a){var n=r.context;if(!n)return e.Pass;var i=a.charAt(0)==n.type;return n.align?n.col+(i?0:1):n.indent+(i?0:t.indentUnit)},blockCommentStart:"/*",blockCommentEnd:"*/",lineComment:p.commentSlashSlash?"//":p.commentHash?"#":null}}),function(){function t(e){for(var t;null!=(t=e.next());)if("`"==t&&!e.eat("`"))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function r(e){for(var t;null!=(t=e.next());)if('"'==t&&!e.eat('"'))return"variable-2";return e.backUp(e.current().length-1),e.eatWhile(/\w/)?"variable-2":null}function a(e){return e.eat("@")&&(e.match(/^session\./),e.match(/^local\./),e.match(/^global\./)),e.eat("'")?(e.match(/^.*'/),"variable-2"):e.eat('"')?(e.match(/^.*"/),"variable-2"):e.eat("`")?(e.match(/^.*`/),"variable-2"):e.match(/^[0-9a-zA-Z$\.\_]+/)?"variable-2":null}function n(e){return e.eat("N")?"atom":e.match(/^[a-zA-Z.#!?]/)?"variable-2":null}function i(e){for(var t={},r=e.split(" "),a=0;a<r.length;++a)t[r[a]]=!0;return t}var o="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";e.defineMIME("text/x-sql",{name:"sql",keywords:i(o+"begin"),builtin:i("bool boolean bit blob enum long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision real date datetime year unsigned signed decimal numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-mssql",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"begin trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec"),builtin:i("bigint numeric bit smallint decimal smallmoney int tinyint money float real char varchar text nchar nvarchar ntext binary varbinary image cursor timestamp hierarchyid uniqueidentifier sql_variant xml table "),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":a}}),e.defineMIME("text/x-mysql",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":a,"`":t,"\\":n}}),e.defineMIME("text/x-mariadb",{name:"sql",client:i("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:i(o+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group groupby_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":a,"`":t,"\\":n}}),e.defineMIME("text/x-sqlite",{name:"sql",client:i("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:i(o+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:i("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:i("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|\/~]/,dateSQL:i("date time timestamp datetime"),support:i("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":a,":":a,"?":a,$:a,'"':r,"`":t}}),e.defineMIME("text/x-cassandra",{name:"sql",client:{},keywords:i("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:i("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:i("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:i("commentSlashSlash decimallessFloat"),hooks:{}}),e.defineMIME("text/x-plsql",{name:"sql",client:i("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:i("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:i("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*+\-%<>!=~]/,dateSQL:i("date time timestamp"),support:i("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")}),e.defineMIME("text/x-hive",{name:"sql",keywords:i("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external false fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger true unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with"),builtin:i("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:i("date timestamp"),support:i("ODBCdotTable doubleQuote binaryNumber hexNumber")}),e.defineMIME("text/x-pgsql",{name:"sql",client:i("source"),keywords:i(o+"a abort abs absent absolute access according action ada add admin after aggregate all allocate also always analyse analyze any are array array_agg array_max_cardinality asensitive assertion assignment asymmetric at atomic attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli binary bit_length blob blocked bom both breadth c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain characteristics characters character_length character_set_catalog character_set_name character_set_schema char_length check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column columns column_name command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constraint constraints constraint_catalog constraint_name constraint_schema constructor contains content continue control conversion convert copy corr corresponding cost covar_pop covar_samp cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datetime_interval_code datetime_interval_precision day db deallocate dec declare default defaults deferrable deferred defined definer degree delimiter delimiters dense_rank depth deref derived describe descriptor deterministic diagnostics dictionary disable discard disconnect dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain dynamic dynamic_function dynamic_function_code each element else empty enable encoding encrypted end end-exec end_frame end_partition enforced enum equals escape event every except exception exclude excluding exclusive exec execute exists exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreign fortran forward found frame_row free freeze fs full function functions fusion g general generated get global go goto grant granted greatest grouping groups handler header hex hierarchy hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import including increment indent index indexes indicator inherit inherits initially inline inner inout input insensitive instance instantiable instead integrity intersect intersection invoker isnull isolation k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like_regex link listen ln load local localtime localtimestamp location locator lock locked logged lower m map mapping match matched materialized max maxvalue max_cardinality member merge message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized nothing notify notnull nowait nth_value ntile null nullable nullif nulls number object occurrences_regex octets octet_length of off offset oids old only open operator option options ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password percent percentile_cont percentile_disc percent_rank period permission placing plans pli policy portion position position_regex power precedes preceding prepare prepared preserve primary prior privileges procedural procedure program public quote range rank read reads reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns revoke right role rollback rollup routine routine_catalog routine_name routine_schema row rows row_count row_number rule savepoint scale schema schema_name scope scope_catalog scope_name scope_schema scroll search second section security selective self sensitive sequence sequences serializable server server_name session session_user setof sets share show similar simple size skip snapshot some source space specific specifictype specific_name sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset substring substring_regex succeeds sum symmetric sysid system system_time system_user t tables tablesample tablespace table_name temp template temporary then ties timezone_hour timezone_minute to token top_level_count trailing transaction transactions_committed transactions_rolled_back transaction_active transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted unique unknown unlink unlisten unlogged unnamed unnest until untyped upper uri usage user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of varbinary variadic var_pop var_samp verbose version versioning view views volatile when whenever whitespace width_bucket window within work wrapper write xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes loop repeat"),builtin:i("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:i("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:i("date time timestamp"),support:i("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")}),e.defineMIME("text/x-gql",{name:"sql",keywords:i("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:i("false true"),builtin:i("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/})}()});
|
76
76
|
},{"../../lib/codemirror":22}],34:[function(require,module,exports){
|
77
|
-
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};t.defineMode("xml",function(r,o){function a(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();if("<"==r)return t.eat("!")?t.eat("[")?t.match("CDATA[")?n(u("atom","]]>")):null:t.match("--")?n(u("comment","
|
77
|
+
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}(function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,caseFold:!1};t.defineMode("xml",function(r,o){function a(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();if("<"==r)return t.eat("!")?t.eat("[")?t.match("CDATA[")?n(u("atom","]]>")):null:t.match("--")?n(u("comment","-->")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(d(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=u("meta","?>"),"meta"):(C=t.eat("/")?"closeTag":"openTag",e.tokenize=i,"tag bracket");if("&"==r){var o;return o=t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"),o?"atom":"error"}return t.eatWhile(/[^&<]/),null}function i(t,e){var n=t.next();if(">"==n||"/"==n&&t.eat(">"))return e.tokenize=a,C=">"==n?"endTag":"selfcloseTag","tag bracket";if("="==n)return C="equals",null;if("<"==n){e.tokenize=a,e.state=m,e.tagName=e.tagStart=null;var r=e.tokenize(t,e);return r?r+" tag error":"tag error"}return/[\'\"]/.test(n)?(e.tokenize=l(n),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function l(t){var e=function(e,n){for(;!e.eol();)if(e.next()==t){n.tokenize=i;break}return"string"};return e.isInAttribute=!0,e}function u(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=a;break}n.next()}return t}}function d(t){return function(e,n){for(var r;null!=(r=e.next());){if("<"==r)return n.tokenize=d(t+1),n.tokenize(e,n);if(">"==r){if(1==t){n.tokenize=a;break}return n.tokenize=d(t-1),n.tokenize(e,n)}}return"meta"}}function c(t,e,n){this.prev=t.context,this.tagName=e,this.indent=t.indented,this.startOfLine=n,(z.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function f(t){t.context&&(t.context=t.context.prev)}function s(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!z.contextGrabbers.hasOwnProperty(n)||!z.contextGrabbers[n].hasOwnProperty(e))return;f(t)}}function m(t,e,n){return"openTag"==t?(n.tagStart=e.column(),g):"closeTag"==t?p:m}function g(t,e,n){return"word"==t?(n.tagName=e.current(),I="tag",x):(I="error",g)}function p(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&z.implicitlyClosed.hasOwnProperty(n.context.tagName)&&f(n),n.context&&n.context.tagName==r||z.matchClosing===!1?(I="tag",h):(I="tag error",b)}return I="error",b}function h(t,e,n){return"endTag"!=t?(I="error",h):(f(n),m)}function b(t,e,n){return I="error",h(t,e,n)}function x(t,e,n){if("word"==t)return I="attribute",k;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||z.autoSelfClosers.hasOwnProperty(r)?s(n,r):(s(n,r),n.context=new c(n,r,o==n.indented)),m}return I="error",x}function k(t,e,n){return"equals"==t?v:(z.allowMissing||(I="error"),x(t,e,n))}function v(t,e,n){return"string"==t?w:"word"==t&&z.allowUnquoted?(I="string",x):(I="error",x(t,e,n))}function w(t,e,n){return"string"==t?w:x(t,e,n)}var y=r.indentUnit,z={},N=o.htmlMode?e:n;for(var T in N)z[T]=N[T];for(var T in o)z[T]=o[T];var C,I;return a.isInText=!0,{startState:function(t){var e={tokenize:a,state:m,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;C=null;var n=e.tokenize(t,e);return(n||C)&&"comment"!=n&&(I=null,e.state=e.state(C||n,t,e),I&&(n="error"==I?n+" error":I)),n},indent:function(e,n,r){var o=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+y;if(o&&o.noIndent)return t.Pass;if(e.tokenize!=i&&e.tokenize!=a)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return z.multilineTagIndentPastTag!==!1?e.tagStart+e.tagName.length+2:e.tagStart+y*(z.multilineTagIndentFactor||1);if(z.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var l=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(l&&l[1])for(;o;){if(o.tagName==l[2]){o=o.prev;break}if(!z.implicitlyClosed.hasOwnProperty(o.tagName))break;o=o.prev}else if(l)for(;o;){var u=z.contextGrabbers[o.tagName];if(!u||!u.hasOwnProperty(l[2]))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+y:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:z.htmlMode?"html":"xml",helperType:z.htmlMode?"html":"xml",skipAttribute:function(t){t.state==v&&(t.state=x)}}}),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})});
|
78
78
|
},{"../../lib/codemirror":22}],35:[function(require,module,exports){
|
79
79
|
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}(function(e){"use strict";e.defineMode("yaml",function(){var e=["true","false","on","off","yes","no"],i=new RegExp("\\b(("+e.join(")|(")+"))$","i");return{token:function(e,t){var r=e.peek(),n=t.escaped;if(t.escaped=!1,"#"==r&&(0==e.pos||/\s/.test(e.string.charAt(e.pos-1))))return e.skipToEnd(),"comment";if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol)return e.skipToEnd(),"string";if(t.literal&&(t.literal=!1),e.sol()){if(t.keyCol=0,t.pair=!1,t.pairStart=!1,e.match(/---/))return"def";if(e.match(/\.\.\./))return"def";if(e.match(/\s*-\s+/))return"meta"}if(e.match(/^(\{|\}|\[|\])/))return"{"==r?t.inlinePairs++:"}"==r?t.inlinePairs--:"["==r?t.inlineList++:t.inlineList--,"meta";if(t.inlineList>0&&!n&&","==r)return e.next(),"meta";if(t.inlinePairs>0&&!n&&","==r)return t.keyCol=0,t.pair=!1,t.pairStart=!1,e.next(),"meta";if(t.pairStart){if(e.match(/^\s*(\||\>)\s*/))return t.literal=!0,"meta";if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i))return"variable-2";if(0==t.inlinePairs&&e.match(/^\s*-?[0-9\.\,]+\s?$/))return"number";if(t.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/))return"number";if(e.match(i))return"keyword"}return!t.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)?(t.pair=!0,t.keyCol=e.indentation(),"atom"):t.pair&&e.match(/^:\s*/)?(t.pairStart=!0,"meta"):(t.pairStart=!1,t.escaped="\\"==r,e.next(),null)},startState:function(){return{pair:!1,pairStart:!1,keyCol:0,inlinePairs:0,inlineList:0,literal:!1,escaped:!1}}}}),e.defineMIME("text/x-yaml","yaml"),e.defineMIME("text/yaml","yaml")});
|
80
80
|
},{"../../lib/codemirror":22}],36:[function(require,module,exports){
|
81
81
|
var CodeMirror=require("codemirror");require("codemirror/addon/runmode/runmode.js");var Highlighter={aliases:{bash:"text/x-sh",c:"text/x-csrc",html:"text/html",js:"text/javascript",json:"application/json",java:"text/x-java",markup:"text/html",sass:"text/x-sass",scss:"text/x-scss",sh:"text/x-sh"},addAlias:function(a){for(var s in a)self.aliases[s]=a[s]},aliasLang:function(a){return self.aliases[a]||a},process:function(a,s,t){var e={json:!1};"json"==s&&(e.json=!0),CodeMirror.runMode(a,self.aliasLang(s),t,e)},highlightEl:function(a){var s=a.dataset.lang||a.dataset.language;if(!s){if(classMatch=a.className.match(/lang.*?-(\S+)/),!classMatch)return;s=classMatch[1]}a.classList.contains("language-"+s)&&a.classList.remove("language-"+s),a.classList.add("lang-"+s),a.classList.add("highlighted");var t=a.textContent.trim();self.process(t,s,a),a.innerHTML="<code class='highlighted-code static-code cm-s-default'>"+a.innerHTML+"</code>"},highlight:function(a){a=a||'[class*="language-"], [class*="lang-"], [data-lang], [data-language]';var s=document.querySelectorAll(a);Array.prototype.forEach.call(s,function(a){self.highlightEl(a)})}};module.exports=self=Highlighter;
|
82
82
|
},{"codemirror":22,"codemirror/addon/runmode/runmode.js":21}],37:[function(require,module,exports){
|
83
|
-
var validation=require("./lib/validation"),progressive=require("./lib/progressive");module.exports={validate:validation.validate,invalidateField:validation.invalidateField,next:progressive.next};
|
84
|
-
},{"./lib/progressive":38,"./lib/validation":39}],38:[function(require,module,exports){
|
85
|
-
function reset(){formCallbacks={next:[]},registeredForms=[]}function newForm(e){function t(){return m[p]}function o(){return m[p+1]}function n(){return t()&&!t().disabled}function r(){a(p+1)}function a(e){e=Number(e);var o=m[e];if(o&&o!=t()){var r=p<e?"forward":"reverse";if(n())return s(function(){a(e)},r);p=e,c(r)}}function s(e,o){o=o||"forward",t().classList.remove("active","enter"),t().classList.add("exit"),t().dataset.direction=o,Event.afterAnimation(t(),function(){l(),"function"==typeof e&&e()})}function i(e,o){n()||(o=o||"reverse",t().classList.remove("exit","completed"),t().classList.add("active","enter"),t().dataset.direction=o,u(),Event.afterAnimation(t(),function(){"function"==typeof e&&e()}))}function c(e){u(),t().classList.remove("completed"),t().dataset.direction=e,t().classList.add("active","enter");var o=t().querySelector("input:not([hidden]), textarea, select");o&&o.focus(),f()}function l(){t().disabled=!0,t().classList.add("completed"),t().classList.remove("enter","exit")}function f(){toolbox.each(e.querySelectorAll("nav [data-step]"),function(e){e.dataset.step<p+1&&(e.classList.remove("here","next"),e.classList.add("previous","completed")),e.dataset.step==p+1&&(e.classList.remove("previous","next"),e.classList.add("here")),e.dataset.step>p+1&&(e.classList.remove("previous","here"),e.classList.add("next"))})}function d(e){toolbox.each(e.querySelectorAll("fieldset.form-step[disabled]"),function(e){e.disabled=!1})}function u(){m.forEach(function(e){e.disabled=e!=t()})}if(e){var m=toolbox.slice(e.querySelectorAll(".form-step")),p=0;if(0!=m.length){if(m.forEach(function(e,o){e.disabled=e!=t(),e.dataset.step=o}),e.dataset.nav){var v='<nav class="progressive-form-nav">';m.forEach(function(e,t){v+='<a href="#" class="progressive-form-nav-item" data-step="'+(t+1)+'">',v+=e.dataset.nav||"Step "+(t+1),v+="</a> "}),v+="</nav>",e.insertAdjacentHTML("afterbegin",v)}c(),registeredForms.push(function(n,c){var l=n.currentTarget;if("show-step"===c)n.preventDefault(),toolbox.matches(l,".previous, .completed, .completed + a")&&a(l.dataset.step-1);else if("next"===c){var f="FORM"==l.tagName?l:toolbox.getClosest(l,"form");if(e==f&&!t().querySelector(":invalid")){var m=getCallbacks(e);o()?u():d(e),m?(n.preventDefault(),m(n,{fieldset:t(),form:e,forward:r,dismiss:s,revisit:i,showStep:a,complete:!o(),formData:toolbox.formData(t())})):o()&&(n.preventDefault(),r())}}})}}}function fire(e,t){registeredForms.forEach(function(o){o(e,t)})}function getCallbacks(e,t){t=t||"next";var o,n=[];return formCallbacks[t].forEach(function(t){(o=t(e))&&n.push(o)}),!!n.length&&function(){var e=toolbox.slice(arguments);n.forEach(function(t){t.apply(t,e)})}}function next(e,t){on(e,"next",t)}function on(e,t,o){if("object"==typeof t)for(type in t)on(e,type,t[type]);else if(formCallbacks[t]){var n=function(t){if(t==e)return o};formCallbacks[t].push(n)}}var toolbox=require("compose-toolbox"),Event=toolbox.event,Callback=toolbox.event.callback,formSelector="form.progressive",watching=!1,formCallbacks,registeredForms;Event.ready(function(){reset(),Event.bubbleFormEvents();var e=formSelector+" [type=submit], "+formSelector+" .next-step",t=formSelector+" .back-step";Event.on(document,"click",e,fire,"next"),Event.on(document,"click",t,fire,"back"),Event.on(document,"click",".progressive-form-nav-item[data-step]",fire,"show-step"),document.head.insertAdjacentHTML("beforeend","<style>.form-step[disabled], .form-step.completed { position: absolute !important; top: -9999px !important; left: -9999px !important; left: 0 !important; right: 0 !important; }</style>"),Event.change(function(){reset(),toolbox.each(document.querySelectorAll(formSelector),function(e){newForm(e)})})}),module.exports={next:next,new:newForm};
|
86
|
-
},{"compose-toolbox":78}],39:[function(require,module,exports){
|
87
|
-
function supported(){return"function"==typeof document.createElement("input").checkValidity}function validateForm(e){var t,a=e.querySelectorAll("[required]");return toolbox.slice(a).some(function(e){if(!getClosest(e,"[disabled]")&&!checkInput(e))return t=e,!0}),!t||(focus(t),showMessage(t),!1)}function checkInput(e,t){var a=statusEl(e),n=isValid(e);return"keydown"!=t||n||e!=document.activeElement?(a.classList.toggle("invalid",!n),a.classList.toggle("valid",n)):a.classList.remove("invalid","valid"),n}function isValid(e){e.value.replace(/\s/g,"").length||(e.value="");var t=checkValue(e)||checkLength(e)||"";return e.setCustomValidity(t),e.checkValidity()}function checkValue(e){if(e.dataset.invalidValue){var t=escapedRegex(e.dataset.invalidValue,"i");if(e.value.match(t))return e.dataset.cachedMessage=e.dataset.message,e.dataset.message="",e.dataset.invalidValueMessage||"Value '"+e.value+"' is not permitted";e.dataset.cachedMessage&&(e.dataset.message=e.dataset.cachedMessage,e.dataset.cachedMessage="")}}function escapedRegex(e,t){var a=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("^"+a+"$",t)}function checkLength(e){return checkCount(e,"min")||checkCount(e,"max")}function checkCount(e,t){var a=e.dataset[t+"Words"];if(a){var n=wordCount(e.value)<a;if(phrasing="min"==t?"at least ":"no more than ",valid="min"==t?!n:n,e.value&&!valid)return"Please write "+phrasing+a+" words."}}function statusEl(e){return getClosest(e,"label")||e}function focus(e){e="none"!==e.style.display?e:e.nextSibling,e.focus()}function submit(e){validateForm("FORM"==e.target.tagName?e.target:getClosest(e.target,"form"))||(checkValidation.stop(),Event.delay(checkValidation.start,500),e.preventDefault(),e.stopImmediatePropagation())}function invalidateField(e,t){e&&e.value&&(e.dataset.invalidValue=e.value,t&&(e.dataset.invalidValueMessage=t))}function hideMessage(e){var t=getClosest(e,"form"),a=t.querySelector(".validation-message");a&&a.parentNode.removeChild(a)}function showMessage(e){hideMessage(e);var t=getClosest(e,"label"),a=e.dataset.message||e.validationMessage;t&&t.insertAdjacentHTML("beforeend",'<aside class="validation-message"><p>'+a+"</p></aside>")}var toolbox=require("compose-toolbox"),Event=toolbox.event,getClosest=toolbox.getClosest,wordCount=toolbox.wordCount,textSelectors="[required]",invalidHandler=Event.callback.new(function(e){e.preventDefault(),e.stopPropagation()});Event.ready(function(){supported()&&(Event.bubbleFormEvents(),document.addEventListener("invalid",invalidHandler,!0),Event.on(document.body,"click","[type=submit]",submit),Event.on(document,"validate","form",function(e){validateForm(e.target)}),Event.on(document,"blur","[required]",checkValidation),Event.on(document,"keydown","[required]",Event.debounce(checkValidation,200)),Event.on(document,"input","select[required]",Event.debounce(checkValidation,200)))});var checkValidation=Event.callback.new(function(e){checkInput(e.target,e.type)&&hideMessage(e.target)});module.exports={validate:validateForm,invalidateField:invalidateField};
|
88
|
-
},{"compose-toolbox":78}],40:[function(require,module,exports){
|
89
|
-
var classify=function(e){return"."+e.replace(/\s/g,".")},merge=function(){var e=[{}].concat(Array.prototype.slice.call(arguments));return Object.assign.apply(this,e)},defaultSettings={parent:"body",className:"loader",loading:"Loading…",success:"Success!",failure:"An error occurred.",removeAfter:800},Loader={new:function(e){function t(){return i||(u.parent.insertAdjacentHTML("beforeend",'<div class="'+u.className+'"></div>'),i=u.parent.lastChild),i}function n(e){e=merge(u,e||{}),i=t(),i.textContent=e.message,i.className=u.className,i.classList.add(e.className),e.removeAfter&&setTimeout(function(){c(e.callback)},e.removeAfter)}function r(e){n(o(e,"loading"))}function a(e){n(o(e,"success"))}function s(e){n(o(e,"failure"))}function o(e,t){return"string"==typeof e&&(e={message:e}),e=merge({message:u[t],className:t},e||{}),void 0===e.removeAfter&&(e.removeAfter="loading"!=t&&u.removeAfter),e}function c(e){requestAnimationFrame(function(){u.parent.removeChild(t()),i=null,"function"==typeof e&&e()})}var i,u=merge(defaultSettings,e||{});return"string"==typeof u.parent&&(u.parent=document.querySelector(u.parent)),{options:u,loading:r,success:a,failure:s,show:n,element:t,remove:c}},defaults:function(e){return Object.assign(defaultSettings,e||{})}};module.exports=Loader;
|
90
|
-
},{}],41:[function(require,module,exports){
|
91
|
-
require("./lib/object.assign");var Event=require("compose-event"),sliders=[],listening,Slider={change:function(e){self.refresh(e.currentTarget)},refresh:function(e){self.setLabels(e),self.setInput(e),self.setFill(e)},focus:function(e){e.currentTarget.focus()},setup:function(){listening||(Event.on(document,"input toggler:show","[type=range]",self.change,{useCapture:!0}),Event.on(document,"click change input","[type=range]",self.focus,{useCapture:!0}),listening=!0);var e=document.querySelectorAll("[type=range]:not(.slider-input)");Array.prototype.forEach.call(e,function(e){var l=self.data(e);sliders.push(l),e.dataset.id=l.id,e=self.template(e),self.refresh(e)})},data:function(e){var l={id:sliders.length,min:e.getAttribute("min")||0,max:e.getAttribute("max")||100,labels:{},externalLabels:{}};Object.assign(l,self.extractData(e)),l=self.extractValues(l),l=self.getLabels(l),l.values&&(l.max=l.min+l.values.length-1),l.segments=Number(l.max)-Number(l.min)+1;for(var t in l)t.match(/-/)&&(l[this.camelCase(t)]=l[t],delete l[t]);return!l.input&&e.getAttribute("name")&&(l.input=e.getAttribute("name"),e.removeAttribute("name")),l.input&&(l.inputClass=l.input.replace(/\W/g,"-"),l.inputExists=self.inputExists(e,l)),l=self.getLineLabels(l),l.mark&&(l.mark=l.mark.split(",").map(Number)),l},getData:function(e){return"string"!=typeof e&&e.dataset&&(e=e.dataset.id),sliders[e]},extractValues:function(e){if(e.values)e.values=e.values.split(",").map(self.trim);else{e.values=[];for(var l=e.min;l<=e.max;l++)e.values.push(l)}return e},getLabels:function(e){e.label&&e.label.match(/false|none/)&&(e.label=!1);for(var l in e)if(e.hasOwnProperty(l)&&!1!==e[l]){var t=l.match(/^(external-)?label-(.+)|^label$/);if(t){var a=e[l].match(/;/)?";":",",s=e[l].split(a).map(self.trim),n=t[1],r=t[2];n?e.externalLabels[r]=s:"label"==l?(e.labels.default=s,delete e.label):e.labels[r]=s,delete e[l]}var i=self.objectSize(e.labels);0==i&&(e.labels.default=e.values),i>1&&delete e.labels.default}return e},getLineLabels:function(e){var l={};if(e.lineLabels){var t=e.lineLabels.match(/;/)?";":",";e.lineLabels.split(t).map(function(e,t){var a=e.split(":");label=a[1]?a[1]:a[0],t=a[1]?a[0]:t+1,l[t]=label}),e.lineLabels=l}return e},template:function(e){var l=self.getData(e);e.setAttribute("min",l.min),e.setAttribute("max",l.max),e.classList.add("slider-input"),e.classList.contains("left-label")&&e.classList.remove("left-label");var t=self.templateHTML(l),a=["slider-container"];t.match("slider-line-label")&&a.push("line-labels"),t.match("slider-label")?a.push("with-label"):a.push("without-label"),t='<div class="'+a.join(" ")+'" id="slider'+l.id+'">'+t+"</div>",e.insertAdjacentHTML("beforebegin",t);var s=e.previousSibling;return s.querySelector(".slider-input-container").insertAdjacentHTML("afterbegin",e.outerHTML),e.parentNode.removeChild(e),e=s.querySelector(".slider-input"),e.getAttribute("value")||(e.value=l.value||l.min),e},templateHTML:function(e){var l="",t="";if(e.mark||e.lineLabels)for(var a=1;a<=e.segments;a++)l+="<div class='slider-segment'><span class='slider-segment-content'>",e.mark&&-1!=e.mark.indexOf(a)&&(l+="<span class='slider-segment-mark' data-index='"+a+"'></span>"),e.lineLabels&&e.lineLabels[a]&&(l+="<span class='slider-line-label'>"+e.lineLabels[a]+"</span>"),l+="</span></div>";for(var a=1;a<e.segments;a++)t+="<span class='slider-fill' data-index='"+a+"'></span>";return l="<div class='slider-input-container'><div class='slider-track'>"+l+"</div><div class='slider-fills'>"+t+"</div></div>"+self.labelTemplate(e),!e.inputExists&&e.inputClass&&(l+="<input class='"+e.inputClass+"' type='hidden' name='"+e.input+"' value=''>"),l},labelTemplate:function(e){var l="";if(0==e.label)return l;for(var t in e.labels)l+='<span class="slider-label-'+t+' internal-label" data-slider-label="'+t+'">',l+=self.labelHTML(e,t,""),l+="</span></span> ";return l.length>0&&(l="<div class='slider-label align-"+(e.positionLabel||"right")+"'>"+l+"</div>"),l},labelHTML:function(e,l,t){return self.labelMeta(e,l,"before")+"<span class='label-content'>"+t+"</span>"+self.labelMeta(e,l,"after")},labelMeta:function(e,l,t){var a=self.camelCase("-label-"+l),s=e[t+a]||e[t+"Label"];return s?"<span class='"+t+"-label'>"+s+"</span>":""},inputExists:function(e,l){if(l.inputClass){var t=self.scope(e).querySelector('input[name="'+l.input+'"]');if(t)return t.classList.add(l.inputClass),!0}},extractData:function(e){for(var l={},t=0;t<e.attributes.length;t++){var a=e.attributes[t].nodeName;new RegExp("^data-").test(a)&&(a=a.replace("data-",""),l[a]=e.attributes[t].nodeValue)}return l},labelElements:function(e,l,t){var a="[data-slider-label="+l+"]",s="#slider"+e+" "+a,n=a+=":not(.internal-label)";return a=t?n:s+", "+n,document.querySelectorAll(a)},setFill:function(e){var l=self.getData(e),t=document.querySelectorAll("#slider"+l.id+" .slider-segment"),a=document.querySelectorAll("#slider"+l.id+" .slider-fill"),s=self.sliderIndex(e);Array.prototype.forEach.call(a,function(e,l){e.dataset.index<=s?(e.classList.add("filled"),t[l]&&t[l].classList.add("filled")):(e.classList.remove("filled"),t[l]&&t[l].classList.remove("filled"))})},setInput:function(e){var l=self.getData(e);if(null!==e.offsetParent&&l.input&&l.values){var t=l.values[self.sliderIndex(e)],a="."+l.input.replace(/\W/g,"-"),s=self.scope(e).querySelectorAll(a);Array.prototype.forEach.call(s,function(e){e.value=t})}},setLabels:function(e){var l=self.getData(e),t=self.sliderIndex(e);null!==e.offsetParent&&Array.prototype.forEach.call(["labels","externalLabels"],function(e){var a="externalLabels"==e;for(var s in l[e]){var n=self.labelElements(l.id,s,a),r=self.labelAtIndex(l[e],t);Array.prototype.forEach.call(n,function(e){var t=e.querySelector(".label-content");t?t.innerHTML=r[s]:e.innerHTML=self.labelHTML(l,s,r[s]),e.classList.toggle("empty-label",""==r[s])})}})},labelAtIndex:function(e,l){var t={};for(var a in e)t[a]=e[a][l];return t},sliderIndex:function(e){return Number(e.value)-Number(e.getAttribute("min"))},scope:function(e){for(var l=e;l&&"FORM"!=l.tagName;)l=l.parentNode;return l||document},trim:function(e){return e.trim()},objectSize:function(e){var l=0;for(var t in e)l++;return l},camelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,l){return l.toUpperCase()})}},self=Slider;Event.change(Slider.setup),module.exports=Slider;
|
92
|
-
},{"./lib/object.assign":42,"compose-event":43}],42:[function(require,module,exports){
|
93
|
-
"function"!=typeof Object.assign&&function(){Object.assign=function(n){"use strict";if(void 0===n||null===n)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),o=1;o<arguments.length;o++){var r=arguments[o];if(void 0!==r&&null!==r)for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}}();
|
94
|
-
},{}],43:[function(require,module,exports){
|
95
83
|
function on(){setEvent("on",slice.call(arguments))}function off(){setEvent("off",slice.call(arguments))}function one(){setEvent("one",slice.call(arguments))}function fire(){args=slice.call(arguments);var e=(args[0],[]);args[1].split(" ").forEach(function(n){var n=animationEvent.transform(n);isEmpty(n)||e.push(n)}),isEmpty(e)||(args[1]=e.join(" "),bean.fire.apply(this,args))}function setEvent(e,n){transformArgs(n).forEach(function(n){bean[e].apply(null,n)})}function keyOne(e,n,r){"function"==typeof n&&(r=n,n="all"),key(e,n,function(t){key.unbind(e,n),r(t)})}function afterAnimation(e,n){!window.getComputedStyle(e).getPropertyValue("animation-duration")?n():one(e,"animationend",n)}function transformArgs(e){var n=[],r={},t=e.shift(),a=e.shift();if("function"!=typeof e[0])var i=e.shift();if("string"==typeof a){var o={};o[a]=e.shift(),a=o}for(event in a)if(a.hasOwnProperty(event)){var l=a[event];event.split(" ").forEach(function(e){e=animationEvent.transform(e),isEmpty(e)?l():e.match(/tap/)?r.touchstart=tap(l):r[e]=l})}for(event in r){var c=[];c.push(t,event),i&&c.push(i),c.push(r[event]),n.push(c.concat(e))}return n}function isEmpty(e){var n=Object.prototype.hasOwnProperty;if(null==e||0===e.length)return!0;if(0<e.length)return!1;for(var r in e)if(n.call(e,r))return!1;return!0}require("./lib/shims/custom-event");var bean=require("bean"),key=require("keymaster"),animationEvent=require("./lib/animation-events"),page=require("./lib/page"),tap=require("./lib/tap-events"),debounce=require("./lib/debounce"),throttle=require("./lib/throttle"),delay=require("./lib/delay"),repeat=require("./lib/repeat"),bubbleFormEvents=require("./lib/bubble-form-events"),scroll=require("./lib/scroll"),resize=require("./lib/resize"),callbackManager=require("./lib/callback-manager"),media=require("./lib/media"),slice=Array.prototype.slice,formBubbling=!1;module.exports={on:on,off:off,one:one,fire:fire,clone:bean.clone,ready:page.ready,change:page.change,afterAnimation:afterAnimation,media:media,key:key,keyOn:key,keyOff:key.unbind,keyOne:keyOne,debounce:debounce,throttle:throttle,delay:delay,repeat:repeat,scroll:scroll,resize:resize,callbackManager:callbackManager,callback:callbackManager.callback,bubbleFormEvents:bubbleFormEvents};
|
96
|
-
},{"./lib/animation-events":
|
84
|
+
},{"./lib/animation-events":38,"./lib/bubble-form-events":39,"./lib/callback-manager":40,"./lib/debounce":41,"./lib/delay":42,"./lib/media":43,"./lib/page":45,"./lib/repeat":46,"./lib/resize":47,"./lib/scroll":48,"./lib/shims/custom-event":49,"./lib/tap-events":50,"./lib/throttle":51,"bean":19,"keymaster":65}],38:[function(require,module,exports){
|
97
85
|
function camelCaseEventTypes(n){return n=n||"",{animationstart:n+"AnimationStart",animationend:n+"AnimationEnd",animationiteration:n+"AnimationIteration"}}function lowerCaseEventTypes(n){return n=n||"",{animationstart:n+"animationstart",animationend:n+"animationend",animationiteration:n+"animationiteration"}}function getAnimationEventTypes(){var n=["webkit","Moz","O",""],t=document.documentElement.style;if(void 0!==t.animationName)return lowerCaseEventTypes();for(var e,i=0,a=n.length;i<a;i++)if(e=n[i],void 0!==t[e+"AnimationName"]){if(0===i)return camelCaseEventTypes(e.toLowerCase());if(1===i)return lowerCaseEventTypes();if(2===i)return lowerCaseEventTypes(e.toLowerCase())}return{}}function transformAnimationEvents(n){return n.match(/animation/i)?cssAnimEventTypes[n]?cssAnimEventTypes[n]:("test"!=window.env&&console.error('"'+n+'" is not a supported animation event'),""):n}var cssAnimEventTypes=getAnimationEventTypes(),supported=void 0!==cssAnimEventTypes.animationstart;module.exports={transform:transformAnimationEvents};
|
98
|
-
},{}],
|
86
|
+
},{}],39:[function(require,module,exports){
|
99
87
|
var Event=require("bean"),page=require("./page"),formEls,formBubbling=!1,fireBubble=function(e){if(e.detail&&e.detail.triggered)return!1;var t=new CustomEvent(e.type,{bubbles:!0,cancelable:!0,detail:{triggered:!0}});e.stopPropagation(),e.target.dispatchEvent(t),t.defaultPrevented&&e.preventDefault()},eventType=function(e){return"FORM"==e.tagName?"submit":"focus blur"},bubbleOn=function(e){Event.on(e,eventType(e),fireBubble)},bubbleOff=function(e){Event.off(e,eventType(e),fireBubble)},bubbleFormEvents=function(){if(!e){page.change(function(){formEls&&Array.prototype.forEach.call(formEls,bubbleOff),formEls=document.querySelectorAll("form, input"),Array.prototype.forEach.call(formEls,bubbleOn)});var e=!0}};module.exports=bubbleFormEvents;
|
100
|
-
},{"./page":
|
88
|
+
},{"./page":45,"bean":19}],40:[function(require,module,exports){
|
101
89
|
var Manager={new:function(){var n={callbacks:[],add:function(a){var c=Manager.callback.new(a);return n.callbacks.push(c),c},stop:function(){n.callbacks.forEach(function(n){n.stop()})},start:function(){n.callbacks.forEach(function(n){n.start()})},toggle:function(a){n.callbacks.forEach(function(n){n.toggle(a)})},remove:function(){n.callbacks=[]},fire:function(){var a=Array.prototype.slice.call(arguments);n.callbacks.forEach(function(n){n.apply(this,a)})}};return n},callback:{new:function(n){var a=function(){a.enabled&&n.apply(n,arguments)};return a.stop=function(){a.enabled=!1},a.start=function(){a.enabled=!0},a.toggle=function(n){a.enabled=0 in arguments?n:!a.enabled},a.enabled=!0,a}}};module.exports=Manager;
|
102
|
-
},{}],
|
90
|
+
},{}],41:[function(require,module,exports){
|
103
91
|
var now=function(){return Date.now()},pickFunction=function(){var n;return Array.prototype.forEach.call(arguments,function(i){"function"!=typeof i||n||(n=i)}),n},debounce=function(n,i,t){t="object"==typeof n?n:t||{},i=t.wait||i||0;var a,o=t.max||!1,e="leading"in t&&t.leading,c=!("trailing"in t)||t.trailing,r=pickFunction(t.leading,t.trailing,t.callback,n),u=pickFunction(t.trailing,t.leading,t.callback,n),l=!1,f={},g=0,p=0,d=!1,w=function(n){g=now(),p=now(),l=!1,d=!0,"leading"===n?r.apply(r,a):u.apply(u,a)},m=function(){l||(l=!0,f.value=requestAnimationFrame(k))},v=function(){"value"in f&&(cancelAnimationFrame(f.value),l=!1,g=0,p=0,d=!1)},y=function(){return o&&now()-p>=o},b=function(){return now()-g>=i},k=function(){l=!1,e&&!d?w("leading"):y()?w(e?"leading":"trailing"):b()?(c&&w("trailing"),e&&(d=!1)):m()},F=function(){g=now(),a=arguments,m()};return F.stop=v,F};module.exports=debounce;
|
104
|
-
},{}],
|
92
|
+
},{}],42:[function(require,module,exports){
|
105
93
|
var now=function(){return Date.now()},delay=function(e,a){var t=null!=a?2:1,n={};return n.args=Array.prototype.slice.call(arguments,t),n.wait=a||0,n.start=now(),n.stop=function(){"value"in n&&cancelAnimationFrame(n.value)},n.loop=function(){now()-n.start>=n.wait?(e.apply(e,n.args),n.repeat?(n.repeat=n.repeat-1,n.start=now(),queueDelay(n)):0===n.repeat&&n.complete&&n.complete()):queueDelay(n)},queueDelay(n)},queueDelay=function(e){return e.value=requestAnimationFrame(e.loop),e};module.exports=delay;
|
106
|
-
},{}],
|
94
|
+
},{}],43:[function(require,module,exports){
|
107
95
|
function parseQuery(i,n){var e={};return"string"==typeof i?i:(e.min=size(i.min,"min-"+n),e.max=size(i.max,"max-"+n),e.min&&e.max&&(e.query=e.min+" and "+e.max),e.query||e.min||e.max)}function size(i,n){return i?"("+n+": "+toPx(i)+")":null}function toPx(i){return"number"==typeof i?i+"px":i}var media={width:function(i,n){return media.listen(parseQuery(i,"width"),n)},minWidth:function(i,n){return media.width({min:i},n)},maxWidth:function(i,n){return media.width({max:i},n)},height:function(i,n){return media.listen(parseQuery(i,"height"),n)},minHeight:function(i,n){return media.height({min:i},n)},maxHeight:function(i,n){return media.height({max:i},n)},listen:function(i,n){var e=window.matchMedia(i);return n&&(n(e),e.addListener(n)),e}};module.exports=media;
|
108
|
-
},{}],
|
96
|
+
},{}],44:[function(require,module,exports){
|
109
97
|
var Event=require("bean"),callbackManager=require("./callback-manager"),throttle=require("./throttle"),debounce=require("./debounce"),optimizedEventManager={new:function(e){var n={run:callbackManager.new(),start:callbackManager.new(),stop:callbackManager.new()},t=throttle(n.run.fire),r=debounce({leading:n.start.fire,trailing:!1,wait:150}),a=debounce(n.stop.fire,150);Event.on(window,e,function(){t(),r(),a()});var i=function(e){return n.run.add(e)};return i.start=function(e){return n.start.add(e)},i.stop=function(e){return n.stop.add(e)},i(function(){Event.fire(window,"optimized"+e[0].toUpperCase()+e.substring(1))}),i.start(function(){Event.fire(window,e+"Start")}),i.stop(function(){Event.fire(window,e+"Stop")}),i}};module.exports=optimizedEventManager;
|
110
|
-
},{"./callback-manager":
|
98
|
+
},{"./callback-manager":40,"./debounce":41,"./throttle":51,"bean":19}],45:[function(require,module,exports){
|
111
99
|
var Event=require("bean"),callbackManager=require("./callback-manager"),manager={ready:callbackManager.new(),change:callbackManager.new(),readyAlready:!1,changed:!1};manager.ready.add(function(){manager.readyAlready=!0}),manager.ready.add(function(){window.Turbolinks||manager.changed||(manager.changed=!0,manager.change.fire())});var ready=function(a){return manager.readyAlready&&a(),manager.ready.add(a)},change=function(a){return manager.changed&&a(),manager.change.add(a)};ready.fire=function(){manager.ready.fire(),manager.ready.stop()},change.fire=function(){manager.change.fire()},Event.on(document,"DOMContentLoaded",ready.fire),Event.on(document,"page:change",change.fire),module.exports={ready:ready,change:change};
|
112
|
-
},{"./callback-manager":
|
100
|
+
},{"./callback-manager":40,"bean":19}],46:[function(require,module,exports){
|
113
101
|
var delay=require("./delay"),repeat=function(e,r,a){var l=1,t=delay(e,r);return null!=a?l=3:null!=r&&(l=2),t.repeat=a||-1,t.args=Array.prototype.slice.call(arguments,l),t.stop=t.cancel,t};module.exports=repeat;
|
114
|
-
},{"./delay":
|
115
|
-
var manager=require("./optimized-event-manager"),resize=manager.new("
|
116
|
-
},{"./optimized-event-manager":
|
102
|
+
},{"./delay":42}],47:[function(require,module,exports){
|
103
|
+
var manager=require("./optimized-event-manager"),resize=manager.new("scroll");resize.disableAnimation=function(){document.querySelector("style#fullstop")||document.head.insertAdjacentHTML("beforeend",'<style id="fullstop">.no-animation *, .no-animation *:after, .no-animation *:before { transition: none !important; animation: none !important }</style>'),resize.start(function(){document.body.classList.add("no-animation")}),resize.stop(function(){document.body.classList.remove("no-animation")})},module.exports=resize;
|
104
|
+
},{"./optimized-event-manager":44}],48:[function(require,module,exports){
|
117
105
|
var manager=require("./optimized-event-manager"),scroll=manager.new("scroll");scroll.disablePointer=function(){scroll.start(function(){document.documentElement.style.pointerEvents="none"}),scroll.stop(function(){document.documentElement.style.pointerEvents=""})},module.exports=scroll;
|
118
|
-
},{"./optimized-event-manager":
|
106
|
+
},{"./optimized-event-manager":44}],49:[function(require,module,exports){
|
119
107
|
!function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}if("function"==typeof window.CustomEvent)return!1;t.prototype=window.Event.prototype,window.CustomEvent=t}();
|
120
|
-
},{}],
|
108
|
+
},{}],50:[function(require,module,exports){
|
121
109
|
function Tap(e,t){function n(t){function n(n){if(t!==n&&(a(),!n.defaultPrevented)){var o=t.preventDefault,r=t.stopPropagation;t.stopPropagation=function(){r.call(t),r.call(n)},t.preventDefault=function(){o.call(t),o.call(n)},e.apply(u,i)}}function a(e){t!==e&&(clearTimeout(c),r.removeEventListener("touchmove",a),endEvents.forEach(function(e){r.removeEventListener(e,n)}))}if(t.touches&&!(t.touches.length>1)){var r=t.target,u=this,i=arguments,c=setTimeout(a,o);r.addEventListener("touchmove",a),endEvents.forEach(function(e){r.addEventListener(e,n)})}}t=t||{};var o=t.timeout||Tap.timeout;return n.handler=e,n}var endEvents=["touchend"];module.exports=Tap,Tap.timeout=200;
|
122
|
-
},{}],
|
110
|
+
},{}],51:[function(require,module,exports){
|
123
111
|
var debounce=require("./debounce"),throttle=function(e,t,a){return"object"==typeof e?(a=e,e=void 0):a=a||{},a.wait=a.wait||t||0,a.max=a.max||a.wait,a.callback=a.callback||e,a.leading=!0,a.trailing=!0,debounce(a)};module.exports=throttle;
|
124
|
-
},{"./debounce":
|
125
|
-
!function(e,t,n){"undefined"!=typeof module&&module.exports?module.exports=n():"function"==typeof define&&define.amd?define(n):t.bean=n()}(0,this,function(e,t){e=e||"bean",t=t||this;var n,r=window,o=t[e],i=/[^\.]*(?=\..*)\.|.*/,a=/\..*/,l="addEventListener",u=document||{},c=u.documentElement||{},s=c[l],p=s?l:"attachEvent",f={},h=Array.prototype.slice,g=function(e,t){return e.split(t||" ")},d=function(e){return"string"==typeof e},m=function(e){return"function"==typeof e},v=function(e){return"object"==typeof e},y=function(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);if(!v(t))return n;for(r in n)n.hasOwnProperty(r)&&t.hasOwnProperty(r)&&(n[r]=t[r]);return n},b=function(e,t,n){for(n=0;n<t.length;n++)t[n]&&(e[t[n]]=1);return e}({},g("click dblclick mouseup mousedown contextmenu mousewheel mousemultiwheel DOMMouseScroll mouseover mouseout mousemove selectstart selectend keydown keypress keyup orientationchange focus blur change reset select submit load unload beforeunload resize move DOMContentLoaded readystatechange message error abort scroll "+(s?"show input invalid touchstart touchmove touchend touchcancel gesturestart gesturechange gestureend textinput readystatechange pageshow pagehide popstate hashchange offline online afterprint beforeprint dragstart dragenter dragover dragleave drag drop dragend loadstart progress suspend emptied stalled loadmetadata loadeddata canplay canplaythrough playing waiting seeking seeked ended durationchange timeupdate play pause ratechange volumechange cuechange checking noupdate downloading cached updateready obsolete ":""))),w=function(){var e="compareDocumentPosition"in c?function(e,t){return t.compareDocumentPosition&&16==(16&t.compareDocumentPosition(e))}:"contains"in c?function(e,t){return(t=9===t.nodeType||t===window?c:t)!==e&&t.contains(e)}:function(e,t){for(;e=e.parentNode;)if(e===t)return 1;return 0},t=function(t){var n=t.relatedTarget;return n?n!==this&&"xul"!==n.prefix&&!/document/.test(this.toString())&&!e(n,this):null==n};return{mouseenter:{base:"mouseover",condition:t},mouseleave:{base:"mouseout",condition:t},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}}}(),E=function(){var e=g("altKey attrChange attrName bubbles cancelable ctrlKey currentTarget detail eventPhase getModifierState isTrusted metaKey relatedNode relatedTarget shiftKey srcElement target timeStamp type view which propertyName path"),t=e.concat(g("button buttons clientX clientY dataTransfer fromElement offsetX offsetY pageX pageY screenX screenY toElement movementX movementY region")),n=t.concat(g("wheelDelta wheelDeltaX wheelDeltaY wheelDeltaZ axis")),o=e.concat(g("char charCode key keyCode keyIdentifier keyLocation location isComposing code")),i=e.concat(g("data")),a=e.concat(g("touches targetTouches changedTouches scale rotation")),l=e.concat(g("data origin source")),s=e.concat(g("state")),p=/over|out/,f=[{reg:/key/i,fix:function(e,t){return t.keyCode=e.keyCode||e.which,o}},{reg:/click|mouse(?!(.*wheel|scroll))|menu|drag|drop/i,fix:function(e,n,r){return n.rightClick=3===e.which||2===e.button,n.pos={x:0,y:0},e.pageX||e.pageY?(n.clientX=e.pageX,n.clientY=e.pageY):(e.clientX||e.clientY)&&(n.clientX=e.clientX+u.body.scrollLeft+c.scrollLeft,n.clientY=e.clientY+u.body.scrollTop+c.scrollTop),p.test(r)&&(n.relatedTarget=e.relatedTarget||e[("mouseover"==r?"from":"to")+"Element"]),t}},{reg:/mouse.*(wheel|scroll)/i,fix:function(){return n}},{reg:/^text/i,fix:function(){return i}},{reg:/^touch|^gesture/i,fix:function(){return a}},{reg:/^message$/i,fix:function(){return l}},{reg:/^popstate$/i,fix:function(){return s}},{reg:/.*/,fix:function(){return e}}],h={},d=function(e,t,n){if(arguments.length&&(e=e||((t.ownerDocument||t.document||t).parentWindow||r).event,this.originalEvent=e,this.isNative=n,this.isBean=!0,e)){var o,i,a,l,u,c=e.type,s=e.target||e.srcElement;if(this.target=s&&3===s.nodeType?s.parentNode:s,n){if(!(u=h[c]))for(o=0,i=f.length;o<i;o++)if(f[o].reg.test(c)){h[c]=u=f[o].fix;break}for(l=u(e,this,c),o=l.length;o--;)!((a=l[o])in this)&&a in e&&(this[a]=e[a])}}};return d.prototype.preventDefault=function(){this.originalEvent.preventDefault?this.originalEvent.preventDefault():this.originalEvent.returnValue=!1},d.prototype.stopPropagation=function(){this.originalEvent.stopPropagation?this.originalEvent.stopPropagation():this.originalEvent.cancelBubble=!0},d.prototype.stop=function(){this.preventDefault(),this.stopPropagation(),this.stopped=!0},d.prototype.stopImmediatePropagation=function(){this.originalEvent.stopImmediatePropagation&&this.originalEvent.stopImmediatePropagation(),this.isImmediatePropagationStopped=function(){return!0}},d.prototype.isImmediatePropagationStopped=function(){return this.originalEvent.isImmediatePropagationStopped&&this.originalEvent.isImmediatePropagationStopped()},d.prototype.clone=function(e){var t=new d(this,this.element,this.isNative);return t.currentTarget=e,t},d}(),T=function(e,t){return s||t||e!==u&&e!==r?e:c},D=function(){var e=function(e,t,n,r){var o=function(n,o){return t.apply(e,r?h.call(o,n?0:1).concat(r):o)},i=function(n,r){return t.__beanDel?t.__beanDel.ft(n.target,e):r},a=n?function(e){var t=i(e,this);if(n.apply(t,arguments))return e&&(e.currentTarget=t),o(e,arguments)}:function(e){return t.__beanDel&&(e=e.clone(i(e))),o(e,arguments)};return a.__beanDel=t.__beanDel,a},t=function(t,n,r,o,i,a,l){var u,c=w[n];"unload"==n&&(r=C(N,t,n,r,o)),c&&(c.condition&&(r=e(t,r,c.condition,a)),n=c.base||n),this.isNative=u=b[n]&&!!t[p],this.customType=!s&&!u&&n,this.element=t,this.type=n,this.original=o,this.namespaces=i,this.eventType=s||u?n:"propertychange",this.target=T(t,u),this[p]=!!this.target[p],this.root=l,this.handler=e(t,r,null,a)};return t.prototype.inNamespaces=function(e){var t,n,r=0;if(!e)return!0;if(!this.namespaces)return!1;for(t=e.length;t--;)for(n=this.namespaces.length;n--;)e[t]==this.namespaces[n]&&r++;return e.length===r},t.prototype.matches=function(e,t,n){return!(this.element!==e||t&&this.original!==t||n&&this.handler!==n)},t}(),P=function(){var e={},t=function(n,r,o,i,a,l){var u=a?"r":"$";if(r&&"*"!=r){var c,s=0,p=e[u+r],f="*"==n;if(!p)return;for(c=p.length;s<c;s++)if((f||p[s].matches(n,o,i))&&!l(p[s],p,s,r))return}else for(var h in e)h.charAt(0)==u&&t(n,h.substr(1),o,i,a,l)};return{has:function(t,n,r,o){var i,a=e[(o?"r":"$")+n];if(a)for(i=a.length;i--;)if(!a[i].root&&a[i].matches(t,r,null))return!0;return!1},get:function(e,n,r,o){var i=[];return t(e,n,r,null,o,function(e){return i.push(e)}),i},put:function(t){var n=!t.root&&!this.has(t.element,t.type,null,!1),r=(t.root?"r":"$")+t.type;return(e[r]||(e[r]=[])).push(t),n},del:function(n){t(n.element,n.type,null,n.handler,n.root,function(t,n,r){return n.splice(r,1),t.removed=!0,0===n.length&&delete e[(t.root?"r":"$")+t.type],!1})},entries:function(){var t,n=[];for(t in e)"$"==t.charAt(0)&&(n=n.concat(e[t]));return n}}}(),x=function(e){n=arguments.length?e:u.querySelectorAll?function(e,t){return t.querySelectorAll(e)}:function(){throw new Error("Bean: No selector engine installed")}},k=function(e,t){if(s||!t||!e||e.propertyName=="_on"+t){var n=P.get(this,t||e.type,null,!1),r=n.length,o=0;for(e=new E(e,this,!0),t&&(e.type=t);o<r&&!e.isImmediatePropagationStopped();o++)n[o].removed||n[o].handler.call(this,e)}},_=s?function(e,t,n,r,o){e[n?l:"removeEventListener"](t,k,o)}:function(e,t,n,r){var o;n?(P.put(o=new D(e,r||t,function(t){k.call(e,t,r)},k,null,null,!0)),r&&null==e["_on"+r]&&(e["_on"+r]=0),o.target.attachEvent("on"+o.eventType,o.handler)):(o=P.get(e,r||t,k,!0)[0])&&(o.target.detachEvent("on"+o.eventType,o.handler),P.del(o))},C=function(e,t,n,r,o){return function(){r.apply(this,arguments),e(t,n,o)}},N=function(e,t,n,r,o){var i,l,u=t&&t.replace(a,""),c=P.get(e,u,null,!1),s={};for(i=0,l=c.length;i<l;i++)n&&c[i].original!==n||!c[i].inNamespaces(r)||(P.del(c[i]),!s[c[i].eventType]&&c[i][p]&&(s[c[i].eventType]={t:c[i].eventType,c:c[i].type}));for(i in s)P.has(e,s[i].t,null,!1)||_(e,s[i].t,!1,s[i].c,o)},S=function(e,t){var r=function(t,r){for(var o,i=d(e)?n(e,r):e;t&&t!==r;t=t.parentNode)for(o=i.length;o--;)if(i[o]===t)return t},o=function(e){var n=r(e.target,this);n&&t.apply(n,arguments)};return o.__beanDel={ft:r,selector:e},o},X=s?function(e,t,n){var o=u.createEvent(e?"HTMLEvents":"UIEvents");o[e?"initEvent":"initUIEvent"](t,!0,!0,r,1),n.dispatchEvent(o)}:function(e,t,n){n=T(n,e),e?n.fireEvent("on"+t,u.createEventObject()):n["_on"+t]++},Y=function(e,t,n){var r,o,l,u,c=d(t),s={useCapture:!1},p=y(s,arguments[arguments.length-1]);if(c&&t.indexOf(" ")>0){for(t=g(t),u=t.length;u--;)Y(e,t[u],n);return e}if(o=c&&t.replace(a,""),o&&w[o]&&(o=w[o].base),!t||c)(l=c&&t.replace(i,""))&&(l=g(l,".")),N(e,o,n,l,p.useCapture);else if(m(t))N(e,null,t,null,p.useCapture);else for(r in t)t.hasOwnProperty(r)&&Y(e,r,t[r]);return e},I=function(e,t,n,r){var o,l,u,c,s,d,v,b,w={useCapture:!1};{if(void 0!==n||"object"!=typeof t){for(m(n)?(s=h.call(arguments,3),r=o=n):(o=r,s=h.call(arguments,4),r=S(n,o)),b=y(w,s[s.length-1]),u=g(t),this===f&&(r=C(Y,e,t,r,o)),c=u.length;c--;)v=P.put(d=new D(e,u[c].replace(a,""),r,o,g(u[c].replace(i,""),"."),s,!1)),d[p]&&v&&_(e,d.eventType,!0,d.customType,b.useCapture);return e}for(l in t)t.hasOwnProperty(l)&&I.call(this,e,l,t[l])}},O=function(e,t,n,r,o){return I.apply(null,d(n)?[e,n,t,r].concat(arguments.length>3?h.call(arguments,4):[]):h.call(arguments))},L=function(){return I.apply(f,arguments)},M=function(e,t,n){var r,o,l,u,c,s=g(t);for(r=s.length;r--;)if(t=s[r].replace(a,""),(u=s[r].replace(i,""))&&(u=g(u,".")),u||n||!e[p])for(c=P.get(e,t,null,!1),n=[!1].concat(n),o=0,l=c.length;o<l;o++)c[o].inNamespaces(u)&&c[o].handler.apply(e,n);else X(b[t],t,e);return e},$=function(e,t,n){for(var r,o,i=P.get(t,n,null,!1),a=i.length,l=0;l<a;l++)i[l].original&&(r=[e,i[l].type],(o=i[l].handler.__beanDel)&&r.push(o.selector),r.push(i[l].original),I.apply(null,r));return e},A={on:I,add:O,one:L,off:Y,remove:Y,clone:$,fire:M,Event:E,setSelectorEngine:x,noConflict:function(){return t[e]=o,this}};if(r.attachEvent){var K=function(){var e,t=P.entries();for(e in t)t[e].type&&"unload"!==t[e].type&&Y(t[e].element,t[e].type);r.detachEvent("onunload",K),r.CollectGarbage&&r.CollectGarbage()};r.attachEvent("onunload",K)}return x(),A});
|
126
|
-
},{}],
|
127
|
-
|
128
|
-
},{}],
|
112
|
+
},{"./debounce":41}],52:[function(require,module,exports){
|
113
|
+
var validation=require("./lib/validation"),progressive=require("./lib/progressive");module.exports={validate:validation.validate,invalidateField:validation.invalidateField,next:progressive.next};
|
114
|
+
},{"./lib/progressive":53,"./lib/validation":54}],53:[function(require,module,exports){
|
115
|
+
function reset(){formCallbacks={next:[]},registeredForms=[]}function newForm(e){function t(){return m[p]}function o(){return m[p+1]}function n(){return t()&&!t().disabled}function r(){a(p+1)}function a(e){e=Number(e);var o=m[e];if(o&&o!=t()){var r=p<e?"forward":"reverse";if(n())return s(function(){a(e)},r);p=e,c(r)}}function s(e,o){o=o||"forward",t().classList.remove("active","enter"),t().classList.add("exit"),t().dataset.direction=o,Event.afterAnimation(t(),function(){l(),"function"==typeof e&&e()})}function i(e,o){n()||(o=o||"reverse",t().classList.remove("exit","completed"),t().classList.add("active","enter"),t().dataset.direction=o,u(),Event.afterAnimation(t(),function(){"function"==typeof e&&e()}))}function c(e){u(),t().classList.remove("completed"),t().dataset.direction=e,t().classList.add("active","enter");var o=t().querySelector("input:not([hidden]), textarea, select");o&&o.focus(),f()}function l(){t().disabled=!0,t().classList.add("completed"),t().classList.remove("enter","exit")}function f(){toolbox.each(e.querySelectorAll("nav [data-step]"),function(e){e.dataset.step<p+1&&(e.classList.remove("here","next"),e.classList.add("previous","completed")),e.dataset.step==p+1&&(e.classList.remove("previous","next"),e.classList.add("here")),e.dataset.step>p+1&&(e.classList.remove("previous","here"),e.classList.add("next"))})}function d(e){toolbox.each(e.querySelectorAll("fieldset.form-step[disabled]"),function(e){e.disabled=!1})}function u(){m.forEach(function(e){e.disabled=e!=t()})}if(e){var m=toolbox.slice(e.querySelectorAll(".form-step")),p=0;if(0!=m.length){if(m.forEach(function(e,o){e.disabled=e!=t(),e.dataset.step=o}),e.dataset.nav){var v='<nav class="progressive-form-nav">';m.forEach(function(e,t){v+='<a href="#" class="progressive-form-nav-item" data-step="'+(t+1)+'">',v+=e.dataset.nav||"Step "+(t+1),v+="</a> "}),v+="</nav>",e.insertAdjacentHTML("afterbegin",v)}c(),registeredForms.push(function(n,c){var l=n.currentTarget;if("show-step"===c)n.preventDefault(),toolbox.matches(l,".previous, .completed, .completed + a")&&a(l.dataset.step-1);else if("next"===c){var f="FORM"==l.tagName?l:toolbox.getClosest(l,"form");if(e==f&&!t().querySelector(":invalid")){var m=getCallbacks(e);o()?u():d(e),m?(n.preventDefault(),m(n,{fieldset:t(),form:e,forward:r,dismiss:s,revisit:i,showStep:a,complete:!o(),formData:toolbox.formData(t())})):o()&&(n.preventDefault(),r())}}})}}}function fire(e,t){registeredForms.forEach(function(o){o(e,t)})}function getCallbacks(e,t){t=t||"next";var o,n=[];return formCallbacks[t].forEach(function(t){(o=t(e))&&n.push(o)}),!!n.length&&function(){var e=toolbox.slice(arguments);n.forEach(function(t){t.apply(t,e)})}}function next(e,t){on(e,"next",t)}function on(e,t,o){if("object"==typeof t)for(type in t)on(e,type,t[type]);else if(formCallbacks[t]){var n=function(t){if(t==e)return o};formCallbacks[t].push(n)}}var toolbox=require("compose-toolbox"),Event=toolbox.event,Callback=toolbox.event.callback,formSelector="form.progressive",watching=!1,formCallbacks,registeredForms;Event.ready(function(){reset(),Event.bubbleFormEvents();var e=formSelector+" [type=submit], "+formSelector+" .next-step",t=formSelector+" .back-step";Event.on(document,"click",e,fire,"next"),Event.on(document,"click",t,fire,"back"),Event.on(document,"click",".progressive-form-nav-item[data-step]",fire,"show-step"),document.head.insertAdjacentHTML("beforeend","<style>.form-step[disabled], .form-step.completed { position: absolute !important; top: -9999px !important; left: -9999px !important; left: 0 !important; right: 0 !important; }</style>"),Event.change(function(){reset(),toolbox.each(document.querySelectorAll(formSelector),function(e){newForm(e)})})}),module.exports={next:next,new:newForm};
|
116
|
+
},{"compose-toolbox":59}],54:[function(require,module,exports){
|
117
|
+
function supported(){return"function"==typeof document.createElement("input").checkValidity}function validateForm(e){var t,a=e.querySelectorAll("[required]");return toolbox.slice(a).some(function(e){if(!getClosest(e,"[disabled]")&&!checkInput(e))return t=e,!0}),!t||(focus(t),showMessage(t),!1)}function checkInput(e,t){var a=statusEl(e),n=isValid(e);return"keydown"!=t||n||e!=document.activeElement?(a.classList.toggle("invalid",!n),a.classList.toggle("valid",n)):a.classList.remove("invalid","valid"),n}function isValid(e){e.value.replace(/\s/g,"").length||(e.value="");var t=checkValue(e)||checkLength(e)||"";return e.setCustomValidity(t),e.checkValidity()}function checkValue(e){if(e.dataset.invalidValue){var t=escapedRegex(e.dataset.invalidValue,"i");if(e.value.match(t))return e.dataset.cachedMessage=e.dataset.message,e.dataset.message="",e.dataset.invalidValueMessage||"Value '"+e.value+"' is not permitted";e.dataset.cachedMessage&&(e.dataset.message=e.dataset.cachedMessage,e.dataset.cachedMessage="")}}function escapedRegex(e,t){var a=e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return new RegExp("^"+a+"$",t)}function checkLength(e){return checkCount(e,"min")||checkCount(e,"max")}function checkCount(e,t){var a=e.dataset[t+"Words"];if(a){var n=wordCount(e.value)<a;if(phrasing="min"==t?"at least ":"no more than ",valid="min"==t?!n:n,e.value&&!valid)return"Please write "+phrasing+a+" words."}}function statusEl(e){return getClosest(e,"label")||e}function focus(e){e="none"!==e.style.display?e:e.nextSibling,e.focus()}function submit(e){validateForm("FORM"==e.target.tagName?e.target:getClosest(e.target,"form"))||(checkValidation.stop(),Event.delay(checkValidation.start,500),e.preventDefault(),e.stopImmediatePropagation())}function invalidateField(e,t){e&&e.value&&(e.dataset.invalidValue=e.value,t&&(e.dataset.invalidValueMessage=t))}function hideMessage(e){var t=getClosest(e,"form"),a=t.querySelector(".validation-message");a&&a.parentNode.removeChild(a)}function showMessage(e){hideMessage(e);var t=getClosest(e,"label"),a=e.dataset.message||e.validationMessage;t&&t.insertAdjacentHTML("beforeend",'<aside class="validation-message"><p>'+a+"</p></aside>")}var toolbox=require("compose-toolbox"),Event=toolbox.event,getClosest=toolbox.getClosest,wordCount=toolbox.wordCount,textSelectors="[required]",invalidHandler=Event.callback.new(function(e){e.preventDefault(),e.stopPropagation()});Event.ready(function(){supported()&&(Event.bubbleFormEvents(),document.addEventListener("invalid",invalidHandler,!0),Event.on(document.body,"click","[type=submit]",submit),Event.on(document,"validate","form",function(e){validateForm(e.target)}),Event.on(document,"blur","[required]",checkValidation),Event.on(document,"keydown","[required]",Event.debounce(checkValidation,200)),Event.on(document,"input","select[required]",Event.debounce(checkValidation,200)))});var checkValidation=Event.callback.new(function(e){checkInput(e.target,e.type)&&hideMessage(e.target)});module.exports={validate:validateForm,invalidateField:invalidateField};
|
118
|
+
},{"compose-toolbox":59}],55:[function(require,module,exports){
|
119
|
+
var classify=function(e){return"."+e.replace(/\s/g,".")},merge=function(){var e=[{}].concat(Array.prototype.slice.call(arguments));return Object.assign.apply(this,e)},defaultSettings={parent:"body",className:"loader",loading:"Loading…",success:"Success!",failure:"An error occurred.",removeAfter:800},Loader={new:function(e){function t(){return i||(u.parent.insertAdjacentHTML("beforeend",'<div class="'+u.className+'"></div>'),i=u.parent.lastChild),i}function n(e){e=merge(u,e||{}),i=t(),i.textContent=e.message,i.className=u.className,i.classList.add(e.className),e.removeAfter&&setTimeout(function(){c(e.callback)},e.removeAfter)}function r(e){n(o(e,"loading"))}function a(e){n(o(e,"success"))}function s(e){n(o(e,"failure"))}function o(e,t){return"string"==typeof e&&(e={message:e}),e=merge({message:u[t],className:t},e||{}),void 0===e.removeAfter&&(e.removeAfter="loading"!=t&&u.removeAfter),e}function c(e){requestAnimationFrame(function(){u.parent.removeChild(t()),i=null,"function"==typeof e&&e()})}var i,u=merge(defaultSettings,e||{});return"string"==typeof u.parent&&(u.parent=document.querySelector(u.parent)),{options:u,loading:r,success:a,failure:s,show:n,element:t,remove:c}},defaults:function(e){return Object.assign(defaultSettings,e||{})}};module.exports=Loader;
|
120
|
+
},{}],56:[function(require,module,exports){
|
121
|
+
require("./lib/object.assign");var Event=require("compose-event"),sliders=[],listening,Slider={change:function(e){self.refresh(e.currentTarget)},refresh:function(e){self.setLabels(e),self.setInput(e),self.setFill(e)},focus:function(e){e.currentTarget.focus()},setup:function(){listening||(Event.on(document,"input toggler:show","[type=range]",self.change,{useCapture:!0}),Event.on(document,"click change input","[type=range]",self.focus,{useCapture:!0}),listening=!0);var e=document.querySelectorAll("[type=range]:not(.slider-input)");Array.prototype.forEach.call(e,function(e){var l=self.data(e);sliders.push(l),e.dataset.id=l.id,e=self.template(e),self.refresh(e)})},data:function(e){var l={id:sliders.length,min:e.getAttribute("min")||0,max:e.getAttribute("max")||100,labels:{},externalLabels:{}};Object.assign(l,self.extractData(e)),l=self.extractValues(l),l=self.getLabels(l),l.values&&(l.max=l.min+l.values.length-1),l.segments=Number(l.max)-Number(l.min)+1;for(var t in l)t.match(/-/)&&(l[this.camelCase(t)]=l[t],delete l[t]);return!l.input&&e.getAttribute("name")&&(l.input=e.getAttribute("name"),e.removeAttribute("name")),l.input&&(l.inputClass=l.input.replace(/\W/g,"-"),l.inputExists=self.inputExists(e,l)),l=self.getLineLabels(l),l.mark&&(l.mark=l.mark.split(",").map(Number)),l},getData:function(e){return"string"!=typeof e&&e.dataset&&(e=e.dataset.id),sliders[e]},extractValues:function(e){if(e.values)e.values=e.values.split(",").map(self.trim);else{e.values=[];for(var l=e.min;l<=e.max;l++)e.values.push(l)}return e},getLabels:function(e){e.label&&e.label.match(/false|none/)&&(e.label=!1);for(var l in e)if(e.hasOwnProperty(l)&&e[l]!==!1){var t=l.match(/^(external-)?label-(.+)|^label$/);if(t){var a=e[l].match(/;/)?";":",",s=e[l].split(a).map(self.trim),n=t[1],r=t[2];n?e.externalLabels[r]=s:"label"==l?(e.labels.default=s,delete e.label):e.labels[r]=s,delete e[l]}var i=self.objectSize(e.labels);0==i&&(e.labels.default=e.values),i>1&&delete e.labels.default}return e},getLineLabels:function(e){var l={};if(e.lineLabels){var t=e.lineLabels.match(/;/)?";":",";e.lineLabels.split(t).map(function(e,t){var a=e.split(":");label=a[1]?a[1]:a[0],t=a[1]?a[0]:t+1,l[t]=label}),e.lineLabels=l}return e},template:function(e){var l=self.getData(e);e.setAttribute("min",l.min),e.setAttribute("max",l.max),e.classList.add("slider-input"),e.classList.contains("left-label")&&e.classList.remove("left-label");var t=self.templateHTML(l),a=["slider-container"];t.match("slider-line-label")&&a.push("line-labels"),t.match("slider-label")?a.push("with-label"):a.push("without-label"),t='<div class="'+a.join(" ")+'" id="slider'+l.id+'">'+t+"</div>",e.insertAdjacentHTML("beforebegin",t);var s=e.previousSibling;return s.querySelector(".slider-input-container").insertAdjacentHTML("afterbegin",e.outerHTML),e.parentNode.removeChild(e),e=s.querySelector(".slider-input"),e.getAttribute("value")||(e.value=l.value||l.min),e},templateHTML:function(e){var l="",t="";if(e.mark||e.lineLabels)for(var a=1;a<=e.segments;a++)l+="<div class='slider-segment'><span class='slider-segment-content'>",e.mark&&e.mark.indexOf(a)!=-1&&(l+="<span class='slider-segment-mark' data-index='"+a+"'></span>"),e.lineLabels&&e.lineLabels[a]&&(l+="<span class='slider-line-label'>"+e.lineLabels[a]+"</span>"),l+="</span></div>";for(var a=1;a<e.segments;a++)t+="<span class='slider-fill' data-index='"+a+"'></span>";return l="<div class='slider-input-container'><div class='slider-track'>"+l+"</div><div class='slider-fills'>"+t+"</div></div>"+self.labelTemplate(e),!e.inputExists&&e.inputClass&&(l+="<input class='"+e.inputClass+"' type='hidden' name='"+e.input+"' value=''>"),l},labelTemplate:function(e){var l="";if(0==e.label)return l;for(var t in e.labels)l+='<span class="slider-label-'+t+' internal-label" data-slider-label="'+t+'">',l+=self.labelHTML(e,t,""),l+="</span></span> ";return l.length>0&&(l="<div class='slider-label align-"+(e.positionLabel||"right")+"'>"+l+"</div>"),l},labelHTML:function(e,l,t){return self.labelMeta(e,l,"before")+"<span class='label-content'>"+t+"</span>"+self.labelMeta(e,l,"after")},labelMeta:function(e,l,t){var a=self.camelCase("-label-"+l),s=e[t+a]||e[t+"Label"];return s?"<span class='"+t+"-label'>"+s+"</span>":""},inputExists:function(e,l){if(l.inputClass){var t=self.scope(e).querySelector('input[name="'+l.input+'"]');if(t)return t.classList.add(l.inputClass),!0}},extractData:function(e){for(var l={},t=0;t<e.attributes.length;t++){var a=e.attributes[t].nodeName;new RegExp("^data-").test(a)&&(a=a.replace("data-",""),l[a]=e.attributes[t].nodeValue)}return l},labelElements:function(e,l,t){var a="[data-slider-label="+l+"]",s="#slider"+e+" "+a,n=a+=":not(.internal-label)";return a=t?n:s+", "+n,document.querySelectorAll(a)},setFill:function(e){var l=self.getData(e),t=document.querySelectorAll("#slider"+l.id+" .slider-segment"),a=document.querySelectorAll("#slider"+l.id+" .slider-fill"),s=self.sliderIndex(e);Array.prototype.forEach.call(a,function(e,l){e.dataset.index<=s?(e.classList.add("filled"),t[l]&&t[l].classList.add("filled")):(e.classList.remove("filled"),t[l]&&t[l].classList.remove("filled"))})},setInput:function(e){var l=self.getData(e);if(null!==e.offsetParent&&l.input&&l.values){var t=l.values[self.sliderIndex(e)],a="."+l.input.replace(/\W/g,"-"),s=self.scope(e).querySelectorAll(a);Array.prototype.forEach.call(s,function(e){e.value=t})}},setLabels:function(e){var l=self.getData(e),t=self.sliderIndex(e);null!==e.offsetParent&&Array.prototype.forEach.call(["labels","externalLabels"],function(e){var a="externalLabels"==e;for(var s in l[e]){var n=self.labelElements(l.id,s,a),r=self.labelAtIndex(l[e],t);Array.prototype.forEach.call(n,function(e){var t=e.querySelector(".label-content");t?t.innerHTML=r[s]:e.innerHTML=self.labelHTML(l,s,r[s]),e.classList.toggle("empty-label",""==r[s])})}})},labelAtIndex:function(e,l){var t={};for(var a in e)t[a]=e[a][l];return t},sliderIndex:function(e){return Number(e.value)-Number(e.getAttribute("min"))},scope:function(e){for(var l=e;l&&"FORM"!=l.tagName;)l=l.parentNode;return l||document},trim:function(e){return e.trim()},objectSize:function(e){var l=0;for(var t in e)l++;return l},camelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,l){return l.toUpperCase()})}},self=Slider;Event.change(Slider.setup),module.exports=Slider;
|
122
|
+
},{"./lib/object.assign":57,"compose-event":37}],57:[function(require,module,exports){
|
123
|
+
"function"!=typeof Object.assign&&function(){Object.assign=function(n){"use strict";if(void 0===n||null===n)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(n),o=1;o<arguments.length;o++){var r=arguments[o];if(void 0!==r&&null!==r)for(var e in r)Object.prototype.hasOwnProperty.call(r,e)&&(t[e]=r[e])}return t}}();
|
124
|
+
},{}],58:[function(require,module,exports){
|
129
125
|
var Event=require("compose-event"),Toggler={checkboxSelector:"[type=checkbox][data-toggle], [type=checkbox][data-show], [type=checkbox][data-hide]",radioSelector:"input[type=radio][data-show], input[type=radio][data-hide], input[type=radio][data-add-class], input[type=radio][data-remove-class]",selectSelector:"option[data-hide], option[data-show]",listen:function(){Event.on(document,"click change","[data-toggle], [data-show], [data-hide], [data-toggle-class], [data-add-class], [data-remove-class]",Toggler.trigger),Event.on(document,"change",".select-toggler",Toggler.trigger),Event.on(window,"hashchange",Toggler.hashChange)},hashChange:function(){if(window.location.hash){var e='[data-anchor="'+window.location.hash+'"]',t=document.querySelector("input"+e+", option"+e);if(t){if("radio"==t.type)t.checked=!0;else{var a=Toggler.getSelectFromOption(t);a.selectedIndex=t.index,t=a}ratchet.toggler.triggerToggling(t)}}},refresh:function(){Toggler.toggleCheckboxes(),Toggler.setupSelects(),Toggler.setupRadios()},trigger:function(e){"#"==e.currentTarget.getAttribute("href")&&(e.preventDefault(),e.stop()),Toggler.triggerToggling(e.currentTarget,e)},triggerToggling:function(e,t){var a,o=["hide","toggle","show","removeClass","toggleClass","addClass"];e.tagName.match(/select/i)&&(a=e,e=a.selectedOptions[0]),(a||"radio"==e.type)&&(o=o.filter(function(e){return!e.match(/toggle/)})),o.forEach(function(t){Toggler.dispatch(e,t)})},dispatch:function(e,t){var a=t,o=e.dataset[t];o&&void 0!==o&&""!=o&&("checkbox"==e.type&&(a=t.match(/hide|remove/i)?!e.checked:e.checked),o&&(t.match(/class/i)?Toggler.setClass(o,a,e):Toggler.setState(o,a)))},setClass:function(e,t,a){if(void 0!==e&&""!=e){if("boolean"==typeof t&&(t=t?"add":"remove"),e.match(/&/))return void e.split("&").forEach(function(e){Toggler.setClass(e.trim(),t,a)});var o=e.split(";"),r=o[0].trim(),l=[];e=o[1],e?l=document.querySelectorAll(e):a&&a.tagName.match(/option/i)?l=[Toggler.getSelectFromOption(a)]:a&&(l=[a]),Array.prototype.forEach.call(l,function(e){Array.prototype.forEach.call(r.split(" "),function(a){var o=t.replace(/Class/,"");e.classList[o](a)}),Toggler.triggerTogglerEventsOnChildren(e,"class")})}},setState:function(e,t){var a=document.querySelectorAll(e);Array.prototype.forEach.call(a,function(e){var a=Toggler.toggleAction(e,t);Toggler[a](e),Toggler.triggerTogglerEventsOnChildren(e,a)})},toggleAction:function(e,t){return"boolean"==typeof t&&(t=t?"show":"hide"),"toggle"==t&&(t=e.classList.contains("hidden")?"show":"hide"),t},show:function(e){e.classList.remove("hidden"),e.classList.add("visible"),void 0!==e.disabled&&(e.disabled=!1);var t=e.querySelector("[data-focus]");t&&t.focus();e.querySelectorAll("[type=range]")},hide:function(e){e.classList.remove("visible"),e.classList.add("hidden"),void 0!==e.disabled&&(e.disabled=!0)},getLeafNodes:function(e){return e.hasChildNodes()?Array.prototype.slice.call(e.getElementsByTagName("*"),0).filter(function(e){return e.children&&0===e.children.length}):[e]},triggerTogglerEventsOnChildren:function(e,t){var a=Toggler.getLeafNodes(e);Array.prototype.forEach.call(a,function(e){Event.fire(e,"toggler:"+t)})},toggleCheckboxes:function(e){e=e||document.querySelectorAll(Toggler.checkboxSelector),Array.prototype.forEach.call(e,Toggler.triggerToggling)},setupRadios:function(){Array.prototype.forEach.call(document.querySelectorAll(Toggler.radioSelector),function(e,t){if(!e.dataset.togglerActive){var a,o=e.getAttribute("name"),r=Toggler.parentForm(e).querySelectorAll('[type=radio][name="'+o+'"]'),l=Toggler.dataAttributes(r,"show"),n=Toggler.dataAttributes(r,"addClass");Array.prototype.forEach.call(r,function(e){e.dataset.anchor&&window.location.hash=="#"+e.dataset.anchor.replace("#","")&&(e.checked=!0),e.dataset.show=e.dataset.show||"",e.dataset.addClass=e.dataset.addClass||"",e.dataset.hide&&e.dataset.hide.length>0&&(l=l.concat(e.dataset.hide.split(","))),e.dataset.hide=l.filter(function(t){return e.dataset.show.indexOf(t)}).join(","),e.dataset.addClass=e.dataset.addClass||"",e.dataset.removeClass=n.filter(function(t){return e.dataset.addClass.indexOf(t)}).join("&"),e.dataset.togglerActive=!0,e.checked&&(a=e)}),a?Toggler.triggerToggling(a):(Toggler.setState(l.join(","),"hide"),Toggler.setClass(n.join(" & "),"removeClass"))}})},setupSelects:function(){Array.prototype.forEach.call(document.querySelectorAll(Toggler.selectSelector),function(e){if(!e.dataset.togglerActive){e.dataset.show=e.dataset.show||"";var t=Toggler.getSelectFromOption(e);t.classList.add("select-toggler");var a=t.querySelectorAll("option"),o=Toggler.dataAttributes(a,"show"),r=Toggler.dataAttributes(a,"addClass");Array.prototype.forEach.call(a,function(e,a){e.dataset.anchor&&window.location.hash=="#"+e.dataset.anchor.replace("#","")&&(t.selectedIndex=a),e.dataset.show=e.dataset.show||"",e.dataset.addClass=e.dataset.addClass||"",e.dataset.hide&&e.dataset.hide.length>0&&(o=o.concat(e.dataset.hide.split(","))),e.dataset.hide=o.filter(function(t){return e.dataset.show.indexOf(t)}).join(","),e.dataset.removeClass=r.filter(function(t){return e.dataset.addClass.indexOf(t)}).join(" & "),e.dataset.togglerActive=!0}),Toggler.triggerToggling(t)}})},getSelectFromOption:function(e){var t=e.parentElement;return"SELECT"==t.tagName?t:Toggler.getSelectFromOption(t)},parentForm:function(e){for(var t=e;t&&"FORM"!=t.tagName;)t=t.parentNode;return t||document},dataAttributes:function(e,t){return Array.prototype.map.call(e,function(e){return e.dataset[t]}).filter(function(e,t,a){return""!=e&&void 0!==e&&a.indexOf(e)===t})}};Event.ready(Toggler.listen),Event.change(Toggler.refresh),module.exports=Toggler;
|
130
|
-
},{"compose-event":
|
131
|
-
arguments[4][43][0].apply(exports,arguments)
|
132
|
-
},{"./lib/animation-events":62,"./lib/bubble-form-events":63,"./lib/callback-manager":64,"./lib/debounce":65,"./lib/delay":66,"./lib/media":67,"./lib/page":69,"./lib/repeat":70,"./lib/resize":71,"./lib/scroll":72,"./lib/shims/custom-event":73,"./lib/tap-events":74,"./lib/throttle":75,"bean":76,"dup":43,"keymaster":77}],62:[function(require,module,exports){
|
133
|
-
arguments[4][44][0].apply(exports,arguments)
|
134
|
-
},{"dup":44}],63:[function(require,module,exports){
|
135
|
-
arguments[4][45][0].apply(exports,arguments)
|
136
|
-
},{"./page":69,"bean":76,"dup":45}],64:[function(require,module,exports){
|
137
|
-
arguments[4][46][0].apply(exports,arguments)
|
138
|
-
},{"dup":46}],65:[function(require,module,exports){
|
139
|
-
arguments[4][47][0].apply(exports,arguments)
|
140
|
-
},{"dup":47}],66:[function(require,module,exports){
|
141
|
-
arguments[4][48][0].apply(exports,arguments)
|
142
|
-
},{"dup":48}],67:[function(require,module,exports){
|
143
|
-
arguments[4][49][0].apply(exports,arguments)
|
144
|
-
},{"dup":49}],68:[function(require,module,exports){
|
145
|
-
arguments[4][50][0].apply(exports,arguments)
|
146
|
-
},{"./callback-manager":64,"./debounce":65,"./throttle":75,"bean":76,"dup":50}],69:[function(require,module,exports){
|
147
|
-
arguments[4][51][0].apply(exports,arguments)
|
148
|
-
},{"./callback-manager":64,"bean":76,"dup":51}],70:[function(require,module,exports){
|
149
|
-
arguments[4][52][0].apply(exports,arguments)
|
150
|
-
},{"./delay":66,"dup":52}],71:[function(require,module,exports){
|
151
|
-
arguments[4][53][0].apply(exports,arguments)
|
152
|
-
},{"./optimized-event-manager":68,"dup":53}],72:[function(require,module,exports){
|
153
|
-
arguments[4][54][0].apply(exports,arguments)
|
154
|
-
},{"./optimized-event-manager":68,"dup":54}],73:[function(require,module,exports){
|
155
|
-
arguments[4][55][0].apply(exports,arguments)
|
156
|
-
},{"dup":55}],74:[function(require,module,exports){
|
157
|
-
arguments[4][56][0].apply(exports,arguments)
|
158
|
-
},{"dup":56}],75:[function(require,module,exports){
|
159
|
-
arguments[4][57][0].apply(exports,arguments)
|
160
|
-
},{"./debounce":65,"dup":57}],76:[function(require,module,exports){
|
161
|
-
arguments[4][58][0].apply(exports,arguments)
|
162
|
-
},{"dup":58}],77:[function(require,module,exports){
|
163
|
-
arguments[4][59][0].apply(exports,arguments)
|
164
|
-
},{"dup":59}],78:[function(require,module,exports){
|
126
|
+
},{"compose-event":37}],59:[function(require,module,exports){
|
165
127
|
require("./lib/shims/_classlist");var merge=require("./lib/shims/_object.assign"),event=require("compose-event"),scrollTo=require("./lib/scrollto"),fromTop=require("./lib/fromtop"),ease=require("./lib/ease"),toolbox={event:event,scrollTo:scrollTo,fromTop:fromTop,merge:merge,ease:ease,getClosest:function(e,r){for(;e&&e!==document;e=e.parentNode)if(toolbox.matches(e,r))return e;return!1},getNext:function(e,r){for(;e&&e!==document;e=e.parentNode)if(e.querySelector(r))return e.querySelector(r);return!1},matches:function(e,r){return(e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector).call(e,r)},wordCount:function(e){var r=e.match(/\S+/g);return r?r.length:0},slice:function(e,r){return Array.prototype.slice.call(e,r)},each:function(e,r){return Array.prototype.forEach.call(e,r)},formData:function(e){var r=new FormData,o=e.querySelectorAll("input[name]");return toolbox.each(o,function(e){r.append(e.name,e.value)}),r}};module.exports=toolbox;
|
166
|
-
},{"./lib/ease":
|
128
|
+
},{"./lib/ease":60,"./lib/fromtop":61,"./lib/scrollto":62,"./lib/shims/_classlist":63,"./lib/shims/_object.assign":64,"compose-event":37}],60:[function(require,module,exports){
|
167
129
|
var ease={inOutQuad:function(t,u,n,e){return(t/=e/2)<1?n/2*t*t+u:(t--,-n/2*(t*(t-2)-1)+u)},inOutCubic:function(t,u,n,e){return(t/=e/2)<1?n/2*t*t*t+u:(t-=2,n/2*(t*t*t+2)+u)},inOutQuint:function(t,u,n,e){var r=(t/=e)*t,i=r*t;return u+n*(6*i*r+-15*r*r+10*i)},inOutCirc:function(t,u,n,e){return(t/=e/2)<1?-n/2*(Math.sqrt(1-t*t)-1)+u:(t-=2,n/2*(Math.sqrt(1-t*t)+1)+u)}};ease.default=ease.inOutQuad,module.exports=ease;
|
168
|
-
},{}],
|
130
|
+
},{}],61:[function(require,module,exports){
|
169
131
|
module.exports=function(t){return Math.round(t.getBoundingClientRect().top+window.pageYOffset)};
|
170
|
-
},{}],
|
132
|
+
},{}],62:[function(require,module,exports){
|
171
133
|
function move(o){document.documentElement.scrollTop=o,document.body.parentNode.scrollTop=o,document.body.scrollTop=o}function position(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function scrollTo(o,e,n){"object"==typeof o&&(o=fromTop(o)),"number"==typeof e&&(n=e,e=null),n=void 0===n?500:n;var t=position(),r=o-t,c=0,l=function(){c+=20,move(ease.default(c,t,r,n)),c<n?requestAnimationFrame(l):e&&"function"==typeof e&&e()};l()}var ease=require("./ease"),fromTop=require("./fromtop");module.exports=scrollTo;
|
172
|
-
},{"./ease":
|
173
|
-
"document"in self&&("classList"in document.createElement("_")?function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,i=arguments.length;for(n=0;n<i;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}():function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,i=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;e++)if(e in this&&this[e]===t)return e;return-1},r=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},o=function(t,e){if(""===e)throw new r("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new r("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},a=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],s=0;s<n.length;s++)this.push(n[s]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=a.prototype=[],l=function(){return new a(this)};if(r.prototype=Error.prototype,c.item=function(t){return this[t]||null},c.contains=function(t){return t+=""
|
174
|
-
},{}],
|
134
|
+
},{"./ease":60,"./fromtop":61}],63:[function(require,module,exports){
|
135
|
+
"document"in self&&("classList"in document.createElement("_")?function(){"use strict";var t=document.createElement("_");if(t.classList.add("c1","c2"),!t.classList.contains("c2")){var e=function(t){var e=DOMTokenList.prototype[t];DOMTokenList.prototype[t]=function(t){var n,i=arguments.length;for(n=0;n<i;n++)t=arguments[n],e.call(this,t)}};e("add"),e("remove")}if(t.classList.toggle("c3",!1),t.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(t,e){return 1 in arguments&&!this.contains(t)==!e?e:n.call(this,t)}}t=null}():function(t){"use strict";if("Element"in t){var e=t.Element.prototype,n=Object,i=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},s=Array.prototype.indexOf||function(t){for(var e=0;e<this.length;e++)if(e in this&&this[e]===t)return e;return-1},r=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},o=function(t,e){if(""===e)throw new r("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new r("INVALID_CHARACTER_ERR","String contains an invalid character");return s.call(t,e)},a=function(t){for(var e=i.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],s=0;s<n.length;s++)this.push(n[s]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},c=a.prototype=[],l=function(){return new a(this)};if(r.prototype=Error.prototype,c.item=function(t){return this[t]||null},c.contains=function(t){return t+="",o(this,t)!==-1},c.add=function(){var t,e=arguments,n=0,i=e.length,s=!1;do{t=e[n]+"",o(this,t)===-1&&(this.push(t),s=!0)}while(++n<i);s&&this._updateClassName()},c.remove=function(){var t,e,n=arguments,i=0,s=n.length,r=!1;do{for(t=n[i]+"",e=o(this,t);e!==-1;)this.splice(e,1),r=!0,e=o(this,t)}while(++i<s);r&&this._updateClassName()},c.toggle=function(t,e){t+="";var n=this.contains(t),i=n?e!==!0&&"remove":e!==!1&&"add";return i&&this[i](t),e===!0||e===!1?e:!n},c.toString=function(){return this.join(" ")},n.defineProperty){var u={get:l,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",u)}catch(t){t.number===-2146823252&&(u.enumerable=!1,n.defineProperty(e,"classList",u))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",l)}}(self));
|
136
|
+
},{}],64:[function(require,module,exports){
|
175
137
|
"function"!=typeof Object.assign&&function(){Object.assign=function(t){"use strict";if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),e=1;e<arguments.length;e++){var n=arguments[e];if(void 0!==n&&null!==n)for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])}return r}}();var merge=function(){var t=[{}].concat(Array.prototype.slice.call(arguments));return Object.assign.apply(this,t)};module.exports=merge;
|
176
|
-
},{}],
|
177
|
-
|
178
|
-
},{
|
179
|
-
|
180
|
-
},{"
|
181
|
-
arguments[4][45][0].apply(exports,arguments)
|
182
|
-
},{"./page":92,"bean":99,"dup":45}],87:[function(require,module,exports){
|
183
|
-
arguments[4][46][0].apply(exports,arguments)
|
184
|
-
},{"dup":46}],88:[function(require,module,exports){
|
185
|
-
arguments[4][47][0].apply(exports,arguments)
|
186
|
-
},{"dup":47}],89:[function(require,module,exports){
|
187
|
-
arguments[4][48][0].apply(exports,arguments)
|
188
|
-
},{"dup":48}],90:[function(require,module,exports){
|
189
|
-
arguments[4][49][0].apply(exports,arguments)
|
190
|
-
},{"dup":49}],91:[function(require,module,exports){
|
191
|
-
arguments[4][50][0].apply(exports,arguments)
|
192
|
-
},{"./callback-manager":87,"./debounce":88,"./throttle":98,"bean":99,"dup":50}],92:[function(require,module,exports){
|
193
|
-
arguments[4][51][0].apply(exports,arguments)
|
194
|
-
},{"./callback-manager":87,"bean":99,"dup":51}],93:[function(require,module,exports){
|
195
|
-
arguments[4][52][0].apply(exports,arguments)
|
196
|
-
},{"./delay":89,"dup":52}],94:[function(require,module,exports){
|
197
|
-
arguments[4][53][0].apply(exports,arguments)
|
198
|
-
},{"./optimized-event-manager":91,"dup":53}],95:[function(require,module,exports){
|
199
|
-
arguments[4][54][0].apply(exports,arguments)
|
200
|
-
},{"./optimized-event-manager":91,"dup":54}],96:[function(require,module,exports){
|
201
|
-
arguments[4][55][0].apply(exports,arguments)
|
202
|
-
},{"dup":55}],97:[function(require,module,exports){
|
203
|
-
arguments[4][56][0].apply(exports,arguments)
|
204
|
-
},{"dup":56}],98:[function(require,module,exports){
|
205
|
-
arguments[4][57][0].apply(exports,arguments)
|
206
|
-
},{"./debounce":88,"dup":57}],99:[function(require,module,exports){
|
207
|
-
arguments[4][58][0].apply(exports,arguments)
|
208
|
-
},{"dup":58}],100:[function(require,module,exports){
|
209
|
-
arguments[4][59][0].apply(exports,arguments)
|
210
|
-
},{"dup":59}],101:[function(require,module,exports){
|
211
|
-
function noop(){}function serialize(e){if(!isObject(e))return e;var t=[];for(var r in e)pushEncodedKeyValuePair(t,r,e[r]);return t.join("&")}function pushEncodedKeyValuePair(e,t,r){if(null!=r)if(Array.isArray(r))r.forEach(function(r){pushEncodedKeyValuePair(e,t,r)});else if(isObject(r))for(var s in r)pushEncodedKeyValuePair(e,t+"["+s+"]",r[s]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(r));else null===r&&e.push(encodeURIComponent(t))}function parseString(e){for(var t,r,s={},n=e.split("&"),o=0,i=n.length;o<i;++o)t=n[o],r=t.indexOf("="),-1==r?s[decodeURIComponent(t)]="":s[decodeURIComponent(t.slice(0,r))]=decodeURIComponent(t.slice(r+1));return s}function parseHeader(e){var t,r,s,n,o=e.split(/\r?\n/),i={};o.pop();for(var u=0,a=o.length;u<a;++u)r=o[u],t=r.indexOf(":"),s=r.slice(0,t).toLowerCase(),n=trim(r.slice(t+1)),i[s]=n;return i}function isJSON(e){return/[\/+]json\b/.test(e)}function type(e){return e.split(/ *; */).shift()}function params(e){return e.split(/ *; */).reduce(function(e,t){var r=t.split(/ *= */),s=r.shift(),n=r.shift();return s&&n&&(e[s]=n),e},{})}function Response(e,t){t=t||{},this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText,this._setStatusProperties(this.xhr.status),this.header=this.headers=parseHeader(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this._parseBody(this.text?this.text:this.xhr.response):null}function Request(e,t){var r=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new Response(r)}catch(t){return e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=t,e.rawResponse=r.xhr&&r.xhr.responseText?r.xhr.responseText:null,e.statusCode=r.xhr&&r.xhr.status?r.xhr.status:null,r.callback(e)}r.emit("response",t);var s;try{(t.status<200||t.status>=300)&&(s=new Error(t.statusText||"Unsuccessful HTTP response"),s.original=e,s.response=t,s.status=t.status)}catch(e){s=e}s?r.callback(s,t):r.callback(null,t)})}function del(e,t){var r=request("DELETE",e);return t&&r.end(t),r}var root;"undefined"!=typeof window?root=window:"undefined"!=typeof self?root=self:(console.warn("Using browser-only version of superagent in non-browser environment"),root=this);var Emitter=require("emitter"),requestBase=require("./request-base"),isObject=require("./is-object"),request=module.exports=require("./request").bind(null,Request);request.getXHR=function(){if(!(!root.XMLHttpRequest||root.location&&"file:"==root.location.protocol&&root.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only verison of superagent could not find XHR")};var trim="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};request.serializeObject=serialize,request.parseString=parseString,request.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},request.serialize={"application/x-www-form-urlencoded":serialize,"application/json":JSON.stringify},request.parse={"application/x-www-form-urlencoded":parseString,"application/json":JSON.parse},Response.prototype.get=function(e){return this.header[e.toLowerCase()]},Response.prototype._setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=type(t);var r=params(t);for(var s in r)this[s]=r[s]},Response.prototype._parseBody=function(e){var t=request.parse[this.type];return!t&&isJSON(this.type)&&(t=request.parse["application/json"]),t&&e&&(e.length||e instanceof Object)?t(e):null},Response.prototype._setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},Response.prototype.toError=function(){var e=this.req,t=e.method,r=e.url,s="cannot "+t+" "+r+" ("+this.status+")",n=new Error(s);return n.status=this.status,n.method=t,n.url=r,n},request.Response=Response,Emitter(Request.prototype);for(var key in requestBase)Request.prototype[key]=requestBase[key];Request.prototype.type=function(e){return this.set("Content-Type",request.types[e]||e),this},Request.prototype.responseType=function(e){return this._responseType=e,this},Request.prototype.accept=function(e){return this.set("Accept",request.types[e]||e),this},Request.prototype.auth=function(e,t,r){switch(r||(r={type:"basic"}),r.type){case"basic":var s=btoa(e+":"+t);this.set("Authorization","Basic "+s);break;case"auto":this.username=e,this.password=t}return this},Request.prototype.query=function(e){return"string"!=typeof e&&(e=serialize(e)),e&&this._query.push(e),this},Request.prototype.attach=function(e,t,r){return this._getFormData().append(e,t,r||t.name),this},Request.prototype._getFormData=function(){return this._formData||(this._formData=new root.FormData),this._formData},Request.prototype.callback=function(e,t){var r=this._callback;this.clearTimeout(),r(e,t)},Request.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},Request.prototype._timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},Request.prototype._appendQueryString=function(){var e=this._query.join("&");e&&(this.url+=~this.url.indexOf("?")?"&"+e:"?"+e)},Request.prototype.end=function(e){var t=this,r=this.xhr=request.getXHR(),s=this._timeout,n=this._formData||this._data;this._callback=e||noop,r.onreadystatechange=function(){if(4==r.readyState){var e;try{e=r.status}catch(t){e=0}if(0==e){if(t.timedout)return t._timeoutError();if(t._aborted)return;return t.crossDomainError()}t.emit("end")}};var o=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{r.onprogress=o.bind(null,"download"),r.upload&&(r.upload.onprogress=o.bind(null,"upload"))}catch(e){}if(s&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},s)),this._appendQueryString(),this.username&&this.password?r.open(this.method,this.url,!0,this.username,this.password):r.open(this.method,this.url,!0),this._withCredentials&&(r.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],u=this._serializer||request.serialize[i?i.split(";")[0]:""];!u&&isJSON(i)&&(u=request.serialize["application/json"]),u&&(n=u(n))}for(var a in this.header)null!=this.header[a]&&r.setRequestHeader(a,this.header[a]);return this._responseType&&(r.responseType=this._responseType),this.emit("request",this),r.send(void 0!==n?n:null),this},request.Request=Request,request.get=function(e,t,r){var s=request("GET",e);return"function"==typeof t&&(r=t,t=null),t&&s.query(t),r&&s.end(r),s},request.head=function(e,t,r){var s=request("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s},request.options=function(e,t,r){var s=request("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s},request.del=del,request.delete=del,request.patch=function(e,t,r){var s=request("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s},request.post=function(e,t,r){var s=request("POST",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s},request.put=function(e,t,r){var s=request("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s};
|
212
|
-
},{"./is-object":102,"./request":104,"./request-base":103,"emitter":105}],102:[function(require,module,exports){
|
138
|
+
},{}],65:[function(require,module,exports){
|
139
|
+
!function(e){function n(e,n){for(var t=e.length;t--;)if(e[t]===n)return t;return-1}function t(e,n){if(e.length!=n.length)return!1;for(var t=0;t<e.length;t++)if(e[t]!==n[t])return!1;return!0}function o(e){for(m in b)b[m]=e[T[m]]}function r(e){var t,r,i,l,c,u;if(t=e.keyCode,n(S,t)==-1&&S.push(t),93!=t&&224!=t||(t=91),t in b){b[t]=!0;for(i in C)C[i]==t&&(f[i]=!0)}else if(o(e),f.filter.call(this,e)&&t in E)for(u=p(),l=0;l<E[t].length;l++)if(r=E[t][l],r.scope==u||"all"==r.scope){c=r.mods.length>0;for(i in b)(!b[i]&&n(r.mods,+i)>-1||b[i]&&n(r.mods,+i)==-1)&&(c=!1);(0!=r.mods.length||b[16]||b[18]||b[17]||b[91])&&!c||r.method(e,r)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function i(e){var t,o=e.keyCode,r=n(S,o);if(r>=0&&S.splice(r,1),93!=o&&224!=o||(o=91),o in b){b[o]=!1;for(t in C)C[t]==o&&(f[t]=!1)}}function l(){for(m in b)b[m]=!1;for(m in C)f[m]=!1}function f(e,n,t){var o,r;o=g(e),void 0===t&&(t=n,n="all");for(var i=0;i<o.length;i++)r=[],e=o[i].split("+"),e.length>1&&(r=v(e),e=[e[e.length-1]]),e=e[0],e=P(e),e in E||(E[e]=[]),E[e].push({shortcut:o[i],scope:n,method:t,key:o[i],mods:r})}function c(e,n){var o,r,i,l,f,c=[];for(o=g(e),l=0;l<o.length;l++){if(r=o[l].split("+"),r.length>1&&(c=v(r),e=r[r.length-1]),e=P(e),void 0===n&&(n=p()),!E[e])return;for(i=0;i<E[e].length;i++)f=E[e][i],f.scope===n&&t(f.mods,c)&&(E[e][i]={})}}function u(e){return"string"==typeof e&&(e=P(e)),n(S,e)!=-1}function a(){return S.slice(0)}function s(e){var n=(e.target||e.srcElement).tagName;return!("INPUT"==n||"SELECT"==n||"TEXTAREA"==n)}function d(e){w=e||"all"}function p(){return w||"all"}function h(e){var n,t,o;for(n in E)for(t=E[n],o=0;o<t.length;)t[o].scope===e?t.splice(o,1):o++}function g(e){var n;return e=e.replace(/\s/g,""),n=e.split(","),""==n[n.length-1]&&(n[n.length-2]+=","),n}function v(e){for(var n=e.slice(0,e.length-1),t=0;t<n.length;t++)n[t]=C[n[t]];return n}function y(e,n,t){e.addEventListener?e.addEventListener(n,t,!1):e.attachEvent&&e.attachEvent("on"+n,function(){t(window.event)})}function k(){var n=e.key;return e.key=A,n}var m,E={},b={16:!1,18:!1,17:!1,91:!1},w="all",C={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,command:91},K={backspace:8,tab:9,clear:12,enter:13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,home:36,end:35,pageup:33,pagedown:34,",":188,".":190,"/":191,"`":192,"-":189,"=":187,";":186,"'":222,"[":219,"]":221,"\\":220},P=function(e){return K[e]||e.toUpperCase().charCodeAt(0)},S=[];for(m=1;m<20;m++)K["f"+m]=111+m;var T={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey"};for(m in C)f[m]=!1;y(document,"keydown",function(e){r(e)}),y(document,"keyup",i),y(window,"focus",l);var A=e.key;e.key=f,e.key.setScope=d,e.key.getScope=p,e.key.deleteScope=h,e.key.filter=s,e.key.isPressed=u,e.key.getPressedKeyCodes=a,e.key.noConflict=k,e.key.unbind=c,"undefined"!=typeof module&&(module.exports=f)}(this);
|
140
|
+
},{}],66:[function(require,module,exports){
|
141
|
+
function noop(){}function serialize(e){if(!isObject(e))return e;var t=[];for(var r in e)pushEncodedKeyValuePair(t,r,e[r]);return t.join("&")}function pushEncodedKeyValuePair(e,t,r){if(null!=r)if(Array.isArray(r))r.forEach(function(r){pushEncodedKeyValuePair(e,t,r)});else if(isObject(r))for(var s in r)pushEncodedKeyValuePair(e,t+"["+s+"]",r[s]);else e.push(encodeURIComponent(t)+"="+encodeURIComponent(r));else null===r&&e.push(encodeURIComponent(t))}function parseString(e){for(var t,r,s={},n=e.split("&"),o=0,i=n.length;o<i;++o)t=n[o],r=t.indexOf("="),r==-1?s[decodeURIComponent(t)]="":s[decodeURIComponent(t.slice(0,r))]=decodeURIComponent(t.slice(r+1));return s}function parseHeader(e){var t,r,s,n,o=e.split(/\r?\n/),i={};o.pop();for(var u=0,a=o.length;u<a;++u)r=o[u],t=r.indexOf(":"),s=r.slice(0,t).toLowerCase(),n=trim(r.slice(t+1)),i[s]=n;return i}function isJSON(e){return/[\/+]json\b/.test(e)}function type(e){return e.split(/ *; */).shift()}function params(e){return e.split(/ *; */).reduce(function(e,t){var r=t.split(/ *= */),s=r.shift(),n=r.shift();return s&&n&&(e[s]=n),e},{})}function Response(e,t){t=t||{},this.req=e,this.xhr=this.req.xhr,this.text="HEAD"!=this.req.method&&(""===this.xhr.responseType||"text"===this.xhr.responseType)||void 0===this.xhr.responseType?this.xhr.responseText:null,this.statusText=this.req.xhr.statusText,this._setStatusProperties(this.xhr.status),this.header=this.headers=parseHeader(this.xhr.getAllResponseHeaders()),this.header["content-type"]=this.xhr.getResponseHeader("content-type"),this._setHeaderProperties(this.header),this.body="HEAD"!=this.req.method?this._parseBody(this.text?this.text:this.xhr.response):null}function Request(e,t){var r=this;this._query=this._query||[],this.method=e,this.url=t,this.header={},this._header={},this.on("end",function(){var e=null,t=null;try{t=new Response(r)}catch(t){return e=new Error("Parser is unable to parse the response"),e.parse=!0,e.original=t,e.rawResponse=r.xhr&&r.xhr.responseText?r.xhr.responseText:null,e.statusCode=r.xhr&&r.xhr.status?r.xhr.status:null,r.callback(e)}r.emit("response",t);var s;try{(t.status<200||t.status>=300)&&(s=new Error(t.statusText||"Unsuccessful HTTP response"),s.original=e,s.response=t,s.status=t.status)}catch(e){s=e}s?r.callback(s,t):r.callback(null,t)})}function del(e,t){var r=request("DELETE",e);return t&&r.end(t),r}var root;"undefined"!=typeof window?root=window:"undefined"!=typeof self?root=self:(console.warn("Using browser-only version of superagent in non-browser environment"),root=this);var Emitter=require("emitter"),requestBase=require("./request-base"),isObject=require("./is-object"),request=module.exports=require("./request").bind(null,Request);request.getXHR=function(){if(!(!root.XMLHttpRequest||root.location&&"file:"==root.location.protocol&&root.ActiveXObject))return new XMLHttpRequest;try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.6.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0")}catch(e){}try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(e){}throw Error("Browser-only verison of superagent could not find XHR")};var trim="".trim?function(e){return e.trim()}:function(e){return e.replace(/(^\s*|\s*$)/g,"")};request.serializeObject=serialize,request.parseString=parseString,request.types={html:"text/html",json:"application/json",xml:"application/xml",urlencoded:"application/x-www-form-urlencoded",form:"application/x-www-form-urlencoded","form-data":"application/x-www-form-urlencoded"},request.serialize={"application/x-www-form-urlencoded":serialize,"application/json":JSON.stringify},request.parse={"application/x-www-form-urlencoded":parseString,"application/json":JSON.parse},Response.prototype.get=function(e){return this.header[e.toLowerCase()]},Response.prototype._setHeaderProperties=function(e){var t=this.header["content-type"]||"";this.type=type(t);var r=params(t);for(var s in r)this[s]=r[s]},Response.prototype._parseBody=function(e){var t=request.parse[this.type];return!t&&isJSON(this.type)&&(t=request.parse["application/json"]),t&&e&&(e.length||e instanceof Object)?t(e):null},Response.prototype._setStatusProperties=function(e){1223===e&&(e=204);var t=e/100|0;this.status=this.statusCode=e,this.statusType=t,this.info=1==t,this.ok=2==t,this.clientError=4==t,this.serverError=5==t,this.error=(4==t||5==t)&&this.toError(),this.accepted=202==e,this.noContent=204==e,this.badRequest=400==e,this.unauthorized=401==e,this.notAcceptable=406==e,this.notFound=404==e,this.forbidden=403==e},Response.prototype.toError=function(){var e=this.req,t=e.method,r=e.url,s="cannot "+t+" "+r+" ("+this.status+")",n=new Error(s);return n.status=this.status,n.method=t,n.url=r,n},request.Response=Response,Emitter(Request.prototype);for(var key in requestBase)Request.prototype[key]=requestBase[key];Request.prototype.type=function(e){return this.set("Content-Type",request.types[e]||e),this},Request.prototype.responseType=function(e){return this._responseType=e,this},Request.prototype.accept=function(e){return this.set("Accept",request.types[e]||e),this},Request.prototype.auth=function(e,t,r){switch(r||(r={type:"basic"}),r.type){case"basic":var s=btoa(e+":"+t);this.set("Authorization","Basic "+s);break;case"auto":this.username=e,this.password=t}return this},Request.prototype.query=function(e){return"string"!=typeof e&&(e=serialize(e)),e&&this._query.push(e),this},Request.prototype.attach=function(e,t,r){return this._getFormData().append(e,t,r||t.name),this},Request.prototype._getFormData=function(){return this._formData||(this._formData=new root.FormData),this._formData},Request.prototype.callback=function(e,t){var r=this._callback;this.clearTimeout(),r(e,t)},Request.prototype.crossDomainError=function(){var e=new Error("Request has been terminated\nPossible causes: the network is offline, Origin is not allowed by Access-Control-Allow-Origin, the page is being unloaded, etc.");e.crossDomain=!0,e.status=this.status,e.method=this.method,e.url=this.url,this.callback(e)},Request.prototype._timeoutError=function(){var e=this._timeout,t=new Error("timeout of "+e+"ms exceeded");t.timeout=e,this.callback(t)},Request.prototype._appendQueryString=function(){var e=this._query.join("&");e&&(this.url+=~this.url.indexOf("?")?"&"+e:"?"+e)},Request.prototype.end=function(e){var t=this,r=this.xhr=request.getXHR(),s=this._timeout,n=this._formData||this._data;this._callback=e||noop,r.onreadystatechange=function(){if(4==r.readyState){var e;try{e=r.status}catch(t){e=0}if(0==e){if(t.timedout)return t._timeoutError();if(t._aborted)return;return t.crossDomainError()}t.emit("end")}};var o=function(e,r){r.total>0&&(r.percent=r.loaded/r.total*100),r.direction=e,t.emit("progress",r)};if(this.hasListeners("progress"))try{r.onprogress=o.bind(null,"download"),r.upload&&(r.upload.onprogress=o.bind(null,"upload"))}catch(e){}if(s&&!this._timer&&(this._timer=setTimeout(function(){t.timedout=!0,t.abort()},s)),this._appendQueryString(),this.username&&this.password?r.open(this.method,this.url,!0,this.username,this.password):r.open(this.method,this.url,!0),this._withCredentials&&(r.withCredentials=!0),"GET"!=this.method&&"HEAD"!=this.method&&"string"!=typeof n&&!this._isHost(n)){var i=this._header["content-type"],u=this._serializer||request.serialize[i?i.split(";")[0]:""];!u&&isJSON(i)&&(u=request.serialize["application/json"]),u&&(n=u(n))}for(var a in this.header)null!=this.header[a]&&r.setRequestHeader(a,this.header[a]);return this._responseType&&(r.responseType=this._responseType),this.emit("request",this),r.send(void 0!==n?n:null),this},request.Request=Request,request.get=function(e,t,r){var s=request("GET",e);return"function"==typeof t&&(r=t,t=null),t&&s.query(t),r&&s.end(r),s},request.head=function(e,t,r){var s=request("HEAD",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s},request.options=function(e,t,r){var s=request("OPTIONS",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s},request.del=del,request.delete=del,request.patch=function(e,t,r){var s=request("PATCH",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s},request.post=function(e,t,r){var s=request("POST",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s},request.put=function(e,t,r){var s=request("PUT",e);return"function"==typeof t&&(r=t,t=null),t&&s.send(t),r&&s.end(r),s};
|
142
|
+
},{"./is-object":67,"./request":69,"./request-base":68,"emitter":70}],67:[function(require,module,exports){
|
213
143
|
function isObject(e){return null!==e&&"object"==typeof e}module.exports=isObject;
|
214
|
-
},{}],
|
144
|
+
},{}],68:[function(require,module,exports){
|
215
145
|
var isObject=require("./is-object");exports.clearTimeout=function(){return this._timeout=0,clearTimeout(this._timer),this},exports.parse=function(t){return this._parser=t,this},exports.serialize=function(t){return this._serializer=t,this},exports.timeout=function(t){return this._timeout=t,this},exports.then=function(t,e){if(!this._fullfilledPromise){var i=this;this._fullfilledPromise=new Promise(function(t,e){i.end(function(i,r){i?e(i):t(r)})})}return this._fullfilledPromise.then(t,e)},exports.catch=function(t){return this.then(void 0,t)},exports.use=function(t){return t(this),this},exports.get=function(t){return this._header[t.toLowerCase()]},exports.getHeader=exports.get,exports.set=function(t,e){if(isObject(t)){for(var i in t)this.set(i,t[i]);return this}return this._header[t.toLowerCase()]=e,this.header[t]=e,this},exports.unset=function(t){return delete this._header[t.toLowerCase()],delete this.header[t],this},exports.field=function(t,e){if(null===t||void 0===t)throw new Error(".field(name, val) name can not be empty");if(isObject(t)){for(var i in t)this.field(i,t[i]);return this}if(null===e||void 0===e)throw new Error(".field(name, val) val can not be empty");return this._getFormData().append(t,e),this},exports.abort=function(){return this._aborted?this:(this._aborted=!0,this.xhr&&this.xhr.abort(),this.req&&this.req.abort(),this.clearTimeout(),this.emit("abort"),this)},exports.withCredentials=function(){return this._withCredentials=!0,this},exports.redirects=function(t){return this._maxRedirects=t,this},exports.toJSON=function(){return{method:this.method,url:this.url,data:this._data,headers:this._header}},exports._isHost=function(t){switch({}.toString.call(t)){case"[object File]":case"[object Blob]":case"[object FormData]":return!0;default:return!1}},exports.send=function(t){var e=isObject(t),i=this._header["content-type"];if(e&&isObject(this._data))for(var r in t)this._data[r]=t[r];else"string"==typeof t?(i||this.type("form"),i=this._header["content-type"],this._data="application/x-www-form-urlencoded"==i?this._data?this._data+"&"+t:t:(this._data||"")+t):this._data=t;return!e||this._isHost(t)?this:(i||this.type("json"),this)};
|
216
|
-
},{"./is-object":
|
146
|
+
},{"./is-object":67}],69:[function(require,module,exports){
|
217
147
|
function request(e,n,t){return"function"==typeof t?new e("GET",n).end(t):2==arguments.length?new e("GET",n):new e(n,t)}module.exports=request;
|
218
|
-
},{}],
|
148
|
+
},{}],70:[function(require,module,exports){
|
219
149
|
function Emitter(t){if(t)return mixin(t)}function mixin(t){for(var e in Emitter.prototype)t[e]=Emitter.prototype[e];return t}"undefined"!=typeof module&&(module.exports=Emitter),Emitter.prototype.on=Emitter.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},Emitter.prototype.once=function(t,e){function i(){this.off(t,i),e.apply(this,arguments)}return i.fn=e,this.on(t,i),this},Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var i=this._callbacks["$"+t];if(!i)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,s=0;s<i.length;s++)if((r=i[s])===e||r.fn===e){i.splice(s,1);break}return this},Emitter.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),i=this._callbacks["$"+t];if(i){i=i.slice(0);for(var r=0,s=i.length;r<s;++r)i[r].apply(this,e)}return this},Emitter.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},Emitter.prototype.hasListeners=function(t){return!!this.listeners(t).length};
|
220
150
|
},{}]},{},[7])(7)
|
221
151
|
});
|
222
152
|
|
223
153
|
|
224
|
-
//# sourceMappingURL=/assets/ratchet/core-0.1.
|
154
|
+
//# sourceMappingURL=/assets/ratchet/core-0.1.28.map.json
|